/* =========================================================
   Clearway Comfort — Design Tokens
   ========================================================= */
:root{
  --navy-deep:    #0F2158;
  --navy:         #1B3B94;
  --navy-mid:     #24469E;
  --sky:          #4FB6E8;
  --sky-soft:     #BFE6F7;
  --ember-orange: #F1892E;
  --ember-red:    #D8311F;
  --paper:        #F6F7FA;
  --paper-raised: #FFFFFF;
  --ink:          #161B2E;
  --slate:        #5C6478;
  --line:         #E1E4EC;
  --line-dark:    rgba(255,255,255,0.14);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --max: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
  color: var(--navy-deep);
}

h1{ font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size: 1.25rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--slate); }

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

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

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-accent{
  background: linear-gradient(120deg, var(--ember-orange), var(--ember-red));
  color: #fff;
}
.btn-accent:hover{ filter: brightness(1.06); }

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

.btn-primary{
  background: var(--navy);
  color: #fff;
}

.btn-small{ padding: 10px 18px; font-size: 0.92rem; }
.btn-block{ width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand{ display: flex; align-items: center; gap: 12px; height: 100%; }
.brand-icon{ height: 44px; width: auto; display: block; }
.brand-word{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0.92;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand-word em{
  font-style: normal;
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.main-nav{
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a{
  color: #EDEFF7;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover{ border-color: var(--sky); color: #fff; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.header-phone{ color: #fff; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  background: radial-gradient(120% 140% at 15% 0%, #16326E 0%, var(--navy-deep) 55%, #0A163E 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-top: 76px;
  padding-bottom: 64px;
  min-height: 560px;
}

.hero-copy h1{ color: #fff; max-width: 12ch; }
.hero-sub{
  color: #C7CEE3;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2em;
}
.hero-ctas{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic{ display: flex; justify-content: center; }
.dial-svg{ width: min(100%, 380px); height: auto; }

.dial-ring-outer{ fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 2; }
.dial-ring-inner{ fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.arc-cool{ fill: none; stroke: var(--sky); stroke-width: 10; stroke-linecap: round; }
.arc-warm{ fill: none; stroke: var(--ember-orange); stroke-width: 10; stroke-linecap: round; }
.dial-hub{ fill: var(--navy-deep); stroke: rgba(255,255,255,0.3); stroke-width: 1.5; }
.dial-needle{ stroke: #fff; stroke-width: 4; stroke-linecap: round; transform-origin: 240px 240px; animation: sweep 4.5s ease-in-out infinite; }
.dial-pin{ fill: #fff; }

@keyframes sweep{
  0%   { transform: rotate(-32deg); }
  50%  { transform: rotate(28deg); }
  100% { transform: rotate(-32deg); }
}

.trust-strip{
  background: #0A1A45;
  border-top: 1px solid var(--line-dark);
}
.trust-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 24px;
}
.trust-item{ display: flex; flex-direction: column; gap: 4px; text-align: center; }
.trust-value{ font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.trust-label{ font-size: 0.85rem; color: #9FB0D6; }

/* =========================================================
   Section head
   ========================================================= */
.section-head{ max-width: 60ch; margin-bottom: 44px; }
.section-head p{ font-size: 1.08rem; }
.section-head--light h2{ color: #fff; }
.section-head--light p{ color: #C7CEE3; }

section{ padding: 88px 0; }

/* =========================================================
   Services
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.service-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.service-card--wide{ grid-column: 1 / -1; background: var(--navy-deep); border-color: var(--navy-deep); }
.service-card--wide h3, .service-card--wide p{ color: #fff; }
.service-card--wide p{ color: #C7CEE3; max-width: 60ch; }
.service-card h3{ margin-bottom: 0.4em; }

/* =========================================================
   Comfort Club
   ========================================================= */
.club{ background: var(--navy-deep); color: #fff; }
.club-wrap{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.club-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.club-list li{
  position: relative;
  padding-left: 26px;
  color: #E4E8F5;
  font-size: 1.02rem;
}
.club-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(120deg, var(--sky), var(--ember-orange));
}

.club-card{
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 36px;
  position: sticky;
  top: 110px;
}
.club-card-label{
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: #EAF0FD;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.club-price{ display: flex; align-items: baseline; gap: 6px; }
.price-amount{ font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--navy-deep); }
.price-period{ color: var(--slate); font-size: 1rem; }
.price-alt{ margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.price-detail{ color: var(--slate); font-size: 0.92rem; margin-bottom: 24px; }

/* =========================================================
   Service area
   ========================================================= */
.area-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.area-list li{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Why us
   ========================================================= */
.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item h3{ margin-bottom: 0.5em; }
.why-item::before{
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: linear-gradient(120deg, var(--ember-orange), var(--ember-red));
  margin-bottom: 18px;
  border-radius: 2px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact{ background: var(--navy-deep); color: #fff; }
.contact-wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-phone-link{
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}
.contact-details{ display: flex; flex-direction: column; gap: 16px; margin: 0; }
.contact-details dt{ font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8DA0CE; margin-bottom: 2px; }
.contact-details dd{ margin: 0; color: #E4E8F5; }

.contact-form{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--ink);
}
.form-row{ margin-bottom: 18px; }
.form-row--split{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label{ display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{ border-color: var(--navy); }
.form-note{ font-size: 0.82rem; color: var(--slate); margin: 10px 0 0; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: #0A1A45; color: #9FB0D6; padding: 44px 0; }
.footer-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.footer-brand{ display: flex; align-items: center; gap: 12px; }
.footer-icon{ height: 46px; width: auto; }
.footer-word{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0.92;
  color: #fff;
  letter-spacing: 0.01em;
}
.footer-word em{
  font-style: normal;
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--sky);
}
.footer-meta p{ margin: 0 0 4px; color: #C7CEE3; font-size: 0.92rem; }
.footer-meta a{ color: #C7CEE3; }
.footer-copy{ margin: 0; font-size: 0.85rem; color: #8DA0CE; text-align: right; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-graphic{ order: -1; max-width: 260px; margin: 0 auto; }
  .club-wrap, .contact-wrap{ grid-template-columns: 1fr; }
  .club-card{ position: static; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .service-card--wide{ grid-column: 1 / -1; }
  .why-grid{ grid-template-columns: 1fr; }
  .trust-inner{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr; text-align: center; }
  .footer-copy{ text-align: center; }
}

@media (max-width: 760px){
  .main-nav{
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav.is-open{ display: flex; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .header-phone .phone-number{ display: none; }
  .nav-toggle{ display: flex; }
  .services-grid{ grid-template-columns: 1fr; }
  .form-row--split{ grid-template-columns: 1fr; }
  section{ padding: 64px 0; }
}
