/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Colors from tailwind.config.js */
    --sage-50: #f4f7f5;
    --sage-100: #e3ebe6;
    --sage-200: #c5d6cd;
    --sage-300: #9eb8ad;
    --sage-400: #8da399;
    --sage-500: #6e857a;
    --sage-600: #556b5f;
    --sage-700: #46574f;
    --sage-800: #3a4640;
    --sage-900: #313a36;

    --olive-50: #f4f6f0;
    --olive-100: #e6ebdb;
    --olive-200: #cedbb6;
    --olive-300: #b0c48a;
    --olive-400: #95ad63;
    --olive-500: #7a9144;
    --olive-600: #556b2f;
    --olive-700: #485929;
    --olive-800: #3c4926;
    --olive-900: #333e23;

    --terracotta-50: #fdf6f4;
    --terracotta-100: #f9e9e5;
    --terracotta-200: #f3d3cc;
    --terracotta-300: #e8b3a7;
    --terracotta-400: #d98f7d;
    --terracotta-500: #c17767;
    --terracotta-600: #a85d4d;
    --terracotta-700: #8b4a3f;
    --terracotta-800: #734038;
    --terracotta-900: #5f3732;

    --cream-50: #fffff0;
    --cream-100: #fffdd0;
    --cream-200: #fffbc2;
    --cream-300: #fff69e;
    --cream-400: #ffeb6b;
    --cream-500: #ffd73d;
    --cream-600: #e6b625;
    --cream-700: #bf8c1b;
    --cream-800: #996b1a;
    --cream-900: #7d5619;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: #4b5563;
    /* text-gray-600 */
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
}

.text-olive-900 {
    color: var(--olive-900);
}

.text-olive-100 {
    color: var(--olive-100);
}

.text-olive-200 {
    color: var(--olive-200);
}

.text-olive-400 {
    color: var(--olive-400);
}

.bg-olive-800 {
    background-color: var(--olive-800);
}

.bg-olive-900 {
    background-color: var(--olive-900);
}

.text-sage-700 {
    color: var(--sage-700);
}

.text-sage-200 {
    color: var(--sage-200);
}

.text-sage-100 {
    color: var(--sage-100);
}

.bg-sage-50 {
    background-color: var(--sage-50);
}

.bg-sage-100 {
    background-color: var(--sage-100);
}

.bg-sage-600 {
    background-color: var(--sage-600);
}

.text-terracotta-400 {
    color: var(--terracotta-400);
}

.text-terracotta-500 {
    color: var(--terracotta-500);
}

.text-terracotta-600 {
    color: var(--terracotta-600);
}

.bg-terracotta-500 {
    background-color: var(--terracotta-500);
}

.bg-terracotta-600 {
    background-color: var(--terracotta-600);
}

.text-terracotta-300 {
    color: var(--terracotta-300);
}

.bg-cream-50 {
    background-color: var(--cream-50);
}

.text-cream-100 {
    color: var(--cream-100);
}

/* Buttons */
/* Button styles are defined below using standard naming */

/* Navbar */
/* Navbar */
.navbar-custom {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    height: 8rem;
    width: auto;
    transition: height 0.3s ease;
}

.nav-link {
    color: #374151;
    /* text-gray-700 */
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    padding-bottom: 4px;
    /* Space for underline */
}

/* Sliding Underline Animation */
/* Sliding Underline Animation - Excluding Dropdown Toggle */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sage-600);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--sage-700);
}

/* Call Button Styling */
.btn-custom-base {
    background-color: var(--terracotta-500);
    color: white !important;
    border-radius: 9999px;
    /* rounded-full */
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    box-shadow: none;
}

.btn-custom-base:hover {
    background-color: var(--terracotta-600);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    color: white !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: 1px solid #e5e7eb;
    /* gray-200 */
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* shadow-xl */
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.875rem;
    color: #374151;
    /* gray-700 */
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--sage-50);
    color: var(--sage-700);
}

/* Hero */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(51, 62, 35, 0.9), rgba(51, 62, 35, 0.7), rgba(51, 62, 35, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Tailwind Text Sizes */
.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Font Weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Leading */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Spacing */
.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Button Styles - Pixel Perfect to Button.tsx */
.btn-custom-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    /* rounded-full */
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-custom-base:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--sage-400);
    /* ring-2 ring-offset-2 */
}

.btn-custom-base:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Variants */
.btn-primary {
    background-color: var(--terracotta-500);
    color: white;
}

.btn-primary:hover {
    background-color: var(--terracotta-600);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
}

.btn-primary:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--terracotta-400);
}

.btn-secondary {
    background-color: var(--sage-500);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--sage-600);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--sage-400);
}

.btn-outline {
    border: 2px solid var(--sage-500);
    color: var(--sage-700);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--sage-50);
}

/* Special overrides for specific buttons in UI */
.btn-outline-white {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--olive-900);
    border-color: white;
}

.btn-outline-white:focus {
    box-shadow: 0 0 0 0;
    /* Override default focus for this custom variant if needed, or matched to ring-white */
}

/* Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar Overrides */
.navbar-custom {
    min-height: 5rem;
    height: auto;
    /* h-20 min, but allow grow */
}

.navbar-brand img {
    height: 8rem;
    /* h-[8rem] */
}

/* Hero Overlay - Exact Gradient */
.hero-overlay {
    background: linear-gradient(to right, rgba(51, 62, 35, 0.9), rgba(51, 62, 35, 0.7), rgba(51, 62, 35, 0.4));
    /* from-olive-900/90 via-olive-900/70 to-olive-900/40 */
}

/* Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Utilities */
.object-cover {
    object-fit: cover;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.nav-pills .nav-link {
    border-radius: 9999px;
    color: #4b5563;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background-color: var(--sage-600);
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111827;
}

/* Testimonial backdrop */
.testimonial-section {
    position: relative;
    overflow: hidden;
}

.testimonial-decoration-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 24rem;
    /* 96 */
    height: 24rem;
    background-color: white;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}

.testimonial-decoration-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem;
    /* 96 */
    height: 24rem;
    background-color: white;
    border-radius: 9999px;
    transform: translate(50%, 50%);
    opacity: 0.1;
    pointer-events: none;
}

.testimonial-card-backdrop {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Pattern */
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding-bottom: 1rem;
        border-top: 1px solid #f3f4f6;
    }
}

/* Timeline Styles */
.timeline-container:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--sage-300), transparent);
    left: 21px;
    /* Mobile left alignment */
}

@media (min-width: 768px) {
    .timeline-container:before {
        left: 50%;
        margin-left: -1px;
    }
}

.timeline-item {
    padding-left: 3rem;
    /* Space for line on mobile */
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 0;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
        /* Optional */
    }

    .timeline-item .timeline-content {
        width: 45%;
    }

    .timeline-item .timeline-dot {
        left: 50% !important;
        transform: translate(-50%, 0) !important;
    }
}

.timeline-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--terracotta-500);
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

/* Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.fade-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-left {
    transform: translateX(30px);
}

.animate-on-scroll.scale-up {
    transform: scale(0.9);
}

/* Active State for Animations */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays (can be added via inline style style="transition-delay: 100ms" or classes) */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Missing Tailwind Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* Missing Tailwind Spacing Utilities */
.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Missing Border Utilities */
.border-terracotta-500 {
    border-color: var(--terracotta-500) !important;
}

/* Missing Text Colors */
.text-gray-700 {
    color: #374151;
}

/* Missing Hover Utilities */
.hover-text-terracotta-700:hover {
    color: var(--terracotta-700) !important;
}

.hover-text-terracotta-400:hover {
    color: var(--terracotta-400) !important;
}

/* Form Utilities */
.focus-ring-terracotta:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--terracotta-400);
    border-color: var(--terracotta-400);
}

/* Timeline Styling */
.timeline-section {
    position: relative;
    padding-bottom: 2rem;
}

/* Central Line */
.timeline-line {
    position: absolute;
    left: 1.25rem;
    /* center of dot (2.5rem width / 2) on mobile */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--sage-300), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    width: 2.5rem;
    /* 10 in tailwind approx 2.5rem */
    height: 2.5rem;
    padding: 0;
    left: 0;
    background-color: var(--terracotta-500);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot-inner {
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    border-radius: 50%;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    /* gray-100 */
    margin-left: 3.5rem;
    /* space for dot */
    position: relative;
}

/* Desktop: Alternating Layout */
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
    }

    .timeline-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 4rem;
    }

    /* Use nth-of-type to ignore the timeline-line div */
    .timeline-item:nth-of-type(odd) {
        flex-direction: row-reverse;
    }

    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(50% - 2.5rem);
        margin-left: 0;
    }

    /* Use nth-of-type for even items too */
    .timeline-item:nth-of-type(even) .timeline-content {
        margin-left: auto;
        /* Push to right */
    }
}