/* Rank-and-rent base styles. #E1861A is replaced with the brand color at build time. */
:root { --accent: #E1861A; --ink: #1a1d21; --muted: #5b6570; --line: #e4e8ec; --bg-soft: #f6f8fa; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
main { background: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2.15rem; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
th { background: var(--bg-soft); }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 20px; position: relative; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.main-nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.nav-toggle { display: none; }
.nav-burger { display: none; }
.main-nav > a, .has-drop > a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.has-drop { position: relative; }
.drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 0; min-width: 220px; list-style: none; margin: 6px 0 0; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.has-drop:hover .drop { display: block; }
.drop li a { display: block; padding: 8px 16px; color: var(--ink); font-weight: 500; }
.drop li a:hover { background: var(--bg-soft); text-decoration: none; }
.call-btn { background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.call-btn:hover { text-decoration: none; opacity: .92; }

/* hero */
.hero { background: linear-gradient(160deg, var(--bg-soft), #fff); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 760px; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 0 1.4em; }

/* hero with background photo */
.hero.has-bg { position: relative; border-bottom: none; background-size: cover; background-position: center;
  padding: 96px 0 84px; display: flex; align-items: center; min-height: 460px; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,.78) 0%, rgba(10,12,15,.55) 45%, rgba(10,12,15,.35) 100%); }
.hero.has-bg .wrap { position: relative; z-index: 1; }
.hero.has-bg h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero.has-bg .hero-sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero.has-bg .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero.has-bg .btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero.has-bg .badges li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); color: #fff;
  backdrop-filter: blur(2px); }

/* two-column hero with intake form */
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero.has-bg .hero-inner { align-items: center; }
.hero-copy { min-width: 0; }
.hero-form { min-width: 0; }

/* intake form */
.intake-form { background: #fff; border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 18px 44px rgba(0,0,0,.22);
  display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.form-title { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--ink); }
.form-sub { margin: -4px 0 6px; color: var(--muted); font-size: .9rem; }
.intake-form input, .intake-form select, .intake-form textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #cfd6dd; border-radius: 8px; font-size: 1rem;
  font-family: inherit; color: var(--ink); background: #fff; }
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.intake-form textarea { resize: vertical; }
.intake-form .form-submit { width: 100%; margin-top: 2px; cursor: pointer; border: 0; font-size: 1.05rem; }
.form-fine { margin: 4px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.intake-form .hp { display: none !important; }   /* honeypot */
.form-embed { max-width: 520px; }
.form-embed .intake-form { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* ghost button on colored bands */
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.cta-row-center { justify-content: center; }

/* estimate modal (pure CSS :target) */
.modal { display: none; position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: rgba(10,12,15,.62); align-items: flex-start; justify-content: center; overflow-y: auto; }
.modal:target { display: flex; }
.modal-card { background: #fff; border-radius: 14px; padding: 26px 22px 22px; max-width: 460px; width: 100%;
  position: relative; margin: 6vh auto; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-card .intake-form { box-shadow: none; border: 0; padding: 0; }
.modal-close { position: absolute; top: 8px; right: 16px; font-size: 1.9rem; line-height: 1; color: #98a2ad;
  text-decoration: none; }
.modal-close:hover { color: var(--ink); text-decoration: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: .92; }
.btn-ghost { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.btn-ghost:hover { text-decoration: none; background: var(--bg-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .88rem; font-weight: 600; }

/* page head (non-hero pages) */
.page-head { padding: 44px 0 8px; }

/* service cards */
.service-cards-sec { padding: 48px 0 8px; }
.section-title { text-align: center; margin: 0 0 28px; font-size: 1.9rem; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px;
  color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.card-icon { font-size: 2rem; line-height: 1; }
.card h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.card-link { color: var(--accent); font-weight: 700; font-size: .95rem; margin-top: auto; padding-top: 8px; }

/* content */
.content-sec { padding: 12px 0; }
.content-sec .wrap.narrow { max-width: 820px; }

/* alternating split sections (image beside text) */
.split-sec { padding: 40px 0; }
.split-sec.alt-bg { background: var(--bg-soft); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-inner.reverse .split-text { order: 2; }
.split-inner.reverse .split-media { order: 1; }
.split-text h2 { margin-top: 0; }
.split-media img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: block; }

/* link grid */
.link-grid { background: var(--bg-soft); padding: 32px 0; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 15px; font-weight: 600; color: var(--ink); }
.chips a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* faqs */
.faqs { padding: 32px 0; }
.faqs .wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); padding: 16px 0; }
.faq h3 { margin: 0 0 .3em; }
.faq-a { color: var(--muted); }

/* blog-post branded CTA (links back to homepage) */
.blog-cta { padding: 8px 0 24px; }
.blog-cta .wrap { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 24px 26px; }
.blog-cta h2 { margin-top: 0; }
.blog-cta .cta-row { margin-top: 16px; }

/* cta band */
.cta-band { background: var(--accent); color: #fff; text-align: center; padding: 48px 0; margin-top: 40px; }
.cta-band h2 { margin-top: 0; }
.cta-band p { opacity: .92; margin-bottom: 1.4em; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band p a { color: #fff; text-decoration: underline; font-weight: 700; }
.cta-band p a:hover { opacity: .85; }

/* google maps band (above footer) */
.map-band { border-top: 1px solid var(--line); }
.map-cap { padding: 16px 20px; text-align: center; color: var(--muted); font-size: .95rem; }
.map-cap strong { color: var(--ink); }
.map-band iframe { display: block; width: 100%; height: 320px; border: 0; }

/* footer */
.site-footer { background: #12161a; color: #c7ced5; margin-top: 48px; padding: 44px 0 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer .foot-h { color: #fff; margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c7ced5; }
.site-footer a:hover { color: #fff; }
.foot-call { font-weight: 700; font-size: 1.1rem; color: #fff !important; }
.counties { font-size: .9rem; color: #97a1ab; margin-top: 10px; }
.sub-foot { border-top: 1px solid #2a3038; margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #8b95a0; }

@media (max-width: 900px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.7rem; }
  .hero { padding: 40px 0 32px; }
  .hero.has-bg { min-height: 0; padding: 40px 0 36px; }
  .hero.has-bg::before { background: linear-gradient(180deg, rgba(10,12,15,.62) 0%, rgba(10,12,15,.72) 100%); }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .intake-form { padding: 18px 16px 16px; }
  .modal-card { margin: 3vh auto; padding: 24px 18px 18px; }
  .split-inner { grid-template-columns: 1fr; gap: 20px; }
  .split-inner.reverse .split-text { order: 1; }
  .split-inner.reverse .split-media { order: 2; }
  .service-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }

  /* mobile header: compact logo + phone, hamburger menu */
  .header-inner { gap: 10px; }
  .brand { margin-right: auto; }
  .brand-logo { height: 34px; }
  .call-btn { padding: 8px 12px; font-size: .82rem; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 40px; padding: 9px 8px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; }
  .nav-burger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; }

  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav > a, .has-drop > a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .has-drop { width: 100%; }
  /* collapse hover submenus on mobile (override desktop :hover specificity); top-level links go to hub pages */
  .has-drop .drop, .has-drop:hover .drop { display: none; }
}
/* ============================================================
   Alameda Elite Concrete — charcoal + amber industrial theme.
   Appended to the builder's styles.css by build.sh (keeps the
   base stylesheet untouched so the skill stays reusable).
   Accent (--accent) is amber, set via site.json brand_color.
   ============================================================ */

:root { --char: #14181c; --char-2: #1c2127; --char-line: #2a3038; }

/* Type: heavier, more industrial headings */
h1, h2, h3, .section-title, .form-title { letter-spacing: -0.01em; }
.section-title, .cta-band h2, .faqs h2 { font-weight: 800; }

/* Amber buttons read better with near-black text than white */
.btn-primary, .call-btn { color: var(--char) !important; }
.btn-primary:hover, .call-btn:hover { opacity: .9; }

/* -------- Header: charcoal bar -------- */
.site-header { background: var(--char); border-bottom: 1px solid var(--char-line); }
.brand { color: #fff; }
.main-nav > a, .has-drop > a { color: #e7ebef; }
.main-nav > a:hover, .has-drop > a:hover { color: var(--accent); text-decoration: none; }
.drop { background: var(--char-2); border-color: var(--char-line); box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.drop li a { color: #e7ebef; }
.drop li a:hover { background: var(--char); color: var(--accent); }

/* -------- Hero without a photo: charcoal gradient, light text
   (per-page hero photos, when added, use the builder's .has-bg style) -------- */
.hero:not(.has-bg) { background: linear-gradient(155deg, var(--char) 0%, #232a31 100%); border-bottom: 3px solid var(--accent); }
.hero:not(.has-bg) h1 { color: #fff; }
.hero:not(.has-bg) .hero-sub { color: rgba(255,255,255,.86); }
.hero:not(.has-bg) .badges li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }

/* -------- Non-hero page heads: charcoal band -------- */
.page-head { background: linear-gradient(155deg, var(--char) 0%, #232a31 100%); border-bottom: 3px solid var(--accent); padding: 40px 0; }
.page-head h1 { color: #fff; margin: 0; }

/* -------- CTA band: charcoal with amber outline accents -------- */
.cta-band { background: var(--char); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); }
.cta-band .btn-primary { background: var(--accent); color: var(--char) !important; }
.cta-band .btn-ghost-light { border-color: var(--accent); color: var(--accent); }
.cta-band .btn-ghost-light:hover { background: rgba(225,134,26,.14); }

/* -------- Accents on cards, chips, section titles -------- */
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent);
  margin: 12px auto 0; border-radius: 2px; }
.card-icon { color: var(--accent); }
.card-link { color: var(--accent); }
.split-media img { border: 1px solid var(--line); }

/* -------- Mobile burger + menu on the charcoal header -------- */
@media (max-width: 820px) {
  .nav-burger { border-color: var(--char-line); }
  .nav-burger span { background: #e7ebef; }
  .main-nav { background: var(--char-2); border-top-color: var(--char-line); border-bottom-color: var(--char-line); }
  .main-nav > a, .has-drop > a { border-bottom-color: var(--char-line); }
}

/* ============================================================
   Homepage rich components (feature cards, image tiles,
   dark bands, spec lists)
   ============================================================ */

/* Contained dark band (step process, pricing) with amber accent */
.band { background: var(--char); color: #e7ebef; padding: 34px 30px; border-radius: 14px;
  margin: 30px 0; border-top: 3px solid var(--accent); }
.band h2, .band h3 { color: #fff; }
.band .amber { color: var(--accent); }
.band p, .band li { color: #c7ced5; }
.band a { color: var(--accent); }
.band .band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.band ul { padding-left: 20px; margin: .3em 0 1em; }

/* Six "why us" feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 6px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px;
  border-top: 3px solid var(--accent); }
.feature .fic { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: 8px; }
.feature h3 { margin: .1em 0 .35em; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Image service tiles with amber label */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 6px; }
.tile { position: relative; display: block; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.06); }
.tile:hover { text-decoration: none; }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent);
  color: var(--char); font-weight: 800; text-align: center; padding: 9px 8px; font-size: .98rem; }

/* Let rich homepage blocks use the full content width */
.content-sec .wrap.narrow:has(.tile-grid),
.content-sec .wrap.narrow:has(.feature-grid),
.content-sec .wrap.narrow:has(.band) { max-width: 1080px; }

/* Spec / detail lists (stamped designs, etc.) */
.spec-list { list-style: none; padding: 0; margin: .4em 0 .8em; }
.spec-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: 0; }

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 26px 20px; }
  .band .band-cols { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   Hero background fade-in (home + service + city hero pages)
   The photo + overlay fade up on load; content gently rises.
   ============================================================ */
@keyframes heroReveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero.has-bg { animation: heroReveal 1.1s ease-out both; }
.hero.has-bg .hero-inner { animation: heroRise 1.1s 0.15s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .hero.has-bg, .hero.has-bg .hero-inner { animation: none; }
}
