/* ==========================================================================
   Dawny Products — marketing site
   Design tokens + component patterns
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Colour */
  --charcoal:     #242526; /* ink, headings, inverse band */
  --ink-soft:     #3A3B3D; /* body copy */
  --warm-grey:    #74736F; /* captions */
  --paper:        #FAF8F4; /* page ground */
  --white:        #FFFFFF; /* cards / surfaces */
  --hairline:     #E9E6E0; /* borders on paper */
  --petrol:       #0A5249; /* accent — body-size links, solid fill */
  --petrol-mid:   #0F6E63; /* large UI, hover */
  --petrol-tint:  #E5F0EE; /* surfaces, chips, confirmation */
  --light-petrol: #7FC8BC; /* accents on the charcoal band */

  /* Type */
  --font-display: 'Libre Franklin', system-ui, sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* Shadow — warm-neutral (charcoal alpha), never coloured */
  --shadow-card: 0 1px 3px rgba(36,37,38,0.06);
  --shadow-lift: 0 14px 40px rgba(36,37,38,0.10);

  /* Layout */
  --maxw: 1200px;
  --gutter: 32px;
  --nav-offset: 70px;
}

/* --- Reset / base -------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--petrol); }
a:hover { color: var(--petrol-mid); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Shared eyebrow / overline */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head__sub { font-size: 15px; color: var(--ink-soft); max-width: 30ch; }

h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

/* Line-icon defaults — Lucide, 1.75px stroke, rounded caps/joins */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Button -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 9px 18px;  font-size: 15px; }
.btn--lg { padding: 16px 26px; font-size: 17px; }

.btn--primary {
  background: var(--petrol);
  color: var(--white);
}
.btn--primary:hover { background: var(--petrol-mid); color: var(--white); }

.btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--secondary:hover { background: rgba(36,37,38,0.05); color: var(--charcoal); }

/* --- Text link (trailing arrow nudges on hover) -------------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--petrol);
  text-decoration: none;
}
.text-link__arrow { transition: transform .18s ease; }
.text-link:hover .text-link__arrow { transform: translateX(4px); }

/* --- Stat ---------------------------------------------------------------- */
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.stat__label { font-size: 14px; color: var(--warm-grey); margin-top: 2px; }

/* --- Pill / Badge -------------------------------------------------------- */
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--petrol);
  background: var(--petrol-tint);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --- Generic card lift --------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card--hover:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* ==========================================================================
   Layout: header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,248,244,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}
.brand__tagline { font-size: 11.5px; color: var(--warm-grey); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal);
  text-decoration: none;
  transition: color .18s ease;
}
.nav__link:hover { color: var(--petrol); }

.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 56px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-weight: 800;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.hero__lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 500px;
}
.hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }

.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--petrol-tint);
}
/* Placeholder photo well — swap for real photography */
.photo-well {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--petrol);
  font-size: 15px;
  background:
    repeating-linear-gradient(-45deg,
      rgba(10,82,73,0.045) 0 12px,
      transparent 12px 24px);
}

/* How-to promo band under the hero */
.promo {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--petrol-tint);
  border-radius: 16px;
}
.promo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}
.promo__sub { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }

/* ==========================================================================
   Sections: pillars / courses / blog spacing
   ========================================================================== */
.section { padding-block: 56px; }
.section--tight-top { padding-top: 24px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Service pillar card ------------------------------------------------- */
.pillar { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pillar__icon { color: var(--petrol); }
.pillar__icon .icon { width: 30px; height: 30px; }
.pillar__body { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.pillar__tools {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* --- Course card --------------------------------------------------------- */
.course-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.course-card__top { display: flex; align-items: center; gap: 12px; }
.course-card__format {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.course-card__title { font-size: 20px; }
.course-card__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.course-card__meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.course-card__meta li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.course-card__meta .icon { width: 18px; height: 18px; color: var(--petrol); }
.course-card__price {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
}
.course-card__price span { color: var(--warm-grey); font-weight: 500; }
.course-card__action { margin-top: auto; padding-top: 6px; }

/* ==========================================================================
   How-to band (inverse)
   ========================================================================== */
.howto { background: var(--charcoal); color: var(--white); }
.howto .container { padding-block: 64px; }
.howto__eyebrow { color: var(--light-petrol); }
.howto h2 { color: var(--white); }
.howto__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--light-petrol);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.howto__link:hover { color: var(--light-petrol); }
.howto__link .text-link__arrow { transition: transform .18s ease; }
.howto__link:hover .text-link__arrow { transform: translateX(4px); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 24px;
  transition: background-color .18s ease, transform .18s ease;
}
.guide-card:hover { background: rgba(255,255,255,0.08); color: var(--white); transform: translateY(-2px); }
.guide-card__icon { color: var(--light-petrol); }
.guide-card__icon .icon { width: 30px; height: 30px; }
.guide-card__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.guide-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; padding: 26px; }
.post-card__head { display: flex; align-items: center; gap: 8px; }
.post-card__meta { font-size: 13px; color: var(--warm-grey); }
.post-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.post-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ==========================================================================
   Contact / callback
   ========================================================================== */
.contact { padding: 8px 0 72px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.contact__lead { margin: 12px 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

/* Testimonial */
.testimonial { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.testimonial__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.testimonial__attribution { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex: none;
}
.testimonial__role { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--charcoal); }
.testimonial__org { font-size: 14px; color: var(--warm-grey); }

/* Form */
.callback-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.field__label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--charcoal); }
.input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--warm-grey); }
.input:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(10,82,73,0.25);
}

.confirmation {
  padding: 18px 20px;
  background: var(--petrol-tint);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--petrol);
}
.form-error {
  padding: 14px 18px;
  border-radius: 10px;
  background: #FBECEA;
  border: 1px solid #E7C7C1;
  font-size: 15px;
  color: #8F3A2E;
}
.form-error a { color: #8F3A2E; text-decoration: underline; }
[hidden] { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 48px;
}
.site-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.site-footer__brand img { width: 34px; height: 34px; }
.site-footer__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}
.site-footer__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--warm-grey); max-width: 300px; }
.footer-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--petrol); }
.site-footer__legal {
  padding: 0 var(--gutter) 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 13px;
  color: var(--warm-grey);
}
.site-footer__legal a { color: var(--warm-grey); }

/* ==========================================================================
   Responsive — collapse to single column below ~900px
   ========================================================================== */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .nav { display: none; }
  .nav--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--hairline);
    border-radius: 10px;
    color: var(--charcoal);
    cursor: pointer;
  }
  .site-header__inner { position: relative; }

  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3,
  .guide-grid,
  .contact__grid,
  .site-footer__grid { grid-template-columns: 1fr; }

  .hero__title { font-size: 40px; }
  h2 { font-size: 26px; }

  .hero { padding: 40px 0 40px; }
  .section { padding-block: 44px; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 33px; }
  .hero__stats { gap: 24px; }
  .btn--lg { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
