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

:root {
    --brown-dark: #4a2c0e;
    --brown-primary: #895d39;
    --brown-mid: #8B6F47;
    --brown-light: #A0845C;
    --section-brown-light: #f7efe4;
    --section-brown-dark: #e7d5c1;
    --cream-light: #F5E6D3;
    --cream-pale: #E8D5B7;
    --cream-bg: #faf6f0;
    --white: #ffffff;
    --dark: #2c2c2c;
    --gray: #666666;
    --gray-light: #999999;
    --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--brown-primary) 0%, rgba(137, 93, 57, 0.93) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#site-header.scrolled {
    background: var(--brown-dark);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: var(--nav-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    height: var(--nav-height);
}

.nav-logo img {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 2.2rem;
    z-index: 1;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--cream-light);
}

.nav-cta {
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    z-index: 2;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    color: white;
    padding: 0.52rem 1.4rem;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: white;
    color: var(--brown-primary);
    border-color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--brown-dark);
    padding: 1.5rem 2rem;
    z-index: 999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    gap: 0;
    height: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}

.mobile-nav a:last-child {
    border-bottom: none;
    color: var(--cream-light);
    font-weight: 700;
}

.mobile-nav a:hover { color: white; }

/* HERO */
#home {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://img.localchinese.com/website/JCM%20GARAGE%20DOOR/images/WechatIMG1702.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 820px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-light);
    margin-bottom: 1.4rem;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.08;
    letter-spacing: 0.02em;
    margin-bottom: 1.4rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--cream-light);
    color: var(--brown-dark);
    padding: 0.9rem 2.6rem;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--cream-light);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--cream-light);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--brown-primary);
    padding: 0.9rem 2.4rem;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--brown-primary);
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: var(--brown-primary);
    color: white;
}

/* Shared Section Typography */
.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.18;
}

.section-heading-light { color: white; }

/* SERVICES */
#services {
    background: var(--section-brown-light);
    padding: 6rem 0;
}

.services-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 5rem;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.services-intro .section-heading {
    margin-bottom: 1.2rem;
}

.services-intro p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.82;
    margin-bottom: 2rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.service-item {
    display: block;
    align-items: start;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--cream-pale);
    border-right: 1px solid var(--cream-pale);
    transition: transform 0.2s ease;
}

.service-item:nth-child(-n + 2) {
    border-top: 1px solid var(--cream-pale);
}

.service-item:hover {
    transform: translateX(6px);
}

.service-item:nth-child(2n) {
    border-right: none;
}

.service-text h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.service-text p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
}

/* DOOR PREVIEW BUILDER */
#door-preview {
    position: relative;
    padding: 6rem 2rem;
    background:
        radial-gradient(circle at top right, rgba(160, 132, 92, 0.16), transparent 34%),
        linear-gradient(180deg, #fbf5ee 0%, var(--section-brown-light) 100%);
    overflow: hidden;
}

.preview-builder-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.preview-builder-header {
    max-width: 760px;
    margin-bottom: 3rem;
}

.preview-builder-header p {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 680px;
}

.preview-accordion {
    display: grid;
    gap: 1rem;
}

.preview-step {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(137, 93, 57, 0.16);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(74, 44, 14, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.preview-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    border: none;
    background: transparent;
    padding: 1.35rem 1.5rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.preview-trigger:hover {
    background: rgba(245, 230, 211, 0.5);
}

.preview-trigger-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.preview-step-index {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
}

.preview-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--brown-dark);
}

.preview-trigger-summary {
    justify-self: end;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(137, 93, 57, 0.1);
    color: var(--brown-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.preview-trigger-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(137, 93, 57, 0.08);
    color: var(--brown-primary);
    transition: transform 0.22s ease, background 0.22s ease;
}

.preview-step.is-open .preview-trigger-icon {
    transform: rotate(180deg);
    background: rgba(137, 93, 57, 0.16);
}

.preview-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 1.5rem;
}

.preview-panel[hidden] {
    display: none;
}

.preview-panel.preview-panel-wide {
    grid-template-columns: 1fr;
}

.preview-panel.preview-panel-stack {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.preview-reference-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(137, 93, 57, 0.14);
    background: linear-gradient(180deg, rgba(245, 230, 211, 0.7), rgba(255, 255, 255, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.preview-reference-image {
    width: 100%;
    min-height: 220px;
    display: block;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.preview-step1-wrap {
    display: block;
    width: 100%;
}

.preview-step1-image {
    width: 100%;
    height: 340px;
    min-height: 0;
    padding: 0.75rem;
}

.preview-step2-wrap {
    display: block;
    width: 100%;
}

.preview-step2-image {
    width: 100%;
    height: 270px;
    min-height: 0;
    padding: 0.5rem 0.75rem;
}

.preview-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.preview-panel-copy {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 48ch;
}

.preview-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

#window-style-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.preview-choice {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(137, 93, 57, 0.22);
    background: white;
    border-radius: 18px;
    padding: 1rem 1.05rem;
    color: var(--brown-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.preview-choice:hover {
    background: var(--cream-light);
    border-color: var(--brown-light);
    color: var(--brown-primary);
    box-shadow: 0 8px 20px rgba(74, 44, 14, 0.08);
}

.preview-choice.is-selected {
    background: linear-gradient(180deg, rgba(245, 230, 211, 0.9), white 100%);
    border-color: var(--brown-primary);
    box-shadow: 0 14px 30px rgba(74, 44, 14, 0.12);
}

.preview-choice-window {
    padding: 0.65rem 0.7rem 0.8rem;
    text-align: center;
}

.preview-step3-image {
    width: 100%;
    height: 86px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.6rem;
    border-radius: 12px;
    background: var(--cream-bg);
    padding: 0.18rem;
}

.preview-choice-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.preview-send-cta {
    margin-top: 2rem;
    text-align: center;
}

.preview-send-help {
    margin: 0 0 0.65rem;
    color: rgba(120, 120, 120, 0.92);
    font-size: 0.82rem;
    line-height: 1.6;
}

.preview-send-summary {
    margin: 0 0 1rem;
    color: var(--brown-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.preview-send-button {
    min-width: 180px;
}

.preview-send-button:not([aria-disabled="true"]) {
    border: 2px solid var(--brown-dark);
}

.preview-send-button:not([aria-disabled="true"]):hover,
.preview-send-button:not([aria-disabled="true"]):focus-visible {
    background: var(--brown-primary);
    border-color: var(--brown-dark);
    color: white;
    outline: none;
    box-shadow: 0 12px 28px rgba(74, 44, 14, 0.16);
}

.preview-send-button.is-disabled,
.preview-send-button[aria-disabled="true"] {
    background: rgba(160, 132, 92, 0.18);
    border-color: rgba(160, 132, 92, 0.18);
    color: rgba(74, 44, 14, 0.45);
    pointer-events: none;
    cursor: not-allowed;
}

/* WHY CHOOSE US */
#why-us {
    background: var(--section-brown-dark);
    padding: 6rem 2rem;
}

.why-us-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.why-us-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 3rem;
    align-items: stretch;
}

.why-us-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.why-us-header {
    text-align: left;
}

.why-us-header p {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 420px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    background: var(--cream-bg);
    padding: 2rem 1.7rem 1.85rem;
    border: 1px solid rgba(137, 93, 57, 0.14);
    border-radius: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s;
}

.feature-card:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(74, 44, 14, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    display: block;
    color: var(--brown-primary);
    background: rgba(137, 93, 57, 0.1);
    border-radius: 999px;
    line-height: 46px;
    text-align: center;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.65rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.68;
}

.why-us-image-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 22px;
    background: var(--cream-bg);
    border: 1px solid rgba(137, 93, 57, 0.16);
    box-shadow: 0 16px 40px rgba(74, 44, 14, 0.12);
    min-height: 0;
}

.why-us-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* GALLERY */
#gallery {
    background: var(--section-brown-dark);
    padding: 6rem 2rem;
}

.gallery-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.gallery-header p {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--cream-pale);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 44, 14, 0);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(74, 44, 14, 0.55);
}

.gallery-caption {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* PAGINATED GALLERY */
#gallery {
    background: var(--section-brown-dark);
    padding: 6rem 2rem;
}

.photo-gallery-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.photo-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.photo-gallery-header p {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-height: 930px;
}

.photo-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--cream-bg);
    border: 2px solid rgba(137, 93, 57, 0.32);
    box-shadow: 0 10px 30px rgba(74, 44, 14, 0.08);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

.photo-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.gallery-page-button {
    appearance: none;
    border: 1px solid var(--brown-primary);
    background: transparent;
    color: var(--brown-primary);
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
}

.gallery-page-button:hover:not(:disabled) {
    background: var(--brown-primary);
    color: white;
}

.gallery-page-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-page-indicator {
    min-width: 120px;
    text-align: center;
    color: var(--brown-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(18, 11, 5, 0.86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-lightbox-dialog {
    position: relative;
    width: min(92vw, 1080px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: 88vh;
    display: block;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: white;
}

.gallery-lightbox-close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: white;
    color: var(--brown-dark);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-lightbox-close:hover {
    transform: scale(1.05);
    background: var(--cream-light);
}

/* TESTIMONIALS */
#testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--section-brown-light) 0%, #efe4d7 100%);
}

.testimonials-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.testimonials-header {
    max-width: 760px;
    margin-bottom: 4.5rem;
    color: var(--brown-dark);
}

.testimonials-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 0.98;
    margin-bottom: 1.2rem;
    color: var(--brown-dark);
}

.testimonials-header p {
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(74, 44, 14, 0.76);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2rem 2rem 2.2rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(137, 93, 57, 0.16);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(74, 44, 14, 0.08);
    color: var(--brown-dark);
}

.testimonial-stars {
    margin-bottom: 1.4rem;
    font-size: 1.15rem;
    letter-spacing: 0.22rem;
    color: var(--brown-primary);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(74, 44, 14, 0.86);
}

.testimonial-name {
    margin-top: auto;
    padding-top: 2.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-dark);
}

/* CONTACT */
#contact {
    background: linear-gradient(135deg, var(--brown-primary) 0%, var(--brown-dark) 100%);
    padding: 6rem 2rem;
    color: white;
}

.contact-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

.contact-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin-top: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 3.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 2.8rem 2rem;
    text-align: center;
    transition: background 0.22s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.13);
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1.1rem;
    color: var(--cream-light);
}

.contact-item h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-pale);
    margin-bottom: 0.75rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.7;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--cream-light);
}

.contact-cta {
    text-align: center;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 2rem 2.5rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    display: block;
    height: 180px;
    width: auto;
    object-fit: contain;
    margin: -30px -36px -18px -28px;
    opacity: 0.82;
}

.footer-brand p {
    font-size: 0.86rem;
    line-height: 1.75;
    max-width: 360px;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-light);
    margin-bottom: 1.3rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col ul li {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.58);
    padding-left: 1rem;
    position: relative;
}

.footer-col ul:not(.footer-services-list) li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brown-light);
    opacity: 0.7;
}

.footer-services-list li {
    padding-left: 1.35rem;
}

.footer-services-list li::before {
    content: '';
    position: absolute;
    left: 0.05rem;
    top: 0.42rem;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--cream-light);
    background: transparent;
    opacity: 0.82;
    transform: rotate(45deg);
}

.footer-map-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.footer-map-wrap iframe {
    display: block;
    width: 100%;
    height: 260px;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.86rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.footer-contact-line a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.footer-contact-line a:hover {
    color: var(--cream-light);
}

.footer-contact-line span:first-child {
    flex-shrink: 0;
}

.footer-contact-icon {
    color: var(--cream-light);
    margin-top: 1px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.1s; }
.fade-up:nth-child(6) { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 1200px) {
    nav {
        padding: 0 1.75rem;
    }

    .nav-links {
        gap: 1.35rem;
    }

    .nav-links a {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .nav-cta {
        padding: 0.52rem 1rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 1024px) {
    .services-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-intro {
        position: static;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding-right: 0;
        border-right: none;
    }

    .service-item:nth-child(-n + 2) {
        border-top: none;
    }

    .service-item:first-child {
        border-top: 1px solid var(--cream-pale);
    }

    .why-us-layout {
        grid-template-columns: 1fr;
    }

    .why-us-panel {
        order: -1;
    }

    .why-us-image {
        height: 360px;
        min-height: 0;
    }

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

    .preview-panel {
        grid-template-columns: 1fr;
    }

    .preview-reference-wrap {
        order: -1;
    }

    .preview-reference-image {
        min-height: 200px;
        max-height: 360px;
    }

    .preview-step1-image {
        height: 300px;
    }

    .preview-step2-image {
        height: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 240px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .testimonial-quote {
        max-width: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --nav-height: 96px;
    }

    .nav-links,
    .nav-cta { display: none; }

    .hamburger { display: flex; }

    .nav-logo img {
        height: 82px;
    }

    #services,
    #why-us,
    #door-preview,
    #showcase,
    #gallery,
    #testimonials,
    #contact { padding: 4rem 1.5rem; }

    .features-grid { grid-template-columns: 1fr; }

    .preview-trigger {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.8rem;
    }

    .preview-trigger-summary {
        grid-column: 1 / 2;
        justify-self: start;
    }

    .preview-trigger-icon {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
    }

    .preview-panel {
        padding: 1.5rem 1.5rem 1.5rem;
    }

    .preview-choice-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    #window-style-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .why-us-image {
        height: 300px;
        min-height: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 220px);
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    .testimonials-header {
        margin-bottom: 3rem;
    }

    .footer-inner { grid-template-columns: 1fr; }

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

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

    .footer-brand img {
        height: 130px;
        margin: -18px -24px -10px -18px;
    }
}

@media (max-width: 480px) {
    nav { padding: 0 1rem; }

    .nav-logo img {
        height: 72px;
    }

    .hero-content { padding: 1.5rem; }

    .hero-tagline { font-size: 1rem; }

    .preview-step-title {
        font-size: 1.12rem;
    }

    .preview-choice-grid {
        grid-template-columns: 1fr;
    }

    .preview-step1-image,
    .preview-step2-image {
        width: 100%;
        min-height: 0;
    }

    .preview-step1-image {
        height: 240px;
    }

    .preview-step2-image {
        height: 200px;
    }

    .preview-step3-image {
        height: 72px;
    }

    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand img {
        height: 110px;
        margin: -14px -18px -8px -14px;
    }

    .gallery-lightbox {
        padding: 1rem;
    }

    .gallery-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}
