/* ==========================================================================
   District Four Design - Main Stylesheet
   Design system: Kyle's Figma + Oktra/Boss Design/Audi refinements
   Brand: #1D1D1D, #B84836 (accent), #C7C8C1 (grey), #FFF
   Fonts: Gilroy (200/400/600), Outfit fallback
   Sharp corners, light font weights, generous spacing, image-first
   ========================================================================== */

/* Gilroy - Licensed font family (TTF) */
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

/* Outfit as web fallback */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --d4-black: #1D1D1D;
    --d4-accent: #B84836;
    --d4-accent-hover: #9E3D2E;
    --d4-grey: #C7C8C1;
    --d4-light: #C7C8C1;
    --d4-white: #FFFFFF;
    --d4-text: rgba(29, 29, 29, 0.7);
    --d4-text-light: rgba(255, 255, 255, 0.65);
    --d4-font: 'Gilroy', 'Outfit', 'Proxima Nova', system-ui, sans-serif;
    --d4-container: 1200px;
    --d4-container-wide: 1440px;
    --d4-text-width: 800px;
    --d4-gap: 2rem;
    --d4-section-pad: 4rem 0;
    --d4-section-pad-lg: 5rem 0;
    --d4-transition: 0.25s ease-out;
    --d4-transition-slow: 0.5s ease-out;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--d4-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--d4-text);
    background: var(--d4-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Offset for fixed header on pages without full-height hero */
.d4-main { padding-top: 64px; }
@media (min-width: 1024px) { .d4-main { padding-top: 80px; } }

/* Hero negates the offset since it's full-viewport */
.d4-hero { margin-top: -64px; padding-top: calc(64px + 4rem); }
@media (min-width: 1024px) { .d4-hero { margin-top: -80px; padding-top: calc(80px + 5rem); } }

img { max-width: 100%; height: auto; display: block; }
* { word-wrap: break-word; overflow-wrap: break-word; }
a { color: var(--d4-accent); text-decoration: none; transition: color var(--d4-transition); }
a:hover { color: var(--d4-accent-hover); }

h1, h2, h3, h4, h5, h6 { line-height: 1.1; letter-spacing: -0.02em; color: var(--d4-black); }
h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin-bottom: 1rem; }

/* ==========================================================================
   Layout
   ========================================================================== */

.d4-container { width: 100%; max-width: var(--d4-container); margin: 0 auto; padding: 0 2rem; }
.d4-container--wide { max-width: var(--d4-container-wide); }

/* Section backgrounds - brand spec: dark #1D1D1D / white #FFF / light grey #C7C8C1 area */
.d4-section { padding: var(--d4-section-pad); }
.d4-section--dark { background: var(--d4-black); color: var(--d4-white); }
.d4-section--white { background: var(--d4-white); color: var(--d4-black); }
.d4-section--light { background: var(--d4-light); color: var(--d4-black); }
.d4-section--accent { background: var(--d4-accent); color: var(--d4-white); }

.d4-section--dark h2, .d4-section--dark h3 { color: var(--d4-white); }
.d4-section--dark p, .d4-section--dark li { color: var(--d4-text-light); }
.d4-section--dark .d4-body-text { color: var(--d4-text-light); }

.d4-section--lg { padding: var(--d4-section-pad-lg); }
.d4-section__cta { text-align: center; margin-top: 3rem; }

/* ==========================================================================
   Tag / Label (signature Figma component)
   ========================================================================== */

.d4-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--d4-accent);
    margin-bottom: 1rem;
}

.d4-section--dark .d4-tag { color: var(--d4-accent); }

/* ==========================================================================
   Buttons (sharp corners, tracking-wide, arrow hover)
   ========================================================================== */

.d4-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--d4-font);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--d4-transition);
}

.d4-btn--primary {
    background: var(--d4-accent);
    color: var(--d4-white);
}
.d4-btn--primary:hover {
    background: var(--d4-accent-hover);
    color: var(--d4-white);
}

.d4-btn--dark {
    background: var(--d4-black);
    color: var(--d4-white);
}
.d4-btn--dark:hover {
    background: #333;
    color: var(--d4-white);
}

.d4-btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--d4-text-light);
}
.d4-btn--outline:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--d4-white);
}

.d4-btn--outline-dark {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--d4-black);
}
.d4-btn--outline-dark:hover {
    border-color: rgba(0,0,0,0.3);
}

.d4-btn--white {
    background: var(--d4-white);
    color: var(--d4-black);
}
.d4-btn--white:hover {
    background: var(--d4-light);
    color: var(--d4-black);
}

.d4-btn--sm { padding: 0.75rem 1.5rem; font-size: 14px; }
.d4-btn--full { display: flex; width: 100%; justify-content: center; }

/* Arrow icon on buttons */
.d4-btn .d4-arrow { transition: transform var(--d4-transition); }
.d4-btn:hover .d4-arrow { transform: translateX(4px); }

/* Inline link with arrow */
.d4-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--d4-accent);
    transition: all var(--d4-transition);
}
.d4-link:hover { color: var(--d4-accent-hover); }
.d4-link:hover .d4-arrow { transform: translateX(4px); }

/* ==========================================================================
   Header (fixed, dark, h-16 lg:h-20)
   ========================================================================== */

.d4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--d4-black);
    height: 64px;
}

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

.d4-header__logo img { height: 28px; width: auto; }

.d4-header__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.d4-header__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 1.5rem;
}

.d4-header__phone {
    color: var(--d4-text-light);
    font-size: 14px;
    font-weight: 400;
    transition: color var(--d4-transition);
}
.d4-header__phone:hover { color: var(--d4-white); }

.d4-nav { display: flex; list-style: none; gap: 0; }

.d4-nav__link {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    font-size: 14px;
    padding: 0.5rem 0.875rem;
    transition: color var(--d4-transition);
}
.d4-nav__link:hover, .d4-nav__link--active { color: var(--d4-white); }

/* Dropdowns */
.d4-nav__item { position: relative; }

.d4-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--d4-black);
    min-width: 240px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
    border-top: 2px solid var(--d4-accent);
}
.d4-nav__item:hover > .d4-submenu { display: block; }

.d4-submenu .d4-nav__link {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 13px;
    white-space: nowrap;
    border-bottom: none;
}
.d4-submenu .d4-nav__link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--d4-accent);
}

/* Hamburger */
.d4-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.d4-header__hamburger,
.d4-header__hamburger::before,
.d4-header__hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--d4-white);
    transition: all var(--d4-transition);
}
.d4-header__hamburger { position: relative; }
.d4-header__hamburger::before,
.d4-header__hamburger::after { content: ''; position: absolute; left: 0; }
.d4-header__hamburger::before { top: -7px; }
.d4-header__hamburger::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.d4-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--d4-black);
    color: var(--d4-white);
    padding-bottom: 4rem;
    overflow: hidden;
}

.d4-hero--page {
    min-height: auto;
    padding-bottom: 3rem;
}

.d4-hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* Top-down gradient - dark at top for nav, image visible at bottom (Audi pattern) */
.d4-hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(29,29,29,0.65) 0%, rgba(29,29,29,0.15) 55%, transparent 100%);
    z-index: 2;
}

/* Bottom-to-top for inner pages - darker at bottom where text sits */
.d4-hero__overlay--bottom {
    background: linear-gradient(0deg, rgba(29,29,29,0.7) 0%, rgba(29,29,29,0.2) 50%, transparent 100%);
}

.d4-hero .d4-container { position: relative; z-index: 3; }

.d4-hero h1 { color: var(--d4-white); max-width: 700px; margin-bottom: 1.5rem; }
.d4-hero__subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.d4-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.d4-hero__phone { color: var(--d4-text-light); font-size: 14px; }
.d4-hero__phone:hover { color: var(--d4-white); }

/* ==========================================================================
   Trusted By Bar
   ========================================================================== */

.d4-trusted {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: var(--d4-white);
}

.d4-trusted__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.d4-trusted__inner::-webkit-scrollbar { display: none; }

.d4-trusted__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(29,29,29,0.4);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.d4-trusted__logo {
    font-size: 14px;
    font-weight: 600;
    color: rgba(29,29,29,0.15);
    white-space: nowrap;
}

/* ==========================================================================
   Pain Points (numbered cards)
   ========================================================================== */

.d4-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    margin-top: 2.5rem;
}

.d4-pain-card {
    background: var(--d4-black);
    padding: 2.5rem;
}

.d4-pain-card__number {
    font-size: 13px;
    font-weight: 500;
    color: var(--d4-accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.d4-pain-card h3 { color: var(--d4-white); margin-bottom: 0.75rem; }
.d4-pain-card p { color: var(--d4-text-light); font-size: 15px; margin: 0; }

/* ==========================================================================
   What We Do (large 2-col cards)
   ========================================================================== */

.d4-wwd-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: border-color var(--d4-transition);
    margin-bottom: 1.5rem;
}

.d4-wwd-card:hover { border-color: rgba(0,0,0,0.12); }

.d4-wwd-card__image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform var(--d4-transition-slow);
}

.d4-wwd-card:hover .d4-wwd-card__image { transform: scale(1.03); }

.d4-wwd-card__body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.d4-wwd-card__body .d4-tag { margin-bottom: 0.75rem; }
.d4-wwd-card__body h3 { font-size: 24px; margin-bottom: 0.75rem; }
.d4-wwd-card__body p { color: var(--d4-text); font-size: 15px; line-height: 1.7; }

.d4-wwd-card__image-wrap { overflow: hidden; }

/* Alternate image side */
.d4-wwd-card--reverse { direction: rtl; }
.d4-wwd-card--reverse > * { direction: ltr; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.d4-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
}

.d4-stat {
    background: var(--d4-black);
    padding: 2.5rem 2rem;
    text-align: center;
}

.d4-stat__number {
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    color: var(--d4-white);
    display: block;
    margin-bottom: 0.25rem;
}

.d4-stat__label {
    font-size: 14px;
    color: var(--d4-text-light);
}

/* ==========================================================================
   Why D4 (checkmarks + image)
   ========================================================================== */

.d4-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.d4-checklist { list-style: none; margin-top: 2rem; }

.d4-checklist li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.625rem 0;
    font-size: 15px;
    color: var(--d4-text);
    line-height: 1.6;
}

.d4-checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--d4-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    margin-top: 2px;
}

.d4-why-image-wrap { position: relative; }
.d4-why-image { width: 100%; height: 500px; object-fit: cover; }

@media (max-width: 768px) {
    .d4-why-image { height: 300px; }
}

.d4-why-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--d4-accent);
    color: var(--d4-white);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.d4-why-badge__number { font-size: 28px; font-weight: 700; display: block; }
.d4-why-badge__label { font-size: 13px; }

/* ==========================================================================
   Panoramic Image with Stat
   ========================================================================== */

.d4-panoramic {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .d4-panoramic { height: 40vh; min-height: 250px; }
    .d4-panoramic__stat { font-size: 20px; }
}

.d4-panoramic img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.d4-panoramic__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(transparent 40%, rgba(29,29,29,0.8));
}

.d4-panoramic__content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: var(--d4-white);
}

.d4-panoramic__stat { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }

/* ==========================================================================
   Process Steps
   ========================================================================== */

.d4-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(0,0,0,0.05);
    margin-top: 2.5rem;
}

.d4-process__step {
    background: var(--d4-white);
    padding: 2rem 1.5rem;
}

.d4-process__number {
    font-size: 13px;
    font-weight: 600;
    color: var(--d4-accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.d4-process__step h3 { margin-bottom: 0.75rem; }
.d4-process__step p { font-size: 14px; color: var(--d4-text); margin: 0; line-height: 1.7; }

/* ==========================================================================
   Image Gallery Grid
   ========================================================================== */

.d4-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.d4-gallery__item { overflow: hidden; }
.d4-gallery__item--tall { grid-row: span 2; }

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

.d4-gallery__item:hover img { transform: scale(1.03); }

/* ==========================================================================
   Case Study Cards
   ========================================================================== */

.d4-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--d4-gap);
    margin-top: 2rem;
}

/* Featured (large) card */
.d4-cases-grid--featured {
    grid-template-columns: 1fr;
}

.d4-case-card {
    display: block;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    color: var(--d4-white);
    text-decoration: none;
    transition: border-color var(--d4-transition);
}

.d4-case-card:hover { border-color: rgba(255,255,255,0.15); color: var(--d4-white); }

/* Cinematic aspect ratio - wider than 16:9, like Oktra's portfolio */
.d4-case-card__image-wrap { overflow: hidden; aspect-ratio: 16/8; }

.d4-case-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--d4-transition-slow);
}

.d4-case-card:hover .d4-case-card__image { transform: scale(1.03); }

.d4-case-card__body { padding: 1.5rem; }
.d4-case-card__meta {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--d4-text-light);
    margin-bottom: 0.5rem;
}
.d4-case-card__body h3 { color: var(--d4-white); margin-bottom: 0.5rem; font-size: 18px; }
.d4-case-card__body p { color: var(--d4-text-light); font-size: 14px; margin: 0; }

/* Light bg variant */
.d4-section--white .d4-case-card,
.d4-section--light .d4-case-card {
    border-color: rgba(0,0,0,0.05);
    color: var(--d4-black);
}
.d4-section--white .d4-case-card:hover,
.d4-section--light .d4-case-card:hover { border-color: rgba(0,0,0,0.12); }
.d4-section--white .d4-case-card__meta,
.d4-section--light .d4-case-card__meta { color: rgba(29,29,29,0.4); }
.d4-section--white .d4-case-card__body h3,
.d4-section--light .d4-case-card__body h3 { color: var(--d4-black); }
.d4-section--white .d4-case-card__body p,
.d4-section--light .d4-case-card__body p { color: var(--d4-text); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.d4-testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.05); margin-top: 2rem; }

.d4-testimonial {
    background: var(--d4-black);
    padding: 3rem;
}

.d4-testimonial__quote {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.d4-testimonial__quote::before {
    content: '\201C';
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: var(--d4-accent);
    font-style: normal;
    margin-bottom: 1rem;
}

.d4-testimonial cite {
    display: block;
    font-style: normal;
    font-size: 14px;
}

.d4-testimonial cite strong { color: var(--d4-white); font-weight: 500; }
.d4-testimonial cite span { color: var(--d4-text-light); display: block; font-size: 13px; margin-top: 0.25rem; }

/* ==========================================================================
   Quick Links Bar
   ========================================================================== */

.d4-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.d4-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--d4-white);
    color: var(--d4-black);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--d4-transition);
}

.d4-quick-link:hover { background: var(--d4-light); color: var(--d4-black); }
.d4-quick-link .d4-arrow { color: var(--d4-accent); transition: transform var(--d4-transition); }
.d4-quick-link:hover .d4-arrow { transform: translateX(4px); }

/* ==========================================================================
   Service Cards (for location/sector pages)
   ========================================================================== */

.d4-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.d4-service-card {
    background: var(--d4-white);
    padding: 2.5rem;
    transition: background var(--d4-transition);
}

.d4-service-card:hover { background: var(--d4-light); }
.d4-service-card h3 { margin-bottom: 0.5rem; }
.d4-service-card p { font-size: 15px; color: var(--d4-text); margin-bottom: 1rem; }

/* Dark variant */
.d4-section--dark .d4-services-grid { background: rgba(255,255,255,0.05); }
.d4-section--dark .d4-service-card { background: var(--d4-black); }
.d4-section--dark .d4-service-card:hover { background: rgba(255,255,255,0.03); }
.d4-section--dark .d4-service-card h3 { color: var(--d4-white); }
.d4-section--dark .d4-service-card p { color: var(--d4-text-light); }

/* ==========================================================================
   Service Page Components
   ========================================================================== */

/* Includes grid (6 items) */
.d4-includes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.d4-includes-card {
    background: var(--d4-white);
    padding: 2rem;
}

.d4-includes-card h3 { font-size: 16px; margin-bottom: 0.5rem; }
.d4-includes-card p { font-size: 14px; color: var(--d4-text); margin: 0; }

/* Dark variant */
.d4-section--dark .d4-includes-grid { background: rgba(255,255,255,0.05); }
.d4-section--dark .d4-includes-card { background: var(--d4-black); }
.d4-section--dark .d4-includes-card h3 { color: var(--d4-white); }
.d4-section--dark .d4-includes-card p { color: var(--d4-text-light); }

/* Outcomes list */
.d4-outcomes { list-style: none; margin-top: 1.5rem; }
.d4-outcomes li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
    color: var(--d4-text);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.d4-outcomes li::before {
    content: '\2713';
    color: var(--d4-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   CTA Banner (mid-page)
   ========================================================================== */

.d4-cta-banner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.d4-cta-banner h2 { margin-bottom: 1rem; }
.d4-cta-banner p { margin-bottom: 1.5rem; }

.d4-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.d4-faq { max-width: 800px; margin-top: 2rem; }

.d4-faq__item { border-bottom: 1px solid rgba(0,0,0,0.08); }

.d4-faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-family: var(--d4-font);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--d4-black);
    gap: 1rem;
}

.d4-faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--d4-accent);
    flex-shrink: 0;
    transition: transform var(--d4-transition);
}

.d4-faq__item.active .d4-faq__question::after { transform: rotate(45deg); }

.d4-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.d4-faq__answer__inner { padding: 0 0 1.25rem; color: var(--d4-text); line-height: 1.7; font-size: 15px; }

/* Dark variant */
.d4-section--dark .d4-faq__item { border-bottom-color: rgba(255,255,255,0.08); }
.d4-section--dark .d4-faq__question { color: var(--d4-white); }
.d4-section--dark .d4-faq__answer__inner { color: var(--d4-text-light); }

/* ==========================================================================
   Contact Page
   ========================================================================== */

.d4-contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.d4-form__group { margin-bottom: 1.25rem; }
.d4-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    color: var(--d4-black);
}
.d4-form__group .required { color: var(--d4-accent); }

.d4-form__group input,
.d4-form__group select,
.d4-form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--d4-font);
    font-size: 15px;
    font-weight: 300;
    border: 1px solid rgba(0,0,0,0.12);
    background: var(--d4-white);
    color: var(--d4-black);
    transition: border-color var(--d4-transition);
}

.d4-form__group input:focus,
.d4-form__group select:focus,
.d4-form__group textarea:focus {
    outline: none;
    border-color: var(--d4-accent);
}

.d4-form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.d4-form__row--third { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.d4-alert { padding: 1rem 1.5rem; margin-bottom: 1.5rem; font-weight: 500; }
.d4-alert--success { background: #d1fae5; border-left: 3px solid #10b981; color: #065f46; }

/* Contact sidebar */
.d4-contact-sidebar h3 { font-size: 16px; margin-bottom: 1rem; }

.d4-book-call {
    background: var(--d4-black);
    color: var(--d4-white);
    padding: 2rem;
    margin-top: 2rem;
}
.d4-book-call h3 { color: var(--d4-white); margin-bottom: 0.5rem; }
.d4-book-call p { color: rgba(255,255,255,0.6); font-size: 14px; }

/* Trust signals */
.d4-trust-signals {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.d4-trust-signal {
    font-size: 13px;
    color: var(--d4-text-light);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.d4-trust-signal::before {
    content: '\2713';
    color: var(--d4-accent);
    font-weight: 700;
}

/* ==========================================================================
   Case Study Single
   ========================================================================== */

.d4-case-study-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.d4-case-study__details {
    background: var(--d4-light);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.d4-case-study__details h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--d4-accent);
    margin-bottom: 1rem;
}

.d4-case-study__details dl { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1.25rem; }
.d4-case-study__details dt { font-weight: 500; font-size: 13px; color: var(--d4-text); text-transform: uppercase; letter-spacing: 0.03em; }
.d4-case-study__details dd { font-size: 15px; }

/* ==========================================================================
   Blog / Insights Grid
   ========================================================================== */

.d4-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--d4-gap); }

.d4-blog-card {
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: border-color var(--d4-transition);
}
.d4-blog-card:hover { border-color: rgba(0,0,0,0.12); }

.d4-blog-card__link { display: block; color: var(--d4-black); text-decoration: none; }
.d4-blog-card__link:hover { color: var(--d4-black); }

.d4-blog-card__image-wrap { overflow: hidden; aspect-ratio: 16/8; }
.d4-blog-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d4-transition-slow); }
.d4-blog-card:hover .d4-blog-card__image { transform: scale(1.03); }

.d4-blog-card__body { padding: 1.5rem; }
.d4-blog-card__meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(29,29,29,0.4); margin-bottom: 0.5rem; }
.d4-blog-card__body h2 { font-size: 18px; font-weight: 600; margin-bottom: 0.5rem; }
.d4-blog-card__body p { font-size: 14px; color: var(--d4-text); margin: 0; }

/* ==========================================================================
   Content Formatting
   ========================================================================== */

.d4-content { max-width: var(--d4-text-width); }
.d4-content--narrow { max-width: 680px; }
.d4-content--wide { max-width: 100%; }

.d4-content h2 { margin-top: 3rem; margin-bottom: 1.25rem; }
.d4-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.d4-content p { color: var(--d4-text); line-height: 1.8; }
.d4-content ul, .d4-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--d4-text); }
.d4-content li { margin-bottom: 0.5rem; }
.d4-content img { margin: 2rem 0; }
.d4-content blockquote { border-left: 3px solid var(--d4-accent); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--d4-light); font-style: italic; color: var(--d4-text); }

/* Dark content */
.d4-section--dark .d4-content h2, .d4-section--dark .d4-content h3 { color: var(--d4-white); }
.d4-section--dark .d4-content p, .d4-section--dark .d4-content li { color: var(--d4-text-light); }

/* Content expander */
.d4-expander { position: relative; }
.d4-expander__content { max-height: 300px; overflow: hidden; position: relative; transition: max-height 0.5s ease; }
.d4-expander__content::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: linear-gradient(transparent, var(--d4-white)); pointer-events: none; transition: opacity var(--d4-transition); }
.d4-expander.expanded .d4-expander__content { max-height: 5000px; }
.d4-expander.expanded .d4-expander__content::after { opacity: 0; }
.d4-expander__toggle { display: block; margin: 1.5rem auto 0; background: none; border: 1px solid rgba(0,0,0,0.15); color: var(--d4-black); padding: 0.625rem 1.5rem; font-family: var(--d4-font); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all var(--d4-transition); }
.d4-expander__toggle:hover { border-color: var(--d4-accent); color: var(--d4-accent); }

/* ==========================================================================
   Furniture Catalogue
   ========================================================================== */

.d4-product-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.d4-filter-btn {
    padding: 0.5rem 1.25rem;
    font-family: var(--d4-font);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--d4-text);
    cursor: pointer;
    transition: all var(--d4-transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.d4-filter-btn:hover, .d4-filter-btn.active {
    background: var(--d4-black);
    color: var(--d4-white);
    border-color: var(--d4-black);
}

.d4-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.05);
}

.d4-product-card {
    background: var(--d4-white);
    overflow: hidden;
    transition: border-color var(--d4-transition);
}

.d4-product-card__image-wrap { overflow: hidden; aspect-ratio: 4/3; position: relative; }
.d4-product-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d4-transition-slow); }
.d4-product-card:hover .d4-product-card__image { transform: scale(1.03); }

.d4-product-card__tags { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.375rem; }
.d4-product-card__tag { background: var(--d4-black); color: var(--d4-white); font-size: 11px; padding: 0.25rem 0.5rem; font-weight: 500; letter-spacing: 0.03em; }

.d4-product-card__body { padding: 1.25rem; }
.d4-product-card__brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(29,29,29,0.4); margin-bottom: 0.25rem; }
.d4-product-card__body h3 { font-size: 16px; margin-bottom: 0.375rem; }
.d4-product-card__body p { font-size: 13px; color: var(--d4-text); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d4-product-card__price { font-size: 15px; font-weight: 600; }

/* ==========================================================================
   Values Grid
   ========================================================================== */

.d4-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.d4-value-card {
    padding: 2.5rem;
    background: var(--d4-light);
}
.d4-value-card h3 { margin-bottom: 0.5rem; }
.d4-value-card p { font-size: 15px; color: var(--d4-text); margin: 0; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.d4-breadcrumbs { padding: 0.75rem 0; font-size: 13px; }
.d4-breadcrumbs__list { display: flex; list-style: none; flex-wrap: wrap; gap: 0.25rem; }
.d4-breadcrumbs__item::after { content: '/'; margin-left: 0.5rem; color: rgba(255,255,255,0.2); }
.d4-breadcrumbs__item:last-child::after { display: none; }
.d4-breadcrumbs__item a { color: var(--d4-text-light); }
.d4-breadcrumbs__item a:hover { color: var(--d4-accent); }
.d4-breadcrumbs__item--current { color: rgba(255,255,255,0.7); font-weight: 500; }

/* Light variant */
.d4-section--white .d4-breadcrumbs__item::after { color: rgba(0,0,0,0.2); }
.d4-section--white .d4-breadcrumbs__item a { color: rgba(0,0,0,0.4); }
.d4-section--white .d4-breadcrumbs__item--current { color: var(--d4-black); }

/* ==========================================================================
   Team
   ========================================================================== */

.d4-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--d4-gap); margin-top: 2rem; }
.d4-team-card { text-align: center; }
.d4-team-card__photo { width: 160px; height: 160px; object-fit: cover; margin: 0 auto 1rem; }
.d4-team-card__role { color: var(--d4-accent); font-weight: 500; font-size: 14px; }

/* ==========================================================================
   Map
   ========================================================================== */

.d4-map-embed { margin-top: 1rem; }
.d4-map-embed iframe { width: 100%; height: 400px; border: none; }

/* ==========================================================================
   Location Areas
   ========================================================================== */

.d4-areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.d4-area-tag {
    padding: 0.5rem 1rem;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--d4-text);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.d4-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.d4-pagination a, .d4-pagination span { padding: 0.5rem 1rem; font-size: 14px; font-weight: 500; border: 1px solid rgba(0,0,0,0.1); color: var(--d4-black); text-decoration: none; transition: all var(--d4-transition); }
.d4-pagination a:hover, .d4-pagination .current { background: var(--d4-black); color: var(--d4-white); border-color: var(--d4-black); }

/* ==========================================================================
   Search Results
   ========================================================================== */

.d4-search-result { padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.d4-search-result h2 { font-size: 18px; margin-bottom: 0.25rem; }
.d4-search-result__type { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--d4-accent); font-weight: 600; margin-bottom: 0.5rem; }
.d4-search-result p { color: var(--d4-text); }

/* ==========================================================================
   Pull Quote (Oktra-style - attributed designer quotes)
   ========================================================================== */

.d4-pull-quote {
    max-width: var(--d4-text-width);
    margin: 3rem auto;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.d4-pull-quote__text {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--d4-black);
    margin-bottom: 1.25rem;
}

.d4-pull-quote__attribution {
    font-size: 14px;
    font-weight: 600;
    color: var(--d4-accent);
}

.d4-pull-quote__role {
    font-size: 13px;
    font-weight: 400;
    color: var(--d4-text);
    display: block;
    margin-top: 0.25rem;
}

/* Dark variant */
.d4-section--dark .d4-pull-quote { border-color: rgba(255,255,255,0.08); }
.d4-section--dark .d4-pull-quote__text { color: var(--d4-white); }
.d4-section--dark .d4-pull-quote__role { color: var(--d4-text-light); }

/* ==========================================================================
   Full-Bleed Image (breaks out of container - Oktra/Boss pattern)
   ========================================================================== */

.d4-full-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.d4-full-bleed img {
    width: 100%;
    height: auto;
    display: block;
}

.d4-full-bleed--cover img {
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .d4-full-bleed--cover img { height: 40vh; min-height: 250px; }
}

/* ==========================================================================
   Split Layout (50/50 image + text, vertically centred - Oktra/Audi pattern)
   ========================================================================== */

.d4-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.d4-split--reverse { direction: rtl; }
.d4-split--reverse > * { direction: ltr; }

.d4-split__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.d4-split__text { max-width: 520px; }
.d4-split__text p { color: var(--d4-text); line-height: 1.8; }

@media (max-width: 1024px) {
    .d4-split { grid-template-columns: 1fr; gap: 2rem; }
    .d4-split--reverse { direction: ltr; }
    .d4-split__image { height: 350px; }
}

@media (max-width: 768px) {
    .d4-split__image { height: 280px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.d4-footer {
    background: var(--d4-black);
    color: var(--d4-text-light);
    padding: 6rem 0 2rem;
}

.d4-footer h3 {
    color: var(--d4-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.d4-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.d4-footer__brand img { height: auto; max-width: 200px; margin-bottom: 1.5rem; }
.d4-footer__brand p { font-size: 14px; line-height: 1.7; margin-bottom: 1.5rem; }
.d4-footer address { font-style: normal; font-size: 14px; line-height: 1.8; margin-bottom: 1.5rem; }
.d4-footer address a { color: var(--d4-text-light); }
.d4-footer address a:hover { color: var(--d4-accent); }

.d4-footer__menu { list-style: none; }
.d4-footer__menu li { margin-bottom: 0.5rem; }
.d4-footer__menu a { color: var(--d4-text-light); font-size: 14px; font-weight: 300; }
.d4-footer__menu a:hover { color: var(--d4-accent); }

.d4-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}
.d4-footer__bottom a { color: rgba(255,255,255,0.3); }
.d4-footer__bottom a:hover { color: var(--d4-accent); }
.d4-footer__legal { display: flex; gap: 1.5rem; }

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

/* Subtle, premium scroll animations (Boss/Audi style - gentle, no bounce) */
.d4-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s ease-out, transform 1s ease-out; }
.d4-fade-up.visible { opacity: 1; transform: translateY(0); }

/* Staggered children animation */
.d4-fade-up-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.d4-fade-up-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.d4-fade-up-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.d4-fade-up-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.d4-fade-up-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.d4-fade-up-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.d4-fade-up-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.d4-fade-up-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media (min-width: 1024px) {
    .d4-header { height: 80px; }
    .d4-header__logo img { height: 32px; }
    .d4-section { padding: var(--d4-section-pad-lg); }
    .d4-section--lg { padding: 6rem 0; }
}

@media (max-width: 1024px) {
    .d4-why-grid { grid-template-columns: 1fr; gap: 2rem; }
    .d4-pain-grid { grid-template-columns: 1fr; }
    .d4-wwd-card { grid-template-columns: 1fr; }
    .d4-wwd-card--reverse { direction: ltr; }
    .d4-wwd-card__image { min-height: 280px; }
    .d4-process { grid-template-columns: repeat(3, 1fr); }
    .d4-stats { grid-template-columns: repeat(2, 1fr); }
    .d4-testimonials { grid-template-columns: 1fr; }
    .d4-cases-grid { grid-template-columns: 1fr; }
    .d4-blog-grid { grid-template-columns: 1fr; }
    .d4-case-study-layout { grid-template-columns: 1fr; }
    .d4-contact-grid { grid-template-columns: 1fr; }
    .d4-gallery { grid-template-columns: repeat(2, 1fr); }
    .d4-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .d4-form__row--third { grid-template-columns: 1fr; }
    .d4-includes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

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

    .d4-header__toggle { display: block; }
    .d4-header__nav {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: var(--d4-black);
        flex-direction: column;
        padding: 2rem;
        overflow-y: auto;
        z-index: 999;
    }
    .d4-header__nav.active { display: flex; }
    .d4-header__right { display: none; }
    .d4-header__nav.active .d4-header__right-mobile { display: flex; flex-direction: column; gap: 1rem; width: 100%; margin-top: 1.5rem; }

    .d4-nav { flex-direction: column; width: 100%; }
    .d4-nav__link { font-size: 18px; padding: 0.75rem 0; }
    .d4-submenu { position: static; box-shadow: none; padding: 0 0 0 1.5rem; display: none; min-width: auto; border-top: none; }
    .d4-nav__item:hover > .d4-submenu, .d4-nav__item.open > .d4-submenu { display: block; }

    .d4-hero { min-height: 80vh; padding-bottom: 3rem; }
    .d4-hero--page { min-height: auto; padding-bottom: 3rem; }
    .d4-hero { margin-top: -64px; padding-top: calc(64px + 4rem); }
    .d4-hero h1 { font-size: clamp(28px, 8vw, 38px); }
    .d4-hero__cta { flex-direction: column; }
    .d4-hero__cta .d4-btn { width: 100%; justify-content: center; }
    .d4-hero__phone { text-align: center; }
    .d4-cta-buttons { flex-direction: column; align-items: center; }
    .d4-cta-buttons .d4-btn { width: 100%; justify-content: center; }
    .d4-cta-banner { text-align: center; }
    .d4-pain-card { padding: 2rem 1.5rem; }
    .d4-wwd-card__body { padding: 2rem 1.5rem; }
    .d4-book-call { padding: 1.5rem; }

    .d4-process { grid-template-columns: 1fr; }
    .d4-stats { grid-template-columns: 1fr 1fr; }
    .d4-services-grid { grid-template-columns: 1fr; }
    .d4-includes-grid { grid-template-columns: 1fr; }
    .d4-gallery { grid-template-columns: 1fr 1fr; }
    .d4-quick-links { grid-template-columns: 1fr; }
    .d4-values-grid { grid-template-columns: 1fr; }
    .d4-form__row--half { grid-template-columns: 1fr; }

    .d4-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .d4-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .d4-footer__legal { justify-content: center; flex-wrap: wrap; }

    .d4-trusted__inner { gap: 1.5rem; }
    .d4-pagination { flex-wrap: wrap; }

    .d4-product-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .d4-filter-btn { flex-shrink: 0; }
}

@media (max-width: 480px) {
    .d4-main { padding-top: 56px; }
    .d4-hero { margin-top: -56px; padding-top: calc(56px + 3rem); }
    .d4-hero h1 { font-size: 26px; }
    .d4-hero__subtitle { font-size: 14px; }
    .d4-btn { padding: 0.75rem 1.5rem; font-size: 14px; }
    .d4-header { height: 56px; }
    .d4-header__logo img { height: 22px; }
    .d4-header__nav { top: 56px; }
    .d4-stats { grid-template-columns: 1fr; }
    .d4-gallery { grid-template-columns: 1fr; }
    .d4-panoramic { height: 35vh; min-height: 200px; }
    .d4-why-image { height: 220px; }
    .d4-tag { font-size: 11px; }
    h2 { font-size: 24px; }
    .d4-section { padding: 3rem 0; }
    .d4-section--lg { padding: 4rem 0; }
    .d4-footer { padding: 3rem 0 1.5rem; }
    .d4-testimonial { padding: 2rem 1.5rem; }
    .d4-testimonial__quote { font-size: 15px; }
    .d4-process__step { padding: 1.5rem 1rem; }
    .d4-contact-grid { gap: 2rem; }
}
