/* ==========================================================================
   Coimbatore Washing Machine Service - stylesheet
   Design tokens, layout shell and components. No external assets or fonts.
   ========================================================================== */

:root {
  --brand: #0b5b7d;
  --brand-dark: #073c53;
  --brand-2: #0e8fb8;
  --accent: #ff9f1c;
  --accent-ink: #40270a;
  --ink: #0f2230;
  --body: #31485a;
  --muted: #5d7484;
  --line: #dbe7ef;
  --tint: #f2f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 48, .05), 0 1px 1px rgba(15, 34, 48, .04);
  --shadow-md: 0 10px 26px rgba(15, 34, 48, .09);
  --shadow-lg: 0 18px 44px rgba(7, 60, 83, .16);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.015em; }
p { margin: 0 0 16px; color: var(--body); }
a { color: var(--brand); text-decoration-color: rgba(11, 91, 125, .35); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); text-decoration-color: currentColor; }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(255, 159, 28, .3); }

.shell { width: min(1140px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  background: var(--brand-dark); color: #fff; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand {
  display: flex; align-items: center; gap: 11px; margin-right: auto;
  color: var(--ink); font-weight: 800; line-height: 1.15; text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { display: block; width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; font-size: .98rem; }
.brand-text small { font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-header nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-header nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; color: var(--ink); text-decoration: none;
  transition: background .18s, color .18s;
}
.site-header nav a:hover { background: var(--tint); color: var(--brand-dark); }
.site-header nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.header-cta { flex: none; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 11px;
  font: inherit; font-size: .97rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(255, 159, 28, .32); }
.btn-primary:hover { background: #ffab38; color: var(--accent-ink); }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 91, 125, .28); }
.btn-solid:hover { background: var(--brand-dark); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); border-color: rgba(11, 91, 125, .16); }
.btn-light:hover { background: #f4fbfe; color: var(--brand-dark); }
.btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .48); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-block { width: 100%; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 60px 0 78px;
  color: #e8f5fb;
  background: linear-gradient(158deg, #06283a 0%, var(--brand) 48%, var(--brand-2) 100%);
}
.hero::before {
  content: ""; position: absolute; top: -22%; right: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(255, 159, 28, .38), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 58px;
  background: var(--white); clip-path: ellipse(78% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #eaf7fd;
}
.hero h1 { max-width: 22ch; margin: 18px 0 16px; font-size: clamp(1.95rem, 4.6vw, 3.05rem); line-height: 1.1; color: #fff; }
.hero .lead { max-width: 60ch; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: #d2e9f4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 0; padding: 0; list-style: none; }
.chips li {
  margin: 0; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(255, 255, 255, .07); font-size: .86rem; font-weight: 600; color: #e8f5fb;
}

/* Page head --------------------------------------------------------------- */
.page-head {
  position: relative; overflow: hidden; padding: 34px 0 46px; color: #fff;
  background: linear-gradient(140deg, var(--brand-dark), var(--brand) 55%, var(--brand-2));
}
.page-head::before {
  content: ""; position: absolute; top: -160px; right: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle at center, rgba(255, 159, 28, .3), transparent 65%);
}
.page-head .shell { position: relative; z-index: 1; }
.page-head h1 { max-width: 26ch; margin: 0 0 12px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.14; color: #fff; }
.page-head .lead { max-width: 66ch; margin: 0; color: #d6ecf6; }
.breadcrumb { margin: 0 0 14px; font-size: .84rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: #bcdceb; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }

/* Layout ------------------------------------------------------------------ */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 46px;
  align-items: start; padding: 46px 0 6px;
}
article > section { margin-bottom: 30px; }
article h2 {
  margin: 34px 0 12px; padding-left: 15px; border-left: 4px solid var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.28;
}
article > h2:first-child { margin-top: 0; }
article .lead { font-size: 1.06rem; color: #294152; }

/* Cards ------------------------------------------------------------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px; margin: 22px 0; padding: 0; list-style: none;
}
.card {
  margin: 0; padding: 20px 20px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9dcea; }
.card h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--brand-dark); }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

.service {
  margin: 0 0 16px; padding: 22px 24px 20px; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--brand-2);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.service:hover { border-left-color: var(--accent); box-shadow: var(--shadow-md); }
.service h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.16rem; }
.service p:last-child { margin-bottom: 0; }

/* Lists ------------------------------------------------------------------- */
.checklist { margin: 20px 0; padding: 0; list-style: none; }
.checklist li { position: relative; margin: 11px 0; padding-left: 34px; color: var(--body); }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 3px;
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: #e6f6ee; color: #0a7a46; font-size: .78rem; font-weight: 800;
}
.steps { display: grid; gap: 14px; margin: 22px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; margin: 0; padding: 17px 20px 17px 66px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 15px;
  padding: 5px 9px; border-radius: 9px; background: var(--tint); color: var(--brand);
  font-size: .84rem; font-weight: 800; letter-spacing: .04em;
}
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.pills li {
  margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--tint); font-size: .9rem; color: #294152;
}

/* FAQ --------------------------------------------------------------------- */
.faq { margin: 22px 0; }
.faq details {
  margin-bottom: 10px; padding: 2px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: #c4dbe9; }
.faq summary {
  display: flex; align-items: center; gap: 12px; padding: 15px 0;
  font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--brand-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; font-size: .97rem; }

/* Side panel -------------------------------------------------------------- */
.side-card {
  position: sticky; top: 92px; padding: 24px 22px;
  background: linear-gradient(180deg, #f5fafd, #eef7fc);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.side-card h2 { margin: 0 0 14px; font-size: 1.06rem; color: var(--brand-dark); }
.side-card ul { margin: 0 0 18px; padding: 0; list-style: none; }
.side-card li {
  position: relative; margin: 0; padding: 10px 0 10px 20px;
  border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--body);
}
.side-card li:last-child { border-bottom: 0; }
.side-card li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand-2);
}
.side-card p { font-size: .95rem; }
.side-card .btn + .btn { margin-top: 10px; }

/* CTA band ---------------------------------------------------------------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  margin: 40px 0 0; padding: 30px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: var(--shadow-lg); color: #fff;
}
.cta-band h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.3rem; color: #fff; }
.cta-band p { margin: 0; max-width: 56ch; color: #d8edf7; }
.cta-band .btn { flex: none; }

/* Form -------------------------------------------------------------------- */
.form-card {
  padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: #c2410c; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fbfdff;
  border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #93a8b6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(14, 143, 184, .16);
}
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-note { margin: 0; max-width: 44ch; font-size: .88rem; color: var(--muted); }

/* Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 56px; padding: 48px 0 26px; background: #08212e; color: #b9d3e0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { margin: 0 0 14px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-grid p { color: #a9c6d5; font-size: .95rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; color: #fff; font-weight: 800; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: #cfe4ef; font-size: .95rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .87rem; color: #8fb0c1;
}
.footer-bottom p { margin: 0; color: #8fb0c1; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
  .side-card { position: static; }
  .header-cta { display: none; }
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .site-header nav ul { flex-wrap: wrap; gap: 2px; }
  .site-header nav a { padding: 8px 11px; font-size: .92rem; }
  .hero { padding: 44px 0 66px; }
  .hero::after { height: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 18px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 24px 22px; }
  .cta-band .btn { width: 100%; }
}
@media (max-width: 520px) {
  /* keep the header on a single row: mark + four compact nav links */
  .shell { width: min(1140px, 100% - 24px); }
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .site-header nav { margin-left: auto; min-width: 0; }
  .site-header nav ul { flex-wrap: nowrap; gap: 0; }
  .site-header nav a { padding: 8px 6px; font-size: .84rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
