@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C2C2C;
    background-color: #FAFAF8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
}

h2 {
    font-size: 28px;
    line-height: 1.2;
}

h3 {
    font-size: 20px;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: #8B2635;
    color: white;
}

.btn-primary:hover {
    background-color: #6B1D28;
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: #2C2C2C;
    border: 1px solid #2C2C2C;
}

.btn-ghost:hover {
    background-color: #2C2C2C;
    color: white;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.1);
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2C2C2C;
    text-decoration: none;
}

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

.nav-link {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B2635;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #8B2635;
    transition: width 0.3s ease;
}

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

.nav-cta {
    background-color: #8B2635;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: #6B1D28;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 100%;
    height: 2px;
    background-color: #2C2C2C;
    transition: all 0.3s ease;
}

.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(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-content {
    text-align: center;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    font-size: 32px;
    color: #2C2C2C;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 24px;
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #8B2635;
}

.mobile-nav-cta {
    font-size: 24px;
    background-color: #8B2635;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 16px;
    display: inline-block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(250, 250, 248, 0.9) 0%, rgba(245, 243, 240, 0.9) 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2C2C2C;
}

.hero-subtitle {
    font-size: 18px;
    color: #6B6B6B;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Expandable Section */
.hero-expandable {
    margin-bottom: 40px;
}

.hero-expand-btn {
    background: none;
    border: 1px solid #2C2C2C;
    color: #2C2C2C;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.hero-expand-btn:hover {
    background-color: #2C2C2C;
    color: white;
}

.expand-arrow {
    transition: transform 0.3s ease;
}

.hero-expand-btn.active .expand-arrow {
    transform: rotate(180deg);
}

.hero-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.hero-expanded-content.active {
    max-height: 500px;
    padding: 32px 20px 0;
}

.hero-expanded-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #6B6B6B;
    margin-bottom: 32px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #8B2635;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 14px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px; /* Moved closer to Learn More button */
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #8B2635;
    border-bottom: 2px solid #8B2635;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
.services, .clients, .about, .contact {
    padding: 40px 0; /* Reduced from 60px to 40px */
}

.section-header {
    text-align: center;
    margin-bottom: 32px; /* Reduced from 48px to 32px */
}

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

.section-subtitle {
    font-size: 16px;
    color: #6B6B6B;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.service-card {
    background-color: white;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(44, 44, 44, 0.12);
}

.service-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: #2C2C2C;
}

.service-description {
    color: #6B6B6B;
    line-height: 1.6;
}

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.client-logo {
    aspect-ratio: 1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(44, 44, 44, 0.05);
    padding: 10px; /* Reduced padding for mobile */
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.client-name {
    font-size: 14px;
    font-weight: 500;
    color: #6B6B6B;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px; /* Reduced padding for mobile */
}

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

.modal-content {
    background-color: white;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6B6B6B;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2C2C2C;
}

.case-study-content h3 {
    margin-bottom: 24px;
    color: #2C2C2C;
}

.case-study-section {
    margin-bottom: 24px;
}

.case-study-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #8B2635;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-study-section p {
    color: #6B6B6B;
    line-height: 1.6;
}

.case-study-section ul {
    list-style: none;
    padding: 0;
}

.case-study-section li {
    color: #6B6B6B;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.case-study-section li::before {
    content: '•';
    color: #8B2635;
    position: absolute;
    left: 0;
}

.impact-metric {
    font-size: 24px;
    font-weight: 700;
    color: #8B2635;
    font-family: 'Playfair Display', serif;
}

/* About Section */
.about {
    background-color: #F5F3F0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #6B6B6B;
    margin-bottom: 24px;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background-color: #2C2C2C;
    color: white;
    padding: 40px 0;
}

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

.footer-tagline {
    margin-bottom: 24px;
}

.footer-tagline p {
    font-size: 16px;
    color: #F5F3F0;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #F5F3F0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B2635;
}

.footer-copyright p {
    font-size: 14px;
    color: #6B6B6B;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .nav {
        height: 80px;
    }
    
    .nav-container {
        padding: 0 40px;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero {
        margin-top: 80px;
        padding: 120px 0;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .services, .clients, .about, .contact {
        padding: 120px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
    
    .service-card {
        padding: 40px 32px;
    }
    
    .client-grid {
        gap: 40px;
    }
    
    .client-logo {
        padding: 40px; /* Revert to original padding for tablet/desktop */
    }
    
    .modal-content {
        padding: 50px;
    }
    
    .footer {
        padding: 80px 0;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    h3 {
        font-size: 32px;
    }
    
    body {
        font-size: 18px;
    }
    
    .hero-expanded-content p {
        font-size: 18px;
    }
    
    .about-text p {
        font-size: 18px;
    }
}

/* 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;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}



/* Navigation Logo Image */
.nav-logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}



/* About Section Responsive Styles */
@media (min-width: 900px) {
    .about .about-grid {
        grid-template-columns: 384px 1fr !important;
        gap: 40px !important;
        align-items: start !important;
    }
    
    .about .hover-video {
        margin: 0 !important;
    }
}

/* Hover video interaction styles */
.hover-video {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hover-video:hover {
    transform: scale(1.02);
}

/* Focus styles for accessibility */
.hover-video:focus {
    outline: 2px solid #8B2635;
    outline-offset: 4px;
}

/* Button hover effects */
.about .btn:hover {
    background: #6d1e2a !important;
    transform: translateY(-1px);
}

.about a[href="#clients"]:hover {
    color: #6d1e2a !important;
}


/* Mobile-specific styles for accessibility and usability */
@media (max-width: 768px) {
    /* Ensure minimum font size of 16px on mobile */
    body {
        font-size: 16px;
    }
    
    input, textarea, select, button {
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    /* Ensure tap targets are at least 44px */
    .btn, button, a.nav-link, a.nav-cta, .mobile-nav-link, .mobile-nav-cta {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 16px !important;
    }
    
    /* Contact form mobile optimization */
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    .contact-form textarea {
        min-height: 120px !important;
    }
    
    /* Navigation mobile optimization */
    .nav-toggle {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Media first on mobile - ensure video/image appears before text */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hover-video {
        order: -1 !important;
        margin-bottom: 24px !important;
    }
}

/* Form styling improvements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2C2C2C;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B2635;
}

.contact-success {
    background: #F0F9FF;
    border: 1px solid #0EA5E9;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    color: #0C4A6E;
}

.contact-direct {
    margin-top: 32px;
    text-align: center;
    color: #6B7280;
}

.contact-direct a {
    color: #8B2635;
    text-decoration: none;
    font-weight: 500;
}

.contact-direct a:hover {
    text-decoration: underline;
}

/* Scoped to the legal page */
.legal-page {
    color: #111;
}

.legal-page .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.legal-page h1 {
    font-size: clamp(28px, 3.4vw, 36px);
    line-height: 1.2;
    margin: 0 0 8px;
}

.legal-page h2 {
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.3;
    margin: 32px 0 8px;
}

.legal-page p, .legal-page li {
    font-size: 16px;
    line-height: 1.65;
}

.legal-page .eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 6px;
}

.legal-page .lede {
    color: #6b7280;
    margin: 6px 0 0;
}

.legal-page .card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}

.legal-page .toc {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.legal-page .toc a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.legal-page ul {
    padding-left: 18px;
}

.legal-page .note {
    color: #6b7280;
    font-size: .875rem;
}

.legal-page .backtop {
    margin-top: 12px;
    font-size: 14px;
}

.legal-page .backtop a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page .back-home {
    margin-bottom: 16px;
    font-size: 14px;
}

.legal-page .back-home a {
    color: #6b7280;
    text-decoration: none;
}

.legal-page .back-home a:hover {
    text-decoration: underline;
}

@media (min-width: 900px) {
    .legal-page .grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        align-items: start;
    }
    
    .legal-page .sidebar {
        position: sticky;
        top: 20px;
    }
    
    .legal-page .sidebar .card {
        position: sticky;
        top: 20px;
    }
}

/* About page: ensure main copy uses normal text color */
.about-body,
.about-body p,
.about-body li {
    color: #2C2C2C;
}

/* Keep only small/meta text muted if present */
.about-body .eyebrow,
.about-body .lede,
.about-body small,
.about-body .muted {
    color: #6b7280;
}


