/* =================================================================
   Irish Hauls — landing page styles
   Palette + type pulled from the cartoon mascot logo.
   ================================================================= */

:root {
  /* Brand palette (from logo) */
  --green:        #2f9e3f;
  --green-bright: #46b94f;
  --forest:       #173d1d;
  --forest-deep:  #0f2a14;
  --gold:         #e9b949;
  --gold-light:   #f6d574;
  --cream:        #f6f1e3;
  --cream-deep:   #ece3cb;
  --ink:          #14160f;
  --navy:         #27375f;

  /* Roles */
  --bg:           var(--cream);
  --text:         #1e2417;
  --text-soft:    #4a5340;

  /* Type scale (fluid) */
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --text-lg:   clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  --text-h2:   clamp(2rem, 1.3rem + 3vw, 3.6rem);
  --text-hero: clamp(2.4rem, 1.2rem + 5vw, 5rem);

  /* Rhythm */
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --maxw: 1140px;
  --radius: 18px;
  --radius-lg: 26px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 280ms;

  --shadow-sm: 0 4px 14px rgba(15, 42, 20, 0.12);
  --shadow-md: 0 14px 38px rgba(15, 42, 20, 0.18);
  --ring-gold: 0 0 0 4px rgba(233, 185, 73, 0.35);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-weight: 600;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.05; margin: 0; }

.section-inner { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* Heading display font */
.hero-heading, .section-title, .brand-name, .footer-name,
.step-num, .nav-cta, .contact-card-value {
  font-family: "Anton", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* =================================================================
   HEADER / NAV
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--forest) 96%, transparent);
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-name { color: var(--cream); font-size: 1.5rem; letter-spacing: 1px; }

.nav { display: flex; align-items: center; }
.nav-list {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a { color: var(--cream); font-weight: 800; font-size: 0.98rem; transition: color var(--dur); }
.nav-list a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: var(--forest-deep) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 1.05rem !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--forest-deep) !important; }
.nav-cta:active { transform: translateY(0) scale(0.97); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--cream); border-radius: 3px; transition: transform var(--dur), opacity var(--dur); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 4vw, 4.5rem) 1.25rem clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--cream) 55%, var(--cream-deep) 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 70%;
  background: radial-gradient(closest-side, rgba(70, 185, 79, 0.25), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-logo-wrap {
  position: relative;
  width: clamp(220px, 42vw, 380px);
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}
.hero-logo { width: 100%; height: auto; }

/* light sweep that runs across the logo during intro */
.hero-shine {
  position: absolute; top: -20%; left: -60%;
  width: 45%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green);
}
.hero-heading {
  font-size: var(--text-hero);
  color: var(--forest);
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(20,22,15,0.12);
}
.hero-heading .accent {
  display: block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--forest-deep);
}
.hero-sub {
  max-width: 42ch; margin: 1.1rem auto 0;
  font-size: var(--text-lg); color: var(--text-soft); font-weight: 700;
}
.hero-sub strong { color: var(--green); }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
  margin-top: 1.8rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: center;
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  font-weight: 800; color: var(--text-soft);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  border: 3px solid var(--forest-deep);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-spring),
              box-shadow var(--dur), background var(--dur);
  box-shadow: 0 6px 0 var(--forest-deep);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--forest-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--forest-deep); }
.btn:focus-visible { outline: none; box-shadow: 0 6px 0 var(--forest-deep), var(--ring-gold); }
.btn-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: var(--cream); color: var(--forest-deep); }

/* =================================================================
   SHARED SECTION BITS
   ================================================================= */
.kicker {
  font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.82rem; color: var(--green); margin: 0 0 0.5rem;
}
.kicker-gold { color: var(--gold); }
.section-title {
  font-size: var(--text-h2);
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1.6rem;
}
.section-title-light { color: var(--cream); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   SERVICES (dark forest band, cream cards)
   ================================================================= */
.services {
  padding-block: var(--space-section);
  background:
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  position: relative;
  text-align: center;
}
.services::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246,241,227,0.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px; pointer-events: none;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  text-align: left;
}
.service-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 8px 0 rgba(0,0,0,0.35);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}
.service-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 14px 0 rgba(0,0,0,0.4); }
.service-card h3 { font-size: 1.35rem; color: var(--forest); margin-bottom: 0.4rem; }
.service-card p { margin: 0; color: var(--text-soft); font-weight: 600; font-size: 0.98rem; }
.service-card-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
  color: #fff;
}
.service-card-feature h3, .service-card-feature p { color: #fff; }

.service-ico {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}
.service-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--forest-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card-feature .service-ico { background: var(--cream); }

/* =================================================================
   STORY (cream, two columns with the truck)
   ================================================================= */
.story { padding-block: var(--space-section); background: var(--cream); }
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-copy p { color: var(--text-soft); margin: 0 0 1rem; }
.story-copy .btn { margin-top: 0.6rem; }
.story-sign { font-weight: 900; color: var(--green) !important; font-size: 1.1rem; }

.story-art { display: grid; place-items: center; }
.truck-scene {
  width: 100%;
  background: radial-gradient(closest-side, rgba(70,185,79,0.18), transparent 75%);
  padding: 1rem;
}
.truck { width: 100%; height: auto; overflow: visible; }

/* idle bob once the truck is in view */
.story-art.is-visible .truck { animation: truckBob 3.2s var(--ease-out-expo) infinite; }
.story-art.is-visible .wheel { animation: wheelSpin 1.4s linear infinite; transform-box: fill-box; transform-origin: center; }
.truck-clover { animation: cloverPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes truckBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes cloverPulse { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }

/* =================================================================
   HOW IT WORKS (soft green band)
   ================================================================= */
.how {
  padding-block: var(--space-section);
  background: linear-gradient(180deg, #eef6e9 0%, var(--cream) 100%);
  text-align: center;
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; counter-reset: step;
}
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--forest-deep);
  border: 3px solid var(--ink);
  font-size: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--forest); font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); margin: 0; }
.step a { color: var(--green); text-decoration: underline; font-weight: 800; }

/* =================================================================
   CONTACT / CTA (deep green)
   ================================================================= */
.contact {
  padding-block: var(--space-section);
  background:
    radial-gradient(120% 120% at 50% 0%, var(--forest) 0%, var(--forest-deep) 70%);
  text-align: center;
}
.contact-inner { position: relative; }
.contact-clover { font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
.contact-sub { color: var(--cream); opacity: 0.9; max-width: 46ch; margin: 0 auto 2rem; font-weight: 700; }
.contact-cards {
  display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center;
}
.contact-card {
  display: grid; gap: 0.2rem;
  min-width: 250px;
  padding: 1.3rem 1.8rem;
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--forest-deep);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 13px 0 var(--forest-deep); }
.contact-card:active { transform: translateY(2px); box-shadow: 0 4px 0 var(--forest-deep); }
.contact-card-label { font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-size: 0.78rem; color: var(--green); }
.contact-card-value { font-size: 1.5rem; color: var(--forest); }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--forest-deep);
  color: var(--cream);
}
.footer-mark { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 0.7rem; box-shadow: var(--shadow-sm); }
.footer-name { font-size: 1.7rem; letter-spacing: 2px; color: var(--gold); margin: 0; }
.footer-tag { margin: 0.2rem 0 0.8rem; opacity: 0.85; font-weight: 700; font-size: 0.95rem; }
.footer-contact { margin: 0 0 0.6rem; font-weight: 800; }
.footer-contact a { color: var(--gold-light); }
.footer-contact a:hover { text-decoration: underline; }
.footer-fine { margin: 0; opacity: 0.6; font-size: 0.85rem; }

/* =================================================================
   3-SECOND LOGO INTRO (plays once on load)
   ================================================================= */
.js-logo-intro .hero-logo {
  animation: logoIn 1.1s var(--ease-spring) both;
}
.js-logo-intro .hero-shine {
  animation: shineSweep 1.4s ease-in-out 0.9s 1 both;
}
/* hero text + ctas settle in after the logo, finishing by ~3s */
.hero-eyebrow { animation: riseIn 0.6s var(--ease-out-expo) 1.0s both; }
.hero-heading { animation: riseIn 0.7s var(--ease-out-expo) 1.2s both; }
.hero-sub     { animation: riseIn 0.7s var(--ease-out-expo) 1.6s both; }
.hero-cta     { animation: riseIn 0.7s var(--ease-out-expo) 2.0s both; }
.hero-badges  { animation: riseIn 0.7s var(--ease-out-expo) 2.4s both; }

@keyframes logoIn {
  0%   { opacity: 0; transform: scale(0.55) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes shineSweep {
  0%   { opacity: 0; left: -60%; }
  20%  { opacity: 1; }
  100% { opacity: 0; left: 130%; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 820px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-art { order: -1; max-width: 460px; margin-inline: auto; }
  .service-card-feature { grid-column: span 1; }

  .nav-toggle { display: flex; z-index: 60; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.3rem;
    padding: 5rem 2rem;
    background: var(--forest);
    border-left: 4px solid var(--gold);
    transform: translateX(105%);
    transition: transform var(--dur) var(--ease-out-expo);
    box-shadow: var(--shadow-md);
  }
  .nav-list.open { transform: translateX(0); }
  .nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .contact-card { min-width: 0; width: 100%; }
}

/* =================================================================
   REDUCED MOTION — honor the user's preference
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
