/* ========================================
   CCCellars - Luxury Wine Cellar Management
   Modern, Sophisticated CSS Styles
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Variables)
   ---------------------------------------- */
:root {
    /* Primary Color Palette - Rich Wine Tones */
    --color-primary: #722F37;          /* Deep Burgundy */
    --color-primary-dark: #4A1C24;     /* Dark Wine */
    --color-primary-light: #8B3A42;    /* Lighter Burgundy */
    
    /* Accent Colors - Gold & Warm Tones */
    --color-accent: #C9A962;           /* Antique Gold */
    --color-accent-light: #D4B978;     /* Light Gold */
    --color-accent-dark: #A68B4B;      /* Deep Gold */
    
    /* Neutral Palette */
    --color-cream: #F8F5F0;            /* Warm Cream */
    --color-ivory: #FFFEF9;            /* Soft Ivory */
    --color-charcoal: #2C2C2C;         /* Rich Charcoal */
    --color-graphite: #3D3D3D;         /* Graphite Gray */
    --color-slate: #6B6B6B;            /* Slate Gray */
    --color-silver: #A8A8A8;           /* Silver */
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --fs-hero: clamp(2.5rem, 6vw, 5rem);
    --fs-h1: clamp(2rem, 4vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
    --fs-body: clamp(1rem, 1.5vw, 1.125rem);
    --fs-small: 0.875rem;
    --fs-tiny: 0.75rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ----------------------------------------
   Reset & Base Styles
   ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-cream);
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------
   Container & Layout
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-grid {
    display: grid;
    gap: var(--space-2xl);
}

.section-header {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin-bottom: var(--space-md);
}

.section-divider.centered {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: var(--fs-body);
    color: var(--color-slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-cream);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 6px 25px rgba(114, 47, 55, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(44, 44, 44, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-cream);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-charcoal);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background: var(--color-cream);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Active State */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(44, 44, 44, 0.9) 0%, rgba(74, 28, 36, 0.85) 100%),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(114, 47, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: var(--space-lg);
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(248, 245, 240, 0.8);
    max-width: 650px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-cream);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: var(--fs-tiny);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ----------------------------------------
   About Section
   ---------------------------------------- */
.about {
    background: var(--color-ivory);
}

.about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-content {
    padding-right: var(--space-xl);
}

.about-text {
    color: var(--color-graphite);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: var(--fs-small);
    color: var(--color-slate);
    margin-top: var(--space-xs);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px solid var(--color-accent);
    border-radius: calc(var(--radius-lg) + 8px);
    opacity: 0.3;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.03);
}

/* ----------------------------------------
   Methodology Section
   ---------------------------------------- */
.methodology {
    background: var(--color-charcoal);
    color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.methodology-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(114, 47, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.methodology .section-title {
    color: var(--color-cream);
}

.methodology .section-subtitle {
    color: rgba(248, 245, 240, 0.7);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-smooth);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 169, 98, 0.3);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: var(--fs-h3);
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.service-description {
    font-size: var(--fs-small);
    color: rgba(248, 245, 240, 0.7);
    line-height: 1.8;
}

/* ----------------------------------------
   Team Section
   ---------------------------------------- */
.team {
    background: 
        linear-gradient(180deg, var(--color-ivory) 0%, var(--color-cream) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.team-member:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.member-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 28, 36, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-charcoal);
    transform: translateY(-3px);
}

.member-info {
    padding: var(--space-lg);
}

.member-name {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
}

.member-title {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-md);
}

.member-bio {
    font-size: var(--fs-small);
    color: var(--color-slate);
    line-height: 1.8;
}

/* ----------------------------------------
   Contact Section
   ---------------------------------------- */
.contact {
    background: var(--color-primary-dark);
    color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(114, 47, 55, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.contact .section-title {
    color: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-text {
    color: rgba(248, 245, 240, 0.8);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.contact-content {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--color-cream);
    transition: color var(--transition-fast);
}

a.contact-value:hover {
    color: var(--color-accent);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-cream);
}

.form-label .optional {
    font-weight: 400;
    color: rgba(248, 245, 240, 0.5);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-cream);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(248, 245, 240, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C9A962' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.form-select option {
    background: var(--color-charcoal);
    color: var(--color-cream);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: var(--space-sm);
    width: 100%;
    position: relative;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: block;
    position: absolute;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: var(--fs-h3);
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.success-text {
    color: rgba(248, 245, 240, 0.7);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
    background: var(--color-charcoal);
    color: var(--color-cream);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 150px;
    width: auto;
    margin: 0 auto var(--space-sm);
}

.footer-tagline {
    font-size: var(--fs-small);
    color: rgba(248, 245, 240, 0.6);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: var(--fs-small);
    color: rgba(248, 245, 240, 0.7);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    width: 100%;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.copyright {
    font-size: var(--fs-small);
    color: rgba(248, 245, 240, 0.5);
}

.footer-links {
    font-size: var(--fs-small);
}

.footer-links a {
    color: rgba(248, 245, 240, 0.5);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-links .separator {
    margin: 0 var(--space-xs);
    color: rgba(248, 245, 240, 0.3);
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: var(--space-xl);
    }
    
    .about-content {
        padding-right: var(--space-lg);
    }
}

/* Tablets */
@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-charcoal);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
        transition: right var(--transition-smooth);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-sm) 0;
    }
    
    .nav-cta {
        margin-top: var(--space-md);
    }
    
    /* Grid Adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-content {
        padding-right: 0;
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .image-frame img {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --header-height: 60px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-content {
        padding: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stat-item {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .stat-label {
        margin-top: 0;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .member-image {
        height: 280px;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero-scroll,
    .contact-form-wrapper,
    .footer-nav {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-xl);
    }
    
    .section {
        padding: var(--space-lg) 0;
        break-inside: avoid;
    }
}

/* ----------------------------------------
   Form Validation States
   ---------------------------------------- */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.error-message {
    display: block;
    font-size: var(--fs-tiny);
    color: #e74c3c;
    margin-top: 4px;
}

/* ----------------------------------------
   Keyboard Navigation Enhancement
   ---------------------------------------- */
body.keyboard-nav *:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ----------------------------------------
   Body Menu Open State (Mobile)
   ---------------------------------------- */
body.menu-open {
    overflow: hidden;
}

/* ----------------------------------------
   Additional Utility Classes
   ---------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

