/* ========================================
   FENCE MASTERS — ST. JOSEPH, MO
   Custom Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #B8543A;
    --color-terracotta-dark: #9A432E;
    --color-terracotta-light: #D4755C;
    --color-sand: #E8D5C0;
    --color-sand-light: #F5EDE3;
    --color-sand-dark: #C4A882;
    --color-navy: #1A2744;
    --color-navy-light: #2A3D62;
    --color-charcoal: #2C2C2C;
    --color-slate: #4A4A4A;
    --color-slate-light: #6B6B6B;
    --color-off-white: #FAFAF8;
    --color-white: #FFFFFF;
    --color-border: #E5DDD4;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.06), 0 1px 2px rgba(26, 39, 68, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 39, 68, 0.08), 0 2px 4px rgba(26, 39, 68, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.12), 0 4px 12px rgba(26, 39, 68, 0.06);
    --shadow-xl: 0 24px 60px rgba(26, 39, 68, 0.14), 0 8px 20px rgba(26, 39, 68, 0.08);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-charcoal);
    background: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
    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, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 12px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--color-terracotta);
    border-radius: 1px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 17px;
    color: var(--color-slate);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-desc {
    margin: 0 auto;
}

.section-header--center .section-tag::before {
    display: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-lg-wide {
    padding: 20px 44px;
    font-size: 17px;
}

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

.btn-terracotta {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.btn-terracotta:hover,
.btn-terracotta:focus-visible {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 84, 58, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.2);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-navy);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-accent {
    color: var(--color-terracotta);
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin: -8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-slate);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

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

/* --- Hero --- */
.hero {
    padding-top: 76px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-off-white) 50%, var(--color-white) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 84, 58, 0.1);
    color: var(--color-terracotta);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--color-navy);
}

.text-terracotta {
    color: var(--color-terracotta);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-slate);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proof-item strong {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
}

.proof-item span {
    font-size: 13px;
    color: var(--color-slate-light);
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-img-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-terracotta);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: -1;
}

.hero-stat-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--color-slate-light);
    line-height: 1.4;
    max-width: 180px;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 84, 58, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-terracotta);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-navy);
}

.service-card > p {
    font-size: 15px;
    color: var(--color-slate);
    margin-bottom: 16px;
    line-height: 1.65;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 14px;
    color: var(--color-slate);
    padding-left: 18px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: var(--color-off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.why-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.why-intro {
    font-size: 17px;
    color: var(--color-slate);
    line-height: 1.75;
    margin-bottom: 36px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 84, 58, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-terracotta);
}

.why-feature h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 14px;
    color: var(--color-slate);
    line-height: 1.6;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 500px;
}

.gallery-item--large img {
    min-height: 500px;
}

.gallery-item:not(.gallery-item--large) {
    min-height: 240px;
}

.gallery-item--tall {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 520px;
}

.gallery-item--tall img {
    min-height: 520px;
}

/* --- Process --- */
.process {
    padding: 100px 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.process .section-tag {
    color: var(--color-sand);
}

.process .section-tag::before {
    background: var(--color-sand);
}

.process .section-title {
    color: var(--color-white);
}

.process .section-desc {
    color: rgba(255, 255, 255, 0.65);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-terracotta);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}

.step-content h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.step-connector {
    display: none;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--color-sand-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
}

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

.testimonial-quote {
    color: var(--color-terracotta);
    opacity: 0.3;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-slate);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
}

.author-location {
    font-size: 13px;
    color: var(--color-slate-light);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content {
    flex: 1;
}

.cta-headline {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.7;
}

.cta-actions {
    flex-shrink: 0;
}

.cta-banner .btn-terracotta {
    background: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
}

.cta-banner .btn-terracotta:hover {
    background: var(--color-sand-light);
    border-color: var(--color-sand-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 17px;
    color: var(--color-slate);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 84, 58, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-terracotta);
}

.contact-detail strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.contact-detail a,
.contact-detail span {
    font-size: 15px;
    color: var(--color-slate);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--color-terracotta);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 6px;
}

.form-sub {
    font-size: 14px;
    color: var(--color-slate-light);
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-charcoal);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 84, 58, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-sand-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 12px;
    color: var(--color-slate-light);
    text-align: center;
    margin-top: 16px;
}

/* Success State */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    font-size: 24px;
    margin: 16px 0 8px;
}

.form-success p {
    font-size: 15px;
    color: var(--color-slate);
    margin-bottom: 24px;
    line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-terracotta-light);
}

.footer-col address {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col a:hover {
    color: var(--color-terracotta-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p:last-child {
    text-align: right;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        gap: 48px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step {
        page-break-inside: avoid;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 16px;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list .btn {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        border-bottom: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

    .hero-image {
        order: -1;
    }

    .hero-img-wrapper {
        border-radius: var(--radius-lg);
    }

    .hero-img-wrapper img {
        height: 400px;
        object-fit: cover;
    }

    .hero-stat-card {
        bottom: -16px;
        left: 16px;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-proof {
        flex-wrap: wrap;
        gap: 16px;
    }

    .proof-divider {
        display: none;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Why Us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image img {
        height: 400px;
    }

    .why-img-badge {
        right: 16px;
        bottom: -16px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }

    .gallery-item--large img {
        min-height: 280px;
    }

    .gallery-item--tall {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }

    .gallery-item--tall img {
        min-height: 280px;
    }

    .gallery-item:not(.gallery-item--large):not(.gallery-item--tall) {
        min-height: 200px;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    /* CTA */
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-desc {
        margin: 0 auto;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-proof {
        justify-content: space-between;
    }

    .services,
    .why-us,
    .gallery,
    .process,
    .testimonials,
    .contact {
        padding: 64px 0;
    }

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

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-up:nth-child(2) { transition-delay: 0.1s; }
    .fade-up:nth-child(3) { transition-delay: 0.2s; }
    .fade-up:nth-child(4) { transition-delay: 0.3s; }
    .fade-up:nth-child(5) { transition-delay: 0.4s; }
    .fade-up:nth-child(6) { transition-delay: 0.5s; }
}
