/* =========================================================================
   Homepage Hero — Module 03
   Implements the Module 02 Design System (Concept B: High-Conversion Direct)
   for the homepage hero ONLY. Tokens are scoped to .hero-section so nothing
   here affects the shared header/footer or any other page — this stylesheet
   is linked from index.html alone.
   ========================================================================= */

html{
  scroll-behavior: smooth;
  /* Compensates for the sticky site-header so anchor jumps (#quote-form,
     #services, #areas, FAQ items, etc.) don't land with their target's top
     hidden behind the pinned header. */
  scroll-padding-top: 110px;
}
@media (max-width: 860px){
  html{ scroll-padding-top: 150px; } /* mobile header wraps to two rows */
}

.hero-section{
  /* ---- Module 02 colour tokens, scoped to this section ---- */
  --color-primary:        #0E4F56;
  --color-primary-dark:   #083338;
  --color-primary-light:  #4C8B90;
  --color-accent:         #E0641E;
  --color-accent-dark:    #B84E14;
  --color-accent-soft:    #FDECE0;
  --color-surface:        #FFFFFF;
  --color-line:           #DCE4E4;
  --color-line-strong:    #B9C6C6;
  --color-text:           #111B1C;
  --color-text-soft:      #4A5B5C;
  --color-text-on-dark:       #F2F7F6;
  --color-text-on-dark-soft:  #C7D9D7;
  --color-error:          #B42318;

  /* ---- Module 02 type tokens ---- */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* ---- Module 02 spacing tokens ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 14px; --sp-4: 20px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 72px; --sp-8: 104px;

  /* ---- Module 02 shadow / radius tokens ---- */
  --shadow-lg: 0 16px 40px rgba(14,31,32,0.16);
  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-form-card: 20px;

  font-family: var(--font-body);
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-on-dark);
  padding: var(--sp-7) 0;
}
@media (min-width: 1024px){
  .hero-section{ padding: var(--sp-8) 0; }
}

.hero-container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  /* Two columns down to the tablet breakpoint (768px) so total section height
     stays low enough for the form to remain above the fold at 1024px height —
     a stacked layout at that width pushes the form below 1024px (see QA). */
  grid-template-columns: minmax(0,1.05fr) minmax(260px,0.95fr);
  gap: var(--sp-5);
  align-items: start;
}

/* ---- Left column: content ---- */
.hero-content{ padding-top: var(--sp-2); }

.hero-eyebrow{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-soft);
  margin: 0 0 var(--sp-3);
}
.hero-eyebrow::before{
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.hero-h1{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--sp-3);
}

.hero-lead{
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-on-dark-soft);
  max-width: 46ch;
  margin: 0 0 var(--sp-5);
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  line-height: 1.1;
}
.hero-btn:hover{ transform: translateY(-1px); }
.hero-btn:focus-visible{ outline: 3px solid var(--color-accent-dark); outline-offset: 2px; }

.hero-btn--primary{
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}
.hero-btn--primary:hover{ background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.hero-btn--ghost{
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(242,247,246,0.55);
}
.hero-btn--ghost:hover{ background: rgba(242,247,246,0.12); }

/* Secondary button for use on light card surfaces (e.g. the CTA card on
   scroll-to-existing-form pages) — same role as --ghost but for a light bg. */
.hero-btn--outline{
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.hero-btn--outline:hover{ background: var(--color-primary); color: #FFFFFF; }

.hero-trust{
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-trust li{
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(242,247,246,0.08);
  border: 1px solid rgba(242,247,246,0.22);
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
}

/* ---- Right column: quote-form placeholder card ---- */
.hero-form-col{ display: flex; }

.hero-form-card{
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-form-card);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  /* Reserved height so a later live form/iframe embed of similar height causes no layout shift. */
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.hero-form-heading{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
  margin: 0 0 var(--sp-1);
}
.hero-form-subheading{
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0 0 var(--sp-4);
}

.hero-form-placeholder-note{
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  border-radius: var(--radius-btn);
  padding: var(--sp-1) var(--sp-2);
  display: inline-block;
  margin-bottom: var(--sp-4);
  width: fit-content;
}

.hero-form{
  display: grid;
  gap: var(--sp-4);
}

.hero-form-field{ display: flex; flex-direction: column; gap: var(--sp-1); }
.hero-form-field label{
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}
.hero-form-field .required::after{
  content: " *";
  color: var(--color-error);
}
.hero-form-field input,
.hero-form-field textarea{
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7em 0.85em;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-btn);
  background: #FBFDFD;
  color: var(--color-text);
  min-height: 44px;
}
.hero-form-field textarea{ resize: vertical; min-height: 88px; }
.hero-form-field input:focus,
.hero-form-field textarea:focus{
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.hero-form-submit{
  margin-top: var(--sp-1);
  width: 100%;
}

/* CTA-card variant (pages that scroll to an existing form instead of hosting
   one in the hero) — same .hero-form-card shell, just this action stack instead of fields. */
.hero-cta-actions{
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ---- Tablet: still two columns (768px keeps the form above the fold) ---- */
@media (max-width: 900px){
  .hero-form-card{ padding: var(--sp-4); min-height: 420px; }
  .hero-form{ gap: var(--sp-3); }
}

/* ---- Mobile-first collapse: only true phone widths stack ---- */
@media (max-width: 700px){
  .hero-container{
    grid-template-columns: 1fr;
  }
  .hero-form-card{ min-height: 420px; }
}

@media (max-width: 480px){
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .hero-btn{ width: 100%; }
  .hero-container{ padding: 0 12px; }
  .hero-form-card{ padding: var(--sp-3); }
}
