@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..600;1,400..600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0&display=swap');

/* ==========================================================================
   DESIGN SYSTEM CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #351606;
    --color-espresso-deep: #4F2A18;
    --color-roasted-caramel: #A4663E;
    --color-secondary: #89502a;
    --color-secondary-container: #feb384;
    --color-on-secondary-container: #79431e;
    --color-froth-cream: #F9F8F7;
    --color-steam-white: #E8E7E9;
    --color-surface: #faf9fb;
    --color-surface-container: #eeedef;
    --color-on-surface: #1a1c1d;
    --color-on-surface-variant: #51443e;
    --color-outline: #83746d;
    --color-outline-variant: #d6c3bb;
    --color-white: #ffffff;
    --color-stainless-steel: #808080;

    /* Typography Settings */
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    /* Spacing Scale (8px base) */
    --spacing-base: 8px;
    --spacing-xs: calc(var(--spacing-base) * 0.5); /* 4px */
    --spacing-sm: var(--spacing-base);            /* 8px */
    --spacing-md: calc(var(--spacing-base) * 2);   /* 16px */
    --spacing-lg: calc(var(--spacing-base) * 3);   /* 24px */
    --spacing-xl: calc(var(--spacing-base) * 5);   /* 40px */
    --spacing-xxl: calc(var(--spacing-base) * 8);  /* 64px */

    /* Layout Spacing */
    --container-max-width: 1200px;
    --gutter: var(--spacing-lg);                   /* 24px */
    --margin-mobile: 20px;
    --margin-desktop: var(--spacing-xxl);          /* 64px */

    /* Rounded Corners */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-default: 0.5rem; /* 8px */
    --radius-md: 0.75rem; /* 12px */
    --radius-lg: 1rem;    /* 16px */
    --radius-xl: 1.5rem;  /* 24px */
    --radius-full: 9999px;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(79, 42, 24, 0.04);
    --shadow-md: 0 4px 20px rgba(79, 42, 24, 0.08);
    --shadow-lg: 0 12px 32px rgba(79, 42, 24, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-froth-cream);
    color: var(--color-on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   TYPOGRAPHY CLASSES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--color-primary);
}

.text-display-lg {
    font-family: var(--font-serif);
    font-size: 2.25rem; /* 36px mobile default */
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-headline-lg {
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px mobile default */
    line-height: 1.25;
    font-weight: 500;
}

.text-headline-md {
    font-family: var(--font-serif);
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    font-weight: 500;
}

.text-body-lg {
    font-family: var(--font-sans);
    font-size: 1.125rem; /* 18px */
    line-height: 1.55;
    font-weight: 400;
    color: var(--color-on-surface-variant);
}

.text-body-md {
    font-family: var(--font-sans);
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    font-weight: 400;
    color: var(--color-on-surface-variant);
}

.text-label-md {
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-caption {
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-outline);
}

.text-balanced {
    text-wrap: balance;
}

/* Material Icons Integration */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 300;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
}

.main-content {
    flex-grow: 1;
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Logo Styling & Parallax Container */
.logo-container {
    position: relative;
    margin-bottom: var(--spacing-xl);
    perspective: 1000px;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-white);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-steam-white);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.logo-badge span {
    font-size: 0.75rem;
    color: var(--color-roasted-caramel);
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin-bottom: var(--spacing-xxl);
    opacity: 0;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.hero-description {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Link Cards/Buttons Grid */
.links-section {
    width: 100%;
    max-width: 1000px;
    padding: 0 var(--spacing-md);
    opacity: 0;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-steam-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-roasted-caramel);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition-smooth);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-outline-variant);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-text {
    font-family: var(--font-sans);
    color: var(--color-espresso-deep);
    transition: var(--transition-quick);
}

.link-card:hover .link-text {
    color: var(--color-roasted-caramel);
}

/* Footer Section */
.site-footer {
    background-color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    border-t: 1px solid var(--color-steam-white);
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0.8;
}

.footer-brand span.material-symbols-outlined {
    color: var(--color-espresso-deep);
    font-size: 2rem;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-primary);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-espresso-deep);
    font-weight: 500;
    transition: var(--transition-quick);
}

.contact-item:hover {
    color: var(--color-roasted-caramel);
}

.contact-item .material-symbols-outlined {
    font-size: 1.25rem;
    transition: var(--transition-quick);
}

.contact-item:hover .material-symbols-outlined {
    transform: scale(1.1) rotate(5deg);
}

.contact-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-outline);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.contact-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-divider {
    display: none;
    width: 1px;
    height: 48px;
    background-color: var(--color-steam-white);
}

.footer-copyright {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */
.fade-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Breakpoint (min-width: 600px) */
@media (min-width: 600px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-display-lg {
        font-size: 2.75rem; /* 44px */
    }
}

/* Desktop Breakpoint (min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding-left: var(--margin-desktop);
        padding-right: var(--margin-desktop);
    }

    .main-content {
        padding-top: var(--spacing-xxl);
        padding-bottom: var(--spacing-xxl);
    }

    .logo-wrapper {
        width: 140px;
        height: 140px;
    }

    .text-display-lg {
        font-size: 3rem; /* 48px */
        line-height: 1.16;
    }

    .text-headline-lg {
        font-size: 2rem; /* 32px */
    }

    .links-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-md);
    }

    .link-card {
        aspect-ratio: 1 / 1; /* Make desktop cards square */
        padding: var(--spacing-md);
    }

    .footer-contacts {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-xxl);
    }

    .footer-divider {
        display: block;
    }

    .contact-group {
        align-items: flex-start;
    }
}

/* Selection customization */
::selection {
    background-color: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
}
