/* ============================================================
   Tcoast Cleaning — style.css
   Used by: all service pages and blog pages
   Brand: DM Serif Display (headings) + Inter (body)
   Colors: teal primary (#06b6d4, #0891b2, #0e7490, #155e75, #083344)
           sand accent (#e5c04e)
           bg light (#fefdf8 / #fdf9ec)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #083344;          /* teal-950 */
  background: #fefdf8;     /* sand-50 */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

em { font-style: italic; }

/* ---------- CSS Variables ---------- */
:root {
  --teal-50:  #ecfeff;
  --teal-100: #cffafe;
  --teal-200: #a5f3fc;
  --teal-300: #67e8f9;
  --teal-400: #22d3ee;
  --teal-500: #06b6d4;
  --teal-600: #0891b2;
  --teal-700: #0e7490;
  --teal-800: #155e75;
  --teal-900: #164e63;
  --teal-950: #083344;

  --sand-50:  #fefdf8;
  --sand-100: #fdf9ec;
  --sand-200: #f9f0d0;
  --sand-400: #edd47c;
  --sand-500: #e5c04e;

  --bg:   #fefdf8;
  --bg-2: #fdf9ec;
  --border: #e2e8f0;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 80rem;
  --container-px: 1.5rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ---------- Sitewide Nav (service/blog pages) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8,51,68,0.08);
  box-shadow: 0 2px 8px -2px rgba(8,51,68,0.10);
}

.site-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--teal-950);
  text-decoration: none;
}

.site-nav__logo img { height: 36px; width: auto; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-800);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__links a:hover { color: var(--teal-600); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--teal-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.site-nav__cta:hover { background: var(--teal-500); }

.site-nav__mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--teal-800);
}

.site-nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem var(--container-px) 1.25rem;
  border-top: 1px solid var(--teal-100);
  background: #fff;
}

.site-nav__mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-800);
  text-decoration: none;
  padding: 0.375rem 0;
  display: block;
}

.site-nav__mobile-menu a:hover { color: var(--teal-600); }

.site-nav__mobile-menu .site-nav__cta {
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .site-nav__links { display: none; }
  .site-nav__cta.desktop-only { display: none; }
  .site-nav__mobile-btn { display: block; }
  .site-nav__mobile-menu.is-open { display: flex; }
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 60%, var(--teal-700) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(6,182,212,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(103,232,249,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
  max-width: 44rem;
}

.page-hero__sub {
  color: rgba(207,250,254,0.85);
  font-size: 1.05rem;
  max-width: 40rem;
  line-height: 1.7;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 0.5rem;
}

.page-hero .eyebrow { color: var(--teal-300); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(207,250,254,0.65);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal-300); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }

.breadcrumb__sep {
  color: rgba(207,250,254,0.4);
  margin: 0 0.125rem;
}

/* ---------- About Banner (full-width image strip) ---------- */
.about-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.about-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,51,68,0.15) 0%, rgba(8,51,68,0.35) 100%);
}

@media (max-width: 767px) {
  .about-banner { height: 260px; }
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--teal-950);
  line-height: 1.15;
  margin-top: 0.25rem;
}

.section-title em {
  color: var(--teal-600);
  font-style: italic;
}

.section-body {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
}

/* ---------- Content Grid (2-col text + list) ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Feature List ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(8,51,68,0.08);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px -2px rgba(8,51,68,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px -4px rgba(6,182,212,0.18);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--teal-600);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__text {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.6;
}

.feature-item__text strong {
  display: block;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ---------- Info Grid (cards) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.info-card {
  background: #fff;
  border: 1px solid rgba(8,51,68,0.08);
  border-radius: 0.875rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(8,51,68,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px -4px rgba(6,182,212,0.18);
}

.info-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.info-card__body {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}

.info-card__body a { color: var(--teal-600); text-decoration: underline; }
.info-card__body a:hover { color: var(--teal-500); }

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(8,51,68,0.09);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px -1px rgba(8,51,68,0.07);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--teal-950);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 1rem;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal-600);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid rgba(8,51,68,0.06);
}

.faq-item__answer p { margin-top: 0.75rem; }

/* ---------- Service Area Grid ---------- */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  list-style: none;
}

@media (max-width: 900px) {
  .service-area-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .service-area-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-area-link {
  display: block;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid rgba(8,51,68,0.09);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-700);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.service-area-link:hover {
  background: var(--teal-50);
  color: var(--teal-600);
  border-color: var(--teal-300);
  transform: translateY(-2px);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 60%, var(--teal-700) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(6,182,212,0.2) 0%, transparent 55%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
}

.cta-banner .eyebrow { color: var(--teal-300); }

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.cta-banner__title em { color: var(--teal-300); font-style: italic; }

.cta-banner__sub {
  color: rgba(207,250,254,0.8);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--red {
  background: var(--teal-600);
  color: #fff;
  border-color: var(--teal-600);
  box-shadow: 0 4px 14px -3px rgba(8,145,178,0.45);
}

.btn--red:hover { background: var(--teal-500); border-color: var(--teal-500); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.65);
}

/* ---------- Areas Grid (blog/service hub cards) ---------- */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.area-card {
  background: #fff;
  border: 1px solid rgba(8,51,68,0.08);
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 8px -2px rgba(8,51,68,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px -4px rgba(6,182,212,0.18);
}

.area-card__state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 0.25rem;
}

.area-card__city {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-950);
  line-height: 1.3;
  margin-top: 0.125rem;
}

.area-card__body {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  flex: 1;
}

.area-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  margin-top: auto;
}

.area-card__link:hover { color: var(--teal-500); gap: 0.65rem; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hub page service cards ---------- */
.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .service-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .service-hub-grid { grid-template-columns: 1fr; }
}

.service-hub-card {
  background: #fff;
  border: 1px solid rgba(8,51,68,0.08);
  border-radius: 0.875rem;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 8px -2px rgba(8,51,68,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px -5px rgba(6,182,212,0.2);
}

.service-hub-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.service-hub-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.service-hub-card__desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-hub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.service-hub-card__link:hover { color: var(--teal-500); gap: 0.6rem; }

/* ---------- Footer (Tailwind-compatible utility classes) ----------
   These replicate the Tailwind classes used in the footer HTML.
   The footer HTML uses Tailwind class names directly, so we define
   them here so the footer renders properly without the Tailwind CDN.
   ---------------------------------------------------------------- */

/* Layout */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-16 { padding-top: 4rem; }
.pb-8  { padding-bottom: 2rem; }
.pt-8  { padding-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4  { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }

/* Responsive grid for footer */
@media (min-width: 640px) {
  .sm\:col-span-2 { grid-column: span 2; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:col-span-1  { grid-column: span 1; }
}

/* Typography */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-lg   { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-display  { font-family: var(--font-display); }

/* Colors */
.bg-teal-950    { background-color: #083344; }
.text-white     { color: #fff; }
.text-teal-300  { color: #67e8f9; }
.text-teal-400  { color: #22d3ee; }

/* Opacity variants used in footer */
.text-teal-400\/50 { color: rgba(34,211,238,0.5); }
.text-teal-500\/40 { color: rgba(6,182,212,0.4); }

/* Hover states for footer links */
.hover\:text-teal-300:hover { color: #67e8f9; }
.hover\:text-teal-400:hover { color: #22d3ee; }

/* Spacing */
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3    > * + * { margin-top: 0.75rem; }

/* Borders */
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-teal-800\/40 { border-color: rgba(21,94,117,0.4); }

/* Footer icon boxes */
.w-9  { width:  2.25rem; }
.h-9  { height: 2.25rem; }
.w-10 { width:  2.5rem; }
.h-10 { height: 2.5rem; }
.w-4  { width:  1rem; }
.h-4  { height: 1rem; }
.w-5  { width:  1.25rem; }
.h-5  { height: 1.25rem; }

.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; border-style: solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }

.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.active\:bg-white\/5:active { background-color: rgba(255,255,255,0.05); }

/* SVG utilities */
.text-teal-400 svg { color: #22d3ee; }
.w-4.h-4 { width:1rem; height:1rem; }
.w-5.h-5 { width:1.25rem; height:1.25rem; }

/* list reset for footer */
ul { list-style: none; }

/* Focus ring */
.focus-ring:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Btn-spring (hover spring effect) */
.btn-spring {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease, background 0.2s ease;
}
.btn-spring:hover  { transform: translateY(-2px); }
.btn-spring:active { transform: translateY(1px); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.5rem 0 3rem; }
  .cta-banner { padding: 3.5rem 0; }
}
