/* ==========================================================================
   KIWIFRUIT.NET.NZ - STYLESHEET
   Professional, organic, fresh New Zealand aesthetic
   ========================================================================== */

:root {
    --primary: #4c9141;         /* Deep Forest Kiwi Green */
    --primary-hover: #3b7331;
    --primary-light: #e9f5db;
    --secondary: #0077B6;       /* Clean Ocean Blue NZ */
    --secondary-light: #90E0EF;  /* Fresh Sky Blue */
    --accent: #ffd166;          /* SunGold Yellow */
    --accent-red: #d90429;      /* RubyRed Sensation */
    --dark: #1e293b;            /* Sleek Slate Grey */
    --light: #f8fafc;           /* Crisp Soft White background */
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(76, 145, 65, 0.12);
    --shadow-hover: 0 20px 40px -15px rgba(76, 145, 65, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-light);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.btn-secondary:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background-color: #ffc33b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.brand-name .highlight {
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle .chevron {
    transition: var(--transition);
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 10;
    border: 1px solid var(--border);
}

.dropdown-content a {
    color: var(--dark);
    padding: 10px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

/* ==========================================================================
   SCROLL ANIMATION REVEAL EFFECT
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 24px;
    background-color: var(--primary-light);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.85;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

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

.hero-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.section-padding {
    padding: 80px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.info-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-desc {
    color: #475569;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

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

/* ==========================================================================
   Z-PATTERN SECTIONS (IMAGE LEFT/TEXT RIGHT)
   ========================================================================== */
.z-pattern-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.z-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.z-row.reverse {
    direction: rtl;
}

.z-row.reverse .z-text {
    direction: ltr;
}

.z-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.z-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.z-text p {
    color: #475569;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ==========================================================================
   WIDGETS & INTERACTIVE FEATURES
   ========================================================================== */
.widget-section {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 40px;
}

.widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Pay Estimator form elements */
.estimator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input, .form-group select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--light);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.estimator-results {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 2px dashed var(--primary);
}

.result-heading {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.25rem;
    color: var(--primary-hover);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(76, 145, 65, 0.2);
}

.result-row:last-child {
    border-bottom: none;
}

.result-val {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
}

.result-val.highlight-val {
    color: var(--primary-hover);
    font-size: 1.75rem;
}

/* ==========================================================================
   RECIPES & LISTINGS
   ========================================================================== */
.recipe-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.recipe-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.recipe-content {
    padding: 24px;
}

.recipe-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   DIRECTORY REGION LISTS
   ========================================================================== */
.directory-section {
    background-color: var(--light);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.directory-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.directory-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.directory-text h4 {
    font-size: 1.15rem;
    color: var(--dark);
}

.directory-text p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 24px 30px;
    border-top: 5px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand-section .brand-logo {
    margin-bottom: 20px;
}

.footer-brand-section .brand-name {
    color: var(--white);
}

.footer-brand-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 24px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-section {
        padding: 60px 24px;
        flex-direction: column-reverse;
    }
    
    .hero-bg-overlay {
        position: relative;
        width: 100%;
        height: 300px;
        clip-path: none;
        border-radius: var(--radius-md);
        margin-top: 40px;
    }
    
    .z-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .z-row.reverse {
        direction: ltr;
    }
    
    .z-image img {
        height: 300px;
    }
    
    .widget-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .widget-section {
        padding: 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}