/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--colour-secondary);
    color: #444;
    line-height: 1.7;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

p {
    max-width: 70ch;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--colour-primary);
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: var(--colour-secondary);
    border-bottom: 1px solid rgba(44, 95, 74, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 48px;
}


/* ============================================================
   NAVIGATION (DESKTOP)
   ============================================================ */

.main-nav ul {
    display: flex;
    gap: 0.5rem;
}

.main-nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--colour-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}

.main-nav a:hover {
    background: var(--colour-primary);
    color: #fff;
}


/* ============================================================
   HAMBURGER
   ============================================================ */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--colour-primary);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}


/* ============================================================
   MAIN
   ============================================================ */

main {
    min-height: calc(100vh - 80px);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--colour-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

footer a {
    color: var(--colour-accent);
}


/* ============================================================
   404 NOT FOUND
   ============================================================ */

.not-found {
    padding: 6rem 1.5rem;
    text-align: center;
}

.not-found p {
    font-size: 1.125rem;
    max-width: none;
}

.not-found a {
    color: var(--colour-accent);
    font-weight: 700;
    border-bottom: 2px solid var(--colour-accent);
    padding-bottom: 2px;
}


/* ============================================================
   UTILITIES
   ============================================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 2rem;
    }
}

@media (min-width: 1200px) {
    .section {
        padding: 7rem 2rem;
    }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.9rem 2.25rem;
    border-radius: 2rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-accent {
    background: var(--colour-accent);
    color: #fff;
    border-color: var(--colour-accent);
}

.btn-accent:hover {
    background: transparent;
    color: var(--colour-accent);
}

.btn-outline {
    background: transparent;
    color: var(--colour-primary);
    border-color: var(--colour-primary);
}

.btn-outline:hover {
    background: var(--colour-primary);
    color: #fff;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--colour-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 95, 74, 0.95), rgba(30, 68, 53, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--colour-accent);
    margin-bottom: 1.5rem;
    max-width: none;
}

.hero-heading {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 2.5rem;
    max-width: 60ch;
    line-height: 1.8;
}


/* ============================================================
   INTRO
   ============================================================ */

.intro {
    background: var(--colour-secondary);
}

.intro-inner {
    display: grid;
    gap: 3rem;
}

.intro-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 2px solid var(--colour-accent);
    padding-top: 2rem;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.highlight-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--colour-primary);
    line-height: 1;
}

.highlight-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .intro-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .intro-highlights {
        border-top: none;
        border-left: 2px solid var(--colour-accent);
        padding-top: 0;
        padding-left: 3rem;
        grid-template-columns: 1fr;
    }

    .highlight {
        text-align: left;
    }
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-intro {
    color: #777;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 60ch;
}


/* ============================================================
   CAREER PATHS
   ============================================================ */

.careers {
    background: #fff;
}

.career-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .career-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.career-card {
    background: var(--colour-secondary);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 95, 74, 0.12);
}

.career-card-icon {
    color: var(--colour-accent);
    margin-bottom: 1.25rem;
}

.career-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.career-card p {
    font-size: 0.95rem;
    color: #555;
    flex: 1;
    margin-bottom: 1.25rem;
}

.career-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--colour-accent);
    transition: color 0.2s ease;
    align-self: flex-start;
}

.career-card:hover .career-link {
    color: var(--colour-primary);
}


/* ============================================================
   CTA SECTION
   ============================================================ */

.cta {
    background: var(--colour-primary);
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 55ch;
}


/* ============================================================
   BLOG / FEATURED POSTS
   ============================================================ */

.blog {
    background: var(--colour-secondary);
}

.posts-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 95, 74, 0.1);
}

.post-card-img {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--colour-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--colour-accent);
    transition: color 0.2s ease;
    align-self: flex-start;
}

.post-card:hover .post-link {
    color: var(--colour-primary);
}

.placeholder-text {
    color: #999;
    font-style: italic;
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem 0;
}


/* ============================================================
   TOP PICK
   ============================================================ */

.top-pick-section {
    background: #fff;
    padding: 5rem 1.5rem;
    border-bottom: 3px solid var(--colour-secondary);
}

@media (min-width: 768px) {
    .top-pick-section {
        padding: 6rem 2rem;
    }
}

.top-pick-label {
    display: inline-block;
    background: var(--colour-accent);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.top-pick-card {
    border: 3px solid var(--colour-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 900px;
    background: var(--colour-secondary);
}

.top-pick-card h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 0.375rem;
}

.pick-tagline {
    font-size: 0.85rem;
    color: var(--colour-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    max-width: none;
}

.top-pick-card > p {
    font-size: 0.95rem;
    color: #555;
    max-width: 70ch;
    margin-bottom: 0;
}

.top-pick-benefits {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
    border-top: 3px solid var(--colour-primary);
    padding-top: 1.75rem;
}

@media (min-width: 600px) {
    .top-pick-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.benefit-item::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: var(--colour-accent);
    border-radius: 50%;
    margin-top: 0.35rem;
}


/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.table-section {
    background: var(--colour-secondary);
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .table-section {
        padding: 6rem 2rem;
    }
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 3px solid var(--colour-primary);
    border-radius: 0.75rem;
    margin-top: 2.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    background: #fff;
    font-size: 0.875rem;
}

.comparison-table th {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--colour-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.comparison-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 160px;
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    line-height: 1.5;
    color: #444;
}

.comparison-table td:first-child {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--colour-secondary);
    position: sticky;
    left: 0;
    border-right: 2px solid var(--colour-primary);
    color: var(--colour-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td:not(:first-child) {
    background: #fafaf7;
}

.comparison-table tr:hover td:not(:first-child) {
    background: #f5f0e8;
}

.tag-yes {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
}

.tag-basic {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
}

.tag-none {
    display: inline-block;
    background: #fce4ec;
    color: #c62828;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
}


/* ============================================================
   RANKED PROVIDER LIST
   ============================================================ */

.ranked-section {
    padding: 5rem 1.5rem;
    background: #fff;
}

@media (min-width: 768px) {
    .ranked-section {
        padding: 6rem 2rem;
    }
}

.provider-card {
    border: 3px solid var(--colour-primary);
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    overflow: hidden;
}

.provider-card:last-child {
    margin-bottom: 0;
}

.provider-card-header {
    display: flex;
    align-items: stretch;
    border-bottom: 3px solid var(--colour-primary);
}

.provider-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    background: var(--colour-primary);
    color: var(--colour-accent);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
}

.provider-title-wrap {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.provider-title-wrap h3 {
    font-size: clamp(1rem, 3vw, 1.375rem);
    margin-bottom: 0.25rem;
}

.provider-tagline {
    font-size: 0.8rem;
    color: var(--colour-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: none;
}

.provider-body {
    padding: 1.5rem;
    border-bottom: 3px solid rgba(44, 95, 74, 0.15);
}

.provider-body p {
    font-size: 0.95rem;
    color: #444;
    max-width: 70ch;
    margin-bottom: 0;
}

.pros-cons-grid {
    display: grid;
}

@media (min-width: 600px) {
    .pros-cons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pros-col,
.cons-col {
    padding: 1.25rem 1.5rem;
}

.pros-col {
    border-bottom: 3px solid rgba(44, 95, 74, 0.15);
}

@media (min-width: 600px) {
    .pros-col {
        border-bottom: none;
        border-right: 3px solid rgba(44, 95, 74, 0.15);
    }
}

.pros-cons-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.875rem;
    max-width: none;
}

.pros-col .pros-cons-label {
    color: #2e7d32;
}

.cons-col .pros-cons-label {
    color: #c62828;
}

.pros-cons-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pros-cons-list li {
    font-size: 0.875rem;
    padding-left: 1.25rem;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.pros-col .pros-cons-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #2e7d32;
}

.cons-col .pros-cons-list li::before {
    content: '\2212';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #c62828;
}


/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
    background: var(--colour-primary);
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 7rem 2rem;
    }
}

.faq-section .section-heading {
    color: #fff;
    border-bottom: 3px solid var(--colour-accent);
    padding-bottom: 1rem;
    display: inline-block;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
}

.faq-item h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--colour-accent);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

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


/* ============================================================
   CONCLUSION / HOW TO CHOOSE
   ============================================================ */

.conclusion-section {
    background: var(--colour-secondary);
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .conclusion-section {
        padding: 7rem 2rem;
    }
}

.conclusion-section .section-heading {
    border-bottom: 3px solid var(--colour-accent);
    padding-bottom: 1rem;
    display: inline-block;
}

.conclusion-intro {
    color: #666;
    font-size: 1.05rem;
    margin: 1.5rem 0 3rem;
    max-width: 65ch;
}

.choice-grid {
    display: grid;
    gap: 2px;
    background: var(--colour-primary);
    border: 3px solid var(--colour-primary);
    border-radius: 1rem;
    overflow: hidden;
    max-width: 900px;
}

@media (min-width: 768px) {
    .choice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.choice-card {
    background: #fff;
    padding: 2rem;
}

.choice-priority {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 0.5rem;
    max-width: none;
}

.choice-card h3 {
    font-size: 1.25rem;
    color: var(--colour-accent);
    margin-bottom: 0.75rem;
}

.choice-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}


/* ============================================================
   PAGE BANNER (INNER PAGES)
   ============================================================ */

.page-banner {
    background: var(--colour-primary);
    padding: 5rem 1.5rem;
    border-bottom: 4px solid var(--colour-accent);
}

.page-banner-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--colour-accent);
    margin-bottom: 1.5rem;
    max-width: none;
}

.page-banner h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    color: #fff;
    max-width: 850px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.page-banner-intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 70ch;
}

@media (min-width: 768px) {
    .page-banner {
        padding: 7rem 2rem;
    }
}

.page-banner--image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-banner--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 95, 74, 0.85);
}

.page-banner-inner {
    position: relative;
    z-index: 1;
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--colour-secondary);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1050;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-nav a {
        display: block;
        font-size: 1.1rem;
        padding: 0.85rem 1rem;
        border-radius: 0.75rem;
    }

    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .intro-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}