/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background: #F5F3F0;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --color-bg: #F5F3F0;
    --color-dark: #000000;
    --color-muted: #6B6560;
    --color-light-bg: #F5F3F0;
    --color-border: #D2CFC8;
    --color-dark-border: #2A2A2A;
    --color-white-alpha: rgba(255,255,255,0.85);
    --color-muted-alpha: rgba(107,101,96,0.5);
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --max-width: 1320px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}
.section {
    padding: 90px 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245,243,240,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.navbar-logo img {
    height: 36px;
    width: auto;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    display: block;
    overflow: hidden;
    height: 20px;
    padding: 0 14px;
    cursor: pointer;
}
.nav-link-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 20px;
    height: 20px;
    white-space: nowrap;
}
.nav-link:hover .nav-link-inner {
    transform: translateY(-20px);
}
.nav-link:hover .nav-link-text {
    color: var(--color-dark);
}
.nav-link-contact {
    margin-left: 16px;
}

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    margin: 5px 0;
    transition: 0.3s;
}
.mobile-menu {
    display: none;
}

/* ============================================
   SLIDE TEXT (shared hover animation)
   ============================================ */
.slide-text {
    display: block;
    overflow: hidden;
    height: 20px;
}
.slide-text-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-text-inner span {
    height: 20px;
    line-height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #121212;
    color: #F5F3F0;
    padding: 90px 0 0;
}
.footer-top {
    display: flex;
    gap: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--color-dark-border);
}
.footer-cta {
    flex: 1;
}
.footer-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    color: #F5F3F0;
    margin-bottom: 32px;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: #F5F3F0;
    cursor: pointer;
    background: none;
    transition: all 0.2s;
}
.footer-cta-btn .slide-text-inner span { color: #F5F3F0; }
.footer-cta-btn:hover .slide-text-inner { transform: translateY(-20px); }
.footer-cta-btn:hover { border-color: #D2CFC8; }
.footer-brand {
    margin-top: 48px;
}
.footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    filter: invert(1);
}
.footer-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
}
.footer-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-link {
    display: block;
    overflow: hidden;
    height: 20px;
    cursor: pointer;
}
.footer-link-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(245,243,240,0.7);
    line-height: 20px;
    height: 20px;
    white-space: nowrap;
    transition: color 0.2s;
}
.footer-link:hover .footer-link-inner { transform: translateY(-20px); }
.footer-link:hover .footer-link-text { color: #F5F3F0; }
.footer-big-text {
    padding: 60px 0 40px;
    overflow: hidden;
}
.footer-big-text svg {
    width: 100%;
    height: auto;
}
.footer-pepperlaw-text {
    font-family: var(--font-body);
    font-size: clamp(48px, 12vw, 180px);
    font-weight: 700;
    color: var(--color-dark-border);
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    user-select: none;
}

/* ============================================
   RESPONSIVE (shared components)
   ============================================ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .navbar { padding: 0 32px; }
    .footer-top { gap: 48px; }
    .footer-columns { gap: 24px; }
}

@media (max-width: 810px) {
    .container { padding: 0 24px; }
    .navbar { padding: 0 24px; }
    .section { padding: 64px 0; }
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        padding: 24px;
        z-index: 99;
        gap: 4px;
        border-top: 1px solid var(--color-border);
    }
    .mobile-menu .nav-link {
        padding: 16px 0;
        height: auto;
        border-bottom: 1px solid var(--color-border);
    }
    .mobile-menu .nav-link-inner {
        flex-direction: row;
    }
    .mobile-menu .nav-link-text {
        font-size: 18px;
        height: auto;
        line-height: 1.4;
    }
    .mobile-menu .nav-link-text:last-child {
        display: none;
    }
    .mobile-menu .nav-link:hover .nav-link-inner {
        transform: none;
    }
    .footer-top { flex-direction: column; gap: 48px; }
    .footer-columns { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .navbar { padding: 0 16px; }
    .section { padding: 48px 0; }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-content {
    opacity: 0;
    transform: translateY(12px);
    animation: pageFadeIn 0.25s ease-out forwards;
}
@keyframes pageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.page-leaving .page-content {
    animation: pageFadeOut 0.12s ease-in forwards;
}
@keyframes pageFadeOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}
