/* ============================================
   Schreiner Concrete — Custom Styles
   Terracotta + Sand Palette | Editorial Design
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Terracotta Palette */
    --color-terracotta-50: #fdf0eb;
    --color-terracotta-100: #fce4d9;
    --color-terracotta-200: #f8c4b5;
    --color-terracotta-300: #f3a08a;
    --color-terracotta-400: #ec7558;
    --color-terracotta-500: #e05a35;
    --color-terracotta-600: #d14424;
    --color-terracotta-700: #af351e;
    --color-terracotta-800: #8c2c1b;
    --color-terracotta-900: #712517;
    --color-terracotta-950: #3d100a;
    
    /* Sand Palette */
    --color-sand-50: #fdfcfa;
    --color-sand-100: #faf5ed;
    --color-sand-200: #f3e8d5;
    --color-sand-300: #e8d4b0;
    --color-sand-400: #d4b882;
    --color-sand-500: #c4a063;
    --color-sand-600: #b08848;
    --color-sand-700: #8f6d38;
    --color-sand-800: #745830;
    --color-sand-900: #5f482a;
    --color-sand-950: #332716;
    
    /* Neutrals */
    --color-dark: #1a1410;
    --color-dark-soft: #2d2419;
    --color-gray-900: #1c1917;
    --color-gray-800: #292524;
    --color-gray-700: #44403c;
    --color-gray-600: #57534e;
    --color-gray-500: #78716c;
    --color-gray-400: #a8a29e;
    --color-gray-300: #d6d3d1;
    --color-gray-200: #e7e5e4;
    --color-gray-100: #f5f5f4;
    --color-gray-50: #fafaf9;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 4vw, 3rem);
    --nav-height: 80px;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 20, 16, 0.08), 0 2px 4px -2px rgba(26, 20, 16, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(26, 20, 16, 0.08), 0 4px 6px -4px rgba(26, 20, 16, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(26, 20, 16, 0.1), 0 8px 10px -6px rgba(26, 20, 16, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-slower: 600ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-sand-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sand-50);
    transition: color var(--transition-base);
}

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

.nav__logo-icon {
    color: var(--color-terracotta-500);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 252, 250, 0.85);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

.nav.scrolled .nav__link {
    color: var(--color-gray-600);
}

.nav.scrolled .nav__link:hover {
    color: var(--color-terracotta-600);
}

.nav__link--cta {
    background-color: var(--color-terracotta-500);
    color: white !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--color-terracotta-600);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-sand-50);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav.scrolled .nav__toggle-line {
    background-color: var(--color-dark);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.mobile-menu__close {
    position: absolute;
    top: var(--space-xl);
    right: var(--container-padding);
    color: var(--color-sand-50);
    padding: var(--space-sm);
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-sand-100);
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--color-terracotta-400);
}

.mobile-menu__link--cta {
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: var(--color-terracotta-500);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-terracotta-500);
    color: white;
    box-shadow: 0 4px 14px rgba(224, 90, 53, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-terracotta-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 90, 53, 0.4);
}

.btn--ghost {
    background-color: rgba(253, 252, 250, 0.12);
    color: var(--color-sand-50);
    border: 1px solid rgba(253, 252, 250, 0.3);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background-color: rgba(253, 252, 250, 0.2);
    border-color: rgba(253, 252, 250, 0.5);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-terracotta-600);
    border: 2px solid var(--color-terracotta-500);
}

.btn--outline:hover {
    background-color: var(--color-terracotta-50);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    margin-bottom: var(--space-4xl);
}

.section-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta-600);
    margin-bottom: var(--space-md);
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

.section-header__title--light {
    color: var(--color-sand-50);
}

.section-header__description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 640px;
    line-height: 1.7;
}

.section-header__label--light {
    color: var(--color-terracotta-300);
}

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

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

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 16, 0.82) 0%,
        rgba(61, 16, 10, 0.72) 50%,
        rgba(26, 20, 16, 0.65) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-4xl)) var(--container-padding) var(--space-5xl);
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: rgba(224, 90, 53, 0.2);
    border: 1px solid rgba(224, 90, 53, 0.4);
    color: var(--color-terracotta-300);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(4px);
}

.hero__badge svg {
    flex-shrink: 0;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-sand-50);
    max-width: 800px;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero__subheadline {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(253, 252, 250, 0.75);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: var(--space-3xl);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-4xl);
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid rgba(253, 252, 250, 0.15);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

.hero__stat-label {
    font-size: 0.8125rem;
    color: rgba(253, 252, 250, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__stat-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(253, 252, 250, 0.2);
    flex-shrink: 0;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-3xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(253, 252, 250, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(253, 252, 250, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--space-5xl) 0;
    background-color: var(--color-sand-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-terracotta-500), var(--color-terracotta-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-terracotta-50);
    color: var(--color-terracotta-600);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-card__description {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-terracotta-600);
    transition: gap var(--transition-fast);
}

.service-card__link:hover {
    gap: var(--space-md);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-5xl) 0;
    background-color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 90, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.about__image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--color-terracotta-500);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about__content {
    position: relative;
    z-index: 1;
}

.about__text {
    font-size: 1.0625rem;
    color: rgba(253, 252, 250, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.about__value {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.about__value-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(224, 90, 53, 0.15);
    color: var(--color-terracotta-400);
    border-radius: var(--radius-md);
}

.about__value-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-sand-50);
    margin-bottom: var(--space-xs);
}

.about__value-text {
    font-size: 0.9375rem;
    color: rgba(253, 252, 250, 0.6);
    line-height: 1.6;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: var(--space-5xl) 0;
    background-color: var(--color-sand-100);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-lg);
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.project-card--large {
    grid-column: span 7;
    grid-row: span 2;
}

.project-card--wide {
    grid-column: span 5;
}

.project-card:not(.project-card--large) {
    grid-column: span 6;
}

.project-card__image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.project-card--large .project-card__image {
    min-height: 580px;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__tag {
    display: inline-block;
    background-color: var(--color-terracotta-500);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: var(--space-md);
}

.project-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sand-50);
    margin-bottom: var(--space-xs);
}

.project-card__location {
    font-size: 0.875rem;
    color: rgba(253, 252, 250, 0.65);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: var(--space-5xl) 0;
    background-color: var(--color-sand-50);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

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

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: var(--color-terracotta-500);
    margin-bottom: var(--space-lg);
}

.testimonial-card__text {
    font-size: 1rem;
    color: var(--color-gray-700);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
}

.testimonial-card__author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9375rem;
}

.testimonial-card__location {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--color-terracotta-700) 0%, var(--color-terracotta-900) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 252, 250, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 90, 53, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-sand-50);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.cta__description {
    font-size: 1.125rem;
    color: rgba(253, 252, 250, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-3xl);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-5xl) 0;
    background-color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 90, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact__text {
    font-size: 1.0625rem;
    color: rgba(253, 252, 250, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-3xl);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact__detail {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(224, 90, 53, 0.15);
    color: var(--color-terracotta-400);
    border-radius: var(--radius-md);
}

.contact__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta-400);
    margin-bottom: var(--space-xs);
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--color-sand-100);
    line-height: 1.6;
}

.contact__detail-value a {
    color: var(--color-sand-100);
    transition: color var(--transition-fast);
}

.contact__detail-value a:hover {
    color: var(--color-terracotta-400);
}

/* Contact Form */
.contact__form-wrapper {
    background-color: rgba(253, 252, 250, 0.05);
    border: 1px solid rgba(253, 252, 250, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    backdrop-filter: blur(8px);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray-400);
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(253, 252, 250, 0.06);
    border: 1px solid rgba(253, 252, 250, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-sand-50);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form__input::placeholder {
    color: var(--color-gray-600);
}

.form__input:focus {
    border-color: var(--color-terracotta-500);
    background-color: rgba(224, 90, 53, 0.08);
    box-shadow: 0 0 0 3px rgba(224, 90, 53, 0.15);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
    gap: var(--space-lg);
}

.form__success.visible {
    display: flex;
}

.form__success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-radius: 50%;
}

.form__success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sand-50);
}

.form__success-text {
    font-size: 1rem;
    color: rgba(253, 252, 250, 0.65);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-dark);
    border-top: 1px solid rgba(253, 252, 250, 0.08);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    border-bottom: 1px solid rgba(253, 252, 250, 0.08);
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-sand-50);
    margin-bottom: var(--space-lg);
}

.footer__logo-icon {
    color: var(--color-terracotta-500);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(253, 252, 250, 0.5);
    line-height: 1.7;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta-400);
    margin-bottom: var(--space-lg);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__list a {
    font-size: 0.9375rem;
    color: rgba(253, 252, 250, 0.6);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__list a:hover {
    color: var(--color-terracotta-400);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
}

.footer__copyright {
    font-size: 0.8125rem;
    color: rgba(253, 252, 250, 0.4);
}

.footer__license {
    font-size: 0.8125rem;
    color: rgba(253, 252, 250, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about__image {
        height: 400px;
    }
    
    .projects__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .project-card--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .project-card--large .project-card__image {
        min-height: 350px;
    }
    
    .project-card--wide {
        grid-column: span 2;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav__menu {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .hero__stat-divider {
        display: none;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .project-card--large,
    .project-card--wide,
    .project-card:not(.project-card--large) {
        grid-column: span 1;
    }
    
    .project-card__overlay {
        opacity: 1;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .contact__form-wrapper {
        padding: var(--space-xl);
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .footer__brand {
        grid-column: span 1;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .about__image {
        height: 300px;
    }
    
    .about__image-accent {
        display: none;
    }
}

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

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