/* ==========================================================================
   Codogno Construction - landing page
   Palette: #0E0F10 ink / #F5A623 amber / #F2F1EE bone
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* An author-stylesheet `display` always beats the browser's default
   [hidden] rule, so anything toggled via the hidden attribute (mobile nav,
   success panel, field errors) needs this to actually disappear. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;   /* keeps anchors clear of the sticky header */
}

body {
  margin: 0;
  background: #0E0F10;
  color: #F2F1EE;
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #F5A623; text-decoration: none; }
a:hover { color: #ffc164; }
::selection { background: #F5A623; color: #0E0F10; }
img { max-width: 100%; }
input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #8A8D91; }

.wrap { max-width: 1240px; margin: 0 auto; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn-primary { background: #F5A623; color: #0E0F10; font-size: 15px; padding: 19px 26px; }
.btn-primary:hover { background: #ffc164; color: #0E0F10; transform: translateY(-1px); }
.btn-sm  { font-size: 13px; padding: 14px 22px; }
.btn-lg  { font-size: 15px; padding: 19px 34px; }
.btn-block { width: 100%; }
.btn-ghost {
  border: 1px solid #4A4E52; background: transparent; color: #F2F1EE;
  font-size: 13px; padding: 15px 26px;
}
.btn-ghost:hover { border-color: #F5A623; background: rgba(245,166,35,.08); color: #F2F1EE; }
.btn-lg.btn-ghost { font-size: 15px; padding: 19px 34px; }
.btn-dark { background: #0E0F10; color: #F5A623; font-size: 12px; letter-spacing: .12em; padding: 14px 20px; }
.btn-dark:hover { background: #26292C; color: #F5A623; }

/* --- shared type -------------------------------------------------------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #F5A623; margin: 0 0 16px;
}
.eyebrow-dark { color: #B07510; }

h2 {
  font-family: Archivo, sans-serif; font-weight: 900;
  font-size: clamp(32px, 5vw, 54px); line-height: 1;
  letter-spacing: -.02em; text-transform: uppercase; margin: 0;
}
.lead { margin: 0; max-width: 44ch; color: #B6B8BB; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.lead-lg { margin: 0 0 32px; font-size: 18px; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,16,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #26292C;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #F2F1EE; }
.brand:hover { color: #F2F1EE; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-name {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 19px;
  letter-spacing: .14em; text-transform: uppercase;
}
.accent { color: #F5A623; }

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop a {
  color: #C9CBCE; font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.nav-desktop a:hover { color: #F5A623; }
.nav-desktop a.btn:hover { color: #0E0F10; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid #33373B; cursor: pointer; padding: 0 12px;
}
.burger span { display: block; height: 2px; background: #F2F1EE; }

.nav-mobile {
  display: flex; flex-direction: column;
  padding: 8px 24px 24px; border-top: 1px solid #26292C; gap: 2px;
}
.nav-mobile a {
  padding: 14px 0; color: #C9CBCE; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; font-size: 14px; border-bottom: 1px solid #1D2023;
}
.nav-mobile a:hover { color: #F5A623; }
.nav-mobile a.btn {
  margin-top: 14px; border-bottom: none; color: #0E0F10;
  font-size: 14px; padding: 16px 22px;
}

@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}
@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(760px, 86vh);
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,15,16,.94) 0%, rgba(14,15,16,.82) 45%, rgba(14,15,16,.35) 100%);
}
.hero-inner {
  position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 120px 24px 96px; pointer-events: none;
}
.eyebrow-rule {
  display: inline-flex; align-items: center;
  border-left: 3px solid #F5A623; padding-left: 12px; margin: 0 0 26px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #F5A623;
}
.hero h1 {
  font-family: Archivo, sans-serif; font-weight: 900;
  font-size: clamp(40px, 7vw, 84px); line-height: .96; letter-spacing: -.02em;
  text-transform: uppercase; margin: 0; max-width: 16ch; text-wrap: balance;
}
.hero-lead {
  margin: 26px 0 0; max-width: 52ch;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #C9CBCE; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; pointer-events: auto; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px);
  margin-top: 64px; padding-top: 34px; border-top: 1px solid #2B2E31; max-width: 760px;
}
.stat-num { display: block; font-family: Archivo, sans-serif; font-weight: 900; font-size: 38px; color: #F5A623; line-height: 1; }
.stat-label { display: block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #9A9C9F; margin-top: 8px; }

/* --- marquee ------------------------------------------------------------ */
.marquee {
  background: #F5A623; border-top: 2px solid #0E0F10; border-bottom: 2px solid #0E0F10;
  overflow: hidden; display: flex;
}
.marquee-track {
  display: flex; width: max-content;
  animation: om-marquee var(--speed, 34s) linear infinite;
}
.marquee-set {
  display: flex; align-items: center; gap: 28px; width: max-content; flex: none;
  padding: 11px 14px; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: #0E0F10; white-space: nowrap;
}
@keyframes om-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- services ----------------------------------------------------------- */
.services {
  background: #F2F1EE; color: #141618;
  padding: clamp(72px, 10vw, 120px) 24px; overflow: hidden;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin-bottom: 56px;
}
.h2-dark { max-width: 18ch; }
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 1px; background: #DAD8D2; border: 1px solid #DAD8D2;
}
.service-card { background: #F2F1EE; padding: 38px 32px 42px; transition: background .25s; }
.service-card:hover { background: #FFFFFF; }
.service-icon { width: 46px; height: 46px; color: #B07510; }
.service-icon svg { width: 100%; height: 100%; display: block; }
.service-card h3 {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 21px;
  letter-spacing: -.01em; margin: 22px 0 10px; text-transform: uppercase;
}
.service-card p { margin: 0; color: #585C60; font-size: 16px; line-height: 1.6; text-wrap: pretty; }

/* --- reviews ------------------------------------------------------------ */
.reviews {
  background: #0E0F10; padding: clamp(72px, 10vw, 120px) 24px;
  border-top: 1px solid #1D2023;
}
.reviews-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 56px;
}
.reviews-head h2 { margin: 0 0 22px; max-width: 20ch; }
.rating-badges { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.badge-solid, .badge-outline {
  font-family: Archivo, sans-serif; text-transform: uppercase;
  padding: 16px 20px; line-height: 1.05;
}
.badge-solid { background: #F5A623; color: #0E0F10; font-weight: 900; }
.badge-outline { border: 1px solid #2B2E31; color: #C9CBCE; font-weight: 800; }
.badge-big { display: block; font-size: 34px; }
.badge-stars { color: #F2F1EE; }
.badge-small { display: block; font-size: 11px; letter-spacing: .16em; }

.review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.review {
  margin: 0; background: #17191B; border: 1px solid #26292C; padding: 34px 30px;
  display: flex; flex-direction: column; gap: 20px; transition: border-color .25s;
}
.review:hover { border-color: #3C4045; }
.stars { display: flex; gap: 3px; color: #F5A623; font-size: 17px; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: #DDDEDF; text-wrap: pretty; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; background: #26292C; border: 1px solid #33373B;
  color: #F5A623; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 16px; letter-spacing: .04em;
}
.reviewer { font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px; }

.owner-card {
  position: relative; background: #F5A623; overflow: hidden;
  min-height: 340px; display: flex; flex-direction: column;
}
.owner-copy { position: relative; z-index: 2; padding: 30px 28px 0; max-width: 22ch; }
.owner-title {
  font-family: Archivo, sans-serif; font-weight: 900; font-size: 26px;
  line-height: 1.02; text-transform: uppercase; color: #0E0F10; margin: 0;
}
.owner-body { margin: 12px 0 16px; font-size: 15px; line-height: 1.5; color: #3A2A08; }
.owner-img {
  position: absolute; right: -14%; bottom: 0; width: min(230px, 62%); z-index: 1;
  height: auto; pointer-events: none;
  filter: drop-shadow(-12px 18px 26px rgba(60,40,0,.28));
}

/* --- quote form --------------------------------------------------------- */
.quote {
  background: #17191B; padding: clamp(72px, 10vw, 120px) 24px;
  border-top: 1px solid #26292C;
}
.quote-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.quote-grid h2 { margin: 0 0 22px; max-width: 16ch; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: #C9CBCE; font-size: 16px; }
.dash { color: #F5A623; font-weight: 800; }

.team-shot {
  position: relative; margin: clamp(28px, 4vw, 44px) 0 0; background: #F5A623;
  overflow: hidden; display: flex; justify-content: center; align-items: flex-end;
}
.team-shot figcaption {
  position: absolute; left: 0; top: 0; background: #0E0F10; color: #F5A623;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; z-index: 2;
}
.team-shot img { width: 100%; height: auto; display: block; }

.form-panel {
  background: #0E0F10; border: 1px solid #2B2E31;
  padding: clamp(26px, 4vw, 42px); width: 100%;
}
#quote-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #9A9C9F;
}
.field input, .field textarea {
  background: #17191B; border: 1px solid #33373B; color: #F2F1EE;
  font-size: 16px; padding: 15px 16px; outline: none; transition: border-color .2s;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: #F5A623; }
.field textarea { resize: vertical; min-height: 130px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FF8A6B; }
.error { color: #FF8A6B; font-size: 14px; }
.form-note { margin: 0; font-size: 13px; color: #7E8286; line-height: 1.5; }
.form-fail {
  margin: 0; padding: 14px 16px; font-size: 15px; line-height: 1.5;
  color: #FF8A6B; border: 1px solid #FF8A6B; background: rgba(255,138,107,.08);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#q-submit[aria-busy="true"] { opacity: .6; cursor: progress; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
.check {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: #F5A623; color: #0E0F10; font-size: 28px; font-weight: 800;
}
.form-success h3 {
  font-family: Archivo, sans-serif; font-weight: 900; font-size: 26px;
  text-transform: uppercase; margin: 0;
}
.form-success p { margin: 0; color: #B6B8BB; font-size: 17px; line-height: 1.6; }
#q-reset { margin-top: 6px; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  background: #0B0C0D; border-top: 1px solid #1D2023;
  padding: clamp(56px, 8vw, 88px) 24px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 44px;
}
.footer-logo { height: 172px; width: auto; display: block; margin-bottom: 20px; }
.footer-blurb { margin: 0; color: #8A8D91; font-size: 16px; line-height: 1.6; max-width: 32ch; }
.footer-head {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #F2F1EE; margin: 0 0 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col a { color: #C9CBCE; font-size: 16px; }
.footer-col a:hover { color: #F5A623; }
.footer-phone { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; color: #F5A623 !important; }
.footer-col address { color: #8A8D91; font-size: 16px; line-height: 1.5; font-style: normal; }
.social {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid #33373B; padding: 13px 18px; color: #F2F1EE;
  transition: border-color .2s, background .2s;
}
.social:hover { border-color: #F5A623; background: rgba(245,166,35,.08); color: #F2F1EE; }
.social span { font-size: 15px; font-weight: 600; }

.footer-bottom {
  margin: 56px auto 0; padding-top: 24px; border-top: 1px solid #1D2023;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: #6F7376; font-size: 14px;
}
.footer-bottom a { color: #6F7376; }
.footer-bottom a:hover { color: #F5A623; }
