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

/* Root Variables */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Stamped Concrete Color Palette - WCAG AA Compliant */
    --navy-primary: #1e3a8a;
    --navy-dark: #172554;
    --navy-light: #3b82f6;
    --navy-hover: #1d4ed8;

    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Brand color mappings for component compatibility */
    --orange-50: #fafafa;
    --orange-100: #f5f5f5;
    --orange-200: #e5e5e5;
    --orange-300: #d4d4d4;
    --orange-700: #404040;
    --orange-800: #262626;
    --red-100: #fee2e2;
    --red-600: #dc2626;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Global Focus Styles for Accessibility */
*:focus {
    outline: 3px solid var(--navy-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--navy-primary);
    outline-offset: 2px;
}

/* Typography */
.font-serif {
    font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.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;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 1rem;
}

/* Section Narrow Container */
.section-narrow {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .section-narrow {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.btn-primary {
    background: var(--navy-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Navigation Base Styles - RECTANGULAR */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    font-family: var(--font-sans);
    transition: 0.25s ease-in-out all;
    text-decoration: none;
    color: var(--black);
}

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

nav .phone span,
nav .phone p {
    transition: 0.25s ease-in-out all;
}

nav .phone:hover span,
nav .phone:hover p {
    color: var(--navy-primary);
}

/* Main Navigation Container - RECTANGULAR (no border-radius) */
.main-nav {
    position: fixed;
    z-index: 999;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    max-width: 1400px;
    width: 100%;
}

@media (min-width: 1024px) {
    .main-nav {
        top: 24px;
    }
}

@media (max-width: 640px) {
    .main-nav {
        max-width: 90% !important;
    }
}

/* Nav Container (Flexbox Layout) */
.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
    transition: opacity 0.2s;
}

@media (max-width: 1024px) {
    .nav-logo {
        padding-left: 1rem;
    }
}

@media (min-width: 768px) {
    .nav-logo {
        gap: 0;
    }
}

@media (max-width: 640px) {
    .nav-logo {
        padding-left: 0;
    }
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: auto;
    height: 50px;
}

@media (max-width: 640px) {
    .nav-logo img {
        height: 40px;
    }
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-actions {
        order: 2;
        gap: 0;
    }
}

/* Phone Button Styles */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav-phone {
        margin-right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .nav-phone {
        margin-right: 0 !important;
    }
}

.nav-phone-content {
    display: block;
}

@media (max-width: 640px) {
    .nav-phone-content {
        display: none;
    }
}

.nav-call-label {
    font-size: 14px;
    color: var(--gray-600);
    display: block;
}

.nav-call-number {
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

/* Mobile Toggle Button */
.nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    color: var(--black);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-mobile-toggle:focus {
    outline: none !important;
}

@media (min-width: 768px) {
    .nav-mobile-toggle {
        display: none;
    }
}

button[data-collapse-toggle="navbar-sticky"] {
    outline: none;
}

button[data-collapse-toggle="navbar-sticky"] .close {
    display: none;
}

button[data-collapse-toggle="navbar-sticky"].active .close {
    display: block;
    min-width: 32px;
    height: auto;
}

button[data-collapse-toggle="navbar-sticky"].active .open {
    display: none;
}

/* Hero Section - With Form */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1rem 3rem;
}

@media (min-width: 640px) {
    .hero {
        padding: 8rem 1.5rem 3rem;
    }
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
}

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

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
}

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

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Hero Form Styles */
.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 550px;
    margin-left: auto;
}

@media (min-width: 640px) {
    .hero-form-container {
        padding: 2.5rem;
    }
}

.hero-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .hero-form-title {
        font-size: 1.75rem;
    }
}

.hero-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-form .form-group {
    margin-bottom: 1rem;
}

.hero-form .form-row .form-group {
    margin-bottom: 0;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"],
.hero-form select,
.hero-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
    background: white;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
    outline: none;
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.hero-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.hero-form textarea {
    resize: vertical;
    min-height: 80px;
}

.hero-form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--navy-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-form-submit:hover {
    background: var(--navy-hover);
}

.hero-form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
}

/* Sections */
section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 0;
    }
}

#services {
    position: relative;
    z-index: 2;
    background-color: var(--gray-50);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    color: var(--black);
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-title em {
    font-style: italic;
    color: var(--navy-primary);
}

.section-description {
    font-size: 1rem;
    color: var(--gray-700);
    max-width: 768px;
    margin: 0 auto 3rem;
    text-align: center;
}

@media (min-width: 640px) {
    .section-description {
        font-size: 1.125rem;
        margin-bottom: 4rem;
    }
}

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

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card-image {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    z-index: 1;
}

@media (min-width: 640px) {
    .service-card-content {
        padding: 1.5rem;
    }
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .service-card-title {
        font-size: 1.5rem;
    }
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.service-feature {
    display: flex;
    align-items: center;
}

.service-feature::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--navy-light);
}

/* Value Props Grid */
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.value-card {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--navy-primary);
}

@media (min-width: 640px) {
    .value-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .value-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.value-description {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.75;
}

@media (min-width: 640px) {
    .value-description {
        font-size: 1rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    padding: 5rem 0;
    background: var(--gray-50);
    overflow: hidden;
}

.testimonials-section .section-title {
    color: var(--black);
    text-align: center;
    margin-bottom: 1rem;
}

.testimonials-section .section-description {
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-wrapper {
    position: relative;
    margin: 0 0 3rem;
}

.reviews-row {
    display: flex;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollLeftOptimized 40s linear infinite;
}

.reviews-track.paused {
    animation-play-state: paused;
}

.reviews-row:hover .reviews-track {
    animation-play-state: paused;
}

.review-card {
    flex: 0 0 380px;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.5rem;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 80px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.author-location {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.review-source:hover {
    color: var(--navy-primary);
    border-color: var(--navy-primary);
    background: rgba(30, 58, 138, 0.05);
}

.external-icon {
    transition: transform 0.2s;
}

.review-source:hover .external-icon {
    transform: translate(1px, -1px);
}

@keyframes scrollLeftOptimized {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-25%);
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 320px;
        padding: 1.5rem;
    }

    .reviews-track {
        gap: 1rem;
        animation-duration: 35s;
    }

    .star {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 280px;
    }
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.25rem;
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .badge-number {
        font-size: 1.5rem;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.contact-form-container {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .contact-form-container {
        padding: 2rem;
    }
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-title {
        font-size: 1.875rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

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

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea {
    resize: none;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--navy-primary);
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--navy-primary);
}

.checkbox-text {
    color: var(--gray-700);
}

.consent-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--navy-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit:hover {
    background: var(--navy-hover);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

.map-container {
    background: var(--gray-100);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(23, 37, 84, 1) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
}

@media (min-width: 640px) {
    .contact-info-card {
        padding: 2rem;
    }
}

.contact-info-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .contact-info-title {
        font-size: 1.875rem;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--navy-light);
}

.contact-info-content h4 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    color: var(--gray-100);
    margin-bottom: 0.5rem;
}

.contact-info-content .note {
    font-size: 0.875rem;
    color: var(--gray-200);
}

.contact-divider {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.license-info {
    font-size: 0.875rem;
    color: var(--gray-200);
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1.5rem;
    background: var(--gray-50);
}

.faq-container {
    max-width: 896px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--black);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 3rem;
    }
}

.faq-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    padding: 0 1.5rem;
    transition: all 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--navy-primary);
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    font-weight: 500;
    color: var(--black);
    padding: 1.5rem 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: color 0.2s;
    font-family: var(--font-sans);
}

.accordion-trigger:hover {
    color: var(--navy-primary);
}

.accordion-trigger::after {
    content: '+';
    font-size: 1.25rem;
    transition: transform 0.3s;
    color: var(--navy-primary);
}

.accordion-item.active .accordion-trigger::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    color: var(--gray-700);
    padding-bottom: 1.5rem;
    line-height: 1.75;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

.faq-cta p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #ffffff;
    color: var(--black);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

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

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--black);
}

.footer-logo-subtitle {
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--black);
}

.footer-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.footer-column h4 {
    color: var(--black);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--navy-primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
}

.footer-legal-links a {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--navy-primary);
}

/* Background Utility Classes */
.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-white {
    background-color: white;
}

/* Icons */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

/* Project Showcase Section */
.showcase-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(23, 37, 84, 0.15) 100%);
    overflow: hidden;
    position: relative;
}

.showcase-section .section-title {
    color: var(--black);
    margin-bottom: 1rem;
}

.showcase-section .section-description {
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.showcase-wrapper {
    position: relative;
    margin: 0;
}

.showcase-row {
    display: flex;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.showcase-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollRightOptimized 30s linear infinite;
}

@media (min-width: 1024px) {
    .showcase-track.paused {
        animation-play-state: paused;
    }

    .showcase-row:hover .showcase-track {
        animation-play-state: paused;
    }
}

@media (max-width: 1023px) {
    .showcase-track {
        animation: none !important;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-y pinch-zoom;
    }

    .showcase-track:active {
        cursor: grabbing;
    }
}

.showcase-item {
    position: relative;
    flex: 0 0 450px;
    height: 350px;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    transition: transform 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (hover: hover) {
    .showcase-item:hover {
        transform: translateY(-5px);
    }

    .showcase-item:hover .showcase-overlay {
        transform: translateY(0);
    }
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    opacity: 1;
    visibility: visible;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        transparent
    );
    color: white;
    transform: translateY(100%);
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

@media (hover: none) {
    .showcase-overlay {
        transform: translateY(0) !important;
    }
}

.showcase-overlay h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.showcase-overlay p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

@keyframes scrollRightOptimized {
    from {
        transform: translateX(-25%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 2rem 0;
    }

    .showcase-item {
        flex: 0 0 320px;
        height: 240px;
    }

    .showcase-track {
        gap: 1rem;
        animation-duration: 40s;
    }
}

@media (max-width: 480px) {
    .showcase-item {
        flex: 0 0 280px;
        height: 210px;
    }
}

.showcase-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.control-hint {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-align: center;
}

/* Lightbox Styles */
.project-lightbox-simple {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s;
}

.lightbox-content-simple {
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    background: black;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lightbox-content-simple img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    background: #000;
}

.lightbox-info-simple {
    padding: 2rem;
    text-align: center;
    background: white;
    position: relative;
    z-index: 10;
    width: 100%;
}

.lightbox-info-simple h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    display: block !important;
    visibility: visible !important;
}

.lightbox-info-simple p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: block !important;
    visibility: visible !important;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
}

.lightbox-close:hover {
    background: var(--gray-100);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .project-lightbox-simple {
        padding: 1rem;
    }

    .lightbox-content-simple {
        max-width: 95%;
        max-height: 95vh;
    }

    .lightbox-content-simple img {
        height: 50vh;
    }

    .lightbox-info-simple {
        padding: 1.5rem;
    }

    .lightbox-info-simple h3 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    border-top-color: var(--navy-primary);
    animation: spin 0.8s linear infinite;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: var(--navy-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 90%;
}

/* Error Banner */
.error-banner {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: var(--red-600);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 90%;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .success-message,
    .error-banner {
        top: 6rem;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Navigation Menu Container */
#navbar-sticky {
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 768px) {
    #navbar-sticky {
        display: flex !important;
        width: auto;
        order: 1;
    }
}

@media (max-width: 767px) {
    #navbar-sticky {
        outline: none;
        position: absolute;
        top: 84px;
        left: 0;
        background-color: #ffffff;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    #navbar-sticky ul {
        border: none !important;
        margin: 0 !important;
        border-radius: 0;
        background: #ffffff;
    }
}

/* Navigation Menu (UL) */
.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    border-radius: 0.25rem;
    background-color: var(--gray-100);
    list-style: none;
}

@media (min-width: 768px) {
    .nav-menu {
        padding: 0;
        margin-top: 0;
        flex-direction: row;
        border: 0;
        background-color: transparent;
        gap: 1rem;
    }
}

/* Navigation Links */
.nav-link {
    display: block;
    padding: 0.5rem 0.25rem;
    color: var(--black);
    text-decoration: none;
    transition: 0.25s ease-in-out all;
}

@media (min-width: 1024px) {
    .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--navy-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 40;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--navy-hover);
    transform: translateY(-3px);
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    nav, .btn, .form-submit, .scroll-to-top {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    section {
        page-break-inside: avoid;
    }
}
