/* GL Sotomayor — rebuilt editorial system */
:root {
  --ink: #172d3a;
  --ink-soft: #294858;
  --blue: #28718b;
  --blue-dark: #1d4964;
  --blue-pale: #dce9ee;
  --gold-classic: #9A6D2A;
  --gold-solar: #D5AA2E;
  --paper: #f4f7f8;
  --paper-blue: #e9f0f3;
  --white: #fff;
  --line: #d4e0e5;
  --muted: #586c77;
  --shadow-card: 0 16px 40px rgba(23,45,58,.08);
  --shadow-soft: 0 8px 24px rgba(23,45,58,.055);
  --radius-card: 18px;
  --accent-gold: #28718b;
  --accent-gold-light: #b7d6e0;
  --accent-gold-dark: #1d4964;
  --accent-cyan: #70aabc;
  --text-primary: #172d3a;
  --text-secondary: #294858;
  --text-muted: #586c77;
  --text-dim: #71838d;
  --border-light: #d4e0e5;
  --border-medium: #bdcbd2;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: calc(var(--header-height, 78px) + 1rem); }
body { overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body::before, body::after, .ambient-glow, .preloader { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-family: inherit; letter-spacing: -.04em; font-weight: 650; text-wrap: balance; }
p { color: var(--muted); }
a { color: inherit; }
.container { width: min(100% - 3rem, 1320px); max-width: 1320px; padding-inline: clamp(0rem, 2vw, 1.25rem); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { border: 0; background: var(--paper-blue); }

/* Navigation */
.header, .header.scrolled { z-index: 1000; height: 78px; border-bottom: 1px solid rgba(212,224,229,.85); background: rgba(248,250,251,.96); box-shadow: 0 4px 18px rgba(23,45,58,.035); backdrop-filter: blur(14px); }
.nav-container { width: min(100% - 2rem, 1440px); }
.logo-symbol, .logo:hover .logo-symbol { border-radius: 10px; background: var(--ink); }
.primary-nav { gap: clamp(1rem, 2.1vw, 2rem); }
.primary-nav-link { font-weight: 600; }
.primary-services-menu { border-radius: 12px; box-shadow: var(--shadow-card); }
.primary-services-menu a { padding-block: .8rem; }
.nav-quote { padding-inline: 1.15rem; }
.btn, a.btn, button.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .45rem; padding: .75rem 1.1rem; border-radius: 9px; font-weight: 650; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover, a.btn:hover, button.btn:hover { transform: translateY(-1px); }
body .btn-primary, body a.btn-primary, body button.btn-primary { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff !important; }
body .btn-primary:hover, body .btn-primary:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff !important; }
body .btn-secondary, body a.btn-secondary, body button.btn-secondary { border-color: #b9cbd4; background: #fff; color: var(--ink) !important; }
body .btn-secondary:hover, body .btn-secondary:focus-visible { border-color: var(--blue); background: var(--blue-pale); color: var(--ink) !important; }
:focus-visible { outline: 3px solid #4d9bb5; outline-offset: 3px; }

/* Clear editorial hierarchy: all page and section headings share a left edge. */
.editorial-eyebrow, .section-tag, .pack-kicker, .pack-eyebrow, .directory-kicker, .case-kicker {
  display: block; width: fit-content; max-width: 100%; margin: 0 0 .75rem; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--blue-dark); font-size: .84rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; animation: none;
}
.section-header { display: grid; justify-items: start; gap: .6rem; width: min(100%, 850px); max-width: 850px; margin: 0 0 2rem; text-align: left; }
.section-header > .editorial-eyebrow, .section-header > .section-tag { margin: 0 0 .1rem; }
.section-header .section-title { max-width: 23ch; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.section-header .section-desc { max-width: 650px; margin: 0; font-size: 1rem; line-height: 1.7; }
.home-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.62fr); align-items: end; gap: clamp(1.5rem,5vw,4rem); margin-bottom: 1.8rem; text-align: left; }
.home-section-heading .editorial-eyebrow { margin: 0 0 .55rem; }
.home-section-heading h2 { max-width: 20ch; margin: 0; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; }
.home-section-heading > p { max-width: 440px; margin: 0 0 .25rem; font-size: .98rem; line-height: 1.7; }

/* Home hero */
.home-hero { position: relative; min-height: min(800px, calc(100svh - 78px)); padding: 0; overflow: hidden; background: var(--ink); }
.home-hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg,rgba(10,28,38,.9) 0%,rgba(10,28,38,.72) 48%,rgba(10,28,38,.22) 100%),url('../assets/images/optimized/hero-home-architecture.jpg'); background-position: center, center 54%; background-size: cover; transform: scale(1.015); }
.home-hero-inner { position: relative; display: flex; min-height: inherit; align-items: center; padding-block: clamp(5rem,9vw,8rem); }
.home-hero-copy { width: min(100%, 780px); }
.home-hero-eyebrow { margin: 0 0 1.15rem; color: #c7dce5; font-size: .86rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.home-hero-copy h1 { max-width: 11ch; margin: 0 0 1.2rem; color: #fff; font-size: clamp(2.8rem,6vw,5.25rem); font-weight: 650; letter-spacing: -.07em; line-height: 1.02; }
.home-hero-description { max-width: 610px; margin: 0; color: rgba(255,255,255,.83); font-size: clamp(1.03rem,1.5vw,1.2rem); line-height: 1.7; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.home-hero-actions .btn-primary { min-height: 52px; border-color: #4b9ab5; background: #4b9ab5; }
.home-hero-secondary { color: #fff; font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.home-hero-secondary:hover { text-decoration: underline; }
.home-hero-secondary span { color: #b5d8e4; }
.home-hero-caption { right: clamp(1rem,4vw,3rem); bottom: 1.25rem; left: clamp(1rem,4vw,3rem); justify-content: space-between; color: rgba(255,255,255,.75); font-size: .72rem; }

/* Compact proof points and visual service directory */
.home-values-section { background: #fff; }
.home-value-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.home-value-card { min-height: 205px; justify-content: flex-start; padding: 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(155deg,#fff,#f7fafb); box-shadow: var(--shadow-soft); }
.home-card-index { color: var(--blue); font-size: .8rem; font-weight: 750; letter-spacing: .1em; }
.home-value-card h3 { margin: 1.45rem 0 .45rem; font-size: 1.18rem; letter-spacing: -.03em; }
.home-value-card p { max-width: 34ch; margin: 0; font-size: .88rem; line-height: 1.6; }
.home-value-mark { color: #8ba9b7; }
.home-service-section { border-top: 0; border-bottom: 0; background: #e9f0f3; }
.home-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.home-service-card { min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 1px solid #d0dfe5; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; }
.home-service-card:hover, .home-service-card:focus-visible { border-color: #88afbf; background: #fff; box-shadow: 0 18px 38px rgba(23,45,58,.12); transform: translateY(-3px); }
.home-service-image { display: block; width: 100%; aspect-ratio: 1.6 / 1; overflow: hidden; background: var(--blue-pale); }
.home-service-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-service-card:hover .home-service-image img { transform: scale(1.035); }
.home-service-copy { display: flex; min-height: 205px; flex-direction: column; padding: 1.15rem 1.25rem 1.25rem; }
.home-service-number { color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .12em; }
.home-service-title { display: block; margin: .75rem 0 .4rem; color: var(--ink); font-size: 1.2rem; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.home-service-description { display: block; margin: 0 0 1rem; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.home-service-link { margin-top: auto; padding-top: .75rem; border-top: 1px solid #e5ecef; color: var(--blue-dark); font-size: .83rem; font-weight: 700; }
.home-service-footer { margin-top: 1.5rem; }

/* Selected projects */
.home-projects-section { background: #fff; }
.home-project-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.58fr); align-items: end; gap: 2.5rem; margin-bottom: 1.6rem; }
.home-project-heading h2 { max-width: 19ch; margin: 0; font-size: clamp(2rem,4vw,3.15rem); line-height: 1.1; }
.home-project-heading p:last-child { max-width: 450px; margin: 0; }
.home-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.home-project-card { display: grid; grid-template-columns: 58px minmax(0,1fr); align-content: start; gap: 1rem; min-width: 0; min-height: 218px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg,#fff,#f8fafb); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-project-mark { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; border: 1px solid #c8dce4; border-radius: 13px; background: var(--blue-pale); color: var(--blue-dark); font-size: .94rem; font-weight: 800; letter-spacing: -.06em; }
.home-project-mark-dark { border-color: var(--ink); background: var(--ink); color: #fff; font-family: Georgia,serif; font-size: 1.8rem; font-weight: 500; }
.home-project-mark-outline { border: 1px solid var(--blue-dark); background: #fff; font-size: .82rem; letter-spacing: .02em; }
.home-project-copy { display: flex; min-width: 0; min-height: 168px; flex-direction: column; }
.home-project-copy small { color: var(--blue-dark); font-size: .69rem; font-weight: 750; letter-spacing: .075em; line-height: 1.45; text-transform: uppercase; }
.home-project-copy .home-project-title { display: block; margin: .48rem 0 .42rem; color: var(--ink); font-size: 1.1rem; line-height: 1.25; }
.home-project-copy .home-project-summary { display: block; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.home-project-copy .home-project-link { display: block; margin-top: auto; padding-top: .75rem; color: var(--blue-dark); font-size: .81rem; font-weight: 700; }
.home-project-card:hover { transform: translateY(-2px); border-color: #adc5cf; box-shadow: 0 14px 30px rgba(23,45,58,.1); }
.home-projects-footer { display: flex; justify-content: center; margin-top: 1.6rem; }
.home-projects-all { min-width: 240px; }

/* Independent quote CTA */
.quote-cta-section { background: var(--ink); }
.quote-cta-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.75fr); align-items: center; gap: clamp(2rem,5vw,5rem); padding: clamp(1.6rem,4vw,3.1rem); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: linear-gradient(120deg,#24495c,#193544); box-shadow: 0 22px 52px rgba(0,0,0,.14); }
.quote-cta-copy { max-width: 620px; margin: 0; text-align: left; }
.quote-cta-copy .editorial-eyebrow { margin-left: 0; color: #b4d4df; }
.quote-cta-copy h2 { max-width: 15ch; margin: 0 0 .7rem; color: #fff; font-size: clamp(2rem,4vw,3.35rem); line-height: 1.05; }
.quote-cta-copy p:not(.editorial-eyebrow) { max-width: 520px; margin: 0; color: rgba(255,255,255,.77); }
.quote-cta-actions { display: grid; gap: 1rem; }
.quote-contact-methods { gap: .65rem; }
.quote-contact-method { border-color: rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; }
.quote-contact-method span { color: #c8dce4; }
.quote-contact-method strong { color: #fff; }

/* Page headers and breadcrumb bands */
.service-index-page, .company-intro-page, .quote-page, .pack-page { position: relative; isolation: isolate; background: radial-gradient(ellipse at 88% 6%,rgba(97,150,171,.2),transparent 26%),linear-gradient(130deg,#eaf0f4,#f7f9fa 60%,#edf3f6); }
.service-index-page, .company-intro-page { padding-top: calc(var(--header-height,78px) + clamp(2.2rem,5vw,4rem)); }
.page-breadcrumbs, .quote-breadcrumbs, .case-page .case-breadcrumbs { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: .55rem .8rem; border: 1px solid rgba(188,205,214,.95); border-radius: 9px; background: rgba(255,255,255,.84); color: #536574; font-size: .78rem; line-height: 1.45; text-align: left; }
.page-breadcrumbs a, .quote-breadcrumbs a, .case-page .case-breadcrumbs a { color: var(--blue-dark); text-underline-offset: 3px; }
.page-intro { max-width: none; margin: 0 0 clamp(2rem,4vw,3rem); padding: clamp(1.6rem,4vw,3.4rem); border: 1px solid rgba(188,205,214,.88); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-card); text-align: left; }
.page-intro .editorial-eyebrow { margin: 0 0 .65rem; }
.page-intro h1 { max-width: 18ch; margin: 0 0 .75rem; font-size: clamp(2.7rem,5vw,4.5rem); line-height: 1.02; }
.page-intro > p:last-child { max-width: 650px; margin: 0; font-size: 1rem; line-height: 1.7; }
.service-index-grid { gap: 1rem; }
.service-index-card { min-height: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.service-index-image { display: block; width: 100%; aspect-ratio: 1.85 / 1; overflow: hidden; background: var(--blue-pale); }
.service-index-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-index-card:hover .service-index-image img { transform: scale(1.035); }
.service-index-content { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.5rem 1.4rem; color: var(--ink); }
.service-index-number { color: var(--blue); font-size: .75rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.service-index-content h2 { margin: .7rem 0 .45rem; font-size: 1.4rem; }
.service-index-content p { max-width: 520px; margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; }
.service-index-content strong { margin-top: auto; padding-top: .75rem; border-top: 1px solid #e5ecef; }
.service-index-cta { margin-top: 1.5rem; padding-top: 1.2rem; }
.service-page-heading { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-height,78px) + clamp(1.5rem,4vw,3rem)) 0 clamp(2.2rem,5vw,4rem); background: radial-gradient(ellipse at 87% 5%,rgba(82,140,163,.2),transparent 28%),linear-gradient(130deg,#e2edf1,#f6f9fa 65%); }
.service-page-heading::after { top: -35%; right: -4%; width: min(40vw,520px); border-color: rgba(29,73,100,.12); background: repeating-radial-gradient(circle,transparent 0 20px,rgba(29,73,100,.045) 21px 22px); }
.service-page-heading .container { position: relative; z-index: 1; padding: clamp(1.4rem,3.5vw,2.8rem); border: 1px solid rgba(188,205,214,.9); border-radius: 20px; background: rgba(255,255,255,.85); box-shadow: var(--shadow-card); }
.service-page-heading-copy { max-width: 760px; margin: 0; text-align: left; }
.service-page-heading-copy .editorial-eyebrow { margin: 0 0 .65rem; }
.service-page-title { max-width: 16ch; margin: 0 0 .7rem; font-size: clamp(2.7rem,5vw,4.4rem); line-height: 1.02; }
.service-page-intro { max-width: 640px; margin: 0; font-size: 1.02rem; line-height: 1.7; }
.service-page-heading .hero-ctas { justify-content: flex-start; margin-top: 1.5rem; }
.company-intro-grid { padding: clamp(1.3rem,3vw,2.4rem); border: 1px solid rgba(188,205,214,.85); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-card); }
.company-intro-copy { text-align: left; }
.company-intro-copy .editorial-eyebrow { margin: 0 0 .65rem; }
.company-intro-copy h1 { max-width: 14ch; margin: 0 0 .9rem; font-size: clamp(2.7rem,5vw,4.5rem); line-height: 1.02; }
.company-intro-copy > p:not(.editorial-eyebrow) { max-width: 600px; margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.7; }
.company-intro-panel { border-radius: 15px; background: linear-gradient(145deg,#1d4964,#172d3a); box-shadow: 0 18px 42px rgba(29,73,100,.18); }
.company-experience-grid > div:first-child, .company-coverage-layout > div:first-child { text-align: left; }
.company-experience-grid > div:first-child .editorial-eyebrow, .company-coverage-layout > div:first-child .editorial-eyebrow { margin-left: 0; }
.company-coverage-layout > .btn { justify-self: start; }

/* Service detail sections */
.service-detail-grid { gap: clamp(1.5rem,4vw,4rem); padding: clamp(1.2rem,3vw,2.2rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.service-info h2, .service-info h3 { max-width: 18ch; margin: 0 0 .75rem; font-size: clamp(1.8rem,3.3vw,2.6rem); line-height: 1.1; }
.service-info .editorial-eyebrow { margin: 0 0 .65rem; }
.service-info-p { margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.7; }
.service-features-list { gap: .6rem 1.1rem; }
.feature-item { align-items: flex-start; }
.feature-text { font-size: .87rem; line-height: 1.5; }
.service-media-box { border-radius: 14px; }
.service-media-box img { width: 100%; height: clamp(260px,32vw,440px); object-fit: cover; border-radius: 14px; }
.editorial-image-note { padding: .65rem .2rem 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.service-scope-grid, .service-process-list { gap: 1rem; }
.service-scope-item, .service-process-step { min-height: 180px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-soft); }
.service-scope-item h3, .service-process-step h3 { margin: .3rem 0 .45rem; font-size: 1.15rem; line-height: 1.25; }
.service-scope-item p, .service-process-step p { font-size: .9rem; line-height: 1.6; }
.methodology-track { gap: .8rem; }
.methodology-step { min-height: 160px; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.step-node { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--blue-pale); color: var(--blue-dark); box-shadow: none; }

/* Topography and southern home service */
.topography-service-list, .topography-applications-list { gap: .75rem; border: 0; }
.topography-service-item, .topography-application-item { padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.topography-process-grid > li { min-height: 160px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pack-page { padding-top: calc(var(--header-height,78px) + clamp(1.4rem,4vw,3rem)); }
.pack-hero { gap: clamp(1.5rem,4vw,3.5rem); margin-bottom: clamp(2.5rem,5vw,4.5rem); padding: clamp(1.2rem,3vw,2.2rem); border: 1px solid rgba(188,205,214,.9); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-card); }
.pack-hero-copy { text-align: left; }
.pack-hero-copy .pack-kicker { margin: 0 0 .65rem; }
.pack-hero-copy h1 { max-width: 14ch; margin: 0 0 .85rem; font-size: clamp(2.65rem,4.8vw,4.35rem); line-height: 1.02; }
.pack-hero-copy .section-desc { max-width: 600px; margin: 0 0 1rem; font-size: 1rem; line-height: 1.7; }
.pack-hero-actions { justify-content: flex-start; }
.pack-hero-figure { overflow: hidden; border-radius: 14px; }
.pack-hero-figure img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.pack-figure-caption { padding-top: .6rem; color: var(--muted); font-size: .73rem; }
.pack-section-heading { max-width: 800px; margin: 0 0 1.6rem; text-align: left; }
.pack-section-heading .pack-eyebrow { margin: 0 0 .55rem; }
.pack-section-heading h2 { max-width: 23ch; margin: 0 0 .5rem; font-size: clamp(1.9rem,3.7vw,2.75rem); line-height: 1.1; }
.pack-section-heading > p { margin: 0; }
.pack-scope-grid, .pack-process-grid { gap: 1rem; }
.pack-scope-card, .pack-process-card { min-height: 165px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-soft); }
.pack-configurator { padding: clamp(1.25rem,3vw,2rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-card); }
.pack-configurator .pack-section-heading { margin-bottom: 1.6rem; }
.pack-configurator input, .pack-configurator select, .pack-configurator button { font: inherit; }
.pack-configurator select, .pack-configurator input[type="number"], .pack-configurator input[type="text"] { min-height: 44px; border: 1px solid #b8c9d1; border-radius: 8px; background: #fff; color: var(--ink); }
.pack-configurator label, .pack-configurator .config-group-title, .pack-configurator .pack-subheading { color: var(--ink); }
.pack-configurator .house-preset-card { min-width: 0; border: 1px solid #c6d5dc; border-radius: 13px; background: #f8fafb; color: var(--ink); text-align: left; }
.pack-configurator .house-preset-card:hover, .pack-configurator .house-preset-card:focus-visible { border-color: var(--blue); background: #fff; }
.pack-configurator .house-preset-card.active { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; box-shadow: 0 10px 24px rgba(29,73,100,.16); }
.pack-configurator .house-preset-card.active .preset-title,
.pack-configurator .house-preset-card.active .preset-surface,
.pack-configurator .house-preset-card.active .preset-desc,
.pack-configurator .house-preset-card.active .preset-icon { color: #fff; }
.pack-configurator .house-preset-card:not(.active) .preset-title { color: var(--ink); }
.pack-configurator .house-preset-card:not(.active) .preset-surface,
.pack-configurator .house-preset-card:not(.active) .preset-desc { color: var(--muted); }
.pack-configurator .stepper-btn { border: 1px solid #b8c9d1; border-radius: 8px; background: #fff; color: var(--ink); }
.pack-configurator .stepper-value, .pack-configurator .config-total, .pack-configurator .summary-panel { color: var(--ink); }
.pack-configurator .configurator-grid { gap: 1rem; }
.pack-configurator .configurator-card, .pack-configurator .estimator-summary-card { border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; box-shadow: none; }
.pack-configurator .stepper-item { gap: .8rem; padding: .9rem; border-bottom: 1px solid #dce6ea; background: transparent; }
.pack-configurator .stepper-info h4 { color: var(--ink); font-size: .93rem; }
.pack-configurator .stepper-info p { color: var(--muted); font-size: .82rem; }
.pack-configurator .stepper-controls { flex: 0 0 auto; }
.pack-configurator .stepper-input { width: 3.25rem; border: 1px solid #b8c9d1; border-radius: 7px; background: #fff; color: var(--ink); }
.pack-configurator .pack-toggle-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid #d4e0e5; border-radius: 10px; background: #fff; color: var(--ink); }
.pack-configurator .pack-toggle-card:has(.pack-toggle-input:checked) { border-color: #8eafbd; background: #edf4f6; }
.pack-configurator .pack-toggle-info strong { color: var(--ink); }
.pack-configurator .pack-toggle-info > span { color: var(--muted); }
.pack-configurator .pack-toggle-input { accent-color: var(--blue-dark); }
.pack-configurator .estimator-summary-card { position: sticky; top: calc(var(--header-height,78px) + 1rem); padding: 1.25rem; background: linear-gradient(150deg,#1d4964,#172d3a); color: #fff; }
.pack-configurator .estimator-summary-card h3,
.pack-configurator .estimator-summary-card .pack-summary-label,
.pack-configurator .estimator-summary-card .summary-row,
.pack-configurator .estimator-summary-card .label,
.pack-configurator .estimator-summary-card .val,
.pack-configurator .estimator-summary-card output { color: #fff; }
.pack-configurator .estimator-summary-card .summary-row { border-color: rgba(255,255,255,.2); }

/* Portfolio overview and case pages */
.portfolio-directory { background: var(--paper); color: var(--ink); }
.portfolio-directory .directory-hero { padding: calc(var(--header-height,78px) + clamp(2rem,5vw,4rem)) 0 clamp(2.5rem,5vw,4rem); border: 0; background: radial-gradient(ellipse at 88% 4%,rgba(93,150,171,.24),transparent 27%),linear-gradient(130deg,#dfeaf0,#f5f8f9 64%,#eaf1f4); }
.portfolio-directory .directory-shell { width: min(100% - 3rem,1240px); }
.portfolio-directory .directory-heading { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.7fr); align-items: end; gap: clamp(1.5rem,5vw,5rem); padding: clamp(1.5rem,4vw,3rem); border: 1px solid rgba(188,205,214,.86); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-card); text-align: left; }
.portfolio-directory .directory-hero .directory-shell { display: block; text-align: left; }
body.portfolio-directory .directory-heading { text-align: left; }
.portfolio-directory .directory-heading-main, .portfolio-directory .directory-heading-side { min-width: 0; }
.portfolio-directory .directory-heading .directory-kicker { margin: 0 0 .8rem; font-size: .94rem; letter-spacing: .14em; }
.portfolio-directory .directory-heading h1 { max-width: 14ch; margin: 0; font-size: clamp(3rem,6vw,5.3rem); line-height: .98; letter-spacing: -.07em; }
.portfolio-directory .directory-intro { max-width: 460px; margin: 0 0 .15rem; font-size: 1.08rem; line-height: 1.7; }
.portfolio-directory .directory-note { display: none; }
.portfolio-directory .directory-content { padding: clamp(2.7rem,5vw,4.5rem) 0 5rem; }
.portfolio-directory .directory-section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.62fr); align-items: end; gap: 2.5rem; margin: 0 0 1.6rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); text-align: left; }
.portfolio-directory .directory-section-head .directory-kicker { margin: 0 0 .55rem; font-size: .82rem; }
.portfolio-directory .directory-section-head h2 { max-width: 23ch; margin: 0; font-size: clamp(1.9rem,3.6vw,2.8rem); line-height: 1.08; }
.portfolio-directory .directory-section-head > p { max-width: 450px; margin: 0; font-size: .95rem; line-height: 1.65; }
.portfolio-directory .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,2.2vw,1.6rem); }
.portfolio-directory .portfolio-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.portfolio-directory .portfolio-card:hover { border-color: #9ab8c5; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.portfolio-directory .portfolio-card-media { background: var(--paper-blue); }
.portfolio-directory .portfolio-card-media img { aspect-ratio: 16 / 9; }
.portfolio-directory .portfolio-card-media-duo img { aspect-ratio: 1.2 / 1; }
.portfolio-directory .portfolio-card-media figcaption { min-height: 0; padding: .7rem .9rem; background: #f7fafb; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.portfolio-directory .portfolio-card-content { padding: clamp(1.15rem,2vw,1.55rem); }
.portfolio-directory .portfolio-card-meta { margin: 0 0 .6rem; color: var(--blue-dark); font-size: .74rem; letter-spacing: .08em; }
.portfolio-directory .portfolio-card h2 { max-width: 28ch; margin: 0 0 .55rem; font-size: clamp(1.25rem,2vw,1.6rem); line-height: 1.2; }
.portfolio-directory .portfolio-card-client { margin: 0 0 .55rem; font-size: .88rem; }
.portfolio-directory .portfolio-card-scope { margin: 0 0 1.15rem; font-size: .92rem; line-height: 1.6; }
.portfolio-directory .portfolio-card-footer { padding-top: .85rem; border-color: #e4ebee; font-size: .78rem; }
.portfolio-directory .portfolio-card-link { color: var(--blue-dark); }
.case-page { background: var(--paper); color: var(--ink); }
.case-page .case-hero { position: relative; isolation: isolate; padding: calc(var(--header-height,78px) + clamp(1.5rem,4vw,3rem)) 0 clamp(2.2rem,5vw,4rem); border: 0; background: radial-gradient(ellipse at 88% 5%,rgba(93,150,171,.22),transparent 28%),linear-gradient(130deg,#e1edf1,#f5f8f9 68%); }
.case-page .case-container { width: min(100% - 3rem,1240px); padding: clamp(1.25rem,3vw,2.3rem); border: 1px solid rgba(188,205,214,.9); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-card); }
.case-page .case-hero-grid { align-items: center; gap: clamp(1.5rem,4vw,4rem); }
.case-page .case-copy { max-width: 640px; margin: 0; text-align: left; }
.case-page .case-kicker { margin: 0 0 .65rem; font-size: .82rem; }
.case-page .case-title { max-width: 13ch; margin: 0 0 .8rem; font-size: clamp(2.65rem,5vw,4.4rem); line-height: 1.02; }
.case-page .case-intro { max-width: 570px; margin: 0; font-size: 1rem; line-height: 1.7; }
.case-page .case-hero-actions { justify-content: flex-start; margin-top: 1.4rem; }
.case-page .case-photo { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.case-page .case-photo img { aspect-ratio: 16 / 10; }
.case-page .case-photo figcaption { font-size: .74rem; line-height: 1.5; }
.case-page .case-content { padding: clamp(2.7rem,5vw,4.5rem) 0; }
.case-page .case-section-heading { max-width: 760px; margin: 0 0 1.4rem; text-align: left; }
.case-page .case-section-heading .case-kicker { margin: 0 0 .55rem; }
.case-page .case-section-heading h2 { margin: 0; font-size: clamp(1.9rem,3.5vw,2.7rem); }
.case-page .case-facts { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.case-page .case-description { gap: clamp(1.5rem,5vw,5rem); }
.case-page .case-disclosure { padding: .7rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
.case-page .case-cta { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }

/* Quote form, legal page and footer */
.quote-page { padding-top: calc(var(--header-height,78px) + clamp(1.5rem,4vw,3rem)); }
.quote-page-heading { max-width: none; margin: 0 0 1.4rem; padding: clamp(1.25rem,3vw,2.2rem); border: 1px solid rgba(188,205,214,.88); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-card); text-align: left; }
.quote-page-heading .editorial-eyebrow { margin: 0 0 .65rem; }
.quote-page-heading h1 { max-width: 18ch; margin: 0 0 .65rem; font-size: clamp(2.6rem,4.8vw,4.15rem); line-height: 1.03; }
.quote-page-heading > p:last-child { max-width: 650px; margin: 0; font-size: 1rem; line-height: 1.65; }
.quote-page-grid { gap: 1.1rem; }
.quote-contact-card, .quote-form-card { padding: clamp(1.1rem,2.5vw,1.7rem); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.quote-form-card .form-label, .quote-form-card label { color: var(--ink); font-weight: 650; }
.quote-form-card .form-input, .quote-form-card .form-select, .quote-form-card .form-textarea,
input.form-input, select.form-select, textarea.form-textarea { border: 1px solid #b5c7d0; border-radius: 8px; background: #fff; color: var(--ink); }
.quote-form-card .form-input::placeholder, .quote-form-card .form-textarea::placeholder { color: #71838d; }
.quote-form-card .form-select:focus, .quote-form-card .form-input:focus, .quote-form-card .form-textarea:focus { border-color: var(--blue); outline: 3px solid rgba(40,113,139,.15); }
.legal-page-intro { text-align: left; }
.legal-page-intro .editorial-eyebrow { margin-left: 0; }
.legal-page-intro h1 { max-width: 20ch; margin: 0 0 .75rem; }
.legal-page-intro .section-desc { max-width: 680px; margin: 0; }
.footer { border-top: 0; background: #122b38; color: rgba(255,255,255,.82); }
.footer .logo-title, .footer h4 { color: #fff; }
.footer .logo-subtitle, .footer p, .footer a, .footer-bottom { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer .logo-symbol { background: #fff; }
.footer .logo-symbol svg { fill: var(--ink); }
.footer-bottom { border-color: rgba(255,255,255,.16); }

@media (max-width: 980px) {
  .home-value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 2rem,1320px); padding-inline: 0; }
  .section { padding: 3rem 0; }
  .home-section-heading, .home-project-heading { grid-template-columns: 1fr; gap: .65rem; }
  .home-section-heading > p { justify-self: start; }
  .home-hero { min-height: min(760px,calc(100svh - 72px)); }
  .home-hero-image { background-image: linear-gradient(90deg,rgba(10,28,38,.9),rgba(10,28,38,.54)),url('../assets/images/optimized/hero-home-architecture.jpg'); background-position: center,62% center; }
  .home-hero-inner { align-items: flex-start; padding-top: clamp(6rem,15vw,8rem); padding-bottom: 6rem; }
  .home-hero-copy h1 { max-width: 10ch; font-size: clamp(2.5rem,9vw,3.6rem); }
  .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .home-hero-actions .btn { width: 100%; }
  .home-hero-caption { flex-wrap: wrap; gap: .4rem 1rem; font-size: .68rem; }
  .home-hero-caption span:last-child { text-align: right; }
  .home-value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-service-copy { min-height: 0; padding: .95rem; }
  .home-service-title { font-size: 1.05rem; }
  .home-service-description { font-size: .82rem; }
  .home-project-grid { grid-template-columns: 1fr; }
  .home-project-card { min-height: 0; }
  .home-project-copy { min-height: 152px; }
  .home-projects-footer .home-projects-all { width: min(100%,360px); }
  .quote-cta-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote-contact-methods { grid-template-columns: 1fr; }
  .service-page-heading .container, .company-intro-grid, .quote-page-heading, .case-page .case-container, .pack-hero { padding: 1rem; }
  .service-page-heading { padding-top: calc(var(--header-height,78px) + 1rem); }
  .service-page-title, .page-intro h1 { font-size: clamp(2.4rem,10vw,3.6rem); }
  .service-page-heading .hero-ctas { align-items: stretch; flex-direction: column; }
  .service-page-heading .hero-ctas .btn { width: 100%; }
  .service-detail-grid { grid-template-columns: 1fr !important; padding: 1rem; }
  .service-media-box img { height: clamp(220px,65vw,360px); }
  .service-scope-grid, .service-process-list, .pack-process-grid, .pack-scope-grid { grid-template-columns: 1fr; }
  .methodology-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company-intro-grid { grid-template-columns: 1fr; }
  .company-intro-panel { min-height: 245px; }
  .company-capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company-process-grid { grid-template-columns: 1fr; }
  .company-coverage-layout { grid-template-columns: 1fr; }
  .company-coverage-layout > .btn { justify-self: stretch; }
  .portfolio-directory .directory-shell, .case-page .case-container { width: min(100% - 2rem,1240px); }
  .portfolio-directory .directory-heading, .portfolio-directory .directory-section-head { grid-template-columns: 1fr; align-items: start; gap: .8rem; }
  .portfolio-directory .directory-heading h1 { font-size: clamp(2.7rem,11vw,4rem); }
  .portfolio-directory .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-directory .portfolio-card-content { padding: 1rem; }
  .case-page .case-hero { padding-top: calc(var(--header-height,78px) + 1rem); }
  .case-page .case-hero-grid { grid-template-columns: 1fr; }
  .case-page .case-copy { max-width: none; }
  .case-page .case-title { font-size: clamp(2.5rem,10vw,3.65rem); }
  .case-page .case-hero-actions { align-items: stretch; flex-direction: column; }
  .case-page .case-hero-actions .btn { width: 100%; }
  .case-page .case-facts { grid-template-columns: 1fr; }
  .case-page .case-fact + .case-fact { border-top: 1px solid var(--line); border-left: 0; }
  .case-page .case-description { grid-template-columns: 1fr; gap: .8rem; }
  .case-page .case-cta { align-items: flex-start; flex-direction: column; }
  .case-page .case-cta-actions { width: 100%; flex-direction: column; }
  .case-page .case-cta-actions .btn { width: 100%; }
  .pack-page { padding-top: calc(var(--header-height,78px) + 1rem); }
  .pack-hero { grid-template-columns: 1fr; }
  .pack-hero-copy h1 { font-size: clamp(2.45rem,10vw,3.6rem); }
  .pack-hero-figure img { min-height: 0; aspect-ratio: 16 / 10; }
  .pack-hero-actions { align-items: stretch; flex-direction: column; }
  .pack-hero-actions .btn { width: 100%; }
  .quote-page { padding-top: calc(var(--header-height,78px) + 1rem); }
  .quote-page-grid { grid-template-columns: 1fr; }
  .quote-form-card { order: 0; }
  .quote-contact-card { order: 1; }
  .section-header { gap: .5rem; margin-bottom: 1.4rem; }
  .section-header .section-title { font-size: clamp(1.8rem,8vw,2.55rem); }
}
@media (max-width: 460px) {
  .home-value-grid, .home-service-grid, .company-capability-grid, .methodology-track { grid-template-columns: 1fr; }
  .home-value-card { min-height: 0; }
  .home-service-image { aspect-ratio: 1.8 / 1; }
  .home-hero-caption { flex-direction: column; }
  .home-hero-caption span:last-child { text-align: left; }
  .service-index-grid { grid-template-columns: 1fr; }
  .service-index-card { min-height: 0; }
  .company-sector-grid, .company-location-cards { grid-template-columns: 1fr; }
  .company-process-card, .pack-process-card, .pack-scope-card { grid-template-columns: 2.2rem minmax(0,1fr); gap: .7rem; padding: 1rem; }
  .quote-form-card .form-row { grid-template-columns: 1fr; }
  .quote-form-card .form-submit-row { display: grid; grid-template-columns: 1fr; }
  .quote-form-card .form-submit-row .btn { width: 100%; }
  .portfolio-directory .portfolio-card-footer { align-items: flex-start; flex-direction: column; }
  .portfolio-directory .portfolio-card-link { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Engineering service hero: balanced text and photo, without decorative circles. */
.service-page-heading { display: block; background: #edf3f6; }
.service-page-heading::after { display: none; content: none; }
.service-page-heading .container { width: min(100% - 3rem,1320px); }
.service-page-hero-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(320px,.96fr); align-items: center; gap: clamp(2rem,5vw,4.5rem); }
.service-page-heading-copy { max-width: 690px; margin: 0; text-align: left; }
.service-page-visual { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(188,205,214,.88); border-radius: 18px; background: var(--blue-pale); box-shadow: var(--shadow-card); }
.service-page-visual img { display: block; width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; object-position: 65% center; }

/* Contrast and spacing corrections shared by the site footer and dark panels. */
.footer .footer-col h2 { margin: 0 0 1rem; padding: 0; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.footer .footer-col h2::after { display: none; }
.footer .footer-logo { gap: 1rem; margin-bottom: 1.35rem; }
.footer .footer-logo .logo-text { gap: .28rem; }
.footer .footer-logo .logo-subtitle { line-height: 1.5; }
.footer .footer-lead { max-width: 35ch; margin: 0 0 1rem; color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.65; }
.footer .footer-company-details { color: rgba(255,255,255,.65); font-size: .8rem; line-height: 1.65; }
.footer .footer-links { gap: .62rem; }
.quote-cta-card .quote-direct-link { color: rgba(255,255,255,.9); text-underline-offset: 3px; }
.quote-cta-card .quote-direct-link:hover, .quote-cta-card .quote-direct-link:focus-visible { color: #fff; }
.quote-contact-card { color: var(--ink); }
.quote-contact-card h2 { color: var(--ink); }
.quote-contact-card > p:not(.quote-contact-kicker):not(.quote-privacy-note) { color: var(--muted); }
.quote-contact-card .quote-contact-kicker { color: var(--blue-dark) !important; }
.quote-contact-card .quote-privacy-note { color: var(--muted); }
.quote-contact-card .quote-contact-link-card { border-color: var(--line); background: #f5f8f9; color: var(--ink) !important; }
.quote-contact-card .quote-contact-link-card span { color: var(--muted); }
.quote-contact-card .quote-contact-link-card strong { color: var(--blue-dark); }
.quote-contact-card .quote-contact-link-card small { color: var(--muted); }
.quote-contact-card .quote-contact-link-card:hover, .quote-contact-card .quote-contact-link-card:focus-visible { border-color: #a9c1cb; background: #fff; }

/* The pack summary is dark, so keep its form labels and section heading readable. */
.pack-configurator .estimator-summary-card .pack-form-field > span,
.pack-configurator .estimator-summary-card .pack-summary-subheading { color: #fff; }
.pack-configurator .estimator-summary-card .pack-form-field > input,
.pack-configurator .estimator-summary-card .pack-form-field > textarea { border-color: #c4d1d7; background: #fff; color: var(--ink); }

/* FAQ split layout with a compact, single-open accordion. */
.pack-faq-layout { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); align-items: start; gap: clamp(2rem,6vw,6rem); }
.pack-faq-intro { max-width: 440px; margin: 0; }
.pack-faq-intro h2 { margin: 0 0 .65rem; }
.pack-faq-intro > p:last-child { max-width: 35ch; margin: 0; color: var(--muted); }
.pack-faq-list { border-top: 1px solid var(--line); }
.pack-faq-item { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.pack-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--ink); font-size: .98rem; font-weight: 650; line-height: 1.45; cursor: pointer; list-style: none; }
.pack-faq-item summary::-webkit-details-marker { display: none; }
.pack-faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--blue-dark); font-size: 1.3rem; font-weight: 400; }
.pack-faq-item[open] summary::after { content: "−"; }
.pack-faq-item > p { max-width: 62ch; margin: -.1rem 2rem 1rem 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
@media (max-width: 760px) {
  .service-page-hero-grid, .pack-faq-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-page-visual { max-width: 620px; }
  .service-page-visual img { aspect-ratio: 16 / 10; }
  .pack-faq-intro { max-width: 620px; }
  .footer .footer-logo { margin-bottom: 1rem; }
}

/* Page introductions read as open headers, not cards. */
.section { padding: clamp(2.35rem,3.5vw,3.5rem) 0; }
.service-page-heading { padding: calc(var(--header-height,78px) + 1.35rem) 0 1.4rem; }
.service-page-heading .container { padding: 0 clamp(0rem,2vw,1.25rem); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.service-page-heading-copy { max-width: 780px; }
.service-page-title { max-width: 16ch; font-size: clamp(2.45rem,4.6vw,3.9rem); line-height: 1.06; }
.service-page-intro { max-width: 660px; }
.company-intro-page { padding: calc(var(--header-height,78px) + 1.7rem) 0 1.6rem; background: #edf3f6; }
.company-intro-grid { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.company-intro-copy { max-width: 850px; padding: 0; }
.company-intro-copy h1 { max-width: 16ch; font-size: clamp(2.45rem,4.5vw,3.85rem); line-height: 1.06; }
.company-intro-copy > p:not(.editorial-eyebrow) { margin-bottom: 1rem; }
.company-intro-panel { display: none; }
.pack-page { padding: calc(var(--header-height,78px) + 1.3rem) 0 .75rem; background: #edf3f6; }
.pack-hero { margin-bottom: 1.5rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pack-hero-copy h1 { max-width: 14ch; font-size: clamp(2.4rem,4.5vw,3.8rem); line-height: 1.06; }
.pack-hero-figure { border: 0; border-radius: 16px; box-shadow: var(--shadow-soft); }
.pack-scope, .pack-process, .pack-configurator, .pack-faq { padding-block: clamp(2rem,3.5vw,3rem); }
.portfolio-directory .directory-hero { padding: calc(var(--header-height,78px) + 1.4rem) 0 1.4rem; background: #edf3f6; }
.portfolio-directory .directory-heading { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(240px,.72fr); align-items: center; gap: clamp(1.5rem,4vw,3.5rem); width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.portfolio-directory .directory-heading h1 { max-width: 16ch; font-size: clamp(2.5rem,4.8vw,4.1rem); line-height: 1.04; }
.portfolio-directory .directory-intro { max-width: 46ch; margin: 0; font-size: 1rem; }
.portfolio-directory .directory-heading .directory-kicker { margin-bottom: .55rem; }
.portfolio-directory .directory-content { padding: 1.6rem 0 3.25rem; }
.home-service-section .home-section-heading { display: block; max-width: 790px; margin-bottom: 1.5rem; }
.home-service-section .home-section-heading > p { max-width: 650px; margin: .55rem 0 0; justify-self: start; }

/* Keep Casa en el Sur's live-summary heading and privacy consent legible. */
.pack-configurator .estimator-summary-card .pack-summary-header { border-color: rgba(255,255,255,.2); border-radius: 0; background: transparent; box-shadow: none; color: #fff; }
.pack-configurator .estimator-summary-card .pack-summary-header h3,
.pack-configurator .estimator-summary-card .pack-summary-header .pack-summary-label,
.pack-configurator .estimator-summary-card .pack-summary-header .summary-total-points { color: #fff; }
.pack-configurator .estimator-summary-card .legal-checkbox-label { margin: .8rem 0 1.15rem; color: rgba(255,255,255,.9); line-height: 1.55; }
.pack-configurator .estimator-summary-card .legal-checkbox-label a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pack-configurator .estimator-summary-card .legal-checkbox-label input[type="checkbox"] { accent-color: #8fc1d0; }

/* Align the FAQ introduction to the questions and keep its description readable. */
.pack-faq-layout { align-items: center; }
.pack-faq-intro > p:last-child { font-size: 1rem; line-height: 1.65; }

@media (max-width: 760px) {
  .section { padding: 2.15rem 0; }
  .service-page-heading { padding: calc(var(--header-height,68px) + 1rem) 0 1.15rem; }
  .service-page-heading .container { padding: 0 1rem; }
  .company-intro-page { padding: calc(var(--header-height,68px) + 1rem) 0 1.2rem; }
  .company-intro-copy h1 { font-size: clamp(2.2rem,9vw,3.35rem); }
  .pack-page { padding: calc(var(--header-height,68px) + 1rem) 0 .5rem; }
  .pack-hero { margin-bottom: 1rem; }
  .pack-scope, .pack-process, .pack-configurator, .pack-faq { padding-block: 1.8rem; }
  .portfolio-directory .directory-hero { padding: calc(var(--header-height,68px) + 1rem) 0 1rem; }
  .portfolio-directory .directory-heading { grid-template-columns: 1fr; gap: .65rem; }
  .portfolio-directory .directory-heading h1 { font-size: clamp(2.3rem,9vw,3.4rem); }
  .portfolio-directory .directory-content { padding: 1.2rem 0 2.5rem; }
}

/* Service introductions share a full-width photograph with a left-to-right contrast gradient. */
.service-page-heading.service-hero-electricity,
.service-page-heading.service-hero-structures,
.service-page-heading.service-hero-topography {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: #142a36;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.service-page-heading.service-hero-electricity { background-image: linear-gradient(90deg,rgba(13,31,42,.86) 0%,rgba(13,31,42,.62) 48%,rgba(13,31,42,.1) 100%),url('../assets/images/optimized/header-electricity.jpg'); }
.service-page-heading.service-hero-structures { background-image: linear-gradient(90deg,rgba(13,31,42,.78) 0%,rgba(13,31,42,.56) 48%,rgba(13,31,42,.08) 100%),url('../assets/images/optimized/header-structures.jpg'); }
.service-page-heading.service-hero-topography { background-image: linear-gradient(90deg,rgba(13,31,42,.76) 0%,rgba(13,31,42,.53) 48%,rgba(13,31,42,.08) 100%),url('../assets/images/optimized/header-topography.jpg'); }
.service-page-heading .container { position: relative; z-index: 1; }
.service-page-heading .quote-breadcrumbs,
.service-page-heading .quote-breadcrumbs a { color: rgba(255,255,255,.82); }
.service-page-heading .quote-breadcrumbs a:hover,
.service-page-heading .quote-breadcrumbs a:focus-visible { color: #fff; }
.service-page-heading .editorial-eyebrow,
.service-page-heading .service-page-title { color: #fff; }
.service-page-heading .service-page-intro { color: rgba(255,255,255,.88); }
.service-page-heading .service-page-hero-grid { display: block; }
.service-page-heading .btn-primary { border-color: #fff; background: #fff; color: var(--ink) !important; }
.service-page-heading .btn-primary:hover,
.service-page-heading .btn-primary:focus-visible { border-color: #e2edf1; background: #e2edf1; color: var(--ink) !important; }
.service-page-heading .btn-secondary { border-color: rgba(255,255,255,.72); background: rgba(15,35,47,.22); color: #fff !important; }
.service-page-heading .btn-secondary:hover,
.service-page-heading .btn-secondary:focus-visible { border-color: #fff; background: rgba(255,255,255,.13); color: #fff !important; }

/* The southern-home service uses the same full-bleed treatment as the other specialties. */
.pack-hero-photo {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100vw;
  min-height: 390px;
  margin: 1rem 0 1.4rem calc(50% - 50vw);
  padding: clamp(2rem,5vw,4.2rem) 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #142a36;
  background-image: linear-gradient(90deg,rgba(13,31,42,.79) 0%,rgba(13,31,42,.56) 48%,rgba(13,31,42,.06) 100%),url('../assets/images/optimized/header-casas-sur.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
}
.pack-hero-inner { display: flex; width: min(100% - 3rem,1320px); min-height: 300px; align-items: center; margin: 0 auto; padding-inline: clamp(0rem,2vw,1.25rem); }
.pack-hero-photo .pack-hero-copy { max-width: 680px; }
.pack-hero-photo .pack-kicker,
.pack-hero-photo .pack-hero-copy h1 { color: #fff; }
.pack-hero-photo .pack-hero-copy .section-desc,
.pack-hero-photo .pack-coverage { color: rgba(255,255,255,.88); }
.pack-hero-photo .btn-primary { border-color: #fff; background: #fff; color: var(--ink) !important; }
.pack-hero-photo .btn-secondary { border-color: rgba(255,255,255,.72); background: rgba(15,35,47,.22); color: #fff !important; }
.pack-hero-photo .btn-secondary:hover,
.pack-hero-photo .btn-secondary:focus-visible { border-color: #fff; background: rgba(255,255,255,.13); color: #fff !important; }

/* Keep the coverage note directly below the home hero actions. */
.home-hero-caption { position: static; display: block; width: fit-content; margin: 1rem 0 0; color: rgba(255,255,255,.88); font-size: .94rem; line-height: 1.5; }

/* The case title, kicker and facts share the same left edge. */
.case-page .case-container .case-section-heading { margin-inline: 0; text-align: left; }

/* Project index: brand-led cards; project photos remain inside their detail pages. */
.portfolio-directory .portfolio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.portfolio-directory .portfolio-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: clamp(1.1rem,2vw,1.45rem);
  border: 1px solid #d7e1e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(29,43,54,.055);
  transition: border-color 180ms ease,transform 180ms ease,box-shadow 180ms ease;
}
.portfolio-directory .portfolio-card:hover { border-color: #aec3cd; box-shadow: 0 14px 28px rgba(29,43,54,.1); transform: translateY(-2px); }
.portfolio-card-brand-row { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: 1.05rem; }
.portfolio-directory .portfolio-card-meta { margin: 0; color: #637782; font-size: .66rem; font-weight: 700; letter-spacing: .07em; line-height: 1.35; text-align: right; text-transform: uppercase; }
.portfolio-card-mark { display: flex; min-width: 58px; min-height: 52px; align-items: center; justify-content: center; padding: .35rem .5rem; border: 1px solid #d7e1e7; border-radius: 9px; background: #f5f8f9; color: var(--ink); }
.portfolio-mark-mut { color: #203b4a; font-size: 1.1rem; font-weight: 850; letter-spacing: .08em; }
.portfolio-mark-hospitality { flex-direction: row; gap: .4rem; border-color: transparent; background: transparent; }
.portfolio-mark-hospitality b { font-family: Georgia,serif; font-size: 2rem; font-weight: 500; line-height: 1; }
.portfolio-mark-hospitality i { max-width: 92px; color: #435b66; font-size: .48rem; font-style: normal; font-weight: 750; letter-spacing: .07em; line-height: 1.15; }
.portfolio-mark-udd,.portfolio-mark-clinic,.portfolio-mark-steel,.portfolio-mark-cad { flex-direction: column; align-items: flex-start; gap: 0; }
.portfolio-mark-udd b,.portfolio-mark-clinic b,.portfolio-mark-steel b,.portfolio-mark-cad b { font-size: 1.12rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.portfolio-mark-udd small,.portfolio-mark-clinic small,.portfolio-mark-steel small,.portfolio-mark-cad small { margin-top: .2rem; color: #5c707a; font-size: .42rem; font-weight: 750; letter-spacing: .04em; line-height: 1.15; }
.portfolio-mark-clinic b { color: #347c91; font-size: 1.7rem; }
.portfolio-mark-cad { border-color: #c9d9e0; background: #edf4f6; color: #1d4964; }
.portfolio-directory .portfolio-card-content { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 0; }
.portfolio-directory .portfolio-card h2 { max-width: 24ch; margin: 0 0 .5rem; font-size: clamp(1.14rem,1.5vw,1.35rem); line-height: 1.25; }
.portfolio-directory .portfolio-card-scope { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.portfolio-directory .portfolio-card-link { display: inline-flex; width: fit-content; min-height: 42px; align-items: center; gap: .55rem; margin-top: auto; padding: .55rem .85rem; border: 1px solid var(--blue-dark); border-radius: 8px; background: var(--blue-dark); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.portfolio-directory .portfolio-card-link:hover,.portfolio-directory .portfolio-card-link:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Four scope cards and four work stages fit one desktop row, then reflow. */
.pack-scope-grid,.pack-process-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pack-scope-card,.pack-process-card { min-width: 0; min-height: 190px; padding: 1rem; }
.pack-faq-layout { gap: clamp(1rem,2.2vw,2rem); }

/* Navigation states and a clear chevron for the Services menu. */
.primary-nav-link { position: relative; padding: .7rem .1rem; color: #435c68; transition: color 160ms ease; }
.primary-nav-link::before { position: absolute; right: .08rem; bottom: .22rem; left: .08rem; height: 2px; background: var(--blue); content: ""; transform: scaleX(0); transform-origin: left center; transition: transform 180ms ease; }
.primary-nav-link:hover,.primary-nav-link:focus-visible,.primary-nav-link.active-link,.primary-services[open] > summary { color: var(--ink); }
.primary-nav-link:hover::before,.primary-nav-link:focus-visible::before,.primary-nav-link.active-link::before,.primary-services[open] > summary::before,.primary-services.current-page > summary::before { transform: scaleX(1); }
.primary-services > summary::after { display: block; width: 7px; height: 7px; margin: -3px 1px 0 .1rem; border: 0 solid currentColor; border-right-width: 1.7px; border-bottom-width: 1.7px; color: var(--blue); content: ""; transform: rotate(45deg); transition: transform 160ms ease; }
.primary-services[open] > summary::after { transform: rotate(225deg); }
.primary-services-menu a { border-left: 2px solid transparent; transition: background 150ms ease,border-color 150ms ease,color 150ms ease; }
.primary-services-menu a:hover,.primary-services-menu a:focus-visible,.primary-services-menu a.active-link { border-left-color: var(--blue); background: #eef4f6; color: var(--ink); }
.offcanvas-link:hover,.offcanvas-link:focus-visible,.offcanvas-link.active-link { border-radius: 8px; background: #eef4f6; color: var(--blue-dark); }
.offcanvas-link.active-link { border-left: 3px solid var(--blue); padding-left: .65rem; }
.offcanvas-subnav a.active-link { color: var(--blue-dark); font-weight: 750; }

/* Featured service action in the Services menus. */
.primary-services-menu a.service-featured-link,
.offcanvas-subnav a.service-featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .4rem .75rem .35rem;
  padding: .75rem .9rem;
  border: 1px solid var(--blue-dark);
  border-radius: 9px;
  background: var(--blue-dark);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.primary-services-menu a.service-featured-link::after,
.offcanvas-subnav a.service-featured-link::after { content: "→"; font-size: 1.05em; line-height: 1; }
.primary-services-menu a.service-featured-link:hover,
.primary-services-menu a.service-featured-link:focus-visible,
.offcanvas-subnav a.service-featured-link:hover,
.offcanvas-subnav a.service-featured-link:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff !important;
  transform: translateY(-1px);
}
.primary-services-menu a.service-featured-link:focus-visible,
.offcanvas-subnav a.service-featured-link:focus-visible { outline: 3px solid #4d9bb5; outline-offset: 2px; }
.offcanvas-subnav a.service-featured-link { margin: .45rem .25rem .25rem 0; }

/* Persistent WhatsApp contact action. */
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 2200;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(12, 60, 37, .28);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.floating-whatsapp svg { display: block; width: 31px; height: 31px; color: #fff; fill: #fff; }
.floating-whatsapp:hover { background: #1FBD5A; box-shadow: 0 11px 28px rgba(12, 60, 37, .34); transform: translateY(-3px); }
.floating-whatsapp:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.floating-whatsapp::after {
  position: absolute;
  right: calc(100% + .7rem);
  padding: .55rem .75rem;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  content: "Escríbenos por WhatsApp";
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(.25rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.floating-whatsapp:hover::after, .floating-whatsapp:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(0); }
@media (max-width: 600px) {
  .floating-whatsapp { width: 56px; height: 56px; }
  .floating-whatsapp svg { width: 29px; height: 29px; }
  .floating-whatsapp::after { display: none; }
}

@media (max-width: 1050px) {
  .portfolio-directory .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pack-scope-grid,.pack-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .service-page-heading.service-hero-electricity,
  .service-page-heading.service-hero-structures,
  .service-page-heading.service-hero-topography,
  .pack-hero-photo { background-image: linear-gradient(90deg,rgba(13,31,42,.93),rgba(13,31,42,.72)),var(--service-photo); }
  .service-page-heading.service-hero-electricity { --service-photo: url('../assets/images/optimized/header-electricity.jpg'); }
  .service-page-heading.service-hero-structures { --service-photo: url('../assets/images/optimized/header-structures.jpg'); }
  .service-page-heading.service-hero-topography { --service-photo: url('../assets/images/optimized/header-topography.jpg'); }
  .pack-hero-photo { --service-photo: url('../assets/images/optimized/header-casas-sur.jpg'); width: 100vw; min-height: 0; margin: 0 0 0 calc(50% - 50vw); padding-block: 1.6rem; }
  .pack-hero-inner { width: min(100% - 2rem,1320px); min-height: 0; padding: 0; }
  .portfolio-directory .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .pack-scope-grid,.pack-process-grid,.portfolio-directory .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-directory .portfolio-card { min-height: 0; }
  .portfolio-directory .portfolio-card h2 { font-size: 1.25rem; }
  .pack-scope-card,.pack-process-card { min-height: 0; }
}

/* One shared photographic page header; only the service-specific image changes. */
.photo-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: #142a36;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo-page-hero .container,
.photo-page-hero .directory-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
  padding-inline: 0;
}
.photo-page-hero :is(.page-breadcrumbs, .quote-breadcrumbs) {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
}
.photo-page-hero :is(.page-breadcrumbs, .quote-breadcrumbs) a { color: #fff; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 3px; }
.photo-page-hero :is(.page-breadcrumbs, .quote-breadcrumbs) a:hover,
.photo-page-hero :is(.page-breadcrumbs, .quote-breadcrumbs) a:focus-visible { color: #d8edf4; }
.photo-page-hero .editorial-eyebrow,
.photo-page-hero .directory-kicker,
.photo-page-hero .pack-kicker { color: #c4e0e9; }
.photo-page-hero h1,
.photo-page-hero .service-page-title,
.photo-page-hero .directory-heading h1,
.photo-page-hero .company-intro-copy h1 { color: #fff; }
.photo-page-hero .service-page-intro,
.photo-page-hero .directory-intro,
.photo-page-hero .company-intro-copy > p:not(.editorial-eyebrow),
.photo-page-hero .quote-page-heading > p:not(.editorial-eyebrow),
.photo-page-hero .service-index-heading > p:not(.editorial-eyebrow) { color: rgba(255,255,255,.88); }
.photo-page-hero .btn-primary { border-color: #fff; background: #fff; color: #1d2b36 !important; }
.photo-page-hero .btn-primary:hover,
.photo-page-hero .btn-primary:focus-visible { border-color: #d8e8ee; background: #d8e8ee; color: #1d2b36 !important; }

.service-index-hero {
  min-height: 360px;
  padding: calc(var(--header-height,78px) + 2rem) 0 clamp(2rem,4.5vw,3.6rem);
  background-image: linear-gradient(90deg,rgba(13,31,42,.78) 0%,rgba(13,31,42,.57) 48%,rgba(13,31,42,.08) 100%),url('../assets/images/optimized/header-services.jpg');
}
.service-index-heading { max-width: 800px; text-align: left; }
.service-index-heading .editorial-eyebrow { margin: 0 0 .65rem; }
.service-index-heading h1 { max-width: 16ch; margin: 0 0 .7rem; font-size: clamp(2.45rem,4.6vw,3.9rem); line-height: 1.06; }
.service-index-heading > p:last-child { max-width: 640px; margin: 0; font-size: 1rem; line-height: 1.65; }
.service-index-page { padding-top: clamp(2rem,4vw,3rem); }

.company-intro-page.photo-page-hero {
  display: flex;
  min-height: 400px;
  align-items: center;
  padding: calc(var(--header-height,78px) + 2rem) 0 clamp(2.2rem,4vw,3rem);
  background-image: linear-gradient(90deg,rgba(13,31,42,.84) 0%,rgba(13,31,42,.59) 50%,rgba(13,31,42,.08) 100%),url('../assets/images/optimized/header-nosotros.jpg');
}
.company-intro-page.photo-page-hero .company-intro-grid { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.company-intro-page.photo-page-hero .company-intro-copy { max-width: 810px; }
.company-intro-page.photo-page-hero .company-intro-copy > p:not(.editorial-eyebrow) { max-width: 600px; }
.company-intro-page.photo-page-hero .company-intro-copy .btn-primary { margin-top: .2rem; }

.portfolio-directory .directory-hero.photo-page-hero {
  display: flex;
  min-height: 370px;
  align-items: center;
  padding: calc(var(--header-height,78px) + 2rem) 0 2.6rem;
  border: 0;
  background-image: none;
}
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-slides { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-slide { position: absolute; display: block; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .7s ease; }
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-slide.is-active { opacity: 1; }
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,rgba(13,31,42,.86) 0%,rgba(13,31,42,.72) 50%,rgba(13,31,42,.44) 100%); pointer-events: none; }
.portfolio-directory .directory-hero.photo-page-hero .directory-shell { z-index: 2; text-align: left; }
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-progress { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 4px; overflow: hidden; background: rgba(255,255,255,.32); }
.portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: #1683d8; }
@media (prefers-reduced-motion: reduce) {
  .portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-slide { transition: none; }
}
.portfolio-directory .directory-hero.photo-page-hero .directory-heading { display: grid; width: 100%; grid-template-columns: minmax(0,1.1fr) minmax(240px,.72fr); align-items: end; gap: clamp(1.5rem,4vw,3.5rem); margin: 0; text-align: left; }
.portfolio-directory .directory-hero.photo-page-hero .directory-heading h1 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(2.5rem,4.8vw,4.1rem); line-height: 1.04; }
.portfolio-directory .directory-hero.photo-page-hero .directory-intro { max-width: 46ch; margin: 0; color: rgba(255,255,255,.88); font-size: 1rem; }
.portfolio-directory .directory-hero.photo-page-hero .directory-kicker { margin: 0 0 .6rem; color: #c4e0e9; }
.portfolio-directory .directory-content { padding-top: clamp(2rem,3.5vw,3rem); }

.quote-page-hero {
  min-height: 340px;
  padding: calc(var(--header-height,78px) + 2rem) 0 2.5rem;
  background-image: linear-gradient(90deg,rgba(13,31,42,.84) 0%,rgba(13,31,42,.59) 50%,rgba(13,31,42,.1) 100%),url('../assets/images/optimized/header-cotizar-interior.jpg');
}
.quote-page-heading {
  max-width: 780px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.quote-page-heading .editorial-eyebrow { color: #c4e0e9; }
.quote-page-heading h1 { max-width: 16ch; color: #fff; font-size: clamp(2.45rem,4.7vw,3.95rem); line-height: 1.05; }
.quote-page-heading > p:last-child { max-width: 650px; margin: 0; color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.65; }
.quote-page { padding-top: clamp(2rem,3.5vw,3rem); }

.pack-page { padding: 0 0 .75rem; background: #edf3f6; }
.pack-hero-photo {
  min-height: 390px;
  margin: 0 0 1.4rem calc(50% - 50vw);
  padding: calc(var(--header-height,78px) + clamp(1.5rem,3.5vw,2.8rem)) 0 2.2rem;
  background-image: linear-gradient(90deg,rgba(13,31,42,.79) 0%,rgba(13,31,42,.56) 48%,rgba(13,31,42,.06) 100%),url('../assets/images/optimized/header-casas-sur.jpg');
}
.pack-hero-inner { display: flex; width: min(100% - 3rem,1240px); min-height: 300px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; margin: 0 auto; padding: 0; }
.pack-hero-photo .quote-breadcrumbs { align-self: flex-start; }
.pack-hero-photo .pack-hero-copy { max-width: 680px; align-self: flex-start; margin: 0; text-align: left; }
.pack-hero-photo .pack-hero-copy :is(.pack-kicker,h1,p) { margin-right: 0; margin-left: 0; text-align: left; }
.pack-hero-photo .pack-hero-actions { justify-content: flex-start; }
.pack-hero-photo .pack-hero-copy .section-desc,
.pack-hero-photo .pack-coverage { color: rgba(255,255,255,.88); }

/* The top navigation keeps one quote label, independent from the current page. */
.nav-quote { min-width: 132px; white-space: nowrap; }

/* Every final quote panel shares the same deep-blue card and spacing. */
.quote-cta-section { background: var(--ink); }
.quote-cta-section .quote-cta-card { width: 100%; }
.portfolio-directory .quote-cta-section { margin-top: 0; }
.case-page .case-cta-section.quote-cta-section { padding: clamp(2rem,3.5vw,3rem) 0 clamp(2.5rem,5vw,4rem); }
.case-page .case-cta.quote-cta-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.75fr); align-items: center; justify-content: initial; gap: clamp(2rem,5vw,5rem); padding: clamp(1.6rem,4vw,3.1rem); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: linear-gradient(120deg,#24495c,#193544); box-shadow: 0 22px 52px rgba(0,0,0,.14); }
.case-page .case-cta.quote-cta-card h2 { max-width: 15ch; margin: 0 0 .7rem; color: #fff; font-size: clamp(1.8rem,3.4vw,2.65rem); line-height: 1.08; }
.case-page .case-cta.quote-cta-card .case-kicker { margin: 0 0 .7rem; color: #b4d4df; }
.case-page .case-cta.quote-cta-card p:not(.case-kicker) { max-width: 520px; margin: 0; color: rgba(255,255,255,.8); font-size: .94rem; line-height: 1.6; }
.case-page .case-cta.quote-cta-card .case-cta-actions { display: grid; gap: .75rem; }
.case-page .case-cta.quote-cta-card .btn { width: 100%; min-height: 46px; white-space: normal; }

/* Footer headings retain the same clear contrast and breathing room everywhere. */
.footer .footer-col h4 { margin: 0 0 .9rem; color: #fff; font-size: .9rem; font-weight: 750; letter-spacing: .02em; line-height: 1.35; }
.footer .footer-col h4::after { display: none; }
.footer .footer-logo { gap: 1rem; }
.quote-contact-link-card[href^="mailto:"] strong { font-size: .8rem; }

@media (max-width: 760px) {
  .photo-page-hero .container,
  .photo-page-hero .directory-shell { width: min(100% - 2rem,1240px); }
  .service-index-hero,
  .company-intro-page.photo-page-hero,
  .portfolio-directory .directory-hero.photo-page-hero,
  .quote-page-hero { min-height: 0; padding-top: calc(var(--header-height,68px) + 1.35rem); padding-bottom: 1.8rem; background-position: 58% center; }
  .service-index-heading h1,
  .quote-page-heading h1 { font-size: clamp(2.15rem,8.5vw,3.2rem); }
  .portfolio-directory .directory-hero.photo-page-hero .directory-heading { grid-template-columns: 1fr; gap: .65rem; }
  .portfolio-directory .directory-hero.photo-page-hero .directory-heading h1 { font-size: clamp(2.2rem,9vw,3.3rem); }
  .portfolio-directory .directory-hero.photo-page-hero .portfolio-hero-slide { object-position: 66% center; }
  .quote-page { padding-top: 1.8rem; }
  .pack-hero-photo { min-height: 0; padding-top: calc(var(--header-height,68px) + 1.2rem); padding-bottom: 1.6rem; background-position: 60% center; }
  .pack-hero-inner { width: min(100% - 2rem,1240px); min-height: 0; }
  .pack-hero-photo .pack-hero-copy h1 { font-size: clamp(2.15rem,8.5vw,3.2rem); }
  .case-page .case-cta.quote-cta-card { grid-template-columns: 1fr; gap: 1.3rem; }
}


/* Keep the home hero headline compact on desktop and mobile. */
.home-hero-copy h1 { max-width: 14ch; font-size: clamp(2.55rem,5.2vw,4.2rem); line-height: 1.05; }
@media (max-width: 760px) { .home-hero-copy h1 { max-width: 14ch; font-size: clamp(2.15rem,8vw,3.05rem); } }

/* Home: keep the three section intros on one shared two-column rhythm. */
.home-section-heading,
.home-project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 1.8rem;
  text-align: left;
}

.home-section-heading > div,
.home-project-heading > div { min-width: 0; }
.home-section-heading .editorial-eyebrow,
.home-project-heading .editorial-eyebrow { margin: 0 0 .55rem; }
.home-section-heading > p,
.home-project-heading > p:last-child {
  max-width: 440px;
  justify-self: end;
  margin: 0 0 .25rem;
  text-align: left;
}
.home-service-section .home-section-heading { display: grid; max-width: none; }
.home-service-section .home-section-heading > p { max-width: 440px; justify-self: end; margin: 0 0 .25rem; }
.home-service-footer { display: flex; justify-content: center; margin-top: 1.5rem; }

/* The rotating copy stays in a steady space while each phrase is typed. */
.home-hero-copy h1[data-home-rotating-title] { min-height: 2.1em; }
.home-hero-description[data-home-rotating-description] { min-height: 3.4em; }
.home-hero-copy h1[data-home-rotating-title].is-typing::after {
  display: inline-block;
  height: .82em;
  margin-left: .1em;
  border-right: .065em solid rgba(255,255,255,.8);
  content: "";
  vertical-align: -.04em;
  animation: home-typewriter-caret 1s steps(2, start) infinite;
}
@keyframes home-typewriter-caret { to { visibility: hidden; } }

@media (max-width: 760px) {
  .home-section-heading,
  .home-project-heading { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .home-section-heading > p,
  .home-project-heading > p:last-child,
  .home-service-section .home-section-heading > p { justify-self: start; margin: 0; }
  .home-hero-copy h1[data-home-rotating-title] { min-height: 3.05em; }
  .home-hero-description[data-home-rotating-description] { min-height: 5.1em; }
}

/* Give page headers more breathing room around their title and actions. */
.service-page-heading {
  padding-top: calc(var(--header-height, 78px) + clamp(2rem, 4vw, 3rem));
  padding-bottom: clamp(2rem, 3.5vw, 2.8rem);
}
.service-index-hero {
  padding-top: calc(var(--header-height, 78px) + clamp(2.25rem, 4vw, 3rem));
  padding-bottom: clamp(2.5rem, 4.5vw, 3.6rem);
}
.company-intro-page.photo-page-hero {
  padding-top: calc(var(--header-height, 78px) + clamp(2.4rem, 4vw, 3rem));
  padding-bottom: clamp(2.5rem, 4vw, 3.2rem);
}
.portfolio-directory .directory-hero.photo-page-hero {
  padding-top: calc(var(--header-height, 78px) + clamp(2.4rem, 4vw, 3rem));
  padding-bottom: clamp(2.8rem, 4vw, 3.4rem);
}
.quote-page-hero {
  padding-top: calc(var(--header-height, 78px) + clamp(2.4rem, 4vw, 3rem));
  padding-bottom: clamp(2.7rem, 4vw, 3.3rem);
}
.pack-hero-photo {
  padding-top: calc(var(--header-height, 78px) + clamp(2rem, 3.5vw, 2.8rem));
  padding-bottom: clamp(2.5rem, 4vw, 3rem);
}
.case-page .case-hero {
  padding-top: calc(var(--header-height, 78px) + clamp(2rem, 4vw, 3rem));
  padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
}
@media (max-width: 760px) {
  .service-page-heading { padding-top: calc(var(--header-height, 68px) + 1.75rem); padding-bottom: 1.8rem; }
  .service-index-hero,
  .company-intro-page.photo-page-hero,
  .portfolio-directory .directory-hero.photo-page-hero,
  .quote-page-hero { padding-top: calc(var(--header-height, 68px) + 1.8rem); padding-bottom: 2.1rem; }
  .pack-hero-photo { padding-top: calc(var(--header-height, 68px) + 1.7rem); padding-bottom: 2rem; }
  .case-page .case-hero { padding-top: calc(var(--header-height, 68px) + 1.7rem); padding-bottom: 2.4rem; }
}

/* Use the electricity step badge on the metalwork process cards as well. */
.service-structures-page #proceso .service-process-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  margin: 0 0 .2rem;
  border: 0;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 0 5px #fff;
}

/* Topography cards use larger circular numbers as a quick visual index. */
.topography-service-list,
.topography-applications-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.topography-service-item,
.topography-application-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  min-width: 0;
  min-height: 170px;
  padding: 1.2rem;
}
.topography-service-item > .topography-card-index { grid-column: 1; grid-row: 1; }
.topography-service-item > div { grid-column: 2; grid-row: 1; }
.topography-application-item > .topography-card-icon { grid-column: 1; grid-row: 1; }
.topography-application-item > h3 { grid-column: 2; grid-row: 1; }
.topography-application-item > p { grid-column: 2; grid-row: 2; margin-top: -.25rem; }
.topography-card-index,
.topography-card-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  margin: 0;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d4964;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(29,73,100,.1);
}
.topography-card-icon svg { width: 1.2rem; height: 1.2rem; }

/* Keep the number badge response consistent across service pages. */
@media (hover: hover) and (pointer: fine) {
  .methodology-step .step-node,
  .service-structures-page #proceso .service-process-number,
  .topography-service-item .topography-card-index,
  .topography-application-item .topography-card-icon {
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    transform-origin: center;
  }

  .methodology-step:hover .step-node,
  .service-structures-page #proceso .service-process-step:hover .service-process-number,
  .topography-service-item:hover .topography-card-index,
  .topography-application-item:hover .topography-card-icon {
    transform: scale(1.1);
    border-color: #8eb5c5;
    background: linear-gradient(145deg, #d9eaf0, #edf5f7);
    color: #1d4964;
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(54,123,151,.18), 0 7px 18px rgba(29,73,100,.16);
  }
}

@media (max-width: 760px) {
  .topography-service-list,
  .topography-applications-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .topography-service-list,
  .topography-applications-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .methodology-step:hover .step-node,
  .service-structures-page #proceso .service-process-step:hover .service-process-number,
  .topography-service-item:hover .topography-card-index,
  .topography-application-item:hover .topography-card-icon { transform: none; }
}

/* Keep the introductory note with the left-aligned copy in Trabajo topográfico. */
.service-detail-grid .topography-scope-note { margin: 1rem 0 0; text-align: left; }

/* Slightly reduce section heading scale across the site for easier scanning. */
.section-header .section-title,
.home-section-heading h2,
.home-work-grid h2,
.home-project-heading h2,
.quote-cta-copy h2,
.pack-section-heading h2,
.portfolio-directory .directory-section-head h2,
.case-page .case-section-heading h2,
.company-experience-grid .section-title,
.company-coverage-grid .section-title,
.company-coverage-layout > div:first-child .section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
}
.service-info h2,
.service-info h3 { font-size: clamp(1.65rem, 3vw, 2.35rem); }

@media (max-width: 760px) {
  .section-header .section-title,
  .home-section-heading h2,
  .home-work-grid h2,
  .home-project-heading h2,
  .quote-cta-copy h2,
  .pack-section-heading h2,
  .portfolio-directory .directory-section-head h2,
  .case-page .case-section-heading h2,
  .company-experience-grid .section-title,
  .company-coverage-grid .section-title,
  .company-coverage-layout > div:first-child .section-title { font-size: clamp(1.65rem, 7.2vw, 2.3rem); }
  .service-info h2,
  .service-info h3 { font-size: clamp(1.55rem, 6.2vw, 2.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-copy h1[data-home-rotating-title].is-typing::after { animation: none; }
}

/* Align the final quote choices and present WhatsApp as an equal button. */
.quote-cta-card .quote-cta-actions { justify-items: center; }
.quote-cta-card .quote-cta-actions > :is(.btn, .quote-direct-link) {
  width: min(100%, 320px);
  min-height: 48px;
}
.quote-cta-card .quote-direct-link.quote-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  padding: .75rem 1.1rem;
  border: 1px solid #128c4a;
  border-radius: 9px;
  background: #128c4a;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.quote-cta-card .quote-direct-link.quote-whatsapp-button:hover,
.quote-cta-card .quote-direct-link.quote-whatsapp-button:focus-visible {
  border-color: #0d713b;
  background: #0d713b;
  color: #fff;
  transform: translateY(-1px);
}
.quote-whatsapp-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }

/* Metalwork scope, certification and process layout. */
.service-structures-page #alcance .service-detail-grid { margin-bottom: clamp(1.6rem, 3vw, 2.25rem); }
.service-structures-page #alcance .service-scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-structures-page #proceso .service-process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-structures-page .service-process-step { min-width: 0; }
.service-structures-page .service-info-badge {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .55rem;
  margin: 0 0 .8rem;
  padding: .5rem .7rem;
  border: 1px solid #d7e4e9;
  border-radius: 8px;
  background: #eef4f6;
  color: #55707c;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.4;
  text-transform: uppercase;
}
.service-structures-page .service-info-badge strong { color: #254e61; font-size: .76rem; }
.service-certification {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .85rem;
  border: 1px solid #d2e5dc;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff8f3, #fff);
  color: #183f31;
}
.service-certification-seal { display: block; width: 42px; height: 42px; flex: 0 0 42px; fill: none; stroke: #258652; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-certification > span { display: grid; gap: .12rem; }
.service-certification strong { font-size: .84rem; line-height: 1.3; }
.service-certification small { color: #527164; font-size: .75rem; line-height: 1.35; }
.service-structures-page #alcance .service-scope-item { gap: .7rem; }
.service-structures-page #alcance .service-scope-item h3 { margin: 0; }
.service-structures-page #alcance .service-scope-item p { margin: 0; }
.service-scope-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #d0e3ea;
  border-radius: 12px;
  background: linear-gradient(145deg, #edf6f8, #e1eef2);
  color: #2e7893;
}
.service-scope-icon svg { display: block; width: 24px; height: 24px; }

@media (max-width: 760px) {
  .service-structures-page #alcance .service-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-structures-page #proceso .service-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .service-structures-page #alcance .service-scope-grid,
  .service-structures-page #proceso .service-process-list { grid-template-columns: 1fr; }
}

/* Casa en el Sur: clear cards, no divider line under the photo header. */
.pack-page .pack-scope { border-top: 0; }
.pack-page .pack-scope-grid { gap: 1rem; border-top: 0; }
.pack-page .pack-scope-card {
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.pack-page .pack-scope-index {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin: .05rem 0 0;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d4964;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(29,73,100,.1);
}
.pack-page .pack-scope-note {
  display: flex;
  width: fit-content;
  max-width: min(100%, 78ch);
  align-items: flex-start;
  gap: .55rem;
  margin: 1.2rem auto 0;
  padding: .55rem .8rem;
  border: 1px solid #d7e5eb;
  border-radius: 9px;
  background: #f1f6f8;
  color: #536574;
  font-size: .8rem;
  line-height: 1.5;
}
.pack-page .pack-scope-note::before {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  place-items: center;
  margin-top: .05rem;
  border-radius: 50%;
  background: #dceaf0;
  color: #1d4964;
  content: "i";
  font-size: .7rem;
  font-weight: 800;
}
.pack-page .pack-process-card { grid-template-columns: 2.35rem minmax(0, 1fr); gap: 1rem; }
.pack-step-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d4964;
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(29,73,100,.1);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  transform-origin: center;
}
.pack-step-icon svg { display: block; width: 1.15rem; height: 1.15rem; }
.pack-configurator .pack-subheading { margin-bottom: .8rem; }
@media (hover: hover) and (pointer: fine) {
  .pack-page .pack-scope-index { transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; transform-origin: center; }
  .pack-scope-card:hover .pack-scope-index,
  .pack-process-card:hover .pack-step-icon {
    transform: scale(1.1);
    border-color: #8eb5c5;
    background: linear-gradient(145deg, #d9eaf0, #edf5f7);
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(54,123,151,.18), 0 7px 18px rgba(29,73,100,.16);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pack-scope-card:hover .pack-scope-index,
  .pack-process-card:hover .pack-step-icon { transform: none; }
}

/* Projects intro: keep its heading and explanation in one left-aligned column. */
.portfolio-directory .directory-hero.photo-page-hero .directory-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: .55rem;
  text-align: left;
}
.portfolio-directory .directory-hero.photo-page-hero .directory-heading h1,
.portfolio-directory .directory-hero.photo-page-hero .directory-intro {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

/* Home proof cards: give their indices the same responsive badge hover as service steps. */
.home-values-section .home-value-card .home-card-index {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin: 0;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d4964;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(29,73,100,.1);
}
.home-values-section .home-value-card h3 { margin-top: .85rem; }
.quote-contact-methods > :only-child { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) {
  .home-values-section .home-value-card .home-card-index { transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; transform-origin: center; }
  .home-values-section .home-value-card:hover .home-card-index {
    transform: scale(1.1);
    border-color: #8eb5c5;
    background: linear-gradient(145deg, #d9eaf0, #edf5f7);
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(54,123,151,.18), 0 7px 18px rgba(29,73,100,.16);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-values-section .home-value-card:hover .home-card-index { transform: none; }
}

/* Company page: icon-led capabilities, a four-step methodology, and a simple sector list. */
.company-capabilities-section .company-capability-card > .company-capability-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d6580;
}
.company-capabilities-section .company-capability-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.company-method-section .company-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.company-method-section .company-process-card {
  display: flex;
  min-width: 0;
  min-height: 225px;
  flex-direction: column;
  gap: .95rem;
  padding: 1.2rem;
}
.company-method-section .company-process-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  border: 1px solid #d7e5eb;
  border-radius: 50%;
  background: linear-gradient(150deg, #f1f7f9, #e3eef2);
  color: #1d4964;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(29,73,100,.1);
}
.company-method-section .company-process-card h3 { margin: 0 0 .4rem; }
.company-method-section .company-process-card p { margin: 0; font-size: .82rem; line-height: 1.55; }
.company-experience-grid .company-sector-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
}
.company-experience-grid .company-sector-list li {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  gap: .8rem;
  padding: .7rem .15rem;
  border-bottom: 1px solid #d8e1e6;
  color: #304858;
  font-size: .92rem;
  font-weight: 650;
}
.company-experience-grid .company-sector-list li:last-child { border-bottom: 0; }
.company-experience-grid .company-sector-list li > span {
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
}
.company-experience-grid .company-sector-list svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  padding: .24rem;
  border-radius: 50%;
  background: #e7f2ea;
  color: #217547;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}
@media (hover: hover) and (pointer: fine) {
  .company-method-section .company-process-number {
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    transform-origin: center;
  }
  .company-method-section .company-process-card:hover .company-process-number {
    transform: scale(1.1);
    border-color: #8eb5c5;
    background: linear-gradient(145deg, #d9eaf0, #edf5f7);
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(54,123,151,.18), 0 7px 18px rgba(29,73,100,.16);
  }
}
@media (max-width: 1050px) {
  .company-method-section .company-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-method-section .company-process-card { min-height: 185px; }
}
@media (max-width: 560px) {
  .company-method-section .company-process-grid { grid-template-columns: 1fr; }
  .company-method-section .company-process-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .company-method-section .company-process-card:hover .company-process-number { transform: none; }
}

/* Home hero photo carousel. Keep the contrast treatment above the photos and below the copy. */
.home-hero-image {
  z-index: 0;
  isolation: isolate;
  background: #0d1e2a;
  background-image: none;
  transform: none;
}
.home-hero-image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,30,42,.92) 0%, rgba(13,30,42,.78) 42%, rgba(13,30,42,.35) 100%);
  content: "";
  pointer-events: none;
}
.home-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  opacity: 0;
  transition: opacity .85s ease;
}
.home-hero-slide.is-active { opacity: 1; }
.home-hero-inner { z-index: 2; }
@media (max-width: 760px) {
  .home-hero-slide { object-position: 62% center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-slide { transition: none; }
}

/* Mobile reading rhythm: compact the home hero and center heading groups only. */
@media (max-width: 760px) {
  .home-hero { min-height: min(560px, calc(100svh - var(--header-height, 72px))); }
  .home-hero-inner {
    width: min(calc(100% - 2rem), 1320px);
    min-height: inherit;
    align-items: center;
    padding-top: calc(var(--header-height, 72px) + 1.25rem);
    padding-bottom: 2.25rem;
  }
  .home-hero-copy { width: min(100%, 40rem); margin-inline: auto; text-align: center; }
  .home-hero-copy .home-hero-eyebrow { margin: 0 0 .55rem; text-align: center; }
  .home-hero-copy h1 { max-width: 16ch; min-height: 2.35em; margin: 0 auto .65rem; font-size: clamp(2rem, 7.4vw, 2.65rem); line-height: 1.05; text-align: center; }
  .home-hero-copy .home-hero-description { max-width: 52ch; min-height: 3.6em; margin: 0 auto; line-height: 1.55; text-align: center; }
  .home-hero-actions { align-items: center; gap: .65rem; margin-top: 1rem; }
  .home-hero-actions .btn { width: min(100%, 22rem); }
  .home-hero-secondary { text-align: center; }
  .home-hero-caption { position: static; width: auto; max-width: 100%; margin: .65rem auto 0; text-align: center; }

  .section-header,
  .home-section-heading,
  .home-project-heading,
  .pack-section-heading,
  .service-page-heading-copy,
  .page-intro,
  .quote-page-heading,
  .company-intro-copy,
  .company-experience-grid > div:first-child,
  .company-coverage-layout > div:first-child,
  .portfolio-directory .directory-heading,
  .portfolio-directory .directory-section-head,
  .case-page .case-copy,
  .case-page .case-container .case-section-heading,
  .legal-page-intro,
  .service-index-heading,
  .pack-hero-copy,
  .pack-faq-intro,
  .quote-cta-copy {
    align-items: center;
    justify-items: center;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
  .section-header {
    width: 100%;
    gap: .5rem;
    margin-bottom: 1.45rem;
  }
  .home-section-heading,
  .home-project-heading,
  .pack-section-heading,
  .portfolio-directory .directory-heading,
  .portfolio-directory .directory-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
    margin-bottom: 1.4rem;
  }
  .portfolio-directory .directory-heading-main,
  .portfolio-directory .directory-heading-side { text-align: center; }
  .section-header > *,
  .home-section-heading > *,
  .home-project-heading > *,
  .pack-section-heading > *,
  .service-page-heading-copy > *,
  .page-intro > *,
  .quote-page-heading > *,
  .company-intro-copy > *,
  .company-experience-grid > div:first-child > *,
  .company-coverage-layout > div:first-child > *,
  .portfolio-directory .directory-heading > *,
  .portfolio-directory .directory-section-head > *,
  .case-page .case-copy > *,
  .case-page .case-container .case-section-heading > *,
  .legal-page-intro > *,
  .service-index-heading > *,
  .pack-hero-copy > *,
  .pack-faq-intro > *,
  .quote-cta-copy > * {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
  .home-section-heading > p,
  .home-project-heading > p:last-child,
  .pack-section-heading > p { justify-self: center; margin-top: 0; }
  .home-section-heading > div,
  .home-project-heading > div { text-align: center; }
  .service-info > .editorial-eyebrow,
  .service-info > h2,
  .service-info > .service-info-p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  /* Explicitly override page-specific left alignment on editorial headings.
     Card content is intentionally excluded. */
  :is(
    .home-hero-copy,
    .section-header,
    .home-section-heading,
    .home-project-heading,
    .service-page-heading-copy,
    .service-index-heading,
    .page-intro,
    .quote-page-heading,
    .company-intro-copy,
    .company-experience-grid > div:first-child,
    .company-coverage-layout > div:first-child,
    .portfolio-directory .directory-heading,
    .portfolio-directory .directory-section-head,
    .case-page .case-copy,
    .case-page .case-section-heading,
    .case-page .case-description > div:first-child,
    .case-page .case-description-copy,
    .case-page .case-cta,
    .legal-page-intro,
    .pack-hero-copy,
    .pack-section-heading,
    .pack-faq-intro,
    .quote-cta-copy
  ) { text-align: center !important; }

  :is(
    .home-hero-copy .home-hero-eyebrow,
    .home-hero-copy h1,
    .home-hero-copy .home-hero-description,
    .section-header > .editorial-eyebrow,
    .section-header > .section-tag,
    .section-header > h1,
    .section-header > h2,
    .section-header > .section-desc,
    .home-section-heading .editorial-eyebrow,
    .home-section-heading h2,
    .home-section-heading > p,
    .home-project-heading .editorial-eyebrow,
    .home-project-heading h2,
    .home-project-heading > p,
    .service-page-heading-copy .editorial-eyebrow,
    .service-page-heading-copy .service-page-title,
    .service-page-heading-copy .service-page-intro,
    .service-info > .editorial-eyebrow,
    .service-info > h2,
    .service-info > .service-info-p,
    .service-index-heading .editorial-eyebrow,
    .service-index-heading h1,
    .service-index-heading > p,
    .page-intro .editorial-eyebrow,
    .page-intro h1,
    .page-intro > p,
    .quote-page-heading .editorial-eyebrow,
    .quote-page-heading h1,
    .quote-page-heading > p,
    .company-intro-copy .editorial-eyebrow,
    .company-intro-copy h1,
    .company-intro-copy > p,
    .company-experience-grid > div:first-child .editorial-eyebrow,
    .company-experience-grid > div:first-child h2,
    .company-experience-grid > div:first-child .section-desc,
    .company-coverage-layout > div:first-child .editorial-eyebrow,
    .company-coverage-layout > div:first-child h2,
    .company-coverage-layout > div:first-child .section-desc,
    .portfolio-directory .directory-heading .directory-kicker,
    .portfolio-directory .directory-heading h1,
    .portfolio-directory .directory-heading .directory-intro,
    .portfolio-directory .directory-section-head .directory-kicker,
    .portfolio-directory .directory-section-head h2,
    .portfolio-directory .directory-section-head > p,
    .case-page .case-copy .case-kicker,
    .case-page .case-copy .case-title,
    .case-page .case-copy .case-intro,
    .case-page .case-section-heading .case-kicker,
    .case-page .case-section-heading h2,
    .case-page .case-section-heading p:not(.case-kicker),
    .case-page .case-description > div:first-child .case-kicker,
    .case-page .case-description > div:first-child h3,
    .case-page .case-description-copy > p,
    .case-page .case-cta .case-kicker,
    .case-page .case-cta h2,
    .case-page .case-cta p:not(.case-kicker),
    .legal-page-intro .editorial-eyebrow,
    .legal-page-intro h1,
    .legal-page-intro .section-desc,
    .pack-hero-copy .pack-kicker,
    .pack-hero-copy h1,
    .pack-hero-copy .section-desc,
    .pack-section-heading .pack-eyebrow,
    .pack-section-heading h2,
    .pack-section-heading > p,
    .pack-faq-intro .pack-eyebrow,
    .pack-faq-intro h2,
    .pack-faq-intro > p,
    .pack-configurator .presets-container > .pack-subheading,
    .pack-configurator .presets-container > .pack-config-help,
    .quote-cta-copy .editorial-eyebrow,
    .quote-cta-copy h2,
    .quote-cta-copy > p:not(.editorial-eyebrow)
  ) {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
  }

  .home-hero-copy h1[data-home-rotating-title] { min-height: 2.35em; }
  .home-hero-description[data-home-rotating-description] { min-height: 3.6em; }
}

/* In the mobile drawer, the active page uses a filled state without a side stripe. */
@media (max-width: 900px) {
  .offcanvas-drawer .offcanvas-nav .offcanvas-link.active-link,
  .offcanvas-drawer .offcanvas-subnav a.active-link {
    border-left: 0;
    padding-left: .85rem;
    border-radius: 8px;
    background: #1d4964;
    color: #fff;
  }
  .offcanvas-drawer .offcanvas-link.active-link .link-num { color: #fff; opacity: 1; }
  .offcanvas-drawer .offcanvas-link.active-link:hover,
  .offcanvas-drawer .offcanvas-link.active-link:focus-visible,
  .offcanvas-drawer .offcanvas-subnav a.active-link:hover,
  .offcanvas-drawer .offcanvas-subnav a.active-link:focus-visible {
    border-left: 0;
    background: #1d4964;
    color: #fff;
  }
}

/* Gold accents selected for the GL Sotomayor identity. */
.logo-symbol svg { fill: var(--gold-solar); }
.footer .logo-symbol { background: var(--ink); }
.footer .logo-symbol svg { fill: var(--gold-solar); }
.logo-title span, .offcanvas-brand-title span { color: var(--gold-classic); }
.footer .logo-title span { color: var(--gold-solar); }
.primary-nav-link::before { background: var(--gold-solar); }
.primary-services > summary::after,
.offcanvas-services > summary .submenu-mark,
.offcanvas-link .link-num { color: var(--gold-classic); }
.home-service-number,
.service-index-card > span,
.home-service-link,
.service-index-card strong { color: var(--gold-classic); }

body .btn-primary,
body a.btn-primary,
body button.btn-primary,
body .home-hero-actions .btn-primary,
body .photo-page-hero .btn-primary,
body .service-page-heading .btn-primary,
body .pack-hero-photo .btn-primary {
  border-color: var(--gold-classic);
  background: var(--gold-classic);
  color: #fff !important;
}
body .btn-primary:hover,
body .btn-primary:focus-visible,
body .home-hero-actions .btn-primary:hover,
body .home-hero-actions .btn-primary:focus-visible,
body .photo-page-hero .btn-primary:hover,
body .photo-page-hero .btn-primary:focus-visible,
body .service-page-heading .btn-primary:hover,
body .service-page-heading .btn-primary:focus-visible,
body .pack-hero-photo .btn-primary:hover,
body .pack-hero-photo .btn-primary:focus-visible {
  border-color: var(--gold-solar);
  background: var(--gold-solar);
  color: var(--ink) !important;
}

.primary-services-menu a.service-featured-link,
.offcanvas-subnav a.service-featured-link,
.offcanvas-drawer .offcanvas-subnav a.service-featured-link.active-link {
  border-color: var(--gold-classic);
  background: var(--gold-classic);
  color: #fff !important;
}
.primary-services-menu a.service-featured-link:hover,
.primary-services-menu a.service-featured-link:focus-visible,
.offcanvas-subnav a.service-featured-link:hover,
.offcanvas-subnav a.service-featured-link:focus-visible,
.offcanvas-drawer .offcanvas-subnav a.service-featured-link.active-link:hover,
.offcanvas-drawer .offcanvas-subnav a.service-featured-link.active-link:focus-visible {
  border-color: var(--gold-solar);
  background: var(--gold-solar);
  color: var(--ink) !important;
}
.primary-services-menu a.service-featured-link:focus-visible,
.offcanvas-subnav a.service-featured-link:focus-visible { outline-color: var(--gold-solar); }

/* Carry the selected gold palette through the project, service, company, and quote accents. */
.portfolio-directory .portfolio-card-link {
  border-color: var(--gold-classic);
  background: var(--gold-classic);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.portfolio-directory .portfolio-card-link:hover,
.portfolio-directory .portfolio-card-link:focus-visible {
  border-color: var(--gold-solar);
  background: var(--gold-solar);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.home-service-number,
.service-index-number,
.service-index-card > span { color: var(--gold-classic); }

.methodology-step .step-node,
.service-structures-page #proceso .service-process-number,
.topography-service-item .topography-card-index {
  border: 1px solid rgba(154,109,42,.48);
  background: linear-gradient(150deg, #fbf7ed, #f3e9cf);
  color: var(--gold-classic);
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(154,109,42,.12);
}
.methodology-step:hover .step-node,
.service-structures-page #proceso .service-process-step:hover .service-process-number,
.topography-service-item:hover .topography-card-index {
  border-color: var(--gold-solar);
  background: linear-gradient(145deg, var(--gold-solar), #e8c25c);
  color: var(--ink);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(213,170,46,.22), 0 7px 18px rgba(154,109,42,.2);
}

.company-capabilities-section .company-capability-card > .company-capability-icon {
  border-color: rgba(154,109,42,.4);
  background: linear-gradient(150deg, #fbf7ed, #f3e9cf);
  color: var(--gold-classic);
}
.company-method-section .company-process-number {
  border-color: rgba(154,109,42,.42);
  background: linear-gradient(150deg, #fbf7ed, #f3e9cf);
  color: var(--gold-classic);
  box-shadow: 0 0 0 4px #fff, 0 3px 9px rgba(154,109,42,.12);
}
.company-method-section .company-process-card:hover .company-process-number {
  border-color: var(--gold-solar);
  background: linear-gradient(145deg, var(--gold-solar), #e8c25c);
  color: var(--ink);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(213,170,46,.22), 0 7px 18px rgba(154,109,42,.2);
}
.company-experience-grid .company-sector-list svg {
  background: #f3e9cf;
  color: var(--gold-classic);
}

.quote-cta-copy .editorial-eyebrow,
.case-page .case-cta.quote-cta-card .case-kicker { color: var(--gold-solar); }
.quote-page .quote-form-card input[type="checkbox"] { accent-color: var(--gold-classic); }
.quote-form-card .form-select:focus,
.quote-form-card .form-input:focus,
.quote-form-card .form-textarea:focus {
  border-color: var(--gold-classic);
  outline-color: rgba(213,170,46,.2);
}
