/*
 * ═══════════════════════════════════════════════════════════════
 *  Rogers Custom Millwork — desktop.css
 *  Progressive desktop enhancements (960px+).
 *
 *  Link AFTER global.css on every page:
 *    <link rel="stylesheet" href="/assets/css/desktop.css">
 *
 *  Mobile-first: nothing here conflicts with the mobile baseline.
 *  All layout rules are scoped to @media (min-width: 960px).
 * ═══════════════════════════════════════════════════════════════
 */


/* ─── DESKTOP TOKEN OVERRIDES ─────────────────────────────────
   Slightly taller header for better visual weight on wide screens.
──────────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
  :root {
    --header-h: 80px;
  }
}


/* ════════════════════════════════════════════════════════════════
   1.  HEADER
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  #site-header {
    padding: 0 48px;
  }

  .hdr-logo img {
    height: 56px;
  }

  /* Nav: more comfortable spacing, slightly larger type */
  .hdr-nav {
    gap: 2px;
  }
  .hdr-nav a {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  /* Active link: gold underline accent */
  .hdr-nav a.active {
    font-weight: 700;
    position: relative;
  }
  .hdr-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
  }

  /* Phone CTA: pill button style on desktop */
  .hdr-call {
    display: flex;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    background: var(--navy);
    padding: 9px 18px;
    border-radius: 2px;
    border: 1.5px solid var(--gold);
    margin-left: 16px;
    transition: background var(--ease), border-color var(--ease);
  }
  .hdr-call:hover {
    background: var(--navy-dark);
    border-color: var(--gold-lt);
  }
  .hdr-call svg {
    stroke: var(--gold);
  }
}


/* ════════════════════════════════════════════════════════════════
   2.  HERO  (Home + Summary Landing)
       Left-anchored content block, constrained width, taller frame.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  #s1 {
    justify-content: flex-end; /* keep text near bottom third */
  }

  .hero-content {
    padding: 0 80px 80px;
    max-width: 700px;
  }

  .hero-h1 {
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    margin-bottom: 36px;
    max-width: 580px;
  }

  .hero-ctas {
    flex-direction: row;
    gap: 16px;
    max-width: 520px;
  }

  /* Gradient: keep more of the photo visible at top */
  .hero-bg::after {
    height: 52%;
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(16,51,93,0.06) 18%,
      rgba(16,51,93,0.40) 46%,
      rgba(16,51,93,0.80) 70%,
      #10335d 88%,
      #10335d 100%);
  }
}

@media (min-width: 1280px) {
  .hero-content {
    padding: 0 120px 100px;
    max-width: 780px;
  }
  .hero-h1 {
    font-size: 4.2rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   3.  HOME — Section 2 (Our Work)
       Mobile: stacked sub-sections.
       Desktop: each sub-section becomes a side-by-side split
                with text column left, photo/slider column right.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* Section intro header: constrained + centred */
  #s2 .s2-intro {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 48px 48px;
    border-bottom: none;
  }

  /* Each sub-section: 2-column split */
  #s2 .sub {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    padding: 0;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  /* For full-bleed tinted backgrounds we need the grid wrapper to be full-width.
     Wrap each .sub content in a pseudo-inner via CSS — handled by letting the
     section itself be the coloured band and the grid constrain interior content. */
  #s2 .sub:nth-child(even) {
    background: var(--off-white); /* already set on mobile; stays here */
  }

  /* Text column: vertically centered, comfortable padding */
  #s2 .sub-hdr {
    grid-column: 1;
    grid-row: 1;
    padding: 52px 40px 32px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
  }
  #s2 .sub-hdr h3 {
    font-size: 1.75rem;
    margin-bottom: 14px;
  }
  #s2 .sub-hdr p {
    font-size: 0.97rem;
    max-width: none;
    line-height: 1.75;
  }

  /* See-more link stays in text column, below header */
  #s2 .see-more {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 48px 48px;
    align-self: end;
  }

  /* Card slider fills the right column, tall on desktop */
  #s2 .card-slider {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 400px;
    height: 100%;
    border-left: 4px solid var(--navy);
  }
  #s2 .cs-slide {
    height: 100%;
    min-height: 400px;
  }

  /* Single-photo variant (Fabrication & Supply) */
  #s2 .single-photo {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0;
    border-left: 4px solid var(--navy);
  }
  #s2 .single-photo img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    border-radius: 0;
    border: none;
  }

  /* Explore all link at bottom: centred */
  #s2 > div[style*="text-align:center"] {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px 64px;
    display: flex;
    justify-content: flex-start;
  }
}


/* ════════════════════════════════════════════════════════════════
   4.  HOME — Section 3 (Process)  +  CTA Band
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  #s3 {
    padding: 80px 48px;
  }

  .proc-intro {
    padding: 0 0 48px;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  .proc-photo {
    max-width: var(--max-w);
    margin: 0 auto 32px;
    height: 440px;
    overflow: hidden;
  }
  .proc-photo img {
    height: 100%;
    object-fit: cover;
  }

  .proc-text {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    padding: 0;
    line-height: 1.85;
  }

  .see-more-light {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
  }

  /* CTA Band */
  .cta-band {
    padding: 80px 48px;
  }
  .cta-row {
    flex-direction: row;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
    gap: 16px;
  }
}


/* ════════════════════════════════════════════════════════════════
   5.  SUMMARY LANDING — Section 2
       Service cards: 3-col grid.
       About: side-by-side.
       Process cards: 3-col grid (already flex-row at 760px;
                      desktop refines spacing).
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* s2 intro */
  #s2 .s2-intro {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 48px 44px;
  }

  /* Sub-section shared padding override */
  .sub {
    padding: 64px 0 72px;
  }

  /* Sub-header: max-width container + generous padding */
  .sub-hdr {
    padding: 0 48px 28px;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  /* Service cards: 3-column grid */
  .svc-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 48px;
    max-width: var(--max-w);
    margin: 0 auto;
  }
  .svc-list .card-slider,
  .svc-list .cs-slide {
    height: 240px;
  }

  /* About sub: side-by-side */
  .about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 48px;
    max-width: var(--max-w);
    margin: 0 auto;
  }
  .about-photo-wrap {
    height: 360px;
    margin-bottom: 0;
  }
  .about-photo-wrap img {
    height: 100%;
    object-fit: cover;
  }
  /* See-more after about-wrap */
  .about-wrap + .see-more {
    margin: 24px 48px 0;
    max-width: var(--max-w);
  }

  /* Process cards: 3-col grid (extends the flex-row at 760px) */
  .process-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 48px;
    max-width: var(--max-w);
    margin: 0 auto;
  }
  .proc-card {
    flex: none; /* override flex:1 from 760px breakpoint */
  }

  /* See-more links inside sub-sections */
  .sub > .see-more {
    margin: 28px 48px 0;
    max-width: var(--max-w);
  }
}

@media (min-width: 1280px) {
  .svc-list,
  .about-wrap,
  .process-wrap,
  .sub-hdr,
  .sub > .see-more {
    padding-left: 80px;
    padding-right: 80px;
  }
}


/* ════════════════════════════════════════════════════════════════
   6.  SERVICES PAGE
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* Page header banner */
  .page-header {
    padding: 80px 48px 64px;
  }
  .page-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  /* Services grid section */
  .services-section {
    padding: 56px 48px 80px;
  }
  .services-grid {
    gap: 28px;
    grid-template-columns: repeat(3, 1fr); /* ensure 3-col stays */
  }

  /* Service card images: taller on desktop */
  .service-card .card-slider,
  .service-card .cs-slide {
    height: 300px;
  }

  /* Card body: more room to breathe */
  .card-body {
    padding: 22px 22px 28px;
  }
}

@media (min-width: 1280px) {
  .services-section {
    padding: 64px 80px 96px;
  }
}


/* ════════════════════════════════════════════════════════════════
   7.  PORTFOLIO PAGE
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* Page hero */
  .page-hero {
    padding: 72px 48px 56px;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }

  /* Filter trigger bar: constrained to max-w */
  .filter-trigger {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 48px;
  }

  /* Filter panel inner: constrained */
  .filter-panel-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
  }

  /* Filter chips: slightly larger */
  .filter-chip {
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
  }

  /* Gallery container: constrained and padded */
  .portfolio-body,
  .gallery-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 48px 72px;
  }

  /* Gallery grid: 4-col with larger gutters */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Category headers */
  .cat-heading,
  .section-label {
    padding-left: 48px;
    padding-right: 48px;
    max-width: calc(var(--max-w) + 96px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1280px) {
  .portfolio-body,
  .gallery-section,
  .filter-trigger,
  .filter-panel-inner {
    padding-left: 80px;
    padding-right: 80px;
  }
}


/* ════════════════════════════════════════════════════════════════
   8.  ABOUT PAGE
       Mobile: full-width photo above text in each section.
       Desktop: each .about-section becomes a 2-col split.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* Page banner */
  .page-banner {
    padding: 80px 48px 64px;
  }

  /* Section: 2-column grid */
  .about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
    border-top: 1px solid var(--border);
    max-width: 100%; /* stays full-bleed */
  }

  /* Photo column: full height */
  .about-section .section-photo {
    height: 100%;
    min-height: 480px;
    border-radius: 0;
    overflow: hidden;
  }
  .about-section .section-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* Navy accent bar: spans only the text column */
  .about-section .navy-accent {
    grid-column: 2;
    grid-row: 1;
    display: none; /* replaced by grid border-top on section */
  }

  /* Text body: generous padding, vertically centered */
  .about-section .section-body {
    grid-column: 2;
    grid-row: 1;
    padding: 56px 56px 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
  }

  /* Closing photo: inside section-body, spans its column only */
  .about-section .closing-photo img {
    height: 340px;
  }

  /* Tinted sections (every other): swap photo to right side */
  .about-section.tinted .section-photo,
  .about-section:nth-child(even) .section-photo {
    order: 2;
  }
  .about-section.tinted .section-body,
  .about-section:nth-child(even) .section-body {
    order: 1;
    grid-column: 1;
  }
  .about-section.tinted .navy-accent,
  .about-section:nth-child(even) .navy-accent {
    grid-column: 1;
  }
}

@media (min-width: 1280px) {
  .about-section .section-body {
    padding: 72px 80px 72px 68px;
  }
}


/* ════════════════════════════════════════════════════════════════
   9.  PROCESS PAGE
       The page already has a 2-col layout at 680px for .step-body.
       Desktop adds container constraints and improves hero + overview.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  /* Page hero */
  .page-hero {
    padding: 80px 48px 64px;
  }
  .page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
  }
  .page-hero-sub {
    font-size: 1.1rem;
    max-width: 620px;
  }

  /* Overview strip */
  .overview-strip {
    padding: 52px 48px;
  }
  .overview-steps {
    max-width: 960px;
  }
  .ov-num {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  .ov-label {
    font-size: 1.05rem;
  }
  .ov-desc {
    font-size: 0.85rem;
  }

  /* Step sections: constrain inner content */
  .step-section {
    padding: 72px 0 80px;
  }
  .step-inner {
    max-width: var(--max-w);
    padding: 0 48px;
  }

  /* Step heading: more dramatic big number */
  .step-big-num {
    font-size: 7rem;
    opacity: 0.08;
  }
  .step-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  /* Two-col step body: already at 680px, just wider gaps on desktop */
  .step-body {
    gap: 56px;
  }

  /* Progress strip: taller images on desktop */
  .progress-item img {
    height: 380px;
  }
  .progress-strip.single .progress-item img {
    height: 500px;
  }

  /* Phase blocks inside design section */
  .phase-image.tall img {
    max-height: 480px;
  }
}

@media (min-width: 1280px) {
  .step-inner {
    padding: 0 80px;
  }
  .step-body {
    gap: 72px;
  }
}


/* ════════════════════════════════════════════════════════════════
   10. FOOTER  (inline footers used across all pages)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  footer {
    padding: 52px 80px 36px;
  }

  /* Info row: 4 columns */
  .footer-info {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0 72px;
    max-width: var(--max-w);
    margin: 0 auto 36px;
    text-align: left;
  }

  /* Contact buttons: horizontal row */
  .footer-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    max-width: var(--max-w);
    margin: 0 auto 28px;
  }
  .footer-btn-call,
  .footer-btn-email {
    width: auto;
  }

  /* Social + copyright: row */
  .footer-social {
    display: inline;
    margin-bottom: 0;
    margin-right: 24px;
  }

  /* Bottom row */
  .footer-copy {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* ════════════════════════════════════════════════════════════════
   11. SHARED CTA SECTIONS  (global .cta-section / .cta-band)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {

  .cta-section {
    padding: 88px 48px;
  }
  .cta-section p {
    font-size: 1rem;
    max-width: 580px;
  }
  .cta-actions {
    gap: 16px;
  }
  .cta-actions a {
    min-width: 200px;
  }
}
