/* ==========================================================================
   CoolFlow — page-level component styles (shared across all 4 pages + guide)
   ========================================================================== */

/* -------------------- HERO (generic) -------------------- */
.hero{
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 8vw, 88px);
  background: linear-gradient(180deg, var(--ice-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy p.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  background: var(--steel-800);
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(10,15,26,0) 40%, rgba(10,15,26,.55) 100%);
}
.hero-media .flow-line-svg{ z-index: 2; }
.hero-spec-chip{
  position: absolute;
  bottom: 18px; left: 18px;
  z-index: 3;
  background: rgba(10,15,26,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: .03em;
}
.hero-spec-chip strong{ color: var(--blue-300); }

.page-hero{
  padding: clamp(52px, 8vw, 84px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--ice-50), var(--white));
  border-bottom: 1px solid var(--ice-200);
}
.page-hero .lead{ max-width: 60ch; color: var(--text-muted); font-size: 1.12rem; }
.breadcrumb{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.breadcrumb a{ color: var(--blue-600); }
.breadcrumb a:hover{ text-decoration: underline; }

/* -------------------- WARNING SIGNS STRIP -------------------- */
.warning-strip{
  background: var(--steel-900);
  color: var(--text-light);
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}
.warning-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.warning-head h2{ color: var(--text-light); margin-bottom: .2em; }
.warning-head p{ color: var(--text-light-muted); max-width: 48ch; margin: 0; }
.warning-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.warning-card{
  background: var(--steel-850);
  padding: 30px 26px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.warning-card:hover{ background: var(--steel-800); }
.warning-card .wc-icon{
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--blue-400);
}
.warning-card .wc-num{
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--steel-400);
  margin-bottom: 10px;
  display: block;
}
.warning-card h3{ color: var(--text-light); font-size: 1.05rem; margin-bottom: 8px; }
.warning-card p{ color: var(--text-light-muted); font-size: .92rem; margin: 0; }

/* -------------------- SERVICES TEASER / GRID -------------------- */
.services-teaser{ padding: clamp(64px,10vw,120px) 0; }
.section-head{ max-width: 60ch; margin-bottom: 48px; }
.section-head p{ color: var(--text-muted); font-size: 1.05rem; }
.section-head-row{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

.svc-grid{ grid-template-columns: repeat(3, 1fr); }
.svc-card{
  border: 1px solid var(--ice-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -20px rgba(20,45,90,.25);
  border-color: var(--blue-300);
}
.svc-card .svc-icon{
  width: 42px; height: 42px;
  color: var(--blue-500);
  margin-bottom: 20px;
}
.svc-card h3{ margin-bottom: 8px; }
.svc-card p{ color: var(--text-muted); font-size: .94rem; margin-bottom: 14px; }
.svc-link{ font-family: var(--font-mono); font-size: .82rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.svc-card:hover .svc-link{ text-decoration: underline; }

/* full services list page */
.svc-full-list{ display: flex; flex-direction: column; gap: 0; }
.svc-full-item{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--ice-200);
  align-items: start;
}
.svc-full-item:first-child{ padding-top: 0; }
.svc-full-item:last-child{ border-bottom: none; }
.svc-full-num{
  font-family: var(--font-mono);
  color: var(--blue-500);
  font-size: .82rem;
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: block;
}
.svc-symptom{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--blue-700);
  background: var(--ice-100);
  padding: .5em .9em;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.svc-full-item h3{ font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.svc-full-item p{ color: var(--text-body); }
.svc-spec-table{
  margin-top: 18px;
  border: 1px solid var(--ice-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.svc-spec-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ice-200);
  background: var(--ice-50);
}
.svc-spec-row:last-child{ border-bottom: none; }
.svc-spec-row span:first-child{ color: var(--text-muted); }
.svc-spec-row span:last-child{ color: var(--text-dark); font-weight: 500; }

/* -------------------- TRUST STRIP -------------------- */
.trust-strip{
  background: var(--ice-50);
  border-top: 1px solid var(--ice-200);
  border-bottom: 1px solid var(--ice-200);
  padding: clamp(48px, 7vw, 72px) 0;
}
.trust-grid{
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.trust-item{ padding: 12px; }
.trust-num{
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--blue-600);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.trust-label{ color: var(--text-muted); font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }

/* -------------------- FINAL CTA -------------------- */
.cta-band{
  background: linear-gradient(135deg, var(--steel-900) 0%, #0e1b33 55%, var(--steel-800) 100%);
  color: var(--text-light);
  padding: clamp(64px, 10vw, 108px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band .container{ position: relative; z-index: 2; text-align: center; }
.cta-band h2{ color: var(--text-light); max-width: 18ch; margin: 0 auto .4em; }
.cta-band p{ color: var(--text-light-muted); max-width: 50ch; margin: 0 auto 32px; }
.cta-band .hero-ctas{ justify-content: center; }

/* -------------------- ABOUT PAGE -------------------- */
.about-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-split img{ border-radius: var(--radius-lg); }
.values-grid{ grid-template-columns: repeat(3, 1fr); }
.value-card{ padding: 28px 0; border-top: 1px solid var(--ice-200); }
.value-card .v-num{ font-family: var(--font-mono); color: var(--blue-500); font-size: .8rem; margin-bottom: 12px; display:block; }

.team-grid{ grid-template-columns: repeat(3, 1fr); }
.facility-grid{ grid-template-columns: 1.3fr 1fr; gap: 24px; }
.team-card{ text-align: left; }
.team-photo{
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  margin-bottom: 18px;
  background: var(--steel-800);
}
.team-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img{ transform: scale(1.045); }
.team-card h3{ margin-bottom: 2px; }
.team-role{ font-family: var(--font-mono); font-size: .8rem; color: var(--blue-600); margin-bottom: 10px; display: block; }
.team-card p{ color: var(--text-muted); font-size: .92rem; }

.process-strip{
  background: var(--steel-900);
  color: var(--text-light);
  padding: clamp(56px, 8vw, 96px) 0;
}
.process-strip h2{ color: var(--text-light); }
.process-strip .section-head p{ color: var(--text-light-muted); }
.process-media{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.process-media img{ width: 100%; height: 100%; object-fit: cover; }
.process-list{ display: flex; flex-direction: column; gap: 22px; }
.process-step{ display: flex; gap: 18px; }
.process-step .p-idx{
  font-family: var(--font-mono);
  color: var(--blue-400);
  font-size: .85rem;
  flex-shrink: 0;
  width: 34px;
  padding-top: 3px;
}
.process-step h3{ color: var(--text-light); font-size: 1.05rem; margin-bottom: 4px; }
.process-step p{ color: var(--text-light-muted); font-size: .92rem; margin: 0; }
.about-process-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }

/* -------------------- CONTACT PAGE -------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-form{
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row-double{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  padding: .85em 1em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
textarea{ resize: vertical; min-height: 110px; font-family: var(--font-body); }
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61,130,246,.16);
}
.form-note{ font-size: .8rem; color: var(--text-muted); margin-top: 14px; }
.form-success{
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--ice-100);
  border: 1px solid var(--blue-300);
  color: var(--blue-700);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 20px;
}
.form-success.show{ display: flex; }

.info-card{
  background: var(--steel-900);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}
.info-phone{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 4px;
  transition: color .25s var(--ease);
}
.info-phone:hover{ color: var(--blue-300); }
.info-phone svg{ width: 28px; height: 28px; color: var(--blue-400); flex-shrink: 0; }
.info-sub{ color: var(--text-light-muted); font-size: .88rem; }
.info-block{ margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.info-block:first-of-type{ margin-top: 0; padding-top: 0; border-top: none; }
.info-block h4{
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-400);
  margin-bottom: 10px;
}
.hours-row{ display: flex; justify-content: space-between; font-size: .92rem; padding: 5px 0; color: var(--text-light-muted); }
.hours-row span:last-child{ color: var(--text-light); font-family: var(--font-mono); font-size: .86rem; }
.map-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ice-200);
  aspect-ratio: 16/9;
  position: relative;
  background: var(--ice-100);
}

/* -------------------- GUIDE PAGE (prose) -------------------- */
.guide-prose{ max-width: 74ch; margin: 0 auto; }
.guide-prose h2{ margin-top: 2em; }
.guide-prose h3{ margin-top: 1.6em; }
.guide-prose p, .guide-prose li{ color: var(--text-body); font-size: 1.04rem; }
.guide-prose ul, .guide-prose ol{ padding-left: 1.3em; }
.guide-prose code{
  font-family: var(--font-mono);
  background: var(--ice-100);
  color: var(--blue-700);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .88em;
}
.guide-prose blockquote{
  border-left: 3px solid var(--blue-500);
  margin: 1.6em 0;
  padding: .2em 1.4em;
  color: var(--text-muted);
  font-style: italic;
}
.guide-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--blue-600);
  margin-bottom: 24px;
}
.guide-back:hover{ text-decoration: underline; }

/* -------------------- responsive -------------------- */
@media (max-width: 980px){
  .hero-grid, .about-split, .about-process-grid, .contact-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .warning-grid{ grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .team-grid, .values-grid, .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .svc-full-item{ grid-template-columns: 1fr; }
  .facility-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .warning-grid{ grid-template-columns: 1fr; }
  .svc-grid, .team-grid, .values-grid, .trust-grid{ grid-template-columns: 1fr; }
  .form-row-double{ grid-template-columns: 1fr; }
  .warning-head{ flex-direction: column; align-items: flex-start; }
}
