/* Somos Four Construction: warmer, deeper versions of the logo colors (estimated from the sister's swatches; swap in exact codes if she sends them) */
:root {
  --coral: #C75C5C;
  --coral-dark: #A84848;
  --blue: #244C84;
  --blue-dark: #1A3A66;
  --ink: #333532;
  --muted: #5E5B57;
  --line: #E7E1DA;
  --soft: #F5F0EB;
  --white: #ffffff;
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 600;
  text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--coral); }
.nav .btn { color: var(--white); padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.hero-inner { position: relative; padding: 64px 20px 60px; max-width: 760px; }
.hero .eyebrow { color: var(--white); opacity: .9; }
.hero p.lead { font-size: 1.12rem; margin-bottom: 24px; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.hero .btn-outline { border-color: var(--white); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--ink); }

/* Page header (inner pages) */
.page-head { background: var(--soft); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.1rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-plain { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); display: grid; place-items: center; }
.card-plain span { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2.6rem; color: var(--white); letter-spacing: .08em; }
.card-body { padding: 22px; }
.card-body p { color: var(--muted); margin: 0; }
.card a.more { margin-top: auto; padding: 0 22px 22px; font-weight: 600; text-decoration: none; color: var(--coral); }

.pillar { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--coral); }
.pillar:nth-child(2) { border-top-color: var(--blue); }
.pillar:nth-child(3) { border-top-color: var(--ink); }
.pillar p { color: var(--muted); margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* Process timeline */
.nowrap { white-space: nowrap; }
.section-head h2 { text-wrap: balance; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--coral)); }
.process-step { position: relative; text-align: center; }
.process-icon { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--white); }
.process-step:last-child .process-icon { background: var(--coral); }
.process-num { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
.process-step h3 { font-size: 1.05rem; margin-bottom: .4em; }
.process-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Callout */
.callout {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); padding: 40px;
}
.callout img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Reviews */
.stars { color: #f4b400; font-size: 1.3rem; letter-spacing: 2px; }
.review { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.review blockquote { margin: 10px 0 18px; font-size: 1.02rem; }
.review cite { font-style: normal; font-weight: 600; }
.review cite span { color: var(--muted); font-weight: 400; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); text-align: center; padding: 70px 0; }
.cta-band p { font-size: 1.15rem; opacity: .95; }

/* Services */
.service { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-img { order: 2; }
.service-img img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Portfolio */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter a { padding: 8px 18px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; background: var(--white); }
.filter a:hover { border-color: var(--coral); color: var(--coral); }
.work-group { margin-bottom: 64px; scroll-margin-top: 110px; }
.project { margin-bottom: 36px; }
.project h3 { margin-bottom: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
/* Each project leads with one large finished photo, then the progression strip */
.shot-lead { margin-bottom: 12px; }
.shot-lead img { aspect-ratio: 16 / 9; }
.shot { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--soft); }
.shots .shot img { aspect-ratio: 3 / 4; }
.shot img { object-fit: cover; width: 100%; transition: transform .25s; }
.shot:hover img { transform: scale(1.03); }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 4px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--white);
}
.tag.before { background: var(--ink); }
.tag.during { background: var(--blue); }
.tag.after { background: var(--coral); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 4px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #D6CFC7; border-radius: 6px; font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.plans-field[hidden] { display: none; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.draft-banner { background: #fff4e5; border: 1px solid #f0c27b; color: #7a4b00; padding: 12px 16px; border-radius: 6px; margin-bottom: 22px; font-size: .92rem; }
.side { background: var(--soft); border-radius: var(--radius); padding: 30px; }
.side p { margin-bottom: .7em; }
.side a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: #DAD5CF; padding: 54px 0 30px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-brand { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #4A4C48; margin-top: 34px; padding-top: 20px; font-size: .85rem; color: #ACA79F; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .callout, .service, .contact { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Timeline runs top to bottom */
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before { display: none; }
  .process-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: -26px; width: 2px; background: var(--blue); opacity: .5; }
  .process-step { text-align: left; padding-left: 78px; min-height: 56px; }
  .process-icon { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: 0; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .header-inner { height: 68px; }
  .nav { top: 68px; }
  .logo img { height: 36px; }
  body { font-size: 16px; line-height: 1.6; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.05rem; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head p, .page-head p { font-size: 1rem; }
  .hero-inner { padding: 36px 20px 32px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 20px; }
  .page-head { padding: 36px 0 26px; }
  .grid { gap: 14px; }
  .btn { padding: 11px 20px; font-size: .95rem; }
  /* Home service cards: two across, compact */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 .card-body { padding: 12px; }
  .grid-4 .card-body h3 { font-size: .98rem; margin-bottom: .3em; }
  .grid-4 .card-body p { font-size: .85rem; line-height: 1.45; }
  .card-plain span { font-size: 1.7rem; }
  .card-body { padding: 16px; }
  .pillar { padding: 18px 18px 16px; }
  .step { padding: 16px 16px 16px 60px; }
  .step::before { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; margin: 0; font-size: .9rem; }
  .step h3 { margin-bottom: .3em; }
  .callout, .form { padding: 20px; gap: 20px; }
  .review { padding: 20px; }
  .review blockquote { font-size: .95rem; }
  .about { gap: 22px; }
  .about img { aspect-ratio: 4 / 3; }
  .service { padding: 26px 0; gap: 18px; }
  .cta-band { padding: 46px 0; }
  .cta-band p { font-size: 1rem; }
  .filter { gap: 8px; margin-bottom: 26px; }
  .filter a { padding: 6px 12px; font-size: .88rem; }
  .work-group { margin-bottom: 40px; }
  .project { margin-bottom: 28px; }
  .shot-lead { margin-bottom: 8px; }
  .shot-lead img { aspect-ratio: 4 / 3; }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tag { top: 6px; left: 6px; font-size: .62rem; padding: 2px 6px; }
  .side { padding: 20px; }
  .site-footer { padding: 40px 0 24px; }
}

/* ADU focus: icon cards stand in until ADU project photos are ready */
.card-icon { color: var(--white); }
.card-icon svg { width: 34%; height: auto; }
.adu-types .card-plain { aspect-ratio: 16 / 9; }
.adu-types .card-icon:nth-child(1) { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.adu-types a:nth-child(2) .card-icon { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(-45deg); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: "Poppins", "Inter", sans-serif; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.coming-soon { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .adu-types { grid-template-columns: 1fr; }
  .adu-types .card-plain { aspect-ratio: 16 / 7; }
  .faq summary { font-size: 1rem; }
}
.service-img .card-plain { border-radius: var(--radius); }
.section.soft .process-icon { box-shadow: 0 0 0 6px var(--soft); }
@media (max-width: 760px) {
  /* Home "We also take on": compact rows so ADUs stay the focus */
  .also-grid .card { flex-direction: row; align-items: center; }
  .also-grid .card img { width: 34%; aspect-ratio: 1 / 1; flex-shrink: 0; }
  .also-grid .card-body { padding: 12px 14px; }
  .also-grid .card-body h3 { font-size: 1rem; margin-bottom: .2em; }
  .also-grid .card-body p { font-size: .88rem; line-height: 1.45; }
}

/* Option B: ADUs as a highlighted panel above the other services */
.adu-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; padding: 36px; margin-bottom: 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); }
.adu-feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: .4em; }
.adu-feature p { opacity: .92; }
.adu-feature-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adu-feature-types a { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white); text-decoration: none; transition: background .15s; }
.adu-feature-types a:hover { background: rgba(255,255,255,.16); }
.adu-feature-types strong { font-family: "Poppins", sans-serif; font-size: 1.1rem; }
.adu-feature-types span:last-child { font-size: .92rem; opacity: .85; }
.adu-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); margin-bottom: 10px; }
.adu-ico.coral { background: var(--coral); }
.adu-ico svg { width: 32px; height: 32px; }
@media (max-width: 960px) { .adu-feature { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .adu-feature { padding: 22px; gap: 18px; }
  .adu-feature-types { gap: 10px; }
  .adu-feature-types a { padding: 14px; }
  .adu-feature-types strong { font-size: .98rem; }
  .adu-feature-types span:last-child { font-size: .82rem; }
  .adu-ico { width: 44px; height: 44px; }
  .adu-ico svg { width: 26px; height: 26px; }
}
.form-embed { padding: 8px; min-height: 1100px; }
@media (max-width: 760px) { .form-embed { padding: 0; border: 0; } }
/* Fixed height so the form shows fully even if a browser add-on blocks GHL's resize script */
.form-embed iframe { height: 1260px !important; min-height: 1260px; }
@media (max-width: 760px) { .form-embed iframe { height: 1650px !important; min-height: 1650px; } }
/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink); }
