/* Chasco Constructors redesign preview. Balay ni Bruno & Co., 2026-10.
   Palette: Chasco brand color + Central Texas materials (limestone, caliche, cedar, night sky).
   The accent value is filled in by build_site.py from the real logo color. */
:root {
  --night: #0E1E33;        /* deep Texas night blue, primary dark */
  --night-2: #1B2C40;
  --limestone: #F3EEE5;    /* Austin limestone, page background */
  --caliche: #E5DBCB;      /* caliche clay, section tint */
  --cedar: #7A4B2E;        /* Hill Country cedar, warm accent */
  --steel: #5B6772;        /* structural steel, secondary text */
  --ink: #1D2328;
  --white: #FFFFFF;
  --accent: #7A1E3A;    /* Chasco logo color */
  --accent-ink: #FFFFFF;
  --line: rgba(19, 32, 47, 0.12);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--limestone); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; color: var(--night); text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-stretch: 85%; }
p { max-width: 68ch; }
.eyebrow { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cedar); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 60ch; }
.on-dark { color: #E9E4DA; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lede { color: #B9C2CC; }
.on-dark .eyebrow { color: #D9B38C; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 238, 229, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 100%; font-weight: 800; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent; transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.menu-toggle { display: none; background: none; border: 2px solid var(--night); border-radius: var(--radius); padding: 8px 12px; font-family: var(--display); font-weight: 800; letter-spacing: .1em; color: var(--night); }
@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--limestone); flex-direction: column; align-items: flex-start; padding: 20px var(--gutter) 28px; gap: 14px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav .btn { width: 100%; justify-content: center; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; background: var(--night); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,32,47,.2) 0%, rgba(19,32,47,.55) 55%, rgba(19,32,47,.96) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: #D5DCE3; margin: 20px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero { background: var(--night); color: #fff; padding: clamp(72px, 10vw, 130px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.page-hero .lede { color: #C4CCD5; margin-top: 18px; }
.page-hero.has-img .bg { position: absolute; inset: 0; }
.page-hero.has-img .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero .wrap { position: relative; }
.crumbs { font-size: .82rem; color: #9AA6B2; margin-bottom: 16px; }
.crumbs a { color: #D9B38C; text-decoration: none; }

/* Stats band */
.stats { background: var(--accent); color: var(--accent-ink); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; border-left: 1px solid rgba(0,0,0,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat span { font-size: .86rem; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid rgba(0,0,0,.12); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--caliche); --steel: #4A5560; }   /* 5.55:1 on caliche (was 4.22:1), Alex 2026-11-05 */
.section.dark { background: var(--night); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Split: horizontal + vertical */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--night); }
.split-card { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; text-decoration: none; }
.split-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.split-card:hover img { transform: scale(1.04); }
.split-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(19,32,47,.92)); }
.split-card .inner { position: relative; z-index: 1; padding: 36px; }
.split-card h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-stretch: 75%; }
.split-card p { color: #D5DCE3; margin-top: 8px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 10px; margin-bottom: 12px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split-card { min-height: 340px; } }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(19,32,47,.12); }
.card .media { aspect-ratio: 4 / 3; background: var(--caliche); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--steel); font-size: .96rem; }
.meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cedar); margin-bottom: 8px; }
.service { background: #fff; border-top: 4px solid var(--accent); padding: 30px 26px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--steel); }
.service ul { margin: 14px 0 0 18px; color: var(--steel); font-size: .95rem; }

/* Photo placeholder: honest "photo coming" slot, never a fake image */
.photo-slot { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--caliche), var(--caliche) 12px, #DDD1BE 12px, #DDD1BE 24px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--cedar); font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: 16px; }
.photo-slot.round { aspect-ratio: 1; border-radius: 50%; }

/* People */
.person { text-align: left; }
.person .photo-slot, .person img { aspect-ratio: 1; margin-bottom: 14px; border-radius: var(--radius); object-fit: cover; }
.person b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; color: var(--night); }
.person span { font-size: .9rem; color: var(--steel); }

/* Quote / story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story img, .story .photo-slot { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.timeline { border-left: 3px solid var(--accent); margin-top: 20px; }
.timeline li { list-style: none; padding: 0 0 22px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--limestone); border: 3px solid var(--accent); border-radius: 50%; }
.timeline b { font-family: var(--display); font-stretch: 75%; font-size: 1.5rem; color: var(--night); display: block; line-height: 1.1; }

/* Clients strip */
.clients { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.clients li { list-style: none; background: #fff; border: 1px solid var(--line); padding: 10px 16px; font-weight: 700; font-size: .92rem; border-radius: 999px; color: var(--night); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: transparent; border: 2px solid var(--night); color: var(--night); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--night); color: #fff; }

/* FAQ (AI search + people) */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; }
.faq summary { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; color: var(--night); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; color: var(--steel); }

/* CTA band */
.cta-band { background: var(--night); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border: 40px solid var(--accent); opacity: .12; border-radius: 50%; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.cta-band h2 { color: #fff; max-width: 16ch; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; font-size: .9rem; color: var(--night); display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 13px 14px; border: 1px solid #C9BFAE; border-radius: var(--radius); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Footer */
.site-footer { background: #0E1823; color: #AEB8C2; padding: 64px 0 28px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; font-stretch: 100%; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { text-decoration: none; color: #AEB8C2; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.site-footer .legal-links a { display: inline-block; padding: 0; }
.site-footer .social { display: flex; gap: 8px; }
.site-footer .social a { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 14px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.site-footer .social a:hover { border-color: #fff; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } .site-footer .legal { flex-direction: column; } }

/* Trusted by: wordmark grid of owner names (Alex 2026-11-05), logos later with each owner's OK */
.clients.wordmarks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid rgba(19,32,47,.18); border-left: 1px solid rgba(19,32,47,.18); padding: 0; }
.clients.wordmarks li { background: transparent; border: 0; border-right: 1px solid rgba(19,32,47,.18); border-bottom: 1px solid rgba(19,32,47,.18); border-radius: 0; min-height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px 16px; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; color: var(--night); }

/* Preview ribbon (removed at launch) */
.preview-ribbon { background: var(--cedar); color: #fff; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: 7px 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.nav a.btn { color: var(--accent-ink); border-bottom: 0; padding: 12px 20px; }
.nav a.btn:hover { border-bottom: 0; }
@media (max-width: 980px) {
  .nav { visibility: hidden; }
  .nav.open { visibility: visible; }
}
.award-badge { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--night); color: var(--gold, #D9A45B); font-family: var(--display); font-weight: 900; font-size: 1.6rem; font-stretch: 75%; margin-bottom: 16px; }
.fact-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.fact-list li { background: #fff; border-left: 4px solid var(--accent); padding: 14px 18px; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-links a { text-decoration: none; border: 2px solid var(--night); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--night); }
.chip-links a:hover { background: var(--night); color: #fff; }

.person img { object-position: center 20%; }
.now-badge { display: inline-block; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 3px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

/* 2026-10-27: even project galleries, linked service tiles */
.gallery img, .gallery .photo-slot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
a.service { display: block; color: inherit; text-decoration: none; }
a.service:hover h3 { text-decoration: underline; }
@media (max-width: 520px) { .clients.wordmarks { grid-template-columns: 1fr 1fr; } .clients.wordmarks li { min-height: 76px; font-size: .8rem; padding: 12px 8px; letter-spacing: .04em; } }
/* Header and home hero edge, Ryan 2026-11-11: logo far left, Let's Talk far right, menu centered on the page;
   home hero heading starts one letter width from the left edge, in line with the logo.
   --edge = the width of one "C" in the hero heading (Archivo 800 at 75% width, measured 0.58em: 51.9px at 89.6px). */
:root { --h1-size: clamp(2.6rem, 7vw, 5.6rem); --edge: max(16px, calc(var(--h1-size) * 0.58)); }
h1 { font-size: var(--h1-size); }
.site-header .wrap { max-width: none; padding: 0 var(--edge); }
.header-cta { color: var(--accent-ink); text-decoration: none; padding: 12px 20px; white-space: nowrap; }
.nav-cta-mobile { display: none; }
@media (min-width: 981px) {
  .site-header .wrap { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .site-header .brand { justify-self: start; }
  .site-header .nav { justify-self: center; }
  .site-header .header-cta { justify-self: end; }
}
@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav .nav-cta-mobile { display: inline-flex; }
}
.hero .wrap { max-width: none; margin: 0; padding-left: var(--edge); padding-right: var(--edge); }

:root { --gold: #D9A45B; }
.hero h1 em { color: var(--gold); }
.on-dark .eyebrow::before, .hero .eyebrow::before { background: var(--gold); }
.stats { background: var(--accent); color: #fff; }
