/* ============================================================
   Tax Cottage — Homepage redesign preview (/home-v2)
   Fully scoped under .hv2 so it never affects the live site.
   Style: "Trust & Authority" in brand teal. Fonts: Lexend + Source Sans 3.
   ============================================================ */

.hv2 {
  --teal: #0f6f6b;
  --teal-dark: #0a4a47;
  --teal-deep: #08302e;
  --teal-50: #e9f4f3;
  --teal-100: #d4e9e7;
  --ink: #112b2b;
  --slate: #566a6a;
  --line: rgba(15, 111, 107, .14);
  --bg: #ffffff;
  --bg-alt: #f5faf9;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(8, 48, 46, .06), 0 4px 14px rgba(8, 48, 46, .05);
  --shadow-md: 0 10px 30px rgba(8, 48, 46, .10);
  --shadow-lg: 0 24px 60px rgba(8, 48, 46, .18);

  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hv2 *,
.hv2 *::before,
.hv2 *::after { box-sizing: border-box; }

.hv2-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* Align the shared navbar with the hero content on this page only:
   .header-inner normally uses a fixed 0 18px padding; make it match the hero
   container's clamp padding so nav edges line up with the hero AND keep proper
   side margins on mobile. */
.header-inner { padding-left: clamp(1rem, 3vw, 1.5rem); padding-right: clamp(1rem, 3vw, 1.5rem); }

.hv2 h1, .hv2 h2, .hv2 h3 {
  font-family: "Lexend", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.hv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.hv2-btn svg { transition: transform .2s ease; }
.hv2-btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 111, 107, .28);
}
.hv2-btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 111, 107, .34); }
.hv2-btn-primary:hover svg { transform: translateX(3px); }
.hv2-btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.hv2-btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.hv2-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.hv2-btn-outline:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.hv2-btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.hv2-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* ---------- Kickers / eyebrows ---------- */
.hv2-kicker {
  display: inline-block;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ============================================================
   HERO
   ============================================================ */
.hv2-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hv2-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(820px 520px at 15% 18%, rgba(15, 111, 107, .22), transparent 62%),
    linear-gradient(180deg, #07120f 0%, #050d0c 55%, #030a09 100%);
}
.hv2-hero-bg::after {
  /* faint grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(1000px 620px at 30% 10%, #000 25%, transparent 75%);
}
/* Light beam + glow behind the cube (Resend-style) */
.hv2-hero-beam {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(540px 540px at 76% 54%, rgba(95, 214, 201, .16), rgba(95, 214, 201, .04) 46%, transparent 70%);
}
.hv2-hero-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 52%, rgba(150, 235, 224, .09) 62%, rgba(150, 235, 224, .02) 70%, transparent 82%);
  mix-blend-mode: screen;
}
.hv2-hero-inner {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 38px;
  align-items: center;
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

/* Eyebrow chip (old-style) */
.hv2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Lexend", sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #d6f0ee;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hv2-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5fd6c9;
  box-shadow: 0 0 0 4px rgba(95, 214, 201, .22);
}

/* Announcement pill */
.hv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Lexend", sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #cfe7e4;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  margin-bottom: 30px;
  transition: background .2s ease, border-color .2s ease;
}
.hv2-pill:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.hv2-pill-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--teal);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}
.hv2-pill svg { color: rgba(255, 255, 255, .5); }

.hv2-h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -.6px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6em;
  overflow-wrap: break-word;
}
.hv2-rotate {
  display: inline-block;
  color: var(--brand2, #48b7ad);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(72, 183, 173, 0.3);
  transition: opacity .3s ease, transform .3s ease;
}
.hv2-rotate.is-out { opacity: 0; transform: translateY(-8px); }
.hv2-h1-sub { display: block; color: #fff; font-weight: 700; }

.hv2-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  max-width: 44ch;
  margin: 26px 0 34px;
}

.hv2-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Resend-style white primary + plain text link */
.hv2-btn-white {
  background: #fff;
  color: #0a2624;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hv2-btn-white:hover { background: #eafaf8; transform: translateY(-2px); }
.hv2-btn-text {
  background: transparent;
  color: #fff;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
}
.hv2-btn-text svg { transition: transform .2s ease; }
.hv2-btn-text:hover { color: #9fe7df; }
.hv2-btn-text:hover svg { transform: translateX(3px); }

.hv2-trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hv2-chip {
  font-family: "Lexend", sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #eafaf8;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 8px 14px;
  border-radius: 10px;
}

/* Hero 3D cube */
.hv2-hero-visual { position: relative; }
.hv2-cube {
  width: 100%;
  height: clamp(400px, 65vh, 700px);
  position: relative;
  overflow: visible;
  background: transparent;
}
.hv2-cube canvas { cursor: grab; }
.hv2-cube canvas:active { cursor: grabbing; }

/* KPI marquee band under the hero (reuses old .kpis classes from styles.css) */
.hv2-marquee { background: #07120f; }
.hv2-marquee .kpis { margin-top: 0; }

/* Slim band below hero: highlights + credentials */
.hv2-strip {
  background: #050d0c;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 30px 0;
  color: #fff;
}
.hv2-strip-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hv2-strip .hv2-highlights { width: 100%; background: transparent; border: none; padding: 0; backdrop-filter: none; }
.hv2-cred { margin: 0; font-size: .85rem; letter-spacing: .04em; color: rgba(255, 255, 255, .5); }

/* Highlights strip */
.hv2-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.hv2-highlight { text-align: center; }
.hv2-highlight-num {
  display: block;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.hv2-highlight-lbl {
  display: block;
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
  margin-top: 2px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.hv2-section { padding: 88px 0; background: var(--bg); }
.hv2-section-alt { background: var(--bg-alt); }

.hv2-h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 700; }

.hv2-section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.hv2-section-lead { font-size: 1.14rem; line-height: 1.6; color: var(--slate); margin: 16px 0 0; }
.hv2-section-foot {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
}

/* About */
.hv2-about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hv2-about-copy p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 18px;
}
.hv2-about-copy p:last-child { margin-bottom: 0; }
.hv2-about-media { display: flex; justify-content: center; }
.hv2-about-card {
  position: relative;
  background: linear-gradient(150deg, var(--teal-50), #fff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 440px;
  width: 100%;
}
.hv2-about-card img { width: 100%; height: auto; display: block; }
.hv2-about-card-caption {
  display: block;
  margin-top: 18px;
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  color: var(--teal-dark);
}

/* Feature grid */
.hv2-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hv2-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hv2-section-alt .hv2-feature { background: #fff; }
.hv2-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 111, 107, .28);
}
.hv2-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal);
  margin-bottom: 20px;
}
.hv2-feature:hover .hv2-feature-icon { background: var(--teal); color: #fff; }
.hv2-feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.hv2-feature-desc { font-size: 1.02rem; line-height: 1.6; color: var(--slate); margin: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.hv2-cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 72px 0;
}
.hv2-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(72, 183, 173, .35), transparent 60%),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 60%, var(--teal-deep) 100%);
}
.hv2-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hv2-cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; max-width: 18ch; }
.hv2-cta-text { font-size: 1.1rem; line-height: 1.6; color: #d3e9e7; margin: 14px 0 0; max-width: 52ch; }
.hv2-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   SCROLL-DOWN ARROW (ported from standalone file)
   ============================================================ */
.hv2-scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 44px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
}
.hv2-chevron { width: 26px; height: 13px; position: relative; }
.hv2-chevron::before,
.hv2-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #1f8b85;
}
.hv2-chevron::before { left: 0; transform: translateY(-50%) rotate(40deg); }
.hv2-chevron::after { right: 0; transform: translateY(-50%) rotate(-40deg); }
.hv2-chevron-1 { animation: hv2-chev1 1.4s ease-in-out infinite; }
.hv2-chevron-2 { opacity: .55; animation: hv2-chev2 1.4s ease-in-out infinite .18s; }
.hv2-chevron-3 { opacity: .3; animation: hv2-chev3 1.4s ease-in-out infinite .36s; }
@keyframes hv2-chev1 { 0%, 100% { transform: translateY(0); opacity: 1; } 40%, 60% { transform: translateY(4px); opacity: .4; } }
@keyframes hv2-chev2 { 0%, 100% { transform: translateY(0); opacity: .55; } 40%, 60% { transform: translateY(4px); opacity: .2; } }
@keyframes hv2-chev3 { 0%, 100% { transform: translateY(0); opacity: .3; } 40%, 60% { transform: translateY(4px); opacity: .1; } }
.hv2-scroll-arrow:hover .hv2-chevron::before,
.hv2-scroll-arrow:hover .hv2-chevron::after { background: #26c4c4; transition: background .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  /* Start content from the top on mobile so the top padding clears the fixed
     nav (centering pushes tall stacked content up under the navbar). */
  .hv2-hero { justify-content: flex-start; }
  .hv2-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: clamp(8rem, 22vw, 9.5rem);
    padding-bottom: 3rem;
  }
  .hv2-lead { max-width: none; }
  .hv2-cube { height: 320px; }
  .hv2-about { grid-template-columns: 1fr; gap: 32px; }
  .hv2-about-media { order: -1; }
  .hv2-feature-grid { grid-template-columns: 1fr; }
  .hv2-section { padding: 60px 0; }
  .hv2-cta-inner { flex-direction: column; align-items: flex-start; }
  /* keep the scroll arrow on phones, but in the flow below the cube
     instead of pinned over it */
  .hv2-scroll-arrow {
    position: static;
    transform: none;
    margin: 4px auto 28px;
  }
}
@media (max-width: 520px) {
  .hv2-hero-inner { gap: 20px; padding-bottom: 2.5rem; }
  .hv2-cube { height: 270px; }
  .hv2-lead { font-size: 1.05rem; }
  .hv2-cta-row { width: 100%; }
  .hv2-btn { width: 100%; justify-content: center; }
  .hv2-cta-actions { width: 100%; }
  .hv2-scroll-arrow { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv2 *, .hv2 *::before, .hv2 *::after { transition: none !important; animation: none !important; }
}


/* ============================================================
   Main-homepage refinements (annotated mockup, July 2026)
   ============================================================ */

/* 2. Headline in the site's own font (the old hero font), not Lexend */
.hv2 h1.hv2-h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

/* 1. Rotating word: full phrases on desktop, single words on phones */
.hv2-rotate-mobile { display: none; }
@media (max-width: 640px) {
  .hv2-rotate-desktop { display: none; }
  .hv2-rotate-mobile { display: inline-block; }
}

/* 4. Lead stays on one line on desktop */
@media (min-width: 961px) {
  .hv2-lead { white-space: nowrap; max-width: none; }
}

/* 5. Tax Calculator button is desktop-only */
@media (max-width: 960px) {
  .hv2-desktop-only { display: none !important; }
}

/* 7. Hero + marquee share the first viewport on desktop, so the marquee is
   visible on first load. The hero keeps a floor so short windows don't clip. */
@media (min-width: 961px) {
  .hv2 { display: flex; flex-direction: column; min-height: 100dvh; }
  .hv2 .hv2-hero { flex: 1 1 auto; min-height: 560px; }
}
