/* ==========================================================================
   DAYLIGHT WINDOW CO.
   Daylight on glass: cool near-white ground, deep navy ink, one deep sky blue
   carrying every action. Split hero with a stat row, three service cards,
   three long numbered steps, published prices, tips, FAQ.
   ========================================================================== */

:root {
  --background: #F7F9FA;
  --card: #FFFFFF;
  --foreground: #0F1B24;
  --primary-cta: #0B6E99;
  --primary-cta-text: #FFFFFF;
  --secondary-cta: #E4EDF2;
  --secondary-cta-text: #0F1B24;
  --accent: #0B6E99;
  --background-accent: #9FD3E8;
  --radius: 1.75rem;
  --content-width: clamp(40rem, 72.5vw, 100rem);
  --section-head-size: var(--text-6xl);
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cabinet Grotesk', 'Switzer', -apple-system, sans-serif;
}

/* The card is pure white on a cool ground, so it needs a real edge rather than
   the template's tinted one or every panel dissolves into the page. */
.card { border-color: color-mix(in srgb, var(--foreground) 10%, transparent); }

@media (width >= 1536px) { :root { --section-head-size: var(--text-7xl); } }

/* The clamp floor is 40rem, wider than a phone, so phones use vw instead. */
@media (width <= 768px) { :root { --content-width: 88vw; } }


/* --- Hero ---------------------------------------------------------------- */

.hero { padding-top: 9rem; padding-bottom: 4rem; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3rem; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.15rem; }

.hero__title {
  max-width: 15ch;
  font-size: var(--text-8xl);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__lede { max-width: 46ch; font-size: var(--text-xl); line-height: 1.5; opacity: 0.78; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.hero__stage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 3rem; }
.hero-stats__cell { padding: 1.5rem; border-radius: var(--radius); }
.hero-stats__cell strong { display: block; font-size: var(--text-4xl); font-weight: 700; line-height: 1; }
.hero-stats__cell b { display: block; margin-top: 0.4rem; font-size: var(--text-lg); font-weight: 600; }
.hero-stats__cell span { font-size: var(--text-base); opacity: 0.65; }

/* Three stat cells side by side is a column of single words on a phone, so
   they stack. Under 620px the cards go full width; between that and 900px two
   fit and the third drops under them. */
@media (width <= 900px) { .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (width <= 620px) { .hero-stats { grid-template-columns: minmax(0,1fr); margin-top: 2rem; } }

@media (width <= 900px) {
  .hero { padding-top: 7.5rem; }
  .hero__grid { grid-template-columns: minmax(0,1fr); }
  .hero__title { font-size: var(--text-7xl); max-width: 13ch; }
}

/* --- Protocol cards -------------------------------------------------------- */

.protocol-card { padding: 0.75rem; border-radius: var(--radius); }
.protocol-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 0.5rem); }
.protocol-card__body { padding: 1.25rem 0.6rem 0.5rem; }
.protocol-card__body h3 { font-size: var(--text-2xl); margin-bottom: 0.35rem; }
.protocol-card__body p { font-size: var(--text-lg); line-height: 1.45; opacity: 0.78; }

/* --- Long steps ------------------------------------------------------------- */

.long-steps { display: flex; flex-direction: column; gap: 1.25rem; }

.long-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius);
}

.long-step:nth-child(even) .long-step__media { order: -1; }
.long-step__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.long-step__copy h3 { font-size: var(--text-5xl); line-height: 1.08; }
.long-step__copy p { max-width: 48ch; font-size: var(--text-lg); line-height: 1.55; opacity: 0.82; }
.long-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 0.5rem); }

@media (width <= 900px) {
  .long-step { grid-template-columns: minmax(0,1fr); padding: 1.5rem; gap: 1.5rem; }
  .long-step:nth-child(even) .long-step__media { order: 0; }
}

/* --- Blog cards -------------------------------------------------------------- */

.post-card { padding: 0.75rem; border-radius: var(--radius); }

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.5rem);
  transition: transform 0.5s ease-out;
}

.post-card:hover img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.15rem 0.6rem 0.5rem; }
.post-card__body h3 { font-size: var(--text-2xl); line-height: 1.25; }
.post-card__body > p { font-size: var(--text-lg); line-height: 1.45; opacity: 0.75; }

.post-card__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; font-size: var(--text-base); opacity: 0.65; }
.post-card__meta img { width: 1.75rem; height: 1.75rem; border-radius: 50%; aspect-ratio: 1; }

/* --- Contact ---------------------------------------------------------------- */

.cta-band { display: flex; flex-direction: column; align-items: center; gap: 1.15rem; text-align: center; padding-block: 5rem; }
.cta-band h2 { max-width: 22ch; font-size: var(--text-6xl); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band p { max-width: 46ch; font-size: var(--text-lg); line-height: 1.5; opacity: 0.75; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* --- Footer -------------------------------------------------------------------- */

.site-footer { border-radius: var(--radius) var(--radius) 0 0; background: var(--foreground); color: #fafaf9; padding-block: 4rem; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { font-size: var(--text-5xl); font-weight: 700; letter-spacing: -0.02em; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }
.footer-nav h3 { font-size: var(--text-base); font-weight: 500; opacity: 0.55; margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--text-lg); transition: color 0.2s, opacity 0.2s; }
.footer-nav a:hover { color: var(--accent); }

.footer-legal-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent);
  font-size: var(--text-base); opacity: 0.6;
}
.footer-legal-bar div { display: flex; gap: 1.25rem; }

@media (width <= 768px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
