/* ===========================================================
   True Clean Carpets & Janitorial Services — shared stylesheet
   Bright, clean, trustworthy palette built from the True Clean logo
   =========================================================== */

:root {
  --blue: #1565d8;        /* primary brand blue */
  --blue-deep: #0d3f8f;   /* header / deep accents */
  --blue-pale: #eaf3fd;   /* alternating section background */
  --blue-pale-2: #dcebfb;
  --gold: #e3a614;        /* accent only: buttons, underlines, icons */
  --gold-dark: #b8860a;
  --white: #ffffff;
  --charcoal: #1f2937;    /* body text */
  --slate: #51606f;       /* secondary text */
  --line: #d7e4f4;        /* hairline dividers on light backgrounds */
  --line-on-blue: rgba(255,255,255,0.28);
  --radius: 6px;
  --max-width: 1180px;
  --display: "Outfit", "Segoe UI", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; max-width: 64ch; }
.on-blue p, .on-blue li { color: rgba(255,255,255,0.92); }
.on-blue h1, .on-blue h2, .on-blue h3 { color: var(--white); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
.on-blue a:not(.btn) { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }
.on-blue a:not(.btn):hover { color: var(--gold); text-decoration-color: var(--gold); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

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

.section { padding: 84px 0; }
.section-tight { padding: 48px 0; }
.on-white { background: var(--white); }
.on-pale { background: var(--blue-pale); }
.on-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); }
.on-dark { } /* legacy alias kept for compatibility, resolved by on-blue above */

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.eyebrow-line::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.on-blue .eyebrow-line { color: #ffd874; }
.on-blue .eyebrow-line::before { background: #ffd874; }

.lede { font-size: 1.08rem; color: var(--slate); max-width: 62ch; }
.on-blue .lede { color: rgba(255,255,255,0.88); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}
.btn-outline-dark:hover { border-color: var(--blue); background: var(--blue-pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13,63,143,0.04);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  color: var(--blue-deep);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}
.brand span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.66rem; color: var(--slate); margin-top: 2px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--blue-deep); font-weight: 600; font-size: 0.95rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.fb-icon { color: var(--blue-deep); display: inline-flex; }
.fb-icon:hover { color: var(--blue); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 28px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(13,63,143,0.08);
  }
  .menu-toggle { display: inline-flex; }
  .nav-phone { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--white);
  color: var(--charcoal);
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.35fr;
  gap: 44px;
  align-items: start;
}
.hero-art { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(13,63,143,0.25); }
.hero-art svg, .hero-art img { width: 100%; height: auto; display: block; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 28px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.trust-item svg { flex-shrink: 0; color: var(--gold); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* Service rows */
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-item {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}
.service-item:first-child { border-left: none; }
.service-item .icon {
  color: var(--white);
  background: var(--blue);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.service-item p { font-size: 0.95rem; color: var(--slate); }
.service-item .tag { font-size: 0.82rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; display: block; }
@media (max-width: 900px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(2n+1) { border-left: none; }
  .service-item { border-top: 1px solid var(--line); }
  .service-item:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .service-item { border-left: none !important; border-top: 1px solid var(--line); }
  .service-item:first-child { border-top: none; }
}

/* Two column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split.reverse .split-media { order: -1; } }

.media-frame { border: 1px solid var(--line); background: var(--white); padding: 8px; border-radius: 10px; }
.media-placeholder {
  background: var(--blue-pale);
  border: 2px dashed var(--blue);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--slate);
  font-size: 0.85rem;
  padding: 30px 18px;
  min-height: 260px;
}
.media-placeholder svg { color: var(--blue); }

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-pale);
  border-radius: 10px;
}
.photo-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.photo-frame.portrait img { aspect-ratio: 4 / 5; }
.photo-frame.landscape img { aspect-ratio: 4 / 3; }
.photo-frame figcaption { padding: 12px 14px; color: var(--slate); background: var(--white); font-size: 0.84rem; border-top: 1px solid var(--line); }

.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.before-after-grid figure { margin: 0; }
.before-after-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px 8px 0 0; }
.before-after-grid figcaption {
  padding: 9px 12px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 560px) { .before-after-grid { grid-template-columns: 1fr; } }

/* Numbered process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.process-step { position: relative; padding-top: 16px; border-top: 3px solid var(--gold); }
.process-step .num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--blue); display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }

/* Areas list */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.area-row { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 22px; }
.area-row:nth-child(odd) { padding-right: 30px; border-right: 1px solid var(--line); }
.area-row:nth-child(even) { padding-left: 30px; }
.area-row h3 { margin-bottom: 4px; }
.area-state { font-size: 0.8rem; color: var(--blue); font-weight: 700; }
@media (max-width: 760px) {
  .areas-grid { grid-template-columns: 1fr; }
  .area-row { grid-template-columns: 1fr; border-right: none !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-photo { margin: 0; border: 1px solid var(--line); background: var(--white); border-radius: 10px; overflow: hidden; }
.gallery-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-photo figcaption { padding: 12px 14px; color: var(--slate); font-size: 0.84rem; }
.gallery-tile {
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  border: 2px dashed var(--blue);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px;
  color: var(--slate);
  font-size: 0.85rem;
}
.gallery-tile svg { color: var(--blue); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.88rem; color: var(--blue-deep); margin-bottom: 6px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
legend { padding: 0 8px; font-size: 0.88rem; font-weight: 600; color: var(--blue-deep); }
.radio-row { display: flex; gap: 24px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.radio-row input { width: auto; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; }
.consent-row input { width: auto; margin-top: 4px; }
.consent-row label { font-weight: 400; font-size: 0.9rem; }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact sidebar / info card */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.info-card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--blue-pale); }
.info-card dt { font-size: 0.8rem; color: var(--blue); font-weight: 700; margin-top: 18px; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 4px 0 0; color: var(--blue-deep); font-size: 1rem; font-weight: 600; }
.info-card h3 { color: var(--blue-deep); }

/* Footer */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.82); padding: 60px 0 26px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--sans); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.82); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { font-family: var(--display); color: var(--white); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.85rem; }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); margin-top: 6px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.footer-fb:hover { color: var(--gold); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--blue-deep); padding: 12px 18px; z-index: 999; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); padding: 64px 0 52px; }
.page-hero .eyebrow-line { color: #ffd874; }

.hr-gold { border: none; border-top: 1px solid var(--line); margin: 0; }

.brand-image { width: min(100%, 420px); height: auto; margin: 0 auto; }

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

/* Six-up service grid variant (3 columns at desktop) */
.service-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.service-list.cols-3 .service-item:nth-child(3n+1) { border-left: none; }
.service-list.cols-3 .service-item:nth-child(n+4) { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .service-list.cols-3 { grid-template-columns: 1fr 1fr; }
  .service-list.cols-3 .service-item:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .service-list.cols-3 .service-item:nth-child(2n+1) { border-left: none; }
  .service-list.cols-3 .service-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .service-list.cols-3 .service-item:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 560px) {
  .service-list.cols-3 { grid-template-columns: 1fr; }
  .service-list.cols-3 .service-item { border-left: none !important; border-top: 1px solid var(--line); }
  .service-list.cols-3 .service-item:first-child { border-top: none; }
}

/* Encapsulation / process diagram chip row */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.chip svg { color: var(--gold-dark); }

/* Compact service-area summary strip */
.area-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 0.92rem;
}
.area-chip .state { color: var(--slate); font-weight: 400; font-size: 0.82rem; }

/* Interior page-hero bands are still blue; keep white-on-blue text there. */
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--white); }
.page-hero p, .page-hero li { color: rgba(255,255,255,0.9); }
.page-hero a:not(.btn) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
}
.page-hero a:not(.btn):hover { color: var(--gold); text-decoration-color: var(--gold); }
.page-hero .eyebrow-line { color: #ffd874; }
.page-hero .eyebrow-line::before { background: #ffd874; }
.page-hero .trust-item { color: var(--white); }

/* The homepage .hero is now a white section with dark text (default
   body/heading colors already apply); only the quoted tagline keeps a
   gold accent, set inline where it's used. */
.hero .eyebrow-line { color: var(--gold-dark); }
.hero .eyebrow-line::before { background: var(--gold); }
.hero .trust-item { color: var(--blue-deep); }

/* Standalone small label tag (used outside service-item cards too) */
.tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Real logo image in the header */
.logo-img { height: 72px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 52px; } }

/* Lighter-weight callout card used in place of large full-bleed blue
   sections, so blue stays an accent rather than a dominant background. */
.callout-card {
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px;
}
@media (max-width: 700px) { .callout-card { padding: 32px 24px; } }
