:root {
    --text: #2d241f;
    --background: #f5f0e8;
    --surface: #eee6da;
    --border: #d5c8b8;
    --accent: #6b4f3f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ========================================
   Navigation
======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(245, 240, 232, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ========================================
   Mobile Menu
======================================== */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;
    padding: 8px;

    background: transparent;
    border: 0;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--text);
    border-radius: 2px;
}


/* ========================================
   Main
======================================== */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ========================================
   Hero
======================================== */

.hero {
    min-height: 600px;
    padding: 150px 0 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 14px;

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.hero-description {
    max-width: 700px;
    margin: 0;

    font-size: 1.2rem;
    line-height: 1.7;
}

.hero-button {
    display: inline-block;
    width: fit-content;

    margin-top: 28px;

    color: var(--accent);

    font-size: 1rem;
    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;

    transition: opacity 0.2s ease;
}

.hero-button:hover {
    opacity: 0.65;
}


/* ========================================
   Introduction
======================================== */

.intro {
    max-width: 800px;
    padding: 70px 0;
}

.intro p {
    margin: 0 0 24px;
    font-size: 1.1rem;
}

.intro p:last-child {
    margin-bottom: 0;
}


/* ========================================
   General Sections
======================================== */

.content-section {
    padding: 60px 0;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.section-heading h3 {
    max-width: 700px;
    margin: 16px 0 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 400;
}

.section-intro {
    max-width: 800px;
    margin: 0 0 55px;

    font-size: 1.05rem;
}


/* ========================================
   Services
======================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.service-card h3 {
    margin: 0 0 24px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 500;
}

.service-card ul {
    margin: 0;
    padding-left: 20px;
}

.service-card li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}


/* ========================================
   TFL Development Tool
======================================== */

.tfl-section {
    padding-bottom: 60px;
}

.tfl-description {
    max-width: 800px;
    margin-bottom: 60px;
}

.tfl-description p {
    margin: 0 0 24px;
    font-size: 1.05rem;
}

.tfl-description p:last-child {
    margin-bottom: 0;
}

.features {
    max-width: 900px;
}

.key-features {
    margin: 0 0 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.feature-list {
    border-top: 1px solid var(--border);
}

.feature-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 28px;

    padding: 30px 0;

    border-bottom: 1px solid var(--border);
}

.feature-number {
    padding-top: 3px;

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.feature-content h4 {
    margin: 0 0 8px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 500;
}

.feature-content p {
    max-width: 700px;
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.65;
}

.feature-content strong {
    font-weight: 600;
}


/* ========================================
   Contact
======================================== */

.contact-section {
    padding: 60px 0 80px;
}

.contact-section h2 {
    margin: 0 0 24px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.contact-section > p:not(.eyebrow) {
    max-width: 600px;
    font-size: 1.1rem;
}

.contact-details {
    margin-top: 40px;
}

.contact-details p {
    margin: 8px 0;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    padding: 0;

    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;

    font: inherit;
    font-size: 0.95rem;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.icon-button:hover {
    border-color: var(--accent);
    background: var(--surface);
}


/* ========================================
   Footer
======================================== */

footer {
    margin-top: 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 0.85rem;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 800px) {

    .nav-container {
        padding: 16px 20px;
    }

    .logo {
        font-size: 0.9rem;
    }

    main {
        padding: 0 20px;
    }

    .hero {
        min-height: 500px;
        padding: 100px 0 70px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .intro {
        padding: 70px 0;
    }

    .content-section {
        padding: 70px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .section-heading h2,
    .contact-section h2 {
        font-size: 2.3rem;
    }

    .footer-container {
        flex-direction: column;
        padding: 24px 20px;
    }
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 600px) {

    /* Navigation */

    .nav-container {
        position: relative;
        padding: 14px 20px;
        align-items: center;
    }

    .logo {
        max-width: calc(100% - 55px);
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 10px 20px 15px;

        flex-direction: column;
        gap: 0;

        background: var(--background);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;

        font-size: 0.95rem;
    }


    /* Hero */

    .hero {
        min-height: 0;
        padding: 85px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }


    /* Introduction */

    .intro {
        padding: 60px 0;
    }

    .intro p {
        font-size: 1rem;
    }


    /* Sections */

    .content-section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2,
    .contact-section h2 {
        font-size: 2.3rem;
    }

    .section-heading h3 {
        font-size: 1.05rem;
    }

    .section-intro {
        margin-bottom: 45px;
        font-size: 1rem;
    }


    /* Services */

    .service-grid {
        gap: 40px;
    }

    .service-card h3 {
        margin-bottom: 18px;
    }


    /* TFL */

    .tfl-description {
        margin-bottom: 45px;
    }

    .feature-row {
        grid-template-columns: 45px 1fr;
        gap: 16px;
        padding: 25px 0;
    }

    .feature-content h4 {
        font-size: 1.15rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }


    /* Contact */

    .contact-section {
        padding: 60px 0 70px;
    }
}


/* ========================================
   Desktop
======================================== */

@media (min-width: 601px) {

    .menu-toggle {
        display: none;
    }
}