/* ============================================
   Dr. Lahey's Garden — Styles
   Palette: Terracotta + Sand
   Fonts: Playfair Display + Lato
   ============================================ */

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

:root {
    --terracotta-50: #fdf0eb;
    --terracotta-100: #f9d5c4;
    --terracotta-200: #f2ad92;
    --terracotta-300: #e87d5c;
    --terracotta-400: #d95a35;
    --terracotta-500: #c4411e;
    --terracotta-600: #a33218;
    --terracotta-700: #822a17;
    --terracotta-800: #6a2617;
    --terracotta-900: #562114;
    
    --sand-50: #fdfcfa;
    --sand-100: #faf5ef;
    --sand-200: #f5ece0;
    --sand-300: #ebe0cc;
    --sand-400: #ddc9a8;
    --sand-500: #c9ad82;
    --sand-600: #b49168;
    --sand-700: #967654;
    --sand-800: #7a6047;
    --sand-900: #65503d;
    
    --dark: #2a1f1a;
    --dark-soft: #3d2e26;
    --cream: #faf7f3;
    --white: #ffffff;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(42, 31, 26, 0.08);
    --shadow-md: 0 4px 20px rgba(42, 31, 26, 0.1);
    --shadow-lg: 0 10px 40px rgba(42, 31, 26, 0.12);
    --shadow-xl: 0 20px 60px rgba(42, 31, 26, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: var(--sand-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   Typography
   ============================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-500);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--sand-800);
    max-width: 600px;
    line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

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

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

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

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

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--dark);
}

.nav-logo-icon {
    color: var(--terracotta-300);
}

.navbar.scrolled .nav-logo-icon {
    color: var(--terracotta-500);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

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

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

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

.navbar.scrolled .nav-link {
    color: var(--sand-700);
}

.navbar.scrolled .nav-link:hover {
    color: var(--dark);
}

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

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

.navbar.scrolled .hamburger {
    background-color: var(--dark);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 31, 26, 0.82) 0%,
        rgba(42, 31, 26, 0.65) 50%,
        rgba(42, 31, 26, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta-300);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta-200);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 540px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 120px 0;
    background-color: var(--sand-50);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--terracotta-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--sand-800);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--sand-300);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta-500);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--sand-700);
    letter-spacing: 0.05em;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    padding: 120px 0;
    background-color: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 28px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--sand-700);
    line-height: 1.7;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 120px 0;
    background-color: var(--sand-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background-color: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--terracotta-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--terracotta-50);
    border-radius: var(--radius-md);
    color: var(--terracotta-500);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 1rem;
    color: var(--sand-700);
    line-height: 1.8;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 31, 26, 0.88) 0%,
        rgba(42, 31, 26, 0.72) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 120px 0;
    background-color: var(--sand-50);
}

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

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--terracotta-50);
    border-radius: var(--radius-md);
    color: var(--terracotta-500);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--sand-700);
    line-height: 1.6;
}

.contact-item a {
    color: var(--terracotta-500);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--terracotta-600);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 16px;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sand-800);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--sand-50);
    border: 2px solid var(--sand-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta-400);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(196, 65, 30, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--sand-500);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--terracotta-50);
    border: 1px solid var(--terracotta-200);
    border-radius: var(--radius-sm);
    color: var(--terracotta-700);
    font-size: 0.95rem;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: var(--terracotta-500);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--terracotta-400);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--terracotta-300);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--terracotta-300);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--terracotta-200);
    text-decoration: underline;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 1rem;
    }
    
    .nav-link:hover {
        color: var(--white) !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper img {
        height: 400px;
    }
    
    .about-accent {
        display: none;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about,
    .products,
    .services,
    .contact {
        padding: 80px 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
