/* ==========================================================================
   Bambara Logistics — bambaralogistics.com
   Design system per assets/brand_colors, assets/fonts, assets/logos docs.
   Palette rule: never more than 3 brand colors in a single view.
   ========================================================================== */

:root {
  /* Brand colors (brand_colors.docx) */
  --savannah-clay: #822E24;   /* primary — headlines, primary CTAs */
  --midnight-ember: #300D0F;  /* dark backgrounds, footer */
  --sunlit-terra: #E57040;    /* warm secondary accent (decorative only) */
  --desert-glow: #FFAD4A;     /* accent — CTAs/highlights on dark, use sparingly */
  --dusk-indigo: #2D3F54;     /* supporting UI */
  --obsidian: #262626;        /* body text on light */
  --ivory-dust: #EFEEE8;      /* preferred light background */
  --white: #FFFFFF;

  --clay-dark: #6b251d;       /* hover shade of savannah clay */
  --ink-soft: #4c4741;        /* muted text on light */
  --line: #ddd9cf;            /* hairlines on ivory */

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(48, 13, 15, 0.08);
  --shadow-lift: 0 8px 28px rgba(48, 13, 15, 0.14);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--obsidian);
  background: var(--ivory-dust);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--savannah-clay); }
a:hover { color: var(--clay-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--savannah-clay);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--dark { background: var(--midnight-ember); color: var(--ivory-dust); }
.section--dark h2, .section--dark h3 { color: var(--ivory-dust); }
.section--white { background: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dusk-indigo);
  margin: 0 0 10px;
}
.section--dark .eyebrow { color: var(--desert-glow); }
.lead { font-size: 1.08rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--midnight-ember); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--dusk-indigo); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--savannah-clay); color: var(--white); }
.btn--primary:hover { background: var(--clay-dark); color: var(--white); }
.btn--glow { background: var(--desert-glow); color: var(--midnight-ember); }
.btn--glow:hover { background: #ffbd6e; color: var(--midnight-ember); }
.btn--outline { background: transparent; color: var(--savannah-clay); border-color: var(--savannah-clay); }
.btn--outline:hover { background: var(--savannah-clay); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--ivory-dust); border-color: var(--ivory-dust); }
.btn--outline-light:hover { background: var(--ivory-dust); color: var(--midnight-ember); }
.btn--lg { padding: 15px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory-dust);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
  max-width: var(--wrap); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 200px; height: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  color: var(--obsidian); text-decoration: none; border-radius: 6px;
}
.site-nav a:hover { color: var(--savannah-clay); }
.site-nav a[aria-current="page"] { color: var(--savannah-clay); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--midnight-ember); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--savannah-clay); }
.header-phone svg { vertical-align: -2px; margin-right: 6px; }
.header-cta { padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  margin-left: auto;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; content: ""; width: 24px; height: 3px;
  background: var(--midnight-ember); border-radius: 2px; position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory-dust); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 12px 16px; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: 0; }
  .brand img { width: 170px; }
}
@media (max-width: 560px) {
  .header-bar { gap: 10px; padding: 8px 14px; }
  .brand img { width: 140px; }
  .header-cta { padding: 9px 14px; font-size: 0.85rem; }
  .header-phone span { display: none; }       /* keep the icon tappable, hide number text */
  .header-phone { padding: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--midnight-ember); color: var(--ivory-dust); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(48,13,15,0.9) 0%, rgba(48,13,15,0.72) 45%, rgba(48,13,15,0.28) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 88px 0 72px; max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .hero-sub { font-size: 1.12rem; max-width: 54ch; margin-bottom: 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.hero-eyebrow { color: var(--desert-glow); }
@media (max-width: 720px) {
  .hero-inner { padding: 56px 0 48px; }
  .hero-media img { object-position: 70% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(48,13,15,0.88) 0%, rgba(48,13,15,0.72) 100%); }
}

/* Proof strip */
.proof-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-strip ul {
  list-style: none; margin: 0; padding: 14px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px;
}
.proof-strip li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--obsidian);
}
.proof-strip svg { flex-shrink: 0; color: var(--savannah-clay); }
@media (max-width: 860px) { .proof-strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .proof-strip ul { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 12px; }
.card p { flex-grow: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 9px;
  background: var(--ivory-dust);
  display: flex; align-items: center; justify-content: center;
  color: var(--savannah-clay);
}

/* Differentiator cards on dark */
.section--dark .card { background: rgba(239, 238, 232, 0.06); border-color: rgba(239, 238, 232, 0.18); box-shadow: none; }
.section--dark .card h3 { color: var(--desert-glow); }
.section--dark .card-icon { background: rgba(255, 173, 74, 0.14); color: var(--desert-glow); }
.section--dark .card .fact { color: var(--ivory-dust); }
.fact {
  font-size: 0.85rem; font-weight: 600;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px;
  color: var(--ink-soft);
}
.section--dark .fact { border-top-color: rgba(239, 238, 232, 0.2); }

/* ---------- Steps (How it works) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--savannah-clay); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.95rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.split--rev { grid-template-columns: 0.9fr 1.1fr; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lift); width: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media img { max-height: 420px; }
}

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 16px; font-size: 0.97rem; flex-grow: 1; }
.testimonial blockquote::before { content: "\201C"; display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 0.6; color: var(--sunlit-terra); margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--midnight-ember); }
.testimonial cite span { display: block; font-weight: 400; color: var(--ink-soft); }

/* ---------- Credential bar ---------- */
.credentials { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credentials-inner { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; padding: 22px 0; }
.cred {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--ivory-dust);
  padding: 7px 16px; font-size: 0.85rem; font-weight: 600; color: var(--obsidian);
}
.cred svg { color: var(--savannah-clay); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--midnight-ember); color: var(--ivory-dust); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-band .cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 48px; padding-bottom: 42px; }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Service blocks ---------- */
.service-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); margin-bottom: 22px;
  scroll-margin-top: 90px;
}
.service-block h2 { font-size: 1.35rem; margin-bottom: 0.4em; }
.service-block .service-meta { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.service-block .btn { margin-top: 6px; }

/* Scope callout (when we're not the right fit) */
.scope-callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--dusk-indigo);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.scope-callout h2 { color: var(--dusk-indigo); font-size: 1.3rem; }
.scope-callout ul { margin-bottom: 0.6em; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 48px 18px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: var(--midnight-ember);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 1.5rem; color: var(--savannah-clay); font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 22px 20px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--midnight-ember);
}
.form-field label .req { color: var(--savannah-clay); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.98rem; color: var(--obsidian);
  background: var(--ivory-dust);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(45, 63, 84, 0.35); border-color: var(--dusk-indigo);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 5px; }
.form-error { color: #8f1f12; font-size: 0.85rem; font-weight: 600; margin-top: 6px; display: none; }
.form-field.invalid .form-error { display: block; }
.form-field.invalid input, .form-field.invalid select { border-color: #8f1f12; }

.reassure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
.reassure li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.reassure svg { color: var(--savannah-clay); flex-shrink: 0; }

/* Quote page layout */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .quote-layout { grid-template-columns: 1fr; } }

/* Multi-step form */
.form-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.form-step-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
}
.form-step-dot .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); color: var(--obsidian);
  font-size: 0.85rem;
}
.form-step-dot.active { color: var(--midnight-ember); }
.form-step-dot.active .dot { background: var(--savannah-clay); color: var(--white); }
.form-step-line { flex: 0 0 34px; height: 2px; background: var(--line); }
.quote-step[hidden] { display: none; }
.form-nav { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.btn-back { background: none; border: 0; font-family: var(--font-head); font-weight: 600; color: var(--dusk-indigo); cursor: pointer; padding: 12px 8px; font-size: 0.95rem; }
.btn-back:hover { color: var(--savannah-clay); }

/* ---------- Blog ---------- */
.post-card { text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .card { height: 100%; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.post-card:hover .card { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.post-meta { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.post-card h3 { margin-top: 0; }
.read-more { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--savannah-clay); }

.article { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 28px; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.article h2 { font-size: 1.45rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article img { border-radius: var(--radius); margin: 24px 0; }
.article .article-cta {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--savannah-clay);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 36px;
}
.article .article-cta p { margin-bottom: 14px; }
.breadcrumbs { font-size: 0.85rem; margin: 18px 0 0; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--savannah-clay); }

/* ---------- Key facts table (GEO-friendly) ---------- */
.facts-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { font-family: var(--font-body); font-weight: 700; color: var(--midnight-ember); width: 34%; background: var(--ivory-dust); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight-ember); color: var(--ivory-dust); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 52px 0 36px;
}
.site-footer h4 { color: var(--desert-glow); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: var(--ivory-dust); text-decoration: none; }
.site-footer a:hover { color: var(--desert-glow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.94rem; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(239, 238, 232, 0.18);
  padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 0.84rem; color: rgba(239, 238, 232, 0.75);
}
.footer-bottom .compliance { font-weight: 600; letter-spacing: 0.02em; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { display: inline-flex; padding: 6px; border: 1px solid rgba(239,238,232,0.3); border-radius: 8px; }
.footer-social a:hover { border-color: var(--desert-glow); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.maxw-70 { max-width: 70ch; }

/* Thank-you pages */
.confirm-panel { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm-panel .card-icon { margin: 0 auto 18px; width: 60px; height: 60px; }

/* ==========================================================================
   Motion — homepage entrance + scroll reveals (subtle, professional)
   ========================================================================== */

/* Hero content rises in with a gentle stagger on page load */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Hero photo settles from a slight zoom — slow and calm */
@keyframes hero-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.page-home .hero-inner > * {
  opacity: 0;
  animation: rise-in 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
}
.page-home .hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.page-home .hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.page-home .hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
.page-home .hero-inner > *:nth-child(4) { animation-delay: 0.55s; }
.page-home .hero-media img { animation: hero-settle 12s ease-out both; }

/* Scroll-triggered reveals (classes applied by js/main.js on the homepage only) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Gentle lift on interactive cards (all pages) */
.card, .step, .testimonial {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover, .step:hover, .testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.section--dark .card:hover {
  box-shadow: none;
  border-color: rgba(255, 173, 74, 0.45);
}
.btn { will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-home .hero-inner > *,
  .page-home .hero-media img { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .step, .testimonial, .btn { transition: none; }
  .card:hover, .step:hover, .testimonial:hover, .btn:hover { transform: none; }
}

/* Print friendliness */
@media print {
  .site-header, .site-footer, .cta-band, .hero-media { display: none; }
}
