/* ==========================================================================
   Ginger Bee Farms Landscaping - Main Stylesheet
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-primary: #4a7c59;
    --color-primary-dark: #3a6347;
    --color-primary-light: #e8f0eb;
    --color-accent: #e6a817;
    --color-accent-light: #fff3d0;
    --color-honey: #f5c518;
    --color-honey-dark: #d4a200;
    --color-dark: #2c2c2c;
    --color-text: #4a4a4a;
    --color-light: #fefcf5;
    --color-white: #ffffff;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Quicksand', 'Nunito', Arial, sans-serif;

    --nav-height: 80px;
    --container-width: 1200px;
    --section-padding: 100px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
}

h1 { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 2.6rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ---------- Layout Utilities ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

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

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

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 24px;
    border-radius: 2px;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* Bee emoji divider via pseudo-elements */
.section-divider-bee {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 28px;
    letter-spacing: 12px;
    color: var(--color-accent);
}

/* Hexagon clip for gallery items */
.hex-badge {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.85rem;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-honey), var(--color-accent));
    color: var(--color-dark);
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-honey-dark));
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(245, 197, 24, 0.45);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: var(--color-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo .logo-svg {
    height: 65px;
    width: auto;
    color: var(--color-white);
}

.header-logo .bee-trail {
    color: var(--color-accent);
    stroke: var(--color-accent);
}

.scrolled .header-logo .logo-svg {
    color: var(--color-white);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
}

.header-phone:hover {
    color: var(--color-accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
    border-radius: 1px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 75, 54, 0.82) 0%,
        rgba(58, 99, 71, 0.65) 50%,
        rgba(44, 44, 44, 0.75) 100%
    );
}

/* Subtle honeycomb pattern over hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23f5c518' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23f5c518' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 24px;
}

.hero-heading {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-style: italic;
    text-wrap: balance;
}

.hero-subheading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.7;
    text-wrap: balance;
}

/* =============================================
   ABOUT / SERVICES SECTION
   ============================================= */
.section-about {
    background: var(--color-white);
    overflow: visible;
    padding-bottom: 48px;
}

.about-top {
    max-width: 720px;
    margin: 0 auto 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.about-service-area {
    margin-top: 24px;
    padding: 8px 0 0;
}

.service-area-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.service-area-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

/* Honeycomb-shaped service cards */
.service-card {
    width: 240px;
    height: 270px;
    background: linear-gradient(145deg, var(--color-white), var(--color-accent-light));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 28px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
}

.service-card:hover {
    background: linear-gradient(145deg, var(--color-honey), var(--color-accent));
    transform: scale(1.08);
    filter: drop-shadow(0 8px 24px rgba(245, 197, 24, 0.35));
}

.service-card:hover .service-icon,
.service-card:hover .service-title,
.service-card:hover .service-desc {
    color: var(--color-dark);
}

.service-card:hover .service-icon svg {
    stroke: var(--color-dark);
}

/* Offset every other card for honeycomb stagger */
.service-card:nth-child(even) {
    margin-top: 60px;
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.service-title {
    margin-bottom: 6px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.78rem;
    color: var(--color-text);
    line-height: 1.45;
    max-width: 170px;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.section-gallery {
    background: var(--color-light);
    position: relative;
}

/* Honeycomb watermark on gallery section */
.section-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23d4a200' stroke-width='1.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23d4a200' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(230, 168, 23, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 44, 44, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-zoom {
    color: var(--color-accent);
    margin-top: 8px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 8px;
    transition: color var(--transition);
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 16px;
    transition: color var(--transition);
}

.lightbox-nav:hover {
    color: var(--color-accent);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.section-contact {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 48px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    margin-top: 2px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-link {
    color: var(--color-dark);
    font-weight: 400;
}

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

/* Contact Form */
.contact-form-wrap {
    background: var(--color-light);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--color-accent-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.required {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    background: var(--color-white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-success {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
}

.form-error {
    background: #fde8e8;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 32px 0 0;
    position: relative;
}

/* No top accent on footer */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid-compact {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo .logo-svg {
    height: 36px;
    width: auto;
    color: var(--color-white);
    margin-bottom: 10px;
}

.footer-logo .bee-trail {
    stroke: var(--color-accent);
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-heading {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 0.78rem;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 { font-size: 2.6rem; }
    h2 { font-size: 2rem; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
        --section-padding: 60px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero-heading { font-size: 2.4rem; }
    .hero-subheading { font-size: 1rem; }

    /* Nav mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition);
        z-index: 999;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile overlay when nav is open */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .services-grid {
        gap: 12px;
    }

    .service-card {
        width: 200px;
        height: 225px;
        padding: 40px 20px;
    }

    .service-card:nth-child(even) {
        margin-top: 40px;
    }

    .service-desc {
        font-size: 0.72rem;
        max-width: 140px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .service-card:nth-child(even) {
        margin-top: 0;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-heading { font-size: 1.8rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

    .lightbox-nav { font-size: 1.8rem; }
}
