/* carlsbadconcretecontractors.com. Coastal premium. Sea glass and slate on white. */
@font-face { font-family: "Source Serif 4"; src: url("/fonts/sourceserif4-roman.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"); size-adjust: 97%; }

:root {
  color-scheme: light;
  --ground: #ffffff;
  --panel: #eef5f2;
  --panel-2: #f6f9f8;
  --ink: #1d2b33;
  --ink-soft: #3d4f5a;
  --slate: #33495a;
  --slate-rgb: 51, 73, 90;
  --sea: #7fb8a4;
  --sea-rgb: 127, 184, 164;
  --sea-ink: #2d6a57;
  --sea-deep: #245848;
  --line: #d5e3de;
  --foot: #1e2c35;
  --foot-ink: #e6eef0;
  --foot-link: #a9d8c6;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --sans: "Hanken Grotesk", "Sans Fallback", Arial, sans-serif;
  --wrap: 1160px;
  --gut: 16px;
  interpolate-size: allow-keywords;
}

/* Reset (R1 to R3, R10) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.68 var(--sans); font-variant-numeric: tabular-nums; overflow-x: clip; }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.16; color: var(--ink); text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.45rem); font-weight: 520; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.05em; }
a { color: var(--sea-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea-ink); outline-offset: 3px; border-radius: 2px; }
.sg-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.sg-skip:focus { top: 12px; color: #fff; }
.sg-wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sg-narrow { max-width: 720px; }

/* Buttons. Foreground restated after region rules (R5). */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s; text-box: trim-both cap alphabetic; }
.sg-btn-fill { background: var(--sea-ink); color: #fff; }
.sg-btn-fill:hover { background: var(--sea-deep); color: #fff; }
.sg-btn-line { border-color: var(--slate); color: var(--slate); background: transparent; }
.sg-btn-line:hover { background: var(--slate); color: #fff; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.sg-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); view-transition-name: sg-top; }
.sg-top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.sg-home { display: block; flex-shrink: 0; line-height: 0; }
.sg-logo { width: 214px; height: auto; }
.sg-menu-btn { flex-shrink: 0; font: 600 16px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.sg-nav { border: 0; padding: 20px; margin: 0; inset: 0 0 auto auto; width: min(320px, 100vw); height: 100dvh; max-height: none; background: #fff; box-shadow: -10px 0 40px rgba(var(--slate-rgb), .16); flex-direction: column; gap: 4px; }
.sg-nav:popover-open { display: flex; }
.sg-nav a:not(.sg-btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.sg-nav a:not(.sg-btn):hover { color: var(--sea-ink); }
.sg-nav .sg-btn { margin-top: 16px; color: #fff; }
.sg-nav .sg-nav-tel { font-weight: 700; color: var(--slate); }
.sg-nav-close { align-self: flex-end; font: 600 15px var(--sans); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); cursor: pointer; margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .sg-nav { transition: translate .25s ease, opacity .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; translate: 24px 0; opacity: 0; }
  .sg-nav:popover-open { translate: 0 0; opacity: 1; }
  @starting-style { .sg-nav:popover-open { translate: 24px 0; opacity: 0; } }
}
@supports not selector(:popover-open) { .sg-nav { position: static; height: auto; width: auto; box-shadow: none; display: flex; flex-direction: row; flex-wrap: wrap; } .sg-menu-btn, .sg-nav-close { display: none; } }
.sg-nav::backdrop { background: rgba(var(--slate-rgb), .35); }
@media (min-width: 960px) {
  .sg-menu-btn, .sg-nav-close { display: none; }
  .sg-nav[popover] { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; width: auto; height: auto; padding: 0; background: none; box-shadow: none; overflow: visible; translate: none; opacity: 1; flex-shrink: 0; }
  .sg-nav a:not(.sg-btn) { border: 0; padding: 6px 0; font-size: 16px; }
  .sg-nav .sg-btn { margin: 0 0 0 4px; min-height: 44px; }
}

/* Breadcrumb */
.sg-trail { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 22px auto 0; font-size: 15px; }
.sg-trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--ink-soft); }
.sg-trail li + li::before { content: "/"; margin-right: 6px; color: #8a9aa3; }
.sg-trail a { color: var(--ink-soft); }

/* Home hero */
.sg-hero { padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); }
.sg-hero-grid { display: grid; gap: 40px; align-items: center; }
.sg-hero-copy h1 { max-width: 15ch; }
.sg-hero-copy h1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 26px; background: var(--sea); border-radius: 2px; }
.sg-lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 52ch; }
.sg-hero-photo { position: relative; }
.sg-hero-photo::before { content: ""; position: absolute; inset: 12px -8px -12px 8px; border: 1.5px solid var(--sea); border-radius: 4px; }
.sg-hero-photo img { position: relative; border-radius: 4px; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
@media (min-width: 900px) { .sg-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } .sg-hero-photo::before { inset: 18px -14px -18px 14px; } }

/* Numbers block */
.sg-figures { background: var(--panel); border-block: 1px solid var(--line); }
.sg-figures-row { list-style: none; margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.sg-figures-row li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--sea); }
.sg-fig { font: 500 clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem)/1 var(--serif); color: var(--slate); }
.sg-fig-label { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
@media (min-width: 860px) { .sg-figures-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Section heads */
.sg-section-head { max-width: 640px; margin-bottom: 30px; }
.sg-section-head p { color: var(--ink-soft); }
.sg-services, .sg-rules, .sg-split { padding-block: clamp(56px, 8vw, 104px); }

/* Service index rows */
.sg-index { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.sg-index-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sg-index-name { font: 560 1.35rem/1.25 var(--serif); }
.sg-index-line { grid-column: 1; font-size: 15.5px; color: var(--ink-soft); }
.sg-index-go { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--sea-ink); font-size: 1.3rem; transition: translate .2s; }
.sg-index-row:hover { color: var(--ink); background: var(--panel-2); }
.sg-index-row:hover .sg-index-go { translate: 4px 0; }
@media (min-width: 860px) {
  .sg-index { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .sg-index li { border-top: 1px solid var(--line); }
  .sg-index li:nth-child(n+3) { border-top: 0; }
}

/* How it works band */
.sg-band { background: var(--panel); padding-block: clamp(56px, 8vw, 96px); }
.sg-how-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.sg-how-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.sg-how-n { font: 400 2.6rem/1 var(--serif); color: var(--sea-ink); }
.sg-how-steps p { color: var(--ink-soft); margin: 0; }
@media (min-width: 860px) { .sg-how-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } .sg-how-steps li { grid-template-columns: 1fr; } }

/* Split with typographic side */
.sg-split { display: grid; gap: 40px; align-items: center; }
.sg-split-copy { max-width: 620px; }
.sg-split-quiet { display: flex; flex-direction: column; gap: 6px; font: 300 clamp(2.4rem, 1.6rem + 3vw, 4.4rem)/1.05 var(--serif); color: var(--slate); }
.sg-split-quiet span:nth-child(2) { color: var(--sea-ink); padding-left: .8em; }
.sg-split-quiet span:nth-child(3) { padding-left: 1.6em; font-style: italic; }
@media (min-width: 900px) { .sg-split { grid-template-columns: 1.2fr .8fr; gap: 80px; } }

/* City rules cards */
.sg-rules { border-top: 1px solid var(--line); }
.sg-rules-grid { display: grid; gap: 18px; }
.sg-rules-grid article { padding: 26px 24px; border: 1px solid var(--line); border-top: 3px solid var(--sea); border-radius: 4px; background: #fff; }
.sg-rules-grid p { margin: 0; color: var(--ink-soft); }
.sg-more { margin-top: 24px; font-weight: 600; }
@media (min-width: 860px) { .sg-rules-grid { grid-template-columns: repeat(3, 1fr); } }

/* Inner page head, bite and glance */
.sg-page-head { display: grid; gap: 28px; padding-block: 28px 44px; }
.sg-page-intro h1 { max-width: 20ch; }
.sg-bite { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.sg-glance { align-self: start; background: var(--panel); border-radius: 4px; padding: 24px 24px 18px; border-left: 3px solid var(--sea-ink); }
.sg-glance-h { font: 600 15px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.sg-glance ul { margin: 0; padding-left: 1.1em; }
.sg-glance li { margin-bottom: 8px; font-size: 16px; }
.sg-glance-inline { max-width: 640px; margin-top: 20px; }
@media (min-width: 900px) { .sg-page-head:not(.sg-page-head-solo) { grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: end; } }

.sg-wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; }
.sg-type-band { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 30px 28px; border-radius: 4px; background: linear-gradient(120deg, var(--panel) 0%, #fff 70%); border: 1px solid var(--line); font: 300 clamp(1.8rem, 1.2rem + 3vw, 3.6rem)/1 var(--serif); color: var(--slate); overflow-wrap: anywhere; }
.sg-type-band span:last-child { font: 600 15px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sea-ink); }

/* Long copy */
.sg-prose { padding-block: 48px 24px; }
.sg-prose section { padding-left: 22px; border-left: 1px solid var(--line); margin-bottom: 40px; }
.sg-prose h2 { margin-bottom: .45em; }
.sg-prose ul, .sg-prose ol { padding-left: 1.2em; }
.sg-prose li { margin-bottom: 8px; }
.sg-steps li::marker { color: var(--sea-ink); font-weight: 700; }
.sg-legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Table */
.sg-table-wrap { margin: 20px 0 24px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sg-table caption { text-align: left; font-weight: 600; color: var(--slate); padding-bottom: 10px; }
.sg-table th, .sg-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.sg-table thead th { font-size: 15px; letter-spacing: .04em; color: var(--ink-soft); border-bottom: 2px solid var(--sea); }
.sg-table tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .sg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sg-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sg-table th, .sg-table td { display: block; border: 0; padding: 2px 0; }
  .sg-table td:last-child { color: var(--ink-soft); font-size: 15px; }
}

/* Glossary terms (popover plus anchor positioning) */
.gloss { font: inherit; color: var(--sea-ink); background: none; border: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: 4px; cursor: help; }
.gloss-note { margin: 0; max-width: min(300px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.5; box-shadow: 0 12px 30px rgba(var(--slate-rgb), .18); }
@supports (position-area: top) {
  .gloss-note { position-area: top; margin-bottom: 8px; position-try-fallbacks: flip-block; inset: auto; }
}

/* FAQ, exclusive accordion */
.sg-faq { padding-block: 32px 64px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 560 1.12rem/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 300 1.6rem/1 var(--sans); color: var(--sea-ink); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq-a { padding: 0 0 18px; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s, content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Related */
.sg-related { padding-bottom: 56px; }
.sg-related h2 { font-size: 1.35rem; }
.sg-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 700px) { .sg-related ul { grid-template-columns: 1fr 1fr; } }

/* Estimate box */
.sg-estimate { background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.sg-est-grid { display: grid; gap: 36px; }
.sg-est-intro p { color: var(--ink-soft); max-width: 46ch; }
.sg-est-steps { margin: 20px 0; padding-left: 1.2em; }
.sg-est-steps li { margin-bottom: 6px; }
.sg-est-steps li::marker { color: var(--sea-ink); font-weight: 700; }
.sg-est-call { font-weight: 600; }
.sg-lic { font-size: 15px; color: var(--ink-soft); }
.sg-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 4vw, 34px); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(var(--slate-rgb), .08); }
.sg-field { display: grid; gap: 6px; min-width: 0; }
.sg-field label { font-weight: 600; font-size: 15.5px; }
.sg-opt { font-weight: 400; color: var(--ink-soft); }
.sg-form input[type=text], .sg-form input[type=tel], .sg-form input[type=email], .sg-form select, .sg-form textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #9fb2ad; border-radius: 4px; padding: 12px 12px; min-height: 48px; }
.sg-form textarea { field-sizing: content; min-block-size: 4lh; max-block-size: 12lh; resize: vertical; }
.sg-form input:focus, .sg-form select:focus, .sg-form textarea:focus { outline: 2px solid var(--sea-ink); outline-offset: 1px; border-color: var(--sea-ink); }
.sg-pair { display: grid; gap: 16px; }
@media (min-width: 560px) { .sg-pair { grid-template-columns: 1fr 1fr; } }
.sg-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.sg-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea-ink); }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sg-form .sg-btn { width: 100%; margin-top: 4px; color: #fff; }
.sg-form-msg { margin: 0; font-weight: 600; color: #8a2a1c; }
.sg-form-msg:empty { display: none; }
@media (min-width: 900px) { .sg-est-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }

/* Footer */
.sg-foot { background: var(--foot); color: var(--foot-ink); padding: 56px 0 24px; font-size: 15.5px; }
.sg-foot a { color: var(--foot-link); }
.sg-foot a:hover { color: #fff; }
.sg-foot-grid { display: grid; gap: 32px; }
.sg-foot-name { font: 560 1.3rem var(--serif); color: #fff; margin-bottom: 8px; }
.sg-foot-h { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14.5px; color: #c4d3d9; margin-bottom: 10px; }
.sg-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sg-foot .sg-lic { color: #c4d3d9; }
.sg-foot-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); color: #c4d3d9; }
.sg-foot-base p { margin: 0; }
@media (min-width: 860px) { .sg-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* Call bar, only when a phone is set */
.sg-callbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(var(--slate-rgb), .12); }
.sg-callbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--sea-ink); }
.sg-callbar a:first-child { background: var(--sea-ink); color: #fff; }
body:has(.sg-callbar) { padding-bottom: 56px; }
@media (min-width: 1040px) { .sg-callbar { display: none; } body:has(.sg-callbar) { padding-bottom: 0; } }

/* Page to page morph (Chrome and Safari), off for reduced motion */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
