/* ==========================================================================
   Fiber Nnet — core styles (final)
   Brand: purple → magenta gradients, amber CTAs, lavender tints
   ALL colors live in the variables below.
   Homepage background photos are local (assets/) — swap via --img-* vars.
   <img> photos are referenced directly in each page's HTML.
   ========================================================================== */

:root {
  /* ---------- Colors ---------- */
  --purple: #6a2c91;        /* primary brand purple — icon boxes, banner, footer */
  --purple-deep: #521f78;   /* topbar, footer bottom bar, dark pills */
  --purple-ink: #3f1a5c;    /* darkest purple — hover states, icon text */
  --magenta: #c937a6;       /* gradient partner */
  --grad-brand: linear-gradient(100deg, var(--purple) 0%, var(--magenta) 100%);
  --grad-card:  linear-gradient(120deg, #f7941d 0%, #ef3e77 100%); /* hero card: orange→pink */
  --amber: #f2a81d;         /* all CTA buttons, icons, step numbers */
  --amber-dark: #d9920f;    /* button hover */
  --lavender: #f4effa;      /* light tint — service cards, panel, form fields */
  --lavender-2: #ece4f6;
  --ink: #2e2440;           /* headings */
  --text: #5e5876;          /* body text */
  --line: #e6def2;          /* borders */
  --white: #fff;

  /* ---------- Homepage background photos (swap files here) ---------- */
  --img-hero:       url("assets/pexels-annushka-ahuja-8055807.jpg");   /* hero background */
  --img-why-banner: url("assets/pexels-roman-odintsov-5912193.jpg");   /* "Why Choose Us?" banner */
  --img-plan-cta:   url("assets/pexels-silverkblack-36714297.jpg");    /* "Choose Your Plan" CTA */
  --img-subscribe:  url("assets/pexels-silverkblack-39191601.jpg");    /* "Subscribe Today" CTA */

  /* ---------- Layout tokens ---------- */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 14px 40px rgba(63, 26, 92, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.eyebrow {
  margin: 0 0 .6rem;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #8a8398;
}
.lead { font-size: 1.1rem; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.6em;
  font: inherit; font-weight: 700; line-height: 1.2;
  color: #fff; background: var(--amber);
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--amber-dark); }
.btn:active { transform: translateY(1px); }
.btn--purple { background: var(--purple); }
.btn--purple:hover { background: var(--purple-ink); }
.btn--ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn--ghost:hover { background: var(--purple); color: #fff; }
.btn--sm { padding: .55em 1.2em; font-size: .9rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--purple-deep); color: #d9c9ec; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar > .container > a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--amber); }
.topbar .icon { color: var(--amber); font-size: 1rem; }

.social { display: flex; gap: 8px; }
.social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: .8rem; color: #fff;
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--amber); color: var(--purple-ink); }

/* ---------- Header / nav ---------- */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.brand-tag { font-size: .72rem; line-height: 1.3; color: #6b7891; max-width: 210px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 600; color: var(--ink); }
.nav-list a:hover { color: var(--purple); }
.nav-list a[aria-current="page"] { color: var(--amber); }
.nav .icon { font-size: .75rem; }

.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: 100%; left: -14px; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.sub-menu a:hover { background: var(--lavender); color: var(--purple); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; color: var(--purple);
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.bars { position: relative; margin: 0 auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 110px 0; color: #efe7f8;
  background:
    linear-gradient(95deg, rgba(82, 31, 120, .94) 8%, rgba(106, 44, 145, .72) 55%, rgba(106, 44, 145, .45) 100%),
    var(--img-hero) center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: .4em; }
.hero-lead { max-width: 34em; font-size: 1.15rem; margin-bottom: 1.8rem; color: #f0e8fa; }
.hero-copy { animation: rise .8s ease both; }
.hero-card { animation: rise .8s .15s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-card {
  padding: 36px 34px; border-radius: var(--r-lg);
  background: var(--grad-card);
  box-shadow: 0 22px 50px rgba(239, 62, 119, .35);
}
.hero-card h4 { color: #fff; margin-bottom: 1rem; font-size: 1.45rem; }
.check-list li { padding: 5px 0; color: #fff; font-size: .93rem; }

/* ---------- Who we are ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-grid h2 { color: #4a4262; }
.icon-box {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 28px;
  padding: 24px 26px; border-radius: 20px;
  background: var(--purple); color: #d9c9ec;
  box-shadow: 0 16px 36px rgba(106, 44, 145, .28);
}
.icon-box h3 { margin-bottom: .3em; font-size: 1.1rem; color: #fff; }
.icon-box p { margin: 0; font-size: .95rem; }
.icon-circle {
  width: 54px; height: 54px; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: var(--amber); color: var(--purple-ink); font-size: 1.25rem;
}

/* avatar stack + happy clients — FIX: sizes BOTH <img> and <span> avatars,
   so the row can never blow up regardless of markup version */
.clients { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.avatars { display: flex; align-items: center; }
.avatars img,
.avatars span {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;   /* center-crops photos into the circle */
  background: linear-gradient(135deg, var(--lavender-2), var(--magenta)); /* fallback if a photo is missing */
}
.avatars img + img,
.avatars span + span { margin-left: -12px; }
.clients strong { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.clients small { color: var(--text); }

.about-media { position: relative; }
.about-media > img:first-child {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg);
}
.badge {
  position: absolute; top: -26px; right: -18px; width: 132px; height: auto;
  filter: drop-shadow(0 10px 24px rgba(63, 26, 92, .35));
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* SVG badge follows the theme variables automatically */
.badge circle { fill: var(--purple); }
.badge .badge-amber { fill: var(--amber); }
.badge text[fill="#f2a81d"] { fill: var(--amber); }

/* ---------- Statement / Why choose us banner ---------- */
.statement-section {
  position: relative; isolation: isolate;
  padding: 150px 0 190px;
  color: #efe7f8;
  background:
    linear-gradient(100deg, rgba(82, 31, 120, .92), rgba(106, 44, 145, .82)),
    var(--img-why-banner) center / cover no-repeat;
}
.statement { max-width: 720px; margin: 0 auto; text-align: center; }
.statement h2 { color: #fff; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.statement p { color: #e6d8f4; }
.statement .btn { margin-top: 1rem; }

/* ---------- Vision / mission / motto (overlaps the banner) ---------- */
.trio-section { position: relative; z-index: 2; margin-top: -110px; padding-bottom: 40px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.trio-card {
  padding: 32px 30px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(63, 26, 92, .16);
}
.trio-card h3 { margin-bottom: .5em; }
.trio-card p { margin: 0; font-size: .97rem; }
.trio-card--feature { background: var(--grad-brand); border: 0; color: #f2e6fa; }
.trio-card--feature h3 { color: #fff; }
.trio-card--feature p { color: #f2e6fa; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.split h2 { margin: 0; }
.split p { margin-bottom: 1.2rem; }
.service {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 32px; border-radius: var(--r-md);
  background: var(--lavender);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service .icon-circle { background: #fff; color: var(--purple); margin-bottom: 14px; }
.service h3 { font-size: 1.15rem; }
.service p { flex: 1; font-size: .95rem; }

/* ---------- Why choose us panel ---------- */
.panel { padding: 56px; background: var(--lavender); border-radius: var(--r-lg); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel-media { margin-top: 32px; }
.panel-media img { width: 100%; border-radius: var(--r-md); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature {
  padding: 26px 22px; border-radius: var(--r-md); background: #fff;
  box-shadow: 0 10px 26px rgba(63, 26, 92, .1);
}
.feature:nth-child(even) { transform: translateY(18px); }
.feature .icon-circle { width: 46px; height: 46px; font-size: 1.05rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .25em; }
.feature p { margin: 0; font-size: .9rem; }
.feature--accent { background: var(--purple); }
.feature--accent h3 { color: #fff; }
.feature--accent p { color: #d9c9ec; }
.feature--accent .icon-circle { background: var(--amber); color: var(--purple-ink); }

/* ---------- Purple banner (A Simple, Reliable…) ---------- */
.banner {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 36px; align-items: center;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--purple); color: #e6d8f4;
  box-shadow: 0 20px 50px rgba(106, 44, 145, .3);
}
.banner img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; border-radius: var(--r-md); }
.banner h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: .4em; }
.banner p { margin: 0; font-size: .97rem; }
.banner .btn { white-space: nowrap; }

/* ---------- Full-width photo CTAs ---------- */
.cta-photo {
  position: relative; isolation: isolate;
  padding: 120px 0; color: #fff;
  background:
    linear-gradient(100deg, rgba(82, 31, 120, .88), rgba(201, 55, 166, .68)),
    var(--img-plan-cta) center / cover no-repeat;
}
.cta-photo--alt {
  background:
    linear-gradient(100deg, rgba(82, 31, 120, .88), rgba(201, 55, 166, .68)),
    var(--img-subscribe) center / cover no-repeat;
}
.cta-photo--right .container { display: flex; justify-content: flex-end; }
.cta-photo h2 { color: #fff; max-width: 18em; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-photo p { max-width: 36em; color: #f0e8fa; }
.cta-photo .btn { margin-top: .6rem; }

.callbar { background: var(--grad-brand); color: #fff; }
.callbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 36px; padding-bottom: 36px;
}
.callbar h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #fff; }
.support { display: flex; align-items: center; gap: 14px; }
.support .icon-circle { width: 48px; height: 48px; }
.support strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: #f2e6fa; }
.support span:last-child span { font-weight: 800; font-size: 1.2rem; color: #fff; }

/* ---------- How it works + form ---------- */
.how-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.steps { display: grid; gap: 26px; margin-top: 32px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); color: var(--purple-ink);
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(242, 168, 29, .4);
}
.step h3 { font-size: 1.08rem; margin-bottom: .2em; }
.step p { margin: 0; font-size: .95rem; }

.form-card {
  padding: 36px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.8rem; }
.form-card > p { margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--lavender); border: 1px solid transparent; border-radius: var(--r-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 44, 145, .18);
}
.recaptcha-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 12px; border-radius: 6px; font-size: .78rem; color: #555;
  background: #f9f9f9; border: 1px solid #d3d3d3;
}
.recaptcha-note .rc { width: 22px; height: 22px; border-radius: 4px; background: #4a90e2; } /* mimics Google's blue badge — the only non-brand color on the site */
.form-card .btn { width: 100%; margin-top: 16px; }
.form-status { margin: 14px 0 0; font-weight: 600; color: var(--purple); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: #d9c9ec; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-top: 68px; padding-bottom: 56px; }
.footer-logo {
  width: 150px; margin-bottom: 16px; padding: 8px 12px;
  background: #fff; border-radius: var(--r-sm);
}
.footer-name { margin-bottom: .4em; font-size: 1.6rem; color: #fff; }
.footer-brand p { max-width: 30em; }
.footer-tag { font-size: .85rem; font-weight: 700; color: #fff; }
.footer-brand .support {
  display: inline-flex; margin-top: 14px; padding: 10px 20px 10px 10px;
  background: var(--purple-deep); border-radius: 999px;
}
.footer-brand .support .icon-circle { width: 42px; height: 42px; }
.footer-brand .support span:last-child span { font-size: 1.05rem; }
.footer-col h5 { margin-bottom: 1em; color: #fff; }
.footer-col li + li { margin-top: .6em; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: var(--purple-deep); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: .88rem; color: #cbb3e2;
}
.footer-bottom strong { color: #fff; }
.footer-bottom .social a { background: var(--amber); color: var(--purple-ink); }
.footer-bottom .social a:hover { background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .header-cta { display: none; }

  .hero { padding: 80px 0; }
  .hero-grid, .about-grid, .split, .panel-grid, .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { align-items: start; gap: 20px; }
  .banner { grid-template-columns: 1fr; }
  .banner img { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .panel { padding: 36px 24px; }
  .section { padding: 64px 0; }
  .statement-section { padding: 110px 0 160px; }
  .feature:nth-child(even) { transform: none; }
}

@media (max-width: 767px) {
  .topbar { display: none; }
  .brand-tag { display: none; }
  .badge { width: 96px; top: -16px; right: 6px; }
  .form-grid, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 26px 20px; }
  .cta-photo { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-card { animation: none; }
  .badge { animation: none; }
  * { transition: none !important; }
}