/* ==========================================================================
   CCS Seamless Gutters (Carolina Construction Services) - shared stylesheet
   Owned by the orchestrator. Page agents may ONLY append page-scoped rules
   below, each under a banner comment reading: page: <slug>
   Do not edit the token, header, footer or shared-component blocks above.
   Fonts are loaded per-page with a Google Fonts link tag in the head.
   ========================================================================== */

:root {
  --red: #ce3638;
  --red-dark: #a72a2c;
  --red-band-a: #d8433f;
  --red-band-b: #b02b2d;
  --ink: #141414;
  --ink-2: #1d1d1d;
  --topbar-bg: #d8d8d8;
  --footer-bg: #3b3b3b;
  --footer-text: #cfcfcf;
  --text: #333333;
  --muted: #6b6b6b;
  --heading: #1b1b1b;
  --white: #ffffff;
  --line: #e4e4e4;
  --card-shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 26px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: .5px;
}

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
  margin: 0 0 6px;
}

.section-title {
  font-family: var(--font-display);
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
}
.topbar {
  background: var(--topbar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
}
.topbar .brand img { width: 118px; height: auto; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  margin-right: auto;
}
.topbar-social a { display: inline-flex; transition: transform .18s ease; }
.topbar-social a:hover { transform: translateY(-2px); }
.topbar-social img { width: 30px; height: 30px; }
.call-btn { padding: 11px 26px; font-size: 15px; white-space: nowrap; }

.mainnav {
  background: var(--ink);
}
.mainnav > ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mainnav a {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 16px;
  padding: 16px 18px;
  transition: color .18s ease;
}
.mainnav a:hover, .mainnav a:focus,
.mainnav .current > a { color: var(--red); }
.mainnav li { position: relative; }

.has-sub > a::after {
  content: "\25be";
  font-size: 11px;
  margin-left: 7px;
  vertical-align: middle;
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ink-2);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* --------------------------- Shared hero band -------------------------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.page-hero .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,.55);
  z-index: 1;
}
.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 70px 24px;
}
.page-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(30px, 5vw, 54px); }
.page-hero .eyebrow { color: rgba(255,255,255,.9); }

/* ------------------------------ Sections ------------------------------- */
.section { padding: 74px 0; }
.section.tight { padding: 54px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .section-title { font-size: clamp(26px, 3.6vw, 40px); }

/* ------------------------------ Footer --------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 0 0 26px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px 48px;
  padding: 30px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-contact .f-logo { background: #fff; border-radius: 8px; padding: 8px 12px; }
.footer-contact .f-logo img { width: 120px; height: auto; }
.f-item { display: flex; align-items: center; gap: 14px; }
.f-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.f-icon svg { width: 20px; height: 20px; fill: #fff; }
.f-item .f-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .6px; color: #fff; font-size: 14px; }
.f-item a, .f-item span.f-val { color: var(--footer-text); font-size: 14px; }
.f-item a:hover { color: #fff; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.footer-cols h4 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--footer-text); font-size: 14px; transition: color .15s ease; }
.footer-cols a:hover { color: #fff; }
.footer-cols p { font-size: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social img { width: 30px; height: 30px; }
.footer-social a { transition: transform .18s ease; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding-top: 18px;
}

/* ------------------------------ Motion --------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* On-load reveals: the animation always runs, so the element always ends
   visible. Never used to hide content permanently. */
.anim-up   { animation: fadeUp .7s ease both; }
.anim-in   { animation: fadeIn .9s ease both; }
.anim-zoom { animation: zoomIn .7s ease both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .48s; }

/* Optional scroll reveal: elements start VISIBLE here; the shared script
   adds the hidden state at runtime only after its observer attaches, then
   removes it on enter. If the script never runs, content stays visible. */
.reveal.is-in { animation: fadeUp .7s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------- Responsive chrome ------------------------- */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .mainnav > ul { justify-content: flex-start; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #232323; min-width: 0; }
  .has-sub > a::after { content: ""; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; justify-content: center; }
  .topbar-social { margin: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-contact { justify-content: center; text-align: center; }
  .mainnav a { padding: 12px 12px; font-size: 15px; }
}
