/* Ivy Creek Construction — live site (ivycreekconst.com) */
:root {
  --black: #000000;
  --iron: #1A1A1A;
  --iron-line: #2E2E2E;
  --limestone: #ECE8E1;
  --gravel: #9A948A;
  --yellow: #F2B300;
  --yellow-ink: #000000;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(3rem, 8.5vw, 6.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--limestone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 80%; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--iron-line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.wordmark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; line-height: 1; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-seal { width: 48px; height: 48px; }
.about-seal { width: min(220px, 60%); height: auto; margin-top: 2rem; opacity: 0.9; }
.wordmark-name {
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: 1.85rem; letter-spacing: 0.01em;
}
.wordmark-sub {
  font-family: var(--display); font-stretch: 100%; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.28em; color: var(--yellow); margin-top: 0.15rem;
}
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--limestone); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.05rem;
  padding: 0.85rem 1.4rem; border: 2px solid transparent; border-radius: 2px;
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: #FFC61A; }
.btn-ghost { border-color: var(--limestone); color: var(--limestone); }
.btn-ghost:hover { background: var(--limestone); color: var(--black); }
.btn-call { background: var(--yellow); color: var(--yellow-ink); padding: 0.6rem 1rem; font-size: 0.98rem; white-space: nowrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 2.5rem; isolation: isolate; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.contours path { fill: none; stroke: var(--yellow); stroke-width: 1.1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-inner.single { grid-template-columns: 1fr; }
.hero-inner.single .hero-copy { max-width: 52rem; }
.hero h1 {
  font-size: var(--step-4);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: var(--limestone); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-photo { margin: 0; background: var(--iron); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.credentials {
  list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
  border-top: 1px solid var(--iron-line);
  font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: 1.05rem; color: var(--gravel);
}
.credentials li { position: relative; }

/* Sections */
.section { padding: var(--section) 0; }
.section-dark { background: var(--iron); }
.section-head { margin-bottom: 2.5rem; }
.section-head p, .col-head p { color: var(--gravel); }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.col-head { position: sticky; top: 6rem; }

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--iron-line); }
.service-list li {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 1.4fr; gap: 0.5rem 2rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--iron-line);
}
.service-list h3 { margin: 0; }
.service-list p { margin: 0; color: var(--gravel); }

/* Projects */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.project-grid li:first-child { grid-column: 1 / -1; }
.project-grid figure { margin: 0; }
.project-grid .frame { background: #262626; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.project-grid li:first-child .frame { aspect-ratio: 21 / 9; }
.project-grid img { width: 100%; height: 100%; object-fit: cover; }
.project-grid figcaption { margin-top: 0.7rem; font-size: 0.98rem; }
.project-grid figcaption strong { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.1rem; display: block; }

/* About */
.about-body p { font-size: var(--step-1); line-height: 1.55; }
.about-body h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.about-side { display: grid; gap: 1.5rem; justify-items: start; position: sticky; top: 6rem; }
.about-side .about-seal { margin-top: 0; }
.plain-list { margin: 0 0 1.5rem; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.plain-list li::marker { color: var(--yellow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.notice { background: var(--yellow); color: var(--yellow-ink); padding: 0.75rem 1rem; font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; margin-bottom: 2rem; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--iron-line); }
.hours td:last-child { text-align: right; color: var(--gravel); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--yellow); font-weight: 600; }
.contact-list { margin: 0; display: grid; gap: 1rem; }
.contact-list div { display: grid; grid-template-columns: 5rem 1fr; }
.contact-list dt { color: var(--gravel); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.quote-form { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 2px; display: grid; gap: 1rem; align-content: start; }
.quote-form label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; color: var(--limestone);
  border: 1px solid var(--iron-line); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%;
}
.quote-form button { justify-self: start; border: 0; }
.form-status { margin: 0; color: var(--gravel); font-size: 0.95rem; min-height: 1.5em; }

.map { display: block; width: 100%; height: 320px; border: 0; margin-top: clamp(2.5rem, 6vw, 4rem); filter: grayscale(1) invert(0.92) contrast(0.9); border-radius: 2px; }

/* Page header (inner pages) */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--iron-line); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-stretch: 62%; font-weight: 900; line-height: 0.95; margin-bottom: 0.75rem; }
.page-lede { font-size: var(--step-1); line-height: 1.5; color: var(--gravel); max-width: 44ch; margin: 0; }
.page-head .hero-actions { margin-top: 1.5rem; }
.section-tight { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.wrap.narrow { width: min(780px, 100%); }

.section-head.split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.section-head.split h2 { margin: 0; }
.text-link { color: var(--yellow); font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.text-link:hover { color: #FFC61A; }

/* Service tiles (home) */
.service-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--iron-line); border: 1px solid var(--iron-line); }
.service-tiles a { display: block; height: 100%; padding: 1.6rem 1.5rem; background: var(--black); text-decoration: none; transition: background 0.15s; }
.service-tiles a:hover { background: var(--iron); }
.service-tiles h3 { margin-bottom: 0.4rem; }
.service-tiles p { margin: 0; color: var(--gravel); font-size: 0.98rem; }
.service-list h2 { font-size: var(--step-1); font-stretch: 80%; font-weight: 700; line-height: 1.15; margin: 0; }

.project-grid.compact li:first-child { grid-column: auto; }
.project-grid.compact li:first-child .frame { aspect-ratio: 4 / 3; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
.cta-row p { margin: 0; font-size: var(--step-1); }

/* Capability buyer band (home) */
.buyer-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 3rem; align-items: center; border-left: 4px solid var(--yellow); padding-block: 0.5rem; }
.buyer-band p { color: var(--gravel); margin: 0; }
.buyer-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-end; }

/* Capability page */
.cap-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cap-main h2, .cap-side h2 { font-size: var(--step-2); margin-top: 2rem; }
.cap-main h2:first-child, .cap-side h2:first-child { margin-top: 0; }
.cap-side { background: var(--iron); padding: clamp(1.5rem, 3vw, 2rem); border-top: 4px solid var(--yellow); }
.cap-side h2 { font-size: var(--step-1); }
.cap-side a { color: var(--yellow); }
.data-list { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.data-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.data-list dt { font-family: var(--display); font-stretch: 85%; font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; }
.data-list dd { margin: 0; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--iron-line); }
.news-list li:first-child { padding-top: 0; }
.news-list time { color: var(--yellow); font-size: 0.92rem; font-weight: 600; }
.news-list h2 { font-size: var(--step-2); margin: 0.35rem 0 0.5rem; }
.news-list p { margin: 0; color: var(--gravel); }
.empty-state { color: var(--gravel); border: 1px dashed var(--iron-line); padding: 2rem; text-align: center; max-width: none; }

/* Form extras */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form { background: var(--iron); position: relative; }
.quote-form input, .quote-form select, .quote-form textarea { background: var(--black); }
.form-status:empty { display: none; }
.form-status.ok, .form-status.err { padding: 0.75rem 1rem; font-weight: 600; }
.form-status.ok { background: var(--yellow); color: var(--yellow-ink); }
.form-status.err { border: 2px solid var(--yellow); color: var(--limestone); }
.contact-grid h2 { font-size: var(--step-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--iron-line); padding: 3rem 0 2.5rem; color: var(--gravel); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; flex: none; }
.footer-brand p, .footer-meta { margin: 0; }
.footer-brand strong { color: var(--limestone); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem; }
.footer-nav a, .footer-meta a { text-decoration: none; color: var(--limestone); }
.footer-nav a:hover, .footer-meta a:hover { color: var(--yellow); }
.footer-meta { text-align: right; }

/* Menu */
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 0.6rem; background: none; border: 2px solid var(--iron-line); color: var(--limestone); font: 600 0.95rem var(--body); padding: 0.55rem 0.9rem; border-radius: 2px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background 0.2s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { align-items: center; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--yellow); }
.site-nav .nav-cta { border-bottom: 2px solid transparent; color: var(--yellow-ink); padding: 0.6rem 1rem; margin-left: 0.4rem; }
.site-nav .nav-cta:hover { background: #FFC61A; border-bottom-color: transparent; }

/* Responsive */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0.5rem var(--gutter) 1.25rem; background: var(--black); border-bottom: 1px solid var(--iron-line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--iron-line); font-size: 1.05rem; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--iron-line); }
  .site-nav .nav-cta { margin: 1rem 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 900px) {
  .hero-inner, .two-col, .contact-grid, .cap-grid, .buyer-band { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .col-head, .about-side { position: static; }
  .service-list li { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: 1fr 1fr; }
  .buyer-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { text-align: left; }
  /* Credentials: a clean stacked list instead of a ragged wrap */
  .credentials { flex-direction: column; gap: 0; font-size: 1rem; }
  .credentials li { padding: 0.7rem 0 0.7rem 1.1rem; border-bottom: 1px solid var(--iron-line); }
  .credentials li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--yellow); }
  .credentials li:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .project-grid, .service-tiles, .field-pair { grid-template-columns: 1fr; }
  .project-grid li:first-child .frame { aspect-ratio: 16 / 10; }
  .wordmark-name { font-size: 1.55rem; }
  .wordmark-seal { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-list div { grid-template-columns: 5.5rem 1fr; }
  .hero-actions .btn, .buyer-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (min-width: 901px) { .credentials { justify-content: space-between; gap: 0.75rem 1.5rem; font-size: 1rem; } }
[hidden] { display: none !important; }
.field-note { margin: 0 0 -0.5rem; color: var(--gravel); font-size: 0.9rem; }
