/* Aventra Financials — site styles
   Colors and sizes match the original Hostinger Horizons build. */

:root {
  --plum: hsl(270 35% 18%);
  --plum-95: hsl(270 35% 18% / 0.95);
  --plum-85: hsl(270 35% 18% / 0.85);
  --plum-55: hsl(270 35% 18% / 0.55);
  --plum-deep: #451552;            /* rgb(69, 21, 82) used for headings/body copy */
  --gold: hsl(42 78% 59%);
  --gold-alt: rgb(232, 183, 69);
  --lavender: hsl(270 40% 92%);
  --muted: hsl(270 40% 95%);
  --muted-fg: hsl(270 15% 45%);
  --border: hsl(270 30% 88%);
  --input: hsl(270 25% 86%);
  --destructive: hsl(0 72% 45%);
  --white: #fff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 80rem;
  --shadow-card: 0 18px 50px -30px hsl(270 35% 18% / 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--plum);
  background: var(--white);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.font-display { font-family: var(--font-display); font-optical-sizing: auto; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.eyebrow {
  font-size: 18px;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--plum-deep);
}
.eyebrow--gold { color: var(--gold-alt); }
.eyebrow--sm { font-size: 0.75rem; color: var(--gold); line-height: 1rem; }

.h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--plum);
}
@media (min-width: 640px) { .h2 { font-size: 3rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 2px; font-weight: 600; cursor: pointer; border: 0;
  transition: filter .2s, transform .1s, background-color .2s, color .2s;
}
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--plum); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--outline { border: 1px solid rgb(255 255 255 / .3); color: #fff; font-weight: 500; background: transparent; }
.btn--outline:hover { background: rgb(255 255 255 / .1); }
.btn--lg { min-height: 3.25rem; padding: 0 32px; font-size: 1rem; }
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--plum-95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: rgb(255 255 255 / .1);
}
.site-header__bar { display: flex; height: 96px; align-items: center; justify-content: space-between; }
.site-header__logo img { height: 80px; width: auto; }
.site-nav { display: none; align-items: center; gap: 28px; }
.site-nav a { font-size: .875rem; font-weight: 500; color: rgb(255 255 255 / .8); transition: color .2s; }
.site-nav a:hover { color: var(--gold); }
.site-nav a.site-nav__phone:hover { color: #fff; }
.site-nav .btn { padding: 12px 20px; font-size: .875rem; color: var(--plum); }
.site-nav .btn:hover { color: var(--plum); }
.menu-toggle {
  display: flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; cursor: pointer; border-radius: 2px;
}
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }
.mobile-menu { display: none; border-top: 1px solid rgb(255 255 255 / .1); background: var(--plum); padding: 8px 20px 24px; }
.site-header.is-open .mobile-menu { display: block; }
.mobile-menu > a:not(.btn):not(.mobile-menu__phone) { display: block; border-bottom: 1px solid rgb(255 255 255 / .1); padding: 16px 0; font-size: 1rem; color: rgb(255 255 255 / .9); }
.mobile-menu .btn { display: flex; margin-top: 20px; padding: 16px 20px; width: 100%; }
.mobile-menu__phone { display: block; margin-top: 12px; padding: 12px 0; text-align: center; font-size: .875rem; color: rgb(255 255 255 / .8); }
.mobile-actions { display: flex; align-items: center; gap: 8px; }
.mobile-actions__cta { min-height: 44px; padding: 0 14px; font-size: .875rem; white-space: nowrap; }
@media (max-width: 639px) {
  .site-header__bar { height: 80px; }
  .site-header__logo img { height: 60px; }
}
@media (max-width: 359px) {
  .mobile-actions__cta { padding: 0 10px; font-size: .8125rem; }
  .site-header__logo img { height: 52px; }
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .mobile-actions, .mobile-menu, .site-header.is-open .mobile-menu { display: none; }
}

/* Without JavaScript, keep anchored sections clear of the shorter mobile header */
@media (max-width: 639px) {
  .about, .services, .why, .contact { scroll-margin-top: 80px; }
}

/* Stop iOS Safari from zooming in when a form field is tapped (needs 16px+) */
@media (max-width: 1023px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  background: var(--plum); padding: 128px 0 64px;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--plum), var(--plum-85), var(--plum-55)); }
.hero .container { position: relative; }
.hero__content { max-width: 48rem; }
.hero h1 {
  margin-top: 24px; font-family: var(--font-display); font-weight: 600;
  font-size: 2.6rem; line-height: 1.05; letter-spacing: -0.025em; color: #fff;
}
.hero__lede { margin-top: 28px; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: rgb(255 255 255 / .8); }
.hero__actions { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) {
  .hero { padding-bottom: 96px; }
  .hero h1 { font-size: 3.75rem; }
  .hero__actions { flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 4.4rem; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--border); background: var(--lavender); padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__group { display: flex; flex-shrink: 0; align-items: center; }
.ticker__item {
  display: flex; align-items: center; gap: 24px; white-space: nowrap; padding: 0 24px;
  font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
  color: hsl(270 35% 18% / .8);
}
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding: 96px 0; scroll-margin-top: 96px; }
.about__grid { display: grid; align-items: center; gap: 56px; }
.about__img { width: 100%; border-radius: 2px; object-fit: cover; box-shadow: 0 40px 80px -50px hsl(270 35% 18% / .6); }
.about .eyebrow--sm { letter-spacing: .28em; text-transform: uppercase; }
.about h2 span { font-size: 48px; color: var(--plum-deep); }
.about__body { margin-top: 24px; font-size: 16.8px; line-height: 1.625; color: var(--plum-deep); }
.about__body p + p { margin-top: 20px; }
.about__promise { font-weight: 700; }
@media (max-width: 639px) { .about h2 span { font-size: 2.25rem; } }
@media (min-width: 1024px) {
  .about { padding: 128px 0; }
  .about__grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Services ---------- */
.services { background: var(--muted); padding: 96px 0; scroll-margin-top: 96px; }
.services__intro { max-width: 48rem; }
.services__lede { margin-top: 20px; font-size: 1.125rem; line-height: 1.625; color: var(--muted-fg); }
.services__grid { margin-top: 56px; display: grid; column-gap: 48px; row-gap: 40px; border-top: 1px solid var(--border); padding-top: 48px; }
.service { display: flex; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 36px; }
.service__icon { display: flex; width: 48px; height: 48px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 2px; background: var(--plum); color: var(--gold); }
.service__icon .icon { stroke-width: 1.6; }
.service h3 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--plum-deep); }
.service p { margin-top: 10px; white-space: pre-line; font-size: .98rem; line-height: 1.625; color: var(--muted-fg); }
@media (min-width: 768px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services { padding: 128px 0; } }

/* ---------- Why us ---------- */
.why { background: var(--plum); color: #fff; padding: 96px 0; scroll-margin-top: 96px; }
.why__grid { display: grid; gap: 64px; }
.why h2 { color: #fff; }
.why h2 span { font-size: 48px; }
.why__img { margin-top: 40px; width: 100%; border-radius: 2px; object-fit: cover; }
.why__list > * + * { margin-top: 32px; }
.reason { display: flex; gap: 20px; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 32px; }
.reason .icon { color: var(--gold); stroke-width: 1.6; }
.reason h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.reason p { margin-top: 10px; line-height: 1.625; color: rgb(255 255 255 / .7); }
@media (max-width: 639px) { .why h2 span { font-size: 2.25rem; } }
@media (min-width: 1024px) {
  .why { padding: 128px 0; }
  .why__grid { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--muted); padding: 96px 0; scroll-margin-top: 96px; }
.contact__grid { display: grid; align-items: start; gap: 56px; }
.contact__lede { margin-top: 20px; font-size: 1.125rem; line-height: 1.625; color: var(--muted-fg); }
.contact .cal-alt__call { margin-top: 40px; }
.contact__details { margin-top: 32px; color: var(--plum); }
.contact__details > div + div { margin-top: 24px; }
.contact__details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-fg); }
.contact__details dd { margin-top: 4px; font-size: 1.125rem; line-height: 1.625; }
.contact__details dd.contact__phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.contact__details a:hover { color: var(--gold); }
@media (min-width: 1024px) {
  .contact { padding: 128px 0; }
  .contact__grid { grid-template-columns: .95fr 1.05fr; }
}

/* ---------- Lead form ---------- */
.lead-card { border-radius: 2px; border: 1px solid var(--border); background: #fff; padding: 24px; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .lead-card { padding: 32px; } }
.lead-card h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--plum); }
.lead-card__sub { margin-top: 8px; font-size: .875rem; color: var(--muted-fg); }
.lead-form__grid { margin-top: 24px; display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--plum); }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 2px; border: 1px solid var(--input); background: #fff;
  padding: 12px 16px; font-size: .95rem; color: var(--plum); outline: none; transition: border-color .2s;
}
.field textarea { resize: none; }
.field ::placeholder { color: hsl(270 15% 45% / .7); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); }
.field--full { grid-column: 1 / -1; }
@media (min-width: 640px) { .lead-form__grid { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__error { margin-top: 16px; font-size: .875rem; color: var(--destructive); }
.lead-form__error a { text-decoration: underline; }
.lead-form__submit {
  margin-top: 24px; display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 2px; background: var(--plum); padding: 16px 24px;
  font-size: 1rem; font-weight: 600; color: #fff; cursor: pointer; transition: filter .2s, transform .1s;
}
.lead-form__submit:hover { filter: brightness(1.1); }
.lead-form__submit:active { transform: scale(.99); }
.lead-form__submit:disabled { opacity: .7; cursor: default; }
.lead-form__submit .spinner { display: none; width: 20px; height: 20px; animation: spin 1s linear infinite; }
.lead-form__submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead-form__note { margin-top: 12px; font-size: .75rem; color: var(--muted-fg); }
.lead-done { text-align: center; padding: 32px; }
.lead-done .icon { width: 44px; height: 44px; margin: 0 auto; color: var(--gold); stroke-width: 1.6; }
.lead-done h3 { margin-top: 16px; }
.lead-done p { margin: 12px auto 0; max-width: 24rem; font-size: .875rem; line-height: 1.625; color: var(--muted-fg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: rgb(255 255 255 / .7); }
.site-footer__grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__mark { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 2px; background: var(--gold); font-family: var(--font-display); font-weight: 600; color: var(--plum); }
.site-footer__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; }
.site-footer__blurb { margin-top: 16px; max-width: 24rem; font-size: .875rem; line-height: 1.625; }
.site-footer__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.site-footer ul { margin-top: 16px; font-size: .875rem; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); padding: 24px 0; }
.site-footer__bottom .container { display: flex; flex-direction: column; gap: 8px; font-size: .75rem; }
.site-footer__bottom p:last-child { max-width: 42rem; }
@media (min-width: 640px) { .site-footer__bottom .container { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__about { grid-column: span 2; }
}

/* ---------- Calendar page ---------- */
.cal-page { min-height: 100vh; background: var(--muted); color: var(--plum); }
.cal-header { background: var(--plum); border-bottom: 1px solid rgb(255 255 255 / .1); }
.cal-header .site-header__bar { height: 96px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; color: rgb(255 255 255 / .8); transition: color .2s; }
.back-link:hover { color: var(--gold); }
.back-link .icon { width: 16px; height: 16px; }
.cal-hero { padding-top: 64px; padding-bottom: 48px; }
.cal-hero__grid { display: grid; align-items: end; gap: 40px; }
.cal-hero__intro { max-width: 36rem; }
.cal-eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; color: var(--gold); }
.cal-eyebrow .icon { width: 16px; height: 16px; }
.cal-eyebrow span { font-size: 18px; line-height: normal; }
.cal-hero h1 { margin-top: 20px; font-family: var(--font-display); font-size: 2.25rem; line-height: 1.25; font-weight: 600; color: var(--plum-deep); }
.cal-hero__lede { margin-top: 24px; max-width: 32rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-fg); }
.cal-hero__note { margin-top: 32px; border-left: 4px solid var(--gold); padding-left: 20px; font-size: 16px; line-height: normal; color: var(--muted-fg); }
.cal-hero__call { margin-top: 32px; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--plum-deep); transition: color .2s; }
.cal-hero__call:hover { color: var(--gold); }
.cal-hero__call .icon { width: 16px; height: 16px; }
.cal-hero__call strong { font-size: 21px; line-height: normal; }
.cal-embed { overflow: hidden; border-radius: 2px; background: #fff; box-shadow: 0 28px 70px -38px hsl(270 35% 18% / .55), 0 0 0 1px hsl(270 35% 18% / .08); }
.cal-embed iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.cal-book { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 28px; }
.cal-book__icon { width: 48px; height: 48px; padding: 12px; border-radius: 2px; background: var(--plum); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cal-book h2 { margin-top: 24px; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; font-weight: 600; color: var(--plum-deep); }
.cal-book__facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--plum); font-weight: 500; }
.cal-book__facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.cal-book__facts .icon { width: 18px; height: 18px; color: var(--gold); }
.cal-book__text { margin-top: 20px; max-width: 30rem; line-height: 1.625; color: var(--muted-fg); }
.cal-book .btn { margin-top: 32px; }
.cal-book .btn .icon { width: 18px; height: 18px; }
@media (min-width: 640px) { .cal-book { padding: 56px 48px; } .cal-book h2 { font-size: 2.25rem; } }
.cal-alt { border-top: 1px solid var(--border); background: #fff; padding: 64px 0; scroll-margin-top: 24px; }
.cal-alt__grid { display: grid; gap: 40px; align-items: start; }
.cal-alt__title { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; font-weight: 600; color: var(--plum-deep); }
.cal-alt__lede { margin-top: 16px; max-width: 28rem; font-size: 1.0625rem; line-height: 1.625; color: var(--muted-fg); }
.cal-alt__call { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; color: var(--plum-deep); }
.cal-alt__call-icon { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 2px; background: var(--plum); color: var(--gold); }
.cal-alt__call-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.cal-alt__call-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-fg); }
.cal-alt__call-number { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; transition: color .2s; }
.cal-alt__call:hover .cal-alt__call-number { color: var(--gold); }
.cal-alt .lead-card { background: var(--muted); border-color: var(--border); box-shadow: none; }
.cal-alt .field input, .cal-alt .field select { background: #fff; }
@media (min-width: 640px) { .cal-alt__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cal-alt { padding: 80px 0; } .cal-alt__grid { grid-template-columns: .82fr 1.18fr; gap: 56px; } }
.cal-foot { border-top: 1px solid var(--border); background: #fff; }
.cal-foot .container { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: .875rem; color: var(--muted-fg); }
.cal-foot a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 600; color: var(--plum); }
.cal-foot a:hover { color: var(--gold); }
.cal-foot .icon { width: 16px; height: 16px; }
@media (min-width: 640px) {
  .cal-hero { padding-top: 80px; }
  .cal-hero h1 { font-size: 3.75rem; }
  .cal-foot .container { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .cal-hero { padding-bottom: 64px; }
  .cal-hero__grid { grid-template-columns: .82fr 1.18fr; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-y, 24px)); transition: opacity .7s ease-out, transform .7s ease-out; transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
