/* ==========================================================================
   C2C Roofing & Restoration — site styles
   Brand: navy primary (#1E3A5F), orange accent (#F97316).
   NOTE ON ACCENT COLOR: C2C org standard specifies a GOLD accent, but the
   logo and brand kit are navy + orange. The site ships with orange so it
   matches the logo. To switch the entire site to gold, change --accent and
   --accent-dark below to the gold values and nothing else.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #1E3A5F;
  --navy-dark:   #152D4A;
  --navy-light:  #314F73;
  --accent:      #F97316;   /* <- to go gold per org standard, set e.g. #C8A24B */
  --accent-dark: #E15E0A;   /* <- gold-dark e.g. #A9842F */
  --slate:       #576B7F;

  /* Neutrals */
  --ink:        #15243a;
  --body:       #3a4a5c;
  --muted:      #6b7a8c;
  --line:       #e3e8ef;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fa;
  --bg-navy:    var(--navy);

  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 10px 30px rgba(21, 36, 58, 0.10);
  --shadow-sm: 0 2px 10px rgba(21, 36, 58, 0.08);
  --maxw:     1180px;

  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #d7e0ec; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section-head p { color: #cdd8e6; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  text-align: center; line-height: 1.2;
}
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--block { width: 100%; justify-content: center; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1; }
.brand .brand-text span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(21,45,74,.82), rgba(21,45,74,.86)), url("../img/hero.jpg") center/cover no-repeat;
}
.hero-inner { padding-top: 96px; padding-bottom: 88px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: #e3eaf3; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; color: #cdd8e6; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges .star { color: var(--accent); font-weight: 700; }
.hero-crosslink { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .95rem; color: #cdd8e6; margin: 0 0 1.6rem; }

/* Service cards -------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card-body p { font-size: .96rem; color: var(--body); margin-bottom: 1rem; }
.card-body ul { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.card-body li { position: relative; padding-left: 1.5rem; font-size: .92rem; margin-bottom: .5rem; color: var(--slate); }
.card-body li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.card .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .92rem; }

.note-card { border: 1px dashed var(--accent); background: #fff7f0; }
.note-card .card-body p { color: var(--accent-dark); }

/* Story ---------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.story-grid p { font-size: 1.05rem; }

/* How we work ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px 22px; }
.step .num { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--navy); background: var(--accent); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; color: #c4d0df; margin: 0; }
.steps-closing { text-align: center; max-width: 720px; margin: 36px auto 0; color: #d7e0ec; font-size: 1.05rem; }

/* Projects ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* Service areas -------------------------------------------------------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.area h3 { color: var(--navy); display: flex; align-items: center; gap: .5rem; }
.area h3::before { content: "📍"; }
.area p { font-size: .96rem; color: var(--body); margin: 0; }

/* Reviews -------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .6rem; }
.review p { font-size: .95rem; color: var(--body); }
.review .who { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-top: auto; font-size: .95rem; }
.review .when { color: var(--muted); font-size: .82rem; font-weight: 400; }

/* FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .icon { color: var(--accent); font-size: 1.4rem; transition: .2s; flex: none; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a div { padding: 0 22px 20px; color: var(--body); font-size: .98rem; }

/* Contact / form ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { color: #fff; }
.contact-info .info-row { display: flex; gap: .7rem; margin-bottom: 1rem; font-size: 1.02rem; color: #d7e0ec; }
.contact-info .info-row strong { color: #fff; font-family: var(--font-head); }
.contact-info a { color: #fff; }

.form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); color: var(--body); }
.form-card h3 { color: var(--ink); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.req { color: var(--accent); }

.consent { display: flex; gap: .7rem; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 1.2rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent label { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--slate); line-height: 1.5; margin: 0; }
.consent a { color: var(--navy); text-decoration: underline; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; text-align: center; }
.form-status { display: none; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.form-status.error { display: block; background: #fdecec; color: #b3261e; }
.form-status.ok { display: block; background: #eaf7ee; color: #1b7a3d; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #b9c6d6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand .brand-text { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.2rem; }
.footer-brand .brand-text span { display: block; font-size: .7rem; letter-spacing: .14em; color: var(--accent); margin-top: 4px; }
.footer-brand p { font-size: .92rem; color: #9fb0c4; margin-top: 1rem; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; font-size: .92rem; }
.footer-col a { color: #b9c6d6; }
.footer-col a:hover { color: var(--accent); }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .85rem; color: #9fb0c4; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; margin-bottom: 18px; }
.footer-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #8395aa; }
.footer-bottom a { color: #8395aa; }
.footer-bottom a:hover { color: var(--accent); }

/* Legal pages ---------------------------------------------------------- */
.legal { padding: 64px 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: .3rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--body); }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .6rem; }
.legal .callout { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-sm); margin: 1.2rem 0; }

/* Utility -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }

/* Service / area pages ------------------------------------------------- */
.hero--service { background-color: var(--navy-dark); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero--service .hero-inner { padding-top: 72px; padding-bottom: 64px; max-width: 820px; }
.check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: var(--body); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
a.card-img { display: block; }
a.area { color: inherit; text-decoration: none; display: block; transition: .2s ease; }
a.area:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gallery figcaption { font-family: var(--font-body); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }
.footer-col--cta .footer-cta-text { font-size: .92rem; color: #9fb0c4; margin: 0 0 1rem; max-width: 34ch; }
.nav-call { display: none; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--3, .reviews, .areas, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  /* Header order on mobile: logo (left) ... [Free Estimate] [hamburger] (right) */
  .header-inner { height: 62px; gap: 1rem; }
  .brand { margin-right: auto; }
  .brand img { height: 36px; }
  .brand .brand-text { font-size: .95rem; }
  .nav, .header-phone { display: none; }
  .header-cta { gap: .5rem; }
  .header-cta .btn { padding: .5rem .8rem; font-size: .82rem; white-space: nowrap; }
  .nav-toggle { display: block; padding: 8px; margin-left: .5rem; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0;
  }
  .nav.open a { padding: 14px 18px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.open .nav-call { display: block; color: var(--accent); font-weight: 700; }
  .grid--3, .grid--2, .reviews, .areas, .gallery, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 60px; padding-bottom: 52px; }
  .hero-badges { font-size: .85rem; gap: .45rem 1rem; }
  .form-card { padding: 22px; }
}
@media (max-width: 380px) {
  .brand .brand-text { font-size: .88rem; }
  .brand img { height: 32px; }
  .header-cta .btn { padding: .45rem .65rem; font-size: .78rem; }
  .nav-toggle span { width: 22px; }
}
