/* =========================================================================
   Farmers Producer Company - Main Stylesheet
   ========================================================================= */

/* --- Variables & Core Settings --- */
:root {
    /* Color Palette */
    --color-primary: #297347;
    /* Wayanad Hills Logo Green */
    --color-primary-light: #3a9c61;
    --color-primary-dark: #1e5233;
    --color-secondary: #96c93d;
    /* Logo Light Green accent */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.section-subtitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.rounded-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.shadow-md {
    box-shadow: var(--box-shadow);
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-outline:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--color-primary);
    font-weight: 600;
    padding: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.btn-text:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
}

/* --- Header & Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo img {
    height: 60px;
    /* Constrain to navbar */
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.1;
    max-width: 250px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-main);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    transition: all var(--transition-speed);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-bg-white);
    padding-top: 80px;
    /* Offset nav */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(27, 64, 34, 0.8) 0%, rgba(27, 64, 34, 0.4) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-bg-white);
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- About Preview Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text,
.about-image-wrapper {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Chairman Section --- */
.chairman-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.chairman-image {
    flex: 0 0 40%;
}

.chairman-content {
    flex: 1;
}

.chairman-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.chairman-message {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    border-left: 4px solid var(--color-primary-light);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.chairman-meta h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.chairman-designation {
    color: var(--color-secondary);
    font-weight: 500;
}

/* --- Leadership Section --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.member-photo img {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square for portraits */
    object-fit: cover;
    object-position: top;
    /* Focus on the face */
    display: block;
}

/* Override for products to keep the 4/3 aspect ratio */
.product-card .member-photo img {
    aspect-ratio: 4/3;
    object-position: center;
}

/* Availability Ribbon Overlay styling */
.product-card {
    position: relative;
    /* Ensure ribbon stays inside card */
    overflow: hidden;
    /* Clip the ribbon edges cleanly */
}

.availability-ribbon {
    position: absolute;
    top: 15px;
    left: -35px;
    background-color: var(--color-primary);
    /* Green brand color */
    color: var(--color-bg-white);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.member-info {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.member-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.member-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: auto;
    /* Pushes button to bottom */
}

/* Base state for truncating text */
.text-truncate-container {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-speed);
}

/* Expanded state */
.text-expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* Styling for the Read More button itself */
.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    transition: color var(--transition-speed);
}

.read-more-btn:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo-block {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.footer-brand .footer-logo {
    height: 80px;
    /* Larger fit for footer */
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-logo-text {
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
}

.footer-about {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-bg-white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--color-bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: var(--color-bg-white);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container,
    .chairman-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        /* approx header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg-white);
        padding: 2rem;
        transition: left var(--transition-speed);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Floating Contact Icon --- */
.floating-contact-icon {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-lg);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.floating-contact-icon:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    color: var(--color-secondary);
}

.floating-contact-icon svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 768px) {
    .floating-contact-icon {
        bottom: 75px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
    .floating-contact-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* --- Floating Partners Panel --- */
.floating-partners-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-bg-white);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    border: 1px solid var(--color-border);
}

.partners-title {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partners-logos {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.partners-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .floating-partners-panel {
        bottom: 10px;
        right: 10px;
        padding: 5px 8px;
        gap: 5px;
    }

    .partners-logos img {
        height: 20px;
    }

    .partners-title {
        font-size: 0.60rem;
    }
}
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
    .logo-text {
        font-size: 0.6rem;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    .logo-text {
        font-size: 0.5rem;
        max-width: 150px;
    }
}

/* --- Reveal on scroll -----------------------------------------------------
   Generic utility: elements fade up as they enter the viewport. The
   is-visible class is applied by assets/js/lightbox.js.
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- The hidden attribute must always win ---------------------------------
   Without !important an inline or class `display` rule silently overrides
   [hidden], leaving elements on screen that are meant to be off.
   ------------------------------------------------------------------------- */
[hidden] {
    display: none !important;
}

/* --- Contact form success banner ------------------------------------------ */
.form-success {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #eaf5ee;
    border: 1px solid var(--color-primary-light);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.form-success svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.form-success p {
    margin: 0;
}

/* =========================================================================
   Header: social links, hamburger and mobile menu

   One copy of the social links serves both layouts. On desktop they are
   lifted out of the menu and pinned to the header's top-right corner; on
   mobile they stay in flow at the foot of the slide-out panel, which keeps
   the navbar itself down to just the logo and the menu button.
   ========================================================================= */

.embedded-social {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 16px;
    background-color: var(--color-primary-dark);
    border-bottom-left-radius: 8px;
}

.embedded-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.embedded-social a:hover,
.embedded-social a:focus-visible {
    color: var(--color-secondary);
    transform: translateY(-1px);
}

/* Label is for the mobile panel only */
.embedded-social-label {
    display: none;
}

/* --- Hamburger ---------------------------------------------------------- */
.mobile-toggle {
    width: 44px;
    /* 44px keeps the tap target within comfortable thumb reach */
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-right: -8px;
    border-radius: 10px;
    transition: background-color var(--transition-speed) ease;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
    background-color: rgba(41, 115, 71, 0.08);
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    transition: transform var(--transition-speed) ease, opacity 0.2s ease;
}

/* Bars fold into a cross while the menu is open */
.mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {

    /* Anchor the panel to the bottom of the header, whatever its height */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        padding: 1.5rem 2rem 2rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-list {
        gap: 0;
    }

    .nav-menu li + li {
        border-top: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1.1rem;
    }

    /* The underline animation reads oddly on stacked full-width rows */
    .nav-menu a::after {
        display: none;
    }

    .nav-menu a.active {
        font-weight: 600;
    }

    /* Social links sit at the foot of the panel, not in the navbar */
    .embedded-social {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        margin-top: 1.75rem;
        padding: 1.25rem 1rem;
        background-color: var(--color-bg-light);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
    }

    /* Full-width so the icons wrap onto their own line and centre on the
       panel, rather than being pushed off-centre by the label beside them. */
    .embedded-social-label {
        display: block;
        flex: 0 0 100%;
        margin-bottom: 0.25rem;
        text-align: center;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    /* Bare icons — the tap area stays 44px wide but is invisible */
    .embedded-social a {
        width: 44px;
        height: 44px;
        background: none;
        color: var(--color-primary);
    }

    .embedded-social a:hover,
    .embedded-social a:focus-visible {
        color: var(--color-primary-dark);
        transform: translateY(-2px);
    }

    .embedded-social svg {
        width: 24px;
        height: 24px;
    }
}

/* =========================================================================
   Wayfinding: breadcrumbs, page intros and next-step blocks
   Added so a first-time visitor always knows where they are, what a page
   is for, and where to go next. Designed to sit on top of the existing
   page styling rather than replace it.
   ========================================================================= */

/* --- Breadcrumb --------------------------------------------------------- */
.breadcrumb-bar {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: 0.5;
    user-select: none;
}

.breadcrumb [aria-current="page"] {
    color: var(--color-text-main);
    font-weight: 600;
}

/* --- Plain-English page intro ------------------------------------------- */
.page-intro {
    background-color: var(--color-bg-white);
    padding: 2.75rem 0 0.75rem;
}

.page-intro p {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.page-intro strong {
    color: var(--color-primary-dark);
}

/* --- Next steps --------------------------------------------------------- */
.next-steps {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 60px 0;
}

.next-steps h2 {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

.next-steps-lead {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.next-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.6rem;
    transition: all var(--transition-speed) ease;
}

.next-step:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.next-step-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(41, 115, 71, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--color-primary-dark);
}

.next-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.next-step-arrow {
    margin-left: auto;
    align-self: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease;
}

.next-step:hover .next-step-arrow {
    transform: translateX(4px);
}

/* --- Homepage "start here" guided entry -------------------------------- */
.start-here {
    padding: 70px 0;
    background-color: var(--color-bg-white);
}

.start-here-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.start-here-head h2 {
    font-size: 2.1rem;
    margin-bottom: 0.6rem;
}

.start-here-head p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.start-here-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.start-card {
    display: block;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-secondary);
    border-radius: var(--border-radius);
    padding: 2rem 1.75rem;
    transition: all var(--transition-speed) ease;
}

.start-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-top-color: var(--color-primary);
}

.start-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.start-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.start-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.start-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
}

.start-card:hover .start-card-link {
    gap: 12px;
}

@media (max-width: 768px) {
    .next-steps {
        padding: 44px 0;
    }

    .start-here {
        padding: 48px 0;
    }

    .page-intro {
        padding-top: 2rem;
    }

    .page-intro p {
        font-size: 1.05rem;
    }
}

/* =========================================================================
   FAQ accordions
   Built on native <details>/<summary>: open/close works with no JavaScript,
   and screen readers and keyboards get the right behaviour for free.
   ========================================================================= */
.faq-section {
    padding: 70px 0;
    background-color: var(--color-bg-white);
}

.faq-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-head h2 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.faq-head p {
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg-white);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

.faq-item[open] {
    border-color: var(--color-primary-light);
    box-shadow: var(--box-shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--color-primary-dark);
    cursor: pointer;
    list-style: none;
}

/* Hide the default disclosure triangle so our own chevron is the only marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: '';
}

.faq-item summary:hover {
    background-color: var(--color-bg-light);
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: -3px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform var(--transition-speed) ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.4rem 1.3rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.faq-answer p {
    margin: 0 0 0.75rem;
}

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

.faq-answer a {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(41, 115, 71, 0.35);
}

.faq-answer a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
}

.faq-answer ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 0.75rem;
}

.faq-answer li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 48px 0;
    }

    .faq-item summary {
        padding: 1rem 1.1rem;
        font-size: 0.98rem;
    }

    .faq-answer {
        padding: 0 1.1rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-chevron {
        transition: none;
    }
}

/* --- AvocadoFest button (home hero) ---------------------------------------
   Gold so it reads as the one distinct item among the hero actions, without
   the pulsing animation the old registration button used.
   ------------------------------------------------------------------------- */
.btn-fest {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background-color: #d4af37;
    color: #1a4325;
    border-color: #d4af37;
}

.btn-fest svg {
    transition: transform var(--transition-speed) ease;
}

.btn-fest:hover,
.btn-fest:focus-visible {
    background-color: var(--color-bg-white);
    border-color: var(--color-bg-white);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-fest:hover svg,
.btn-fest:focus-visible svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .hero-actions {
        flex-wrap: wrap;
    }
}

/* =========================================================================
   Grouped navigation — dropdowns on desktop, accordion on mobile
   ========================================================================= */

.has-sub {
    position: relative;
}

.nav-sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: color var(--transition-speed) ease;
}

.nav-sub-toggle:hover,
.has-sub.is-open > .nav-sub-toggle,
.has-sub.is-current > .nav-sub-toggle {
    color: var(--color-primary);
}

.nav-caret {
    transition: transform var(--transition-speed) ease;
}

.has-sub.is-open > .nav-sub-toggle .nav-caret {
    transform: rotate(180deg);
}

/* The active-group underline mirrors the one on plain nav links */
.has-sub.is-current > .nav-sub-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 20px);
    height: 2px;
    background-color: var(--color-secondary);
}

.nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .nav-sub {
        position: absolute;
        top: calc(100% + 14px);
        left: -14px;
        min-width: 210px;
        padding: 8px;
        background: var(--color-bg-white);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        box-shadow: 0 12px 28px rgba(22, 33, 27, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 20;
    }

    /* Bridges the gap so the pointer can travel from label to panel */
    .has-sub::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 16px;
    }

    .has-sub:hover > .nav-sub,
    .has-sub.is-open > .nav-sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-sub a {
        display: block;
        padding: 9px 12px;
        border-radius: 6px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .nav-sub a:hover,
    .nav-sub a:focus-visible {
        background: var(--color-bg-light);
        color: var(--color-primary);
    }

    .nav-sub a::after {
        display: none;
    }

    .nav-sub a.active {
        color: var(--color-primary);
        font-weight: 600;
    }
}

@media (max-width: 768px) {

    /* Accordion: the panel is closed until its group is tapped */
    .nav-sub-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 0;
        font-size: 1.1rem;
    }

    .has-sub {
        border-top: 1px solid var(--color-border);
    }

    .nav-list > li:first-child {
        border-top: none;
    }

    .nav-sub {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--color-bg-light);
        border-radius: var(--border-radius);
    }

    .has-sub.is-open > .nav-sub {
        max-height: 320px;
        margin-bottom: 0.75rem;
    }

    .nav-sub a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        color: var(--color-text-muted);
    }

    .nav-sub li + li a {
        border-top: 1px solid var(--color-border);
    }

    .nav-sub a.active {
        color: var(--color-primary);
        font-weight: 600;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nav-sub,
    .nav-caret {
        transition: none;
    }
}
