/* ============================================
   THE XMAS DESIGNERS - MAIN STYLESHEET
   Contains: Reset, Base, Container, Buttons,
   Hero, Portfolio, Brands, Why Us, Featured,
   CTA, and Responsive rules.
   Header & Footer styles live in separate files.
============================================ */


/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    background-color: #0a4a40;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}


/* ========== CONTAINER ==========
   Fluid percentage with a sensible cap on large screens.
   - Big screens (>1556px): capped at 1500px, centered
   - Mid-range (768-1556px): 90% of viewport, smoothly scales
   - Mobile (≤768px): full width with 20px side padding */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Ultrawide scaling note:
   We previously used `body { zoom: ... }` to scale the whole design uniformly
   on >1920px viewports, but `zoom` either wasn't being applied in the client's
   browser or the visual change wasn't perceptible. Switched to explicit
   clamp() / vw-based scaling on the elements that need to grow — currently
   just `.hero-title` (see its own rule). Add similar overrides for other
   elements (hero image, container, paddings) if the client wants them to
   scale too on 2K / 4K monitors. */

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


/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    min-width: 240px;
}

.btn-primary {
    background-color: #c89a4a;
    color: #000000;
    border-color: #c89a4a;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #b3863c;
    border-color: #b3863c;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #0a4a40;
}


/* ========== SECTION TITLE (with side lines) ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    margin-bottom: 50px;
    color: #c89a4a;
    font-size: 32px;
    font-weight: 500;
}

/* Side decoration: thin gold line with a small dot at the inner end (next to title) */
.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    max-width: 220px;
    height: 6px;
    background-color: transparent;
    background-repeat: no-repeat;
}

.section-title::before {
    background-image:
        radial-gradient(circle at center, #c89a4a 3px, transparent 3.5px),
        linear-gradient(to right, transparent 0%, #c89a4a 100%);
    background-size: 6px 6px, calc(100% - 6px) 1px;
    background-position: right center, left center;
}

.section-title::after {
    background-image:
        radial-gradient(circle at center, #c89a4a 3px, transparent 3.5px),
        linear-gradient(to right, #c89a4a 0%, transparent 100%);
    background-size: 6px 6px, calc(100% - 6px) 1px;
    background-position: left center, right center;
}

.section-title span {
    white-space: nowrap;
}

/* Mobile-only line break inside section titles. Hidden on desktop (single
   line), shown on mobile to force the wrap at a specific word. */
.br-mobile {
    display: none;
}

@media (max-width: 768px) {
    .section-title span {
        white-space: normal;
    }

    .br-mobile {
        display: inline;
    }
}


/* ============================================
   HERO SECTION
============================================ */
/* Shared radial gradient bg covering both hero + portfolio */
.hero-portfolio-bg {
    /* Radial gradient anchored at bottom-center — light spreads upward from
       the bottom, and all three other edges (top + left + right) darken. */
    background: radial-gradient(ellipse 70% 110% at 50% 100%, #0E7373 0%, #065252 45%, #054040 75%, #012020 100%);
}

.hero-section {
    background: transparent;
    padding: 0;
    position: relative;
    min-height: 560px;
    overflow: hidden;
    /* Cap the hero at the design's max width (1920px) on ultrawide screens
       and center it. Without this, .container (max 1600px) centers itself in
       viewport while .hero-image — being absolute to .hero-section — anchors
       to the full-viewport right edge, so on 2600 / 3000 monitors the text
       drifts left of the image and the layout reads as "off-center". With
       the section capped, both pieces share the same centered frame. */
    max-width: 1920px;
    margin: 0 auto;
}

.hero-inner {
    display: block;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    min-width: 0;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-title {
    /* Fluid scaling across the full 320 → 1920 viewport range. Endpoints:
         320vw  → ~22px (min cap)
         769vw  → ~24px
         1024vw → ~28px
         1500vw → ~37px
         1920vw → 44px (max cap)
       Ultrawide (>1920) extension lives in a separate @media block below. */
    font-size: clamp(22px, calc(10.63px + 1.738vw), 44px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Ultrawide extension for the hero title: takes over above 1920px where the
   base clamp caps at 44. Linearly scales from 44px @ 1920 up to 56px @ 2600,
   then capped at 56 for 2600+ (incl. 3200). Computed value is visible in
   DevTools. */
@media (min-width: 1921px) {
    .hero-title {
        font-size: clamp(44px, calc(10px + 1.77vw), 56px);
    }
}

.hero-subtitle {
    /* Fluid scaling 320 → 1920 viewport:
         320vw  → 13px (min)
         768vw  → ~16px
         1024vw → ~18px
         1500vw → ~21px
         1920vw → 24px (max) */
    font-size: clamp(13px, calc(10.8px + 0.6875vw), 24px);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    color: #ffffff;
}

/* Outline button can sit on top of light slide imagery — give it a semi-
   transparent dark backdrop with subtle blur so the white border + label
   stay readable on any image. */
.hero-buttons .btn-outline {
    background-color: transparent;
    border-color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn-outline:hover {
    background-color: #ffffff;
    color: #0a4a40;
    text-shadow: none;
}

.hero-buttons .btn {
    /* Fluid scaling 320 → 1500 viewport, dialed smaller overall so the
       button stays compact at every size. Endpoints:
         320vw  → 11px font / 10px pad-y / 10px pad-x / 130px min-w
         1024vw → ~13px / ~12px / ~18px / ~195px
         1500vw → 15px / 14px / 24px / 240px (cap, no growth above)
       At @480 the general .btn { width:100%; max-width:320px } still wins
       on its own properties — different from these, no conflict. */
    min-width: clamp(130px, calc(100px + 9.32vw), 240px);
    padding: clamp(10px, calc(8.92px + 0.339vw), 14px)
             clamp(10px, calc(6.21px + 1.186vw), 24px);
    font-size: clamp(11px, calc(9.92px + 0.339vw), 15px);
}

/* Image is absolutely positioned to fill the right ~60% of the hero section,
   from top to bottom. Mask fades its left + bottom edges into the bg gradient. */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    min-width: 0;
    z-index: 1;
    overflow: hidden;
}

/* Note: a prior @media (min-width: 1921px) override for .hero-image was
   removed. It was needed back when .hero-section spanned the full viewport
   (the override anchored the image to a virtual 1920px-centered frame).
   Now that .hero-section itself is capped at 1920px and centered, the base
   `right: 0; width: 60%` naturally produces the same centered layout on
   any ultrawide monitor — no special-case needed. */

/* Note: the prior `.hero-image img { width:100%; height:auto }` rule was removed
   because it out-specificity-d `.hero-slide`'s `height: 100%`, leaving slides
   sized to their natural aspect ratio. On wide screens this made tall slides
   overflow the 560px hero box, getting cropped at the bottom and reading as
   "too zoomed". `.hero-slide` now controls its own dimensions everywhere. */

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Mask moved off the slideshow onto each .hero-slide — see below.
       Reason: when the mask was here, during the opacity crossfade between
       slides one slide could briefly render unmasked on the GPU layer,
       revealing its hard left edge as a "white line" flash. Putting the
       mask on each slide means every slide carries its own mask through
       its own compositing layer, so the fade is consistent during the
       transition. */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Desktop: show the full image (no crop) so the client gets the max
       visible area. Mobile (@768) overrides this back to `cover` because
       the fixed 320px container there needs the image to crop-fill. */
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    /* Each slide carries its own left + bottom fade mask. Previously the
       mask lived on the parent .hero-slideshow, but during the opacity
       crossfade the mask could intermittently fail to apply for a frame on
       one slide's compositing layer — the hard left edge of the slide
       (which is opaque white-ish pixels) would briefly flash as a "white
       line". With the mask per-slide, each slide's GPU layer always carries
       the mask, so the fade stays consistent throughout the transition. */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 32%),
        linear-gradient(to top, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in;
            mask-image:
        linear-gradient(to right, transparent 0%, #000 32%),
        linear-gradient(to top, transparent 0%, #000 22%);
            mask-composite: intersect;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image-caption {
    position: absolute;
    bottom: 26px;
    /* left + right both set so the caption box is bounded on both sides
       and right-aligned text wraps within the image rather than overflowing
       to the right on narrower hero-image widths. */
    right: 30px;
    left: 30px;
    text-align: right;
    z-index: 3;
    font-size: 15px;
    color: #ffffff;
    font-style: italic;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-image-caption {
        transition: none;
    }
}


/* ============================================
   PORTFOLIO SECTION
============================================ */
.portfolio-section {
    padding: 10px 0 40px;
    background: transparent;
}

/* Portfolio-specific title overrides — white heading, lighter cream-gold decorations */
.portfolio-section .section-title {
    color: #ffffff;
}

.portfolio-section .section-title::before {
    background-image:
        radial-gradient(circle at center, #ffffff 3px, transparent 3.5px),
        linear-gradient(to right, transparent 0%, #ffffff 100%);
}

.portfolio-section .section-title::after {
    background-image:
        radial-gradient(circle at center, #ffffff 3px, transparent 3.5px),
        linear-gradient(to right, #ffffff 0%, transparent 100%);
}

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

.portfolio-card {
    border: 1px solid rgba(218, 185, 122, 0.55);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: #c89a4a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(200, 154, 74, 0.5),
                0 0 35px rgba(200, 154, 74, 0.18);
}

.portfolio-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Hover-only overlay (subtle gold tint). Base state is transparent so the
   image fades cleanly into the section bg via the mask above. */
.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Shine sweep that crosses the image on hover */
.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
                transparent 0%,
                rgba(255, 255, 255, 0.18) 50%,
                transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.9s ease;
    z-index: 2;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.1);
}

.portfolio-card:hover .portfolio-image::before {
    background: radial-gradient(circle at 50% 50%,
                rgba(200, 154, 74, 0.18) 0%,
                rgba(200, 154, 74, 0) 70%);
}

.portfolio-card:hover .portfolio-image::after {
    left: 125%;
}

.portfolio-info {
    padding: 20px 20px;
    text-align: center;
    position: relative;
    transition: background-color 0.5s ease;
}

.portfolio-card:hover .portfolio-info {
    background-color: rgba(200, 154, 74, 0.06);
}

.portfolio-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-card:hover .portfolio-icon {
    transform: translateY(-4px) scale(1.12);
}

.portfolio-title {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    display: inline-block;
    position: relative;
    transition: color 0.4s ease;
}

/* Gold underline that grows from center on hover */
.portfolio-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: #c89a4a;
    transition: width 0.4s ease, left 0.4s ease;
}

.portfolio-card:hover .portfolio-title {
    color: #c89a4a;
}

.portfolio-card:hover .portfolio-title::after {
    width: 50px;
    left: calc(50% - 25px);
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-image img,
    .portfolio-image::before,
    .portfolio-image::after,
    .portfolio-icon,
    .portfolio-title,
    .portfolio-title::after,
    .portfolio-info {
        transition: none;
    }
    .portfolio-card:hover {
        transform: none;
    }
    .portfolio-card:hover .portfolio-image img {
        transform: none;
    }
}


/* ============================================
   TRUSTED BRANDS SECTION
============================================ */
.brands-section {
    background: linear-gradient(90deg, #1A1A1A 0%, #252525 50%, #1A1A1A 100%);
    padding: 50px 0;
}

.brands-title {
    color: #dab97a;
    font-size: 24px;
    margin-bottom: 35px;
}

/* Marquee viewport — hides overflow, fades edges */
.brand-logos {
    overflow: hidden;
    width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Sliding track — holds 2 copies of the logo set (33 brands × 2 = 66 imgs) */
.brands-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: brands-scroll 120s linear infinite;
    will-change: transform;
}

.brand-logos:hover .brands-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
    }
}

.brands-track img {
    width: 160px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Translate by exactly 50% so the duplicated set lands where the first started */
@keyframes brands-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ============================================
   WHY CHOOSE US SECTION
============================================ */
.why-us-section {
    background: radial-gradient(ellipse 75% 70% at 50% 50%, #5C0C0C 0%, #3D0808 50%, #1C0303 100%);
    padding: 30px 0;
}

.why-us-title {
    color: #dab97a;
    font-weight: 700;
}

/* Longer decorative side lines for the Why-Us title — scales up on wide screens. */
.why-us-title::before,
.why-us-title::after {
    max-width: 380px;
}

@media (min-width: 1280px) {
    .why-us-title::before,
    .why-us-title::after {
        max-width: 480px;
    }
}

@media (min-width: 1600px) {
    .why-us-title::before,
    .why-us-title::after {
        max-width: 600px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
}

.feature-item {
    padding: 0 15px;
    border-right: 1px solid rgba(200, 154, 74, 0.6);
}

.feature-item:first-child .feature-icon {
    width: 29px;
    height: 48px;
    margin: 0 auto 18px;
}

.feature-item:nth-child(2) .feature-icon {
    width: 47px;
    height: 40px;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    color: #dab97a;
    margin-bottom: 18px;
    line-height: 1.3;
}

.feature-text {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
}


/* ============================================
   FEATURED PROJECT SECTION
============================================ */
/* Shared radial gradient bg covering featured + cta + footer */
.featured-cta-footer-bg {
    background: radial-gradient(ellipse 75% 55% at 50% 45%, #0A6060 0%, #054040 40%, #011818 100%);
}

.featured-section {
    background: transparent;
    padding: 60px 0 0;
}

.featured-card {
    border: 3px solid transparent;
    border-image: linear-gradient(135deg,
                rgb(200, 154, 74) 0%,
                rgb(232, 200, 140) 50%,
                rgb(200, 154, 74) 100%) 1;
    border-radius: 2px;
    background: rgba(61, 8, 8, 0.60);
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

/* Left image — fills full card height; right edge fades softly into a warm tan tone */
.featured-image {
    flex: 0 0 50%;
    max-width: 45%;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Thin 10px gradient strip on the right edge of the image, fading transparent → #4c2f11.
   Replaces the old mask-image approach with a narrow, deep brown blend into the card. */
.featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, transparent, #4c2f11);
    pointer-events: none;
}

/* Right side — content fills the area, note is absolutely pinned at the bottom.
   Background stripes are painted on a ::before pseudo so we can mask the left
   edge into transparency (the image transitions visually into the stripes). */
.featured-right {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/featured-bg-stripes.png');
    /* Fluid stripes height: ~492px at 1024 → 542px at 1920 → caps at 580px
       on 2600 / 3200 ultrawide screens. Mobile (@768) still overrides this
       to a fixed 600px. */
    background-size: auto clamp(480px, calc(435px + 5.6vw), 580px);
    background-position: center right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.featured-right > * {
    position: relative;
    z-index: 1;
}

.featured-content {
    flex: 1;
    padding: 50px 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 18px;
}

.featured-title {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 22px;
    line-height: 1.25;
}

.featured-text {
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.5;
}

.featured-btn {
    align-self: flex-start;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border: 1px solid #000;
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: -5px;
    font-size: 20px;
    font-weight: 700;
    padding: 20px 50px;
    min-width: 0;
}

.featured-btn:hover {
    background-color: rgba(0, 0, 0, 0.95);
    color: #c89a4a;
    outline-color: rgba(255, 255, 255, 0.8);
}

/* Pinned to the bottom of the right side via absolute positioning.
   Divider line above fades from transparent (left) to gold (right). */
.featured-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 5px 20px;
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

.featured-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 154, 74, 0.5) 30%, rgba(200, 154, 74, 0.55) 100%);
}


/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    background: transparent;
    padding: 50px 0;
}

.cta-title {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}


/* ============================================
   RESPONSIVE STYLES
============================================ */

/* Tablet & smaller desktop */
@media (max-width: 1024px) {
    /* Hero keeps its desktop side-by-side layout from 769 to 1024 — the
       column-stack overrides used to live here and are now in @768 below.
       Non-hero tablet adjustments remain in this block. */

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

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

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

    .featured-content {
        padding: 35px 30px;
    }

    .featured-title {
        font-size: 26px;
    }

    .brands-track {
        gap: 50px;
        animation-duration: 105s;
    }

    .brands-track img {
        width: 150px;
        height: 56px;
    }
}


/* Tablet portrait */
@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
        gap: 15px;
        margin-bottom: 35px;
    }

    .section-title::before,
    .section-title::after {
        max-width: 60px;
    }

    /* Hero — column stack: image on top (order 1), text below (order 2).
       Image area gets a fixed 320px box and slides absolutely fill it.
       This block is self-sufficient — the column-stack setup is here
       (used to live in @1024 but hero is now desktop-side-by-side at
       769-1024 per client preference). */
    .hero-section {
        min-height: 0;
        overflow: visible;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 0 0 50px;
    }

    .hero-content {
        order: 2;
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        order: 1;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
    }

    .hero-slideshow {
        height: 320px;
        -webkit-mask-image: none;
                mask-image: none;
    }

    /* All 6 slides absolutely stacked inside the 320px container. */
    .hero-slide:first-child {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    /* Force every slide to fill the fixed 320px slideshow box on mobile.
       Some hero PNGs are shorter than 320px so without object-fit: cover
       being enforced (with !important to beat parent theme img defaults)
       they render with whitespace top/bottom instead of zooming to fill.
       Also disable the desktop fade masks — mobile shows the full image
       (the slideshow has its own bottom darkening ::after instead). */
    .hero-slide {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        -webkit-mask-image: none !important;
                mask-image: none !important;
    }

    /* Dark gradient at the bottom of the slideshow so the caption text
       (which now overlays the image) stays readable on any image. */
    .hero-slideshow::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 55%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
        z-index: 2;
    }

    /* Title / subtitle font sizes now driven by their base clamp() — see
       .hero-title / .hero-subtitle declarations. Only the subtitle's bottom
       margin needs a mobile tweak. */
    .hero-subtitle {
        margin-bottom: 30px;
    }

    /* Caption sits on top of the bottom gradient, centered horizontally. */
    .hero-image-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 14px;
        margin-top: 0;
        padding: 0 20px;
        text-align: center;
        color: #ffffff;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
        z-index: 3;
    }

    /* Buttons */
    .btn {
        min-width: 220px;
        padding: 14px 28px;
        font-size: 15px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-image img {
        height: 220px;
    }

    /* Brands */
    .brands-track {
        gap: 40px;
        animation-duration: 90s;
    }

    .brands-track img {
        width: 130px;
        height: 44px;
    }

    /* Featured */
    .featured-card {
        flex-direction: column;
        min-height: 0;
    }

    .featured-image {
        flex: 1 1 auto;
        max-width: 100%;
        -webkit-mask-image: none;
                mask-image: none;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-right::before {
        background-size: auto 600px;
        /* On mobile the image stacks on top, so fade the stripes from the top
           downward instead of left to right. */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
                mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
    }

    .featured-content {
        padding: 30px 25px;
    }

    .featured-note {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 10px 20px;
        font-size: 15px;
    }

    .featured-btn {
        font-size: 16px;
        padding: 14px 32px;
        outline-offset: -4px;
    }

    .featured-title {
        font-size: 24px;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-title {
        font-size: 22px;
    }
}


/* Mobile small */
@media (max-width: 480px) {
    .hero-title br,
    .hero-subtitle br,
    .feature-title br,
    .feature-text br,
    .featured-title br,
    .featured-text br {
        display: none;
    }

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

    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(200, 154, 74, 0.3);
        padding-bottom: 30px;
    }

    .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .brands-track {
        gap: 30px;
        animation-duration: 75s;
    }

    .brands-track img {
        width: 110px;
        height: 32px;
    }

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