/* Chasing Stains — site stylesheet */
/* Palette sampled directly from the Chasing Stains logo:
   blue #10519e · teal #3abec1 · lime #a9dd1a */
:root {
  --brand: #10519e;
  --brand-dark: #0a3a75;
  --navy: #07254a;
  --navy-2: #0d3f7c;
  --teal: #3abec1;
  --teal-dark: #2a8f96;
  --teal-bright: #6fdcdd;
  --lime: #a9dd1a;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f6f9fc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(7, 37, 74, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 900;
}
.logo span.accent { color: var(--teal-dark); }

/* Logo. Tries images/logo.png first (drop your real file there); falls back to the
   bundled logo.svg wordmark so the header is never empty. */
.logo-img { height: 44px; width: auto; display: block; }
.site-footer .logo-img { height: 54px; opacity: .97; margin-bottom: 14px; }
@media (max-width: 900px) { .logo-img { height: 36px; } }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); font-weight: 700; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 14px rgba(16,81,158,.35);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

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

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(58,190,193,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-2) 100%);
  color: #fff; padding: 96px 0 110px; position: relative; overflow: hidden;
}
/* Hero art. Two layers: hero.jpg is tried first and sits on top; if it 404s the
   bundled hero.svg underneath shows instead. Drop in a photo to upgrade. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=70"), url("../images/hero.svg");
  background-size: cover, cover; background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: .62; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(7,37,74,.94) 0%, rgba(7,37,74,.72) 45%, rgba(13,59,83,.35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; background: rgba(58,190,193,.15); color: var(--teal-bright);
  border: 1px solid rgba(111,220,221,.35);
  padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  margin-bottom: 22px; letter-spacing: .03em;
}
/* text-wrap:balance evens out the line lengths so the headline stops
   dropping a lonely "you sleep." onto a third line. */
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08;
  letter-spacing: -0.035em; font-weight: 800; max-width: 15ch;
  margin-bottom: 22px; text-wrap: balance;
}
@media (min-width: 900px) { .hero h1 { max-width: 20ch; } }
.hero h1 .accent { color: var(--teal-bright); }
.hero p.lede { font-size: 1.2rem; color: #cbd5e1; max-width: 600px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stat .num { font-size: 1.9rem; font-weight: 800; color: var(--lime); }
.hero-stat .lbl { color: #94a3b8; font-size: .9rem; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-2) 100%);
  color: #fff; padding: 64px 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: #94a3b8; margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-bright); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.03em;
  line-height: 1.15; margin: 10px 0 14px; color: var(--navy);
  text-wrap: balance;
}
.section-head p { color: var(--muted); text-wrap: pretty; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
/* Icon chip. One treatment for every card so a row always reads as a set —
   the previous mix of photo banners and emoji made the cards look broken. */
.card .icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(140deg, rgba(58,190,193,.16), rgba(16,81,158,.09));
  border: 1px solid rgba(16,81,158,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex: none;
}
.card .icon svg { width: 34px; height: 34px; display: block; }

/* Inline icons used in body text and the footer */
.ico { width: 1.05em; height: 1.05em; vertical-align: -.15em; flex: none; }
.footer-contact .ico { color: var(--teal); margin-right: 8px; }
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .9rem; }

/* Checklist */
.checklist { list-style: none; }
.checklist li {
  padding-left: 34px; position: relative; margin-bottom: 14px; color: var(--ink);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(58,190,193,.15); color: var(--teal-dark);
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); letter-spacing: -0.02em; margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split-visual {
  border-radius: var(--radius); min-height: 340px; position: relative; overflow: hidden;
  background:
    radial-gradient(400px 300px at 20% 20%, rgba(58,190,193,.35), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-bright); font-size: 4rem;
  box-shadow: var(--shadow);
}
/* Photo fills the panel when present; gradient remains as fallback underneath */
.split-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius);
}

/* Generic photo frame */
.photo-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-2), var(--navy-2));
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo { height: 190px; margin: -32px -28px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.card-photo img { border-radius: var(--radius) var(--radius) 0 0; }

/* Testimonials */
.testimonial { border-left: 4px solid var(--teal); display: flex; flex-direction: column; }
.testimonial .quote { font-size: 1rem; color: var(--ink); font-style: italic; margin-bottom: 20px; flex: 1; }
.testimonial .who { font-weight: 700; color: var(--navy); font-size: .92rem; }
.testimonial .co { color: var(--muted); font-size: .85rem; }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }

/* Client logo. Drop a file into images/clients/ and it appears; until then the
   onerror handler swaps in a styled wordmark so the card never looks broken. */
.client-logo {
  height: 44px; display: flex; align-items: center;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.client-logo img {
  max-height: 40px; max-width: 170px; width: auto; object-fit: contain;
  filter: brightness(0); opacity: .7;
}
.client-wordmark {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--brand); line-height: 1.1;
}

/* "Trusted by" strip — stronger placement than logos buried in cards */
.logo-bar { background: #fff; border-block: 1px solid var(--border); padding: 34px 0; }
.logo-bar .label {
  text-align: center; color: var(--muted); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 22px;
}
.logo-bar .row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 6vw, 72px); flex-wrap: wrap;
}
/* brightness(0) flattens any logo to solid black regardless of its original colour.
   That's what makes West40's white-on-navy mark visible here, and it darkens
   Advanced Dental Arts' very light wordmark enough to read. Standard logo-bar
   treatment, and it keeps three unrelated brands looking like one row. */
.logo-bar img { max-height: 46px; max-width: 190px; width: auto; object-fit: contain;
  filter: brightness(0); opacity: .55; transition: opacity .2s; }
.logo-bar img:hover { opacity: .85; }
.logo-bar .client-wordmark { font-size: 1.15rem; color: var(--navy); opacity: .72; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
  color: #fff; text-align: center; padding: 72px 24px; border-radius: 0;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: #dcf5f6; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.cta-band .btn-primary:hover { background: #f1f5f9; color: var(--navy); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px; max-width: 720px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.form-group .req { color: #e11d48; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,190,193,.15); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); }
.post-thumb {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-2));
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--teal-bright);
}
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { color: var(--navy); font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.post-card h3 a { color: inherit; }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .read-more { margin-top: 16px; font-weight: 700; font-size: .9rem; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.article .post-meta { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article h2 { color: var(--navy); font-size: 1.5rem; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article h3 { color: var(--navy); font-size: 1.2rem; margin: 30px 0 10px; }
.article p { margin-bottom: 18px; color: #334155; }
.article ul, .article ol { margin: 0 0 18px 24px; color: #334155; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--navy); }
.article .article-cta {
  background: linear-gradient(135deg, rgba(58,190,193,.08), rgba(7,37,74,.05));
  border: 1px solid rgba(58,190,193,.25); border-radius: var(--radius);
  padding: 28px; margin: 40px 0; text-align: center;
}
.article .article-cta p { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #94a3b8; display: block; margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--teal-bright); text-decoration: none; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-contact div { margin-bottom: 10px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,.2); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .post-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 72px; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile gets a far smaller hero file. Phones never needed the 1200px version,
   and the hero is the largest single asset on the page. */
@media (max-width: 700px) {
  .hero::before {
    background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=760&q=62"), url("../images/hero.svg");
  }
}
