/* Tech Rohan Modern — Forti365-inspired design */

:root {
  --primary: #1a5fb4;
  --primary-dark: #0f2d5e;
  --accent: #e85d04;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --dark: #030712;
  --dark-surface: #0f172a;
  --dark-text: #e2e8f0;
  --border: #e2e8f0;
  --gradient-start: #1a5fb4;
  --gradient-end: #0f2d5e;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.3);
}
.btn--primary:hover { box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: #fff; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-surface);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}
.logo:hover {
  text-decoration: none;
}
.logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.875rem;
}
.logo__text {
  font-weight: 700;
  font-size: 1.125rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav a {
  color: var(--dark-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: color 0.15s;
}
.nav a:hover { color: #fff; text-decoration: none; }
.nav__cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  margin-left: 0.5rem;
  font-weight: 600;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav__cta:hover {
  box-shadow: 0 0 20px rgba(26, 95, 180, 0.6), 0 4px 12px rgba(26, 95, 180, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav.is-open a { padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 4rem 1.5rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26, 95, 180, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 93, 4, 0.08) 0%, transparent 50%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero__badge {
  display: inline-block;
  background: rgba(26, 95, 180, 0.15);
  border: 1px solid rgba(26, 95, 180, 0.3);
  color: #93c5fd;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.2rem;
  color: var(--dark-text);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Stats */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat__label {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.section__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 0 3rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.25rem;
}
.service-card p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.service-card li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
  font-size: 0.9rem;
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.service-card__link {
  font-weight: 600;
  color: var(--primary);
}
.service-card__link:hover { text-decoration: underline; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.step__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.step h3 {
  margin: 0.75rem 0 0.5rem;
  color: var(--text);
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.about-grid { max-width: 700px; }
.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.credential {
  background: rgba(26, 95, 180, 0.08);
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial__stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
}
.testimonial__quote {
  margin: 0 0 1.5rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial__name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.testimonial__role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta-banner__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.cta-banner h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
}
.cta-banner p {
  max-width: 550px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cta-banner .btn--primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-banner__note { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.cta-banner__reassurances {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* FAQ */
.faq-list {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq[open] summary::after {
  content: "−";
}
.faq p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 2rem auto 0;
}
.contact-method {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-method h3 { margin: 0 0 0.5rem; }
.contact-method a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.contact-method p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.final-cta h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.final-cta p {
  color: var(--dark-text);
  margin: 0 0 2rem;
}

/* Footer */
.footer {
  background: var(--dark-surface);
  color: var(--dark-text);
  padding: 4rem 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.75rem;
}
.footer__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0;
}
.footer__col h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col li { margin-bottom: 0.5rem; }
.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .hero__title { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


/* Page hero — used on inner pages instead of the full-height dark hero */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 5rem 0 3rem;
}
.page-hero .section__eyebrow { color: #93c5fd; }
.page-hero .section__title { color: #fff; margin-bottom: 0.5rem; }
.page-hero .section__subtitle { color: var(--dark-text); }

/* Active nav link */
.nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}


/* Footer social icons */
.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.footer__socials a:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}


/* Footer legal links */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__legal a {
  color: var(--text-muted);
}
.footer__legal a:hover {
  color: #fff;
}

/* Plan pricing */
.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.75rem;
}


/* Most Popular badge */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Compact steps grid for homepage */
.steps-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .steps-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* Mobile improvements */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }
  .hero__sub {
    font-size: 1rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  .cta-banner h1,
  .cta-banner h2 {
    font-size: 1.5rem;
  }
  .cta-banner__reassurances {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat__value {
    font-size: 2rem;
  }
  .section__title {
    font-size: 1.75rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Ensure touch targets are big enough on mobile */
@media (max-width: 768px) {
  .nav.is-open a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .faq summary {
    padding: 1rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}


/* Digital Estate Planning horizontal banner */
.dep-banner {
  padding: 2rem 0;
}
.dep-banner__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.dep-banner__inner:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.dep-banner__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}
.dep-banner__content {
  flex: 1 1 300px;
}
.dep-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
}
.dep-banner__desc {
  margin: 0;
  color: var(--text-muted);
}
.dep-banner__action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.dep-banner__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}
.dep-banner__once {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .dep-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .dep-banner__action {
    width: 100%;
  }
}
