/* ===================================================================
   AY Roofing Specialists — Design System
   Real brand palette (from logo): near-black + signature orange + white
   Type: Archivo Black (display) + Archivo (body) + Space Mono (data)
   Signature motif: roof-pitch chevron divider (distinct from network-site
   corrugated-profile motif used elsewhere in the portfolio)
=================================================================== */

:root {
  --ink: #171310;
  --charcoal: #23201c;
  --orange-500: #ee7916;
  --orange-600: #d2650a;
  --orange-100: #fdeee0;
  --grey-100: #f6f4f1;
  --grey-300: #e4e0da;
  --grey-600: #5c574f;
  --white: #ffffff;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  background: var(--orange-500);
  display: inline-block;
}

/* ---------- Signature: roof-pitch divider ---------- */
.roofline-divider {
  width: 100%;
  height: 26px;
  display: block;
  line-height: 0;
}
.roofline-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange-500);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar (real contact + socials) ---------- */
.top-bar {
  background: var(--ink);
  color: var(--grey-300);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--grey-300); text-decoration: none; }
.top-bar a:hover { color: var(--orange-500); }
.top-bar-contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar-social { display: flex; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--grey-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.logo-img { height: 44px; width: auto; display: block; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover, nav.main-nav a:focus-visible {
  color: var(--orange-600);
  border-color: var(--orange-500);
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link-header {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link-header:hover { color: var(--orange-600); }
.header-social { display: flex; gap: 6px; }
.header-social a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--grey-300);
  border-radius: 50%;
  color: var(--grey-600);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.header-social a:hover { border-color: var(--orange-500); color: var(--orange-600); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-500);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--orange-600); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-600); background: transparent; }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--orange-600); color: var(--ink); }

.mobile-call-btn { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--grey-100); padding: 10px 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-600);
}
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-600); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--grey-300); }

/* ---------- Hero ---------- */
.hero { background: var(--grey-100); padding: 56px 0 0; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 56px; }
.hero-copy p.lede { font-size: 1.08rem; color: var(--grey-600); max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-media { position: relative; align-self: end; }
.hero-media svg { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Photo hero (two-column, native photo ratio — no cropping) ---------- */
.hero-full {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-full-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-full-content { max-width: 560px; padding: 70px 0 60px; }
.hero-full-content .eyebrow { color: var(--orange-500); }
.hero-full-content .eyebrow::before { background: var(--orange-500); }
.hero-full-content h1 { color: var(--white); }
.hero-full-content p.lede { color: var(--grey-300); }
.hero-full-media { align-self: end; position: relative; }
.hero-full-media img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.hero-full-media .caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink);
  background: var(--orange-500); padding: 6px 10px; letter-spacing: 0.03em;
}

.hero-badges { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--grey-300);
}
.hero-badge .stars { color: var(--orange-500); letter-spacing: 1px; }

@media (max-width: 860px) {
  .hero-full-inner { grid-template-columns: 1fr; }
  .hero-full-content { padding-bottom: 30px; }
}

/* ---------- Overlapping feature-CTA row ---------- */
.feature-cta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-300);
  margin-top: -46px;
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.35);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-cta {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-cta.accent { background: var(--orange-500); color: var(--ink); }
.feature-cta h3 { font-size: 0.94rem; margin-bottom: 4px; }
.feature-cta p { font-size: 0.86rem; color: var(--grey-600); margin: 0 0 12px; flex-grow: 1; }
.feature-cta.accent p { color: var(--ink); opacity: 0.85; }
.feature-cta .btn { align-self: flex-start; font-size: 0.74rem; padding: 10px 16px; }
.feature-cta.accent .btn { background: var(--ink); color: var(--white); }
.feature-cta.accent .btn:hover { background: var(--charcoal); }

@media (max-width: 900px) {
  .feature-cta-row { grid-template-columns: 1fr 1fr; margin-top: -40px; }
}
@media (max-width: 560px) {
  .feature-cta-row { grid-template-columns: 1fr; }
}

/* ---------- Stats / proof section ---------- */
.proof-section { padding: 90px 0 64px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: center; }
.proof-copy h2 span { color: var(--orange-600); }
.proof-media { position: relative; }
.proof-media svg, .proof-media img { border-radius: var(--radius); width: 100%; }
.proof-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--orange-500); color: var(--ink);
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-display); font-size: 0.78rem; line-height: 1.15;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  border: 4px solid var(--white);
}
.proof-stats { display: flex; flex-direction: column; gap: 28px; }
.proof-stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--orange-600); line-height: 1; }
.proof-stat .label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey-600); margin-top: 6px; }

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-stats { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Trust badge row (text-based, no reproduced logos) ---------- */
.trust-badges-row {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  flex-wrap: wrap; padding: 32px 0; border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300);
}
.trust-badges-row .label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--grey-600); letter-spacing: 0.08em;
}
.trust-badges-row .supplier {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--grey-600); text-transform: uppercase;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--grey-300); font-size: 0.82rem; font-family: var(--font-mono); }
.trust-item .dot { width: 6px; height: 6px; background: var(--orange-500); border-radius: 50%; flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: var(--grey-100); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--grey-600); }

/* ---------- Service grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--orange-500); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 0.94rem; margin-bottom: 14px; }
.card a.card-link {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--orange-500); padding-bottom: 2px;
}
.card a.card-link:hover { color: var(--orange-600); }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--grey-300); position: relative; font-size: 0.96rem; }
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px;
  background: var(--orange-500); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.bullet-list li:last-child { border-bottom: none; }

/* ---------- Process steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 28px 20px 20px; background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); }
.process-step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--orange-600);
  background: var(--white); border: 2px solid var(--orange-500); width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: absolute; top: -14px; left: 20px;
}
.process-step h3 { font-size: 0.98rem; margin-bottom: 8px; }
.process-step p { color: var(--grey-600); font-size: 0.9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.testimonial-stars { color: var(--orange-500); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.92rem; color: var(--ink); margin: 0; flex-grow: 1; }
.testimonial-name { font-family: var(--font-mono); font-size: 0.76rem; color: var(--grey-600); text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: 52px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--grey-300); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Area cards / hub ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.area-chip {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink); display: block;
  transition: border-color 0.15s, transform 0.1s;
}
.area-chip:hover { border-color: var(--orange-500); transform: translateY(-2px); }
.area-chip .area-name { font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; text-transform: uppercase; }
.area-chip .area-county { font-family: var(--font-mono); font-size: 0.7rem; color: var(--grey-600); }

.area-detail-box {
  background: var(--white); border: 1px solid var(--grey-300); border-left: 4px solid var(--orange-500);
  border-radius: var(--radius); padding: 22px 26px; font-size: 0.92rem; color: var(--grey-600);
}
.area-detail-box strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--grey-300); padding: 20px 0; }
.faq-item h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.faq-item p { color: var(--grey-600); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--grey-300); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.05em; margin-bottom: 14px; text-transform: uppercase; font-family: var(--font-display); font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--grey-300); text-decoration: none; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--orange-500); }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a { color: var(--grey-300); font-family: var(--font-mono); font-size: 0.78rem; text-decoration: none; border: 1px solid var(--grey-600); border-radius: var(--radius); padding: 6px 10px; }
.footer-social a:hover { border-color: var(--orange-500); color: var(--orange-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--grey-600); font-family: var(--font-mono);
}
.footer-bottom a { color: var(--grey-600); }

/* ---------- 404 ---------- */
.error-page { min-height: 50vh; display: flex; align-items: center; }
.error-page .code { font-family: var(--font-mono); color: var(--orange-600); font-size: 0.95rem; letter-spacing: 0.1em; }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .top-bar .container { justify-content: center; text-align: center; }

  .mobile-call-btn {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--orange-500); color: var(--ink); text-align: center; justify-content: center;
    align-items: center; gap: 8px; padding: 14px; font-family: var(--font-display); text-transform: uppercase;
    text-decoration: none; font-size: 0.9rem; box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  }
  body { padding-bottom: 58px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }
