/* Cangelosi Company — site design system, v3
   v1 was too close to Playfair/dark-card templates Marathon's used elsewhere.
   v2 widened the palette but was still a dark theme with an invented font
   (Playfair Display) that has nothing to do with Cangelosi's actual brand.
   v3: pulled the REAL logo (cangelosi.com/wp-content/uploads/2022/02/logo.png)
   — a light, neutral wordmark set in a classical Roman-caps serif (matched
   here with Cinzel) with a casual script tagline. That logo, not the funnel,
   is the actual brand. So: light warm-paper background is now the base,
   brass stays as the accent (keeps the tie to the already-live funnel
   campaign), and headline type moved from Playfair to a Cinzel/Cormorant
   Garamond pairing that actually resembles their wordmark.

   ZONING: most of the site is now a LIGHT zone (paper bg, dark ink text).
   The header/utility bar, footer, and the closing CTA band are kept as a
   DARK zone on purpose — bookending each page in the brand-dark tone so the
   site still visually ties back to the funnel, without the whole page
   reading as heavy. Dark-zone rules are called out explicitly below; don't
   assume the light-zone default tokens apply inside them. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  /* light zone — base surface + text */
  --paper: #f7f2e8;         /* main page background, warm parchment */
  --paper-deep: #efe4cd;    /* alt section band, slightly deeper warm tone */
  --paper-line: rgba(36, 28, 20, 0.13);   /* borders/dividers on light zone */
  --ink: #241c15;           /* primary heading/text color on light zone */
  --muted: #5c5245;         /* body copy on light zone */
  --muted-soft: #7d7264;    /* captions/labels on light zone, lighter than --muted */

  /* dark zone — header, footer, cta-band, form islands */
  --ink-deep: #17110d;      /* dark zone background */
  --ink-soft: #241b15;      /* dark "island" background, e.g. form fields */
  --cream: #ece4d5;         /* headings/primary text on dark zone */
  --muted-dim: #a89a86;     /* body/secondary text on dark zone */

  /* brass accent — split into a light-zone (darker, AA-on-paper) variant
     and a dark-zone (lighter, AA-on-ink) variant. Same hue family, tuned
     per zone rather than one value doing both jobs. */
  --brass: #a4762c;         /* accent text/links on LIGHT zone */
  --brass-fill: #c6a35c;    /* button fills, thin rule lines, decorative use */
  --brass-light: #d8b978;   /* accent text on DARK zone (header/footer/cta) */
  --brass-wash: rgba(164, 118, 44, 0.10);
  --brass-border: rgba(164, 118, 44, 0.35);
  --ink-on-brass: #241c15;  /* dark text sitting on a brass-filled button */

  /* stone-toned secondaries */
  --slate: #8a8071;
  --slate-line: rgba(122, 112, 96, 0.25);
  --bronze-deep: #7a4a24;
  --bronze-wash: rgba(122, 74, 36, 0.08);

  /* legacy alias so nothing silently falls back unstyled */
  --line: var(--paper-line);

  --font-mark: "Cinzel", Georgia, "Times New Roman", serif;       /* wordmark only */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* all headings, accent */
  --font-body: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --noise: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj4KPGZpbHRlciBpZD0ibiI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuODUiIG51bU9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwICAwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMC41IDAiLz48L2ZpbHRlcj4KPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+Cjwvc3ZnPg==");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
/* dark-zone eyebrow override (used inside .cta-band) */
.cta-band .eyebrow { color: var(--brass-light); }
.cta-band .eyebrow::before { background: var(--brass-light); }

/* ---------- Texture ---------- */
.texture { position: relative; isolation: isolate; }
.texture::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  background-size: 200px 200px;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.dark-zone .texture::before, .cta-band.texture::before, .site-header.texture::before { mix-blend-mode: overlay; opacity: 0.05; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-brass { background: var(--brass-fill); color: var(--ink-on-brass); }
.btn-brass:hover { background: var(--brass-light); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--paper-line); }
.btn-outline:hover { border-color: var(--brass-border); color: var(--brass); }
/* dark-zone outline button (header/footer/cta-band) */
.site-header .btn-outline, .site-footer .btn-outline, .cta-band .btn-outline {
  color: var(--cream); border-color: rgba(236,228,213,0.25);
}
.cta-band .btn-outline:hover { border-color: var(--brass-border); color: var(--brass-light); }

/* ---------- Header (DARK ZONE) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--brass-border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .word {
  font-family: var(--font-mark); font-weight: 600;
  font-size: 1.4rem; letter-spacing: 0.08em; color: var(--cream);
}
.logo .est {
  font-size: 0.62rem; letter-spacing: 0.24em; color: var(--brass-light);
  margin-top: 6px; text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a.nav-link {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--muted-dim);
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { color: var(--cream); border-color: var(--brass-light); }
.header-cta { display: flex; align-items: center; gap: 22px; }

/* ---------- Mobile nav toggle + drawer (DARK ZONE, matches header) ---------- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

.mobile-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink-deep); border-bottom: 1px solid var(--brass-border);
  padding: 8px 32px 28px; z-index: 60;
  max-height: calc(100vh - 84px); overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) {
  padding: 14px 0; border-bottom: 1px solid rgba(236,228,213,0.1);
  color: var(--muted-dim); font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.mobile-nav a:not(.btn):hover { color: var(--cream); }
.mobile-nav-divider { height: 1px; background: rgba(236,228,213,0.1); margin: 4px 0; }
.mobile-nav .btn { margin-top: 16px; justify-content: center; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

/* utility bar (inline-styled in HTML) relies on --ink / --muted-dim / --brass-light being dark-zone-correct as-is */

/* ---------- Hero: split panel — now a LIGHT zone ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: clamp(320px, 30vw, 460px);
  border-bottom: 1px solid var(--paper-line);
}
.hero-split .hero-copy {
  background: var(--paper);
  display: flex; align-items: center;
  padding: 40px 64px;
  position: relative;
}
.hero-split .hero-copy .inner { max-width: 480px; }
.hero-split .hero-photo { position: relative; overflow: hidden; background: var(--paper-deep); }
.hero-split .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-split .hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(23,17,13,0.02), rgba(23,17,13,0.12));
}
.hero-split .frame-number, .hero-full .frame-number {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  font-family: var(--font-serif); font-style: italic; color: var(--cream);
  font-size: 0.85rem; letter-spacing: 0.05em;
  background: rgba(23,17,13,0.6); padding: 6px 14px; border: 1px solid var(--brass-border);
}
.lede { font-size: 1.05rem; color: var(--muted); }

/* ---------- Hero: full-width (home only) — image now, video later ---------- */
.hero-full {
  position: relative;
  min-height: clamp(440px, 58vw, 640px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--brass-border);
}
.hero-full .hero-media { position: absolute; inset: 0; }
.hero-full .hero-media img,
.hero-full .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-full-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,17,13,0.92) 0%, rgba(23,17,13,0.78) 35%, rgba(23,17,13,0.58) 65%, rgba(23,17,13,0.4) 100%);
}
.hero-full-content { position: relative; z-index: 2; padding-bottom: 56px; max-width: 720px; }
.hero-full-content .eyebrow, .hero-full-content .eyebrow::before { color: var(--brass-light); }
.hero-full-content .eyebrow::before { background: var(--brass-light); }
.hero-full-content h1 { color: var(--cream); }
.hero-full-content .lede { color: var(--muted-dim); }
.hero-full-content .accent { color: var(--brass-light); }
.hero-full-content .btn-outline { color: var(--cream); border-color: rgba(236,228,213,0.3); }
.hero-full-content .btn-outline:hover { border-color: var(--brass-light); color: var(--brass-light); }

@media (max-width: 900px) {
  .hero-full { min-height: clamp(420px, 90vw, 560px); align-items: flex-end; }
  .hero-full-content { padding-bottom: 40px; }
  .hero-full .frame-number { display: none; }
}
.cta-row { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.accent { color: var(--brass); font-style: italic; font-family: var(--font-serif); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-photo { height: 320px; order: -1; }
  .hero-split .hero-copy { padding: 56px 28px; }
}

/* ---------- Section rhythm (light zone) ---------- */
.section { padding: 100px 0; border-bottom: 1px solid var(--paper-line); position: relative; }
.section-slate { background: var(--paper-deep); border-bottom-color: var(--slate-line); }
.section-deep { background: var(--paper-deep); border-bottom-color: var(--slate-line); } /* legacy alias, kept light */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { height: 1px; background: linear-gradient(90deg, var(--brass-border), transparent); margin: 0 0 56px; }
.rule.center { background: linear-gradient(90deg, transparent, var(--brass-border), transparent); }

/* ---------- Editorial index rows ---------- */
.index-list { border-top: 1px solid var(--paper-line); }
.index-row {
  display: grid;
  grid-template-columns: 90px 1fr 220px 140px;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--paper-line);
  transition: background 0.15s ease;
}
.index-row:hover { background: rgba(36, 28, 20, 0.035); }
.index-row .idx {
  font-family: var(--font-serif); font-style: italic; color: var(--brass);
  font-size: 1.7rem;
}
.index-row .info .tag {
  color: var(--muted-soft); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.index-row .info h3 { margin-bottom: 8px; }
.index-row .info p { font-size: 0.92rem; margin-bottom: 0; max-width: 520px; }
.index-row .thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--paper-line); }
.index-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.index-row .thumb.placeholder { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--ink-soft), var(--ink-soft) 10px, var(--ink-deep) 10px, var(--ink-deep) 20px); }
.index-row .thumb.placeholder span { font-family: var(--font-serif); font-style: italic; color: var(--muted-dim); font-size: 0.7rem; text-align: center; padding: 6px; }
.index-row .go { justify-self: end; font-size: 0.76rem; color: var(--brass); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }

@media (max-width: 900px) {
  .index-row { grid-template-columns: 50px 1fr; }
  .index-row .thumb, .index-row .go { display: none; }
}

/* ---------- Simple content grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: transparent;
  border-top: 2px solid var(--brass-border);
  padding: 28px 0 0;
}
.card .num, .card .icon { color: var(--brass); font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
/* card used as a callout box (e.g. contact.html) sometimes needs a filled bg */
.card.texture:not(.dark-panel) { background: var(--paper-deep); padding: 28px; border-top: none; border-left: 3px solid var(--brass-fill); }

.photo-panel {
  overflow: hidden; border: 1px solid var(--paper-line);
  aspect-ratio: 4/3; background: var(--paper-deep);
}
.photo-panel img { width: 100%; height: 100%; object-fit: cover; }
.photo-panel.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--ink-soft), var(--ink-soft) 12px, var(--ink-deep) 12px, var(--ink-deep) 24px);
}
.photo-panel.placeholder span {
  font-family: var(--font-serif); font-style: italic; color: var(--muted-dim); font-size: 0.9rem;
}

/* ---------- Stats strip ---------- */
.stats { display: flex; flex-wrap: wrap; }
.stat { padding: 0 40px 0 0; margin-right: 40px; border-right: 1px solid var(--paper-line); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-serif); font-size: 2.5rem; color: var(--brass); }
.stat .l { font-size: 0.78rem; color: var(--muted-soft); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Filter bar (Projects) ---------- */
.filter-bar { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; border-bottom: 1px solid var(--paper-line); padding-bottom: 20px; }
.filter-chip {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0 0 4px; color: var(--muted-soft); border-bottom: 2px solid transparent;
}
.filter-chip.active { color: var(--brass); border-color: var(--brass); }

/* ---------- News list ---------- */
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--paper-line); }
.news-item .date { color: var(--brass); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.news-item h3 { margin-bottom: 8px; }
.news-item p { font-size: 0.92rem; }

/* ---------- CTA band (DARK ZONE) ---------- */
.cta-band {
  background: var(--ink-deep);
  border-top: 1px solid var(--brass-border);
  padding: 80px 0; text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 20px; }
.cta-band p { color: var(--muted-dim); }
.cta-band .cta-row { justify-content: center; }

/* ---------- Footer (DARK ZONE) ---------- */
.site-footer { background: var(--ink-deep); padding: 64px 0 32px; border-top: 1px solid var(--brass-border); color: var(--muted-dim); }
.site-footer .logo .word { color: var(--cream); }
.site-footer p { color: var(--muted-dim); }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 48px; }
.site-footer h4 { color: var(--brass-light); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { display: block; font-size: 0.88rem; color: var(--muted-dim); margin-bottom: 12px; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(236,228,213,0.14); padding-top: 28px; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted-dim); flex-wrap: wrap; gap: 12px; }

/* ---------- Dark panel utility (a dark "island" dropped onto a light page,
   e.g. the trade-partner callout on contact.html) ---------- */
.dark-panel { background: var(--ink-soft); color: var(--muted-dim); }
.dark-panel h3, .dark-panel h2 { color: var(--cream); }
.dark-panel .eyebrow { color: var(--brass-light); }
.dark-panel .eyebrow::before { background: var(--brass-light); }
.dark-panel .btn-outline { color: var(--cream); border-color: rgba(236,228,213,0.25); }
.dark-panel .btn-outline:hover { border-color: var(--brass-border); color: var(--brass-light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.78rem; color: var(--muted-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- FAQ (shared pattern for expanded page content) ---------- */
.faq-list { border-top: 1px solid var(--paper-line); max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--paper-line); padding: 26px 0; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.94rem; margin-bottom: 0; color: var(--muted); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .stats { gap: 12px 0; }
  .stat { border-right: none; padding-right: 0; margin-right: 0; width: 50%; margin-bottom: 20px; }
}
