/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800&display=swap');

/* Design tokens */
:root {
  --bg: #FAFAFA;
  --text: #222;
  --muted: #6F6F6F;
  --sand: #E9E3DA;
  --navy: #1E2A44;
  --copper: #B96F3D;
  --card: #FFFFFF;
  --line: #E7E7E7;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 8px 22px rgba(30, 42, 68, .08);
  --shadow-lg: 0 22px 60px rgba(30, 42, 68, .18);
}

/* Base */
html { scroll-behavior: smooth; }
html, body { margin: 0; background: white; color: var(--text);
  font-family: 'Montserrat', -apple-system, Segoe UI, Inter, Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body { font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; font-weight: 300; }

h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 40px; font-weight: 400; }
h2 { font-size: 28px; font-weight: 400; }
h3 { font-size: 20px; font-weight: 400; }
p { margin: 0 0 12px; }

/* Unified section header pattern */
.section-header { margin: 20px 0 32px; text-align: center; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--navy); }
.section-subline { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 760px; margin: 0 auto; }
.section-header.left { text-align: left; }
.section-header.left .section-subline { margin-left: 0; margin-right: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--copper); }

.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
section { padding: 40px 0; }

/* Section backgrounds to delineate boundaries */
.section-alt { background: #fff; }

/* Full-bleed stripes for alternating backgrounds */
.stripe { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: #fff; }
.stripe-alt { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: var(--bg); }
.stripe-lines { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

/* Partial line for editorial accents */
.partial-line { display:inline-block; width:72px; height:1px; background: var(--line); margin: 0 0 12px; }
.partial-line.light { background: rgba(255,255,255,.7); }

.eyebrow { display: inline-block; color: #222; background: var(--sand);
  padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; }

.btn { display: inline-block; color: #fff; border-radius: var(--radius);
  padding: 12px 18px; font-weight: 700;
  background: linear-gradient(90deg, var(--navy) 0%, #2b3b66 50%, var(--navy) 100%);
  background-size: 200% 100%; transition: background-position .35s ease, transform .2s ease; }
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }

/* Outlined buttons with bottom-to-top fill on hover */
.btn-outline { position: relative; display: inline-block; color: var(--navy); border: 1px solid var(--navy); background: transparent; border-radius: var(--radius); padding: 10px 16px; font-weight: 500; letter-spacing: .02em; overflow: hidden; z-index: 0; }
.btn-outline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--navy); transition: height .35s ease; z-index: -1; }
.btn-outline:hover { color: #fff; transform: translateY(-1px); }
.btn-outline:hover::after { height: 100%; }

.card { background: var(--card); border: 0; border-radius: var(--radius); overflow: hidden; }
.card .body { padding: 14px 16px; }

.muted { color: var(--muted); }
.small { color: var(--muted); font-size: 14px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-12 { grid-column: span 12; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(6, 1fr); }
  .span-6, .span-4, .span-3 { grid-column: span 6; } }

/* Ratios & media helpers */
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-16x10 { aspect-ratio: 16/10; }
.ratio-1x1 { aspect-ratio: 1/1; }
.cover { background-size: cover; background-position: center; }
.img-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Full-bleed utility for edge-to-edge media */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(250,250,250,.92);
  backdrop-filter: saturate(120%) blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display:flex; align-items:center; gap:10px; }
.brand img { height: 42px; width: auto; display:block; }
.menu { display: flex; gap: 18px; }
.menu a { padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.menu a:hover { 
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s ease;
}
.menu a.active { background: transparent; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* Footer (unified across pages) */
footer { border-top: 1px solid var(--line); padding: 64px 0 8px 0; background: var(--card); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-grid strong { display:block; font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.footer-links a:hover { color: var(--navy); }
.footer-text { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Home hero */
.hero { position: relative; }
.hero-media { height: 62vh; min-height: 420px; border-radius: var(--radius); margin: 0 auto 24px;
  box-shadow: 0 15px 45px rgba(30, 42, 68, .18); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-card { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-radius: var(--radius);
  margin: 0 24px 28px; max-width: 680px; padding: 22px 24px; border: 1px solid var(--line); }

/* Sharper elements */
.img16x9, .image, .project-image, .mosaic-image, .img, .thumb, input, textarea, select { border-radius: var(--radius); }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: 15px; box-sizing: border-box; border-radius: var(--radius); }
label { display:block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
textarea { min-height: 160px; }

/* Simple fade carousel utility */
.carousel-fade { position: relative; }
.carousel-fade .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel-fade .slide.show { opacity: 1; }

/* Horizontal row carousel */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc(33.333% - 12px); scroll-snap-align: start; }
@media (max-width: 960px) { .carousel-item { flex: 0 0 80%; } }

/* Hero overlay content (bottom-left) */
.hero-overlay { position: absolute; z-index: 2; bottom: 48px; left: max(16px, calc(50vw - 600px + 24px)); right: 16px; color: #fff; }
.hero-overlay .kicker { display:inline-block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #fff; opacity: .95; margin-bottom: 8px; }
.hero-overlay h1 { color: #fff; font-weight: 600; font-size: clamp(28px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; }
.btn-outline-white { position: relative; color: #fff; border: 1px solid #fff; background: transparent; border-radius: var(--radius); padding: 10px 16px; font-weight: 500; letter-spacing: .02em; overflow: hidden; z-index: 0; }
.btn-outline-white::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #fff; transition: height .35s ease; z-index: -1; }
.btn-outline-white:hover { color: #111; transform: translateY(-1px); }
.btn-outline-white:hover::after { height: 100%; }

/* Editorial utilities */
.section-lg { padding: 40px 0; }
.section-xl { padding: 84px 0; }
.lead{
      background:var(--card);
      border:0;
      border-radius:var(--radius);
      padding:32px;
      margin:32px auto 24px auto;
      box-shadow:none;
    }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* Image helpers */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform .35s ease; }
.hover-zoom:hover img { transform: scale(1.04); }
.overlay-caption { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.45); color: #fff; padding: 8px 10px; border-radius: var(--radius); font-size: 13px; }

/* Forms */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .full { grid-column: 1 / -1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,42,68,.08); }
button.btn { cursor: pointer; border: 0; }

/* Contact section refinement */
.contact-section .intro { max-width: 520px; }
.contact-card { padding: 24px; border-radius: var(--radius-lg); box-shadow: none; border: 0; }
.contact-card .hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Cards and shadows */
.card { box-shadow: none; }
.card:hover { transform: none; }

/* Editorial hover overlay (no shadow, no lift) */
.card.is-hoverable, .project-card.is-hoverable, .mosaic-card.is-hoverable, .benefit.is-hoverable, .slab.is-hoverable, .thumb.is-hoverable {
  position: relative;
}
.card.is-hoverable::after, .project-card.is-hoverable::after, .mosaic-card.is-hoverable::after, .benefit.is-hoverable::after, .slab.is-hoverable::after, .thumb.is-hoverable::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.06); opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card.is-hoverable:hover::after, .project-card.is-hoverable:hover::after, .mosaic-card.is-hoverable:hover::after, .benefit.is-hoverable:hover::after, .slab.is-hoverable:hover::after, .thumb.is-hoverable:hover::after {
  opacity: 1;
}

/* Gallery 1+2 layout (left spans two rows) */
.gallery-1-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery-1-2 .item { position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.gallery-1-2 .item.r16x10 { height: 0; padding-bottom: 62.5%; }
.gallery-1-2 .left-tall { height: 0; padding-bottom: calc(125% + 18px); grid-row: span 2; }
.gallery-1-2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .gallery-1-2 { grid-template-columns: 1fr; }
  .gallery-1-2 .left-tall { padding-bottom: 62.5%; }
}

/* Service quicklinks (text-only) */
.service-quicklinks { padding-block: clamp(24px, 5vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sq-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; }
.sq-list a { text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: clamp(14px, 2vw, 18px); color: var(--navy); padding: 8px 6px; border-bottom: 2px solid transparent; }
.sq-list a:hover, .sq-list a:focus-visible { border-bottom-color: currentColor; outline: none; }
@media (max-width: 720px) { .sq-list { grid-template-columns: 1fr; gap: 16px; } .service-quicklinks { padding-block: 24px; } }
}
