:root {
    --bg: #fffdf9;
    --ink: #2b2b2b;
    --muted: #6b6b6b;
    --cinnamon: #b86b35;
    --cinnamon-dark: #8f5227;
    --sand: #f4e7d6;
    --card: #ffffff;
    --border: #eae3da;
    --success: #2f9e44;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding: 0 20px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--cinnamon-dark);
    letter-spacing: .3px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
	align-items: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--cinnamon);
}

/* General dropdown for desktop */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    /* desktop default */
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f7f3f0;
}

.nav-links li.dropdown .dropdown-menu.show {
    display: block;
}
/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8f2;
    border: 1px solid var(--border);
    color: var(--cinnamon-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.language-btn:hover {
    background: var(--sand);
    border-color: var(--cinnamon);
}

.language-btn i {
    font-size: 0.75rem;
}

.language-options {
    display: none;
    position: absolute;
    top: 115%;
    right: 0;
    background: #fff;
    min-width: 150px;
    padding: 8px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.language-options.show {
    display: block;
}

.language-options li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-options li a:hover,
.language-options li a.active-language {
    background: #fff3e8;
    color: var(--cinnamon-dark);
}

.language-options .flag {
    font-size: 1.1rem;
}

.language-options .lang-code {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .language-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        padding: 10px 12px;
    }

    .language-options {
        position: static;
        margin-top: 8px;
        box-shadow: none;
        width: 100%;
    }
}
/* Mobile adjustments */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        /* so it stays in the same box */
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        /* indent to show hierarchy */
        background: none;
    }

    /* Toggle dropdown via JS class */
    .dropdown-menu.show {
        display: block;
    }

    /* Optional: hide desktop hover behavior */
    /* .nav-links li.dropdown:hover .dropdown-menu {
        display: none;
    } */

    /* .nav-links li.dropdown-menu:hover .dropdown-menu.show {
        display: block;
    } */
}

/* Hamburger button for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        padding: 10px 40px;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}


/* Hero */
.hero {
    position: relative;
    min-height: 56vh;
    display: grid;
    place-items: center;
    background: url("https://images.unsplash.com/photo-1587131782738-de30ea91a542?q=80&w=2000&auto=format&fit=crop") center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .35));
}

.hero__content {
    position: relative;
    text-align: center;
    color: #fff
}

.eyebrow {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .78rem;
    opacity: .9;
    margin: 0 0 8px
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 8px
}

.hero .sub {
    max-width: 680px;
    margin: 0 auto 18px;
    font-weight: 400;
    opacity: .95
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    --ring: transparent;
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 999px;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease, color .2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .08);
}

.btn:focus {
    outline: 3px solid var(--ring)
}

.btn-outline {
    margin-top: 20px;
    --ring: transparent;
    appearance: none;
    border: 3px solid var(--cinnamon);
    color: var(--cinnamon);
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease, color .2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .08);
}

.btn--primary {
    background: var(--cinnamon);
    color: #fff
}

.btn--primary:hover {
    background: var(--cinnamon-dark);
    transform: translateY(-1px)
}

.btn--ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35)
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px)
}

.btn--lg {
    padding: 14px 22px;
    font-size: 1.05rem
}

/* Tablet (iPad etc.) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 50vh;
        /* a bit shorter so content feels centered */
        padding: 0 20px;
        /* breathing room */
    }

    .hero h1 {
        font-size: 2.4rem;
        /* lock it in so it doesn't get too big */
    }

    .hero .sub {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .hero__cta {
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: 0 1rem;
        /* Give breathing room on sides */
    }

    .hero h1 {
        font-size: 1.8rem;
        /* Smaller headline */
        line-height: 1.2;
    }

    .hero .sub {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero__cta {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .hero__content {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: .9rem;
    margin: 18px auto 0
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted)
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--muted)
}

.breadcrumbs li+li::before {
    content: "›";
    margin: 0 6px;
    color: var(--muted);
}

/* Sections */
.section {
    padding: 56px 2rem;
    /* add side padding for smaller screens */
}

.section.alt {
    background: linear-gradient(180deg, #fff, #fff8f0);
}

/* Grids */
.grid {
    display: grid;
    gap: 28px;
}

.grid--2 {
    grid-template-columns: 1.1fr .9fr;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
        /* stack vertically on tablets */
    }
}

/* Media */
.media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.media figcaption {
    font-size: .9rem;
    color: var(--muted);
    margin-top: 8px;
}

/* Bullets */
.bullets {
    padding-left: 1em;
}

.bullets li {
    margin: 8px 0;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        /* tablet */
    }
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
        /* mobile */
    }
}

@media (max-width:1024px) {
    .cards--icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .cards--icons {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

/* Uses */
.use {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.ticks {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}

.ticks li {
    position: relative;
    padding-left: 26px;
    margin: 8px 0;
}

.ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--success);
    font-weight: 700;
}

.cta-row {
    margin-top: 3rem;
    text-align: center;
}

/* Extra spacing for mobile */
@media (max-width: 480px) {
    .section {
        padding: 40px 1rem;
    }

    .grid--2,
    .grid--3 {
        gap: 20px;
    }

    .cards {
        gap: 16px;
    }

    .card,
    .use {
        padding: 16px;
    }

    .cta-row a {
        width: 100%;
        padding: 12px 0;
    }
}

/* Grades */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

@media (max-width:1024px) {
    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .grade-grid {
        grid-template-columns: 1fr;
    }
}

.grade {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.badge {
    display: inline-block;
    background: var(--sand);
    border: 1px solid var(--border);
    color: var(--cinnamon-dark);
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 8px
}

/* Comparison Table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card)
}

.compare {
    border-collapse: collapse;
    width: 100%
}

.compare th,
.compare td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left
}

.compare thead th {
    background: #fff7ef;
    font-weight: 700
}

.compare tbody tr:nth-child(odd) {
    background: #fffdf8
}

@media (max-width:768px) {
    .table-wrap {
        overflow-x: auto;
    }
}


/* Notes */
.note {
    font-size: .9rem;
    color: var(--muted);
    margin-top: 10px
}

/* CTA */
.cta {
    background: linear-gradient(180deg, #fff8f0, #ffe8cf);
    padding: 50px 0;
    border-top: 1px solid var(--border)
}

.cta__box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
}

.cta__box h2 {
    margin: 0 0 8px
}

@media (max-width:480px) {
    .cta__box {
        padding: 20px;
    }

    .cta__box h2 {
        font-size: 1.5rem;
    }

    .cta__box p {
        font-size: 0.95rem;
    }

    .cta__box a.btn {
        width: 100%;
        text-align: center;
    }
}

/* faq */

#faq summary {
    cursor: pointer;
}

@media (max-width:640px) {
    #faq details {
        padding: 10px 12px;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    margin-top: 40px;
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding: 28px 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cinnamon);
}

.footer__meta p {
    margin: .2rem 0;
    color: var(--muted);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke: #555;
    /* Modern dark grey */
    stroke-width: 1.6;
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-icon:hover svg {
    stroke: var(--cinnamon);
    transform: scale(1.12);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 3rem 1.5rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 1.4rem;
    }

    .contact-form {
        gap: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-form button {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* TOC */
.toc {
    margin: 20px auto 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px
}

.toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    list-style: none;
    margin: 0;
    padding: 0
}

.toc a {
    text-decoration: none;
    color: var(--cinnamon-dark);
    font-weight: 600
}

.toc a:hover {
    text-decoration: underline
}

@media (max-width: 768px) {
    .toc {
        padding: 12px;
    }

    .toc ul {
        flex-direction: column;
        /* Stack vertically */
        gap: 8px;
    }

    .toc li {
        border-bottom: 1px solid var(--border);
        padding-bottom: 6px;
    }

    .toc li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .toc {
        margin: 15px;
        border-radius: 10px;
    }

    .toc a {
        font-size: 0.95rem;
        /* Slightly smaller for small phones */
    }
}

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth
}