/* Arvelantis AI — hand-written site CSS */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg, iframe, video, canvas { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--surface);
  color: var(--text); padding: .7em 1.1em; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding: clamp(40px, 6vw, 88px) 0; position: relative; }
.section--alt { background: var(--surface-2); }
.section--band {
  background:
    radial-gradient(700px 340px at 85% -10%, var(--accent-tint) 0%, transparent 65%),
    var(--bg);
}
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--text-muted); }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .16s cubic-bezier(.2,.6,.2,1), box-shadow .16s, background .16s, color .16s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); text-decoration:none; }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration:none; }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); text-decoration:none; }
.btn--outline:hover { background: var(--accent-tint); color: var(--accent-hover); text-decoration:none; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,15,13,.86); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s, background .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-color: var(--border); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover .brand__word { text-decoration: none; }

.main-nav { flex: 1; }
.main-nav__list { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__trigger { display: inline-flex; align-items: center; gap: .35em; background: none; border: none; font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); padding: .6em .8em; border-radius: var(--radius-sm); cursor: pointer; }
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent-hover); }
.main-nav__trigger svg { width: 16px; height: 16px; transition: transform .15s; }
.main-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 50;
}
.main-nav__item.is-open .dropdown, .main-nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__item.align-right .dropdown { left: auto; right: 0; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; text-decoration: none; }
.dropdown a:hover { background: var(--accent-tint); color: var(--accent-hover); }

.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.mobile-nav-trigger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: .5em; color: var(--text); cursor: pointer; }
.mobile-nav-trigger svg { display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { padding: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.mobile-nav__group-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font: inherit; font-weight: 700; padding: .8em .2em; color: var(--text); cursor: pointer; }
.mobile-nav__group-trigger svg { transition: transform .15s; }
.mobile-nav__group-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__group-list { list-style: none; margin: 0; padding: 0 0 .5em .6em; display: none; }
.mobile-nav__group-list.is-open { display: block; }
.mobile-nav__group-list li { margin-bottom: .3em; }
.mobile-nav__group-list a { color: var(--text-muted); text-decoration: none; }
.mobile-nav__cta { margin-top: .6rem; }

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; gap: .4em; padding: 0; margin: 0; font-size: .85rem; color: var(--text-muted); flex-wrap:wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4em; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px,7vw,96px) 0 clamp(48px,6vw,80px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgba(11,15,13,.82) 0%, rgba(11,15,13,.55) 45%, rgba(11,15,13,.4) 100%),
    linear-gradient(180deg, rgba(11,15,13,.3), rgba(11,15,13,.65) 72%, var(--bg) 100%),
    url('../images/bg-mx-wall.webp');
  background-size: cover;
  background-position: center;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__static-fallback { position: absolute; inset: 0; background: radial-gradient(900px 480px at 80% 0%, var(--accent-tint), transparent 60%); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .95fr; grid-template-rows: auto 1fr; gap: 1.4rem 3rem; align-items: start; }
.hero__title { grid-column: 1; grid-row: 1; margin: 0; }
.hero__copy { grid-column: 1; grid-row: 2; }
.hero__badges { display: flex; gap: .6rem; margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: .5em; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .5em .9em; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.hero__badge svg { width: 18px; height: 18px; color: var(--accent); }
.hero__offices { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; font-size: .9rem; color: var(--text-muted); }
.hero__flags { display: flex; gap: .3rem; }
.hero__flags span { font-size: 1.3rem; line-height: 1; }
.hero__links { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero__link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; background: var(--surface); border: 1px solid var(--border); padding: .6em 1em; border-radius: var(--radius-sm); color: var(--text); text-decoration:none; box-shadow: var(--shadow-sm); }
.hero__link:hover { border-color: var(--accent); color: var(--accent-hover); text-decoration:none; }
.hero__link svg { width: 18px; height: 18px; color: var(--accent); }
.hero__note { margin-top: .8rem; font-size: .85rem; color: var(--text-muted); }
.hero__form-col { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / 3; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px,3vw,32px); }
.form-card__eyebrow { font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: .3em; }

.split-hero { position: relative; overflow:hidden; padding: clamp(40px,6vw,72px) 0; }
.split-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; position: relative; z-index: 1; }
.split-hero .form-card { }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 1.6rem; transition: transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); margin-bottom: 1rem; }
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); }
.card-grid--stagger .card:nth-child(even) { transform: translateY(14px); }
.card-grid--stagger .card:nth-child(even):hover { transform: translateY(11px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.4rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.5rem; position: relative; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
table th, table td { padding: .85em 1em; text-align: left; border-bottom: 1px solid var(--border); }
table thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 700; }
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.mark-yes { color: var(--ok); font-weight: 700; }
.mark-no { color: var(--bad); font-weight: 700; }

/* Comparison table */
.compare-table td:nth-child(2), .compare-table th:nth-child(2) { background: var(--accent-tint); }

/* Reviews */
.review-card { display: flex; flex-direction: column; gap: .8rem; }
.review-card__head { display: flex; align-items: center; gap: .8rem; }
.review-card__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); flex-shrink:0; }
.review-card__name { font-weight: 700; margin: 0; }
.review-card__meta { font-size: .82rem; color: var(--text-muted); margin: 0; }
.review-card__body { color: var(--text-muted); font-size: .93rem; }
.review-card__foot { font-size: .8rem; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: .6rem; }

/* Exchange logos */
.exchange-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.exchange-chip { display: inline-flex; align-items: center; gap: .5em; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .7em 1.2em; box-shadow: var(--shadow-sm); opacity: .85; }
.exchange-chip svg { width: 20px; height: 20px; color: var(--text-muted); }
.exchange-chip span { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--text-muted); }

/* Calculator wrap */
.calc-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(16px,3vw,28px); position: relative; overflow: hidden; }

/* Map */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16/9; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form block */
.form-block { }
.form-legal { font-size: .78rem; color: var(--text-muted); margin-top: .8rem; }
.form-legal a { color: var(--text-muted); text-decoration: underline; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.1rem 1.3rem; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items:center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink:0; width: 18px; height:18px; color: var(--accent); transition: transform .15s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin-top: .8rem; color: var(--text-muted); }
.faq-cat { margin-bottom: 2rem; }
.faq-cat h3 { margin-bottom: .8rem; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.site-footer__brand p { color: var(--text-muted); font-size: .9rem; }
.site-footer__contact { font-size: .88rem; color: var(--text-muted); }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5em; }
.site-footer a { color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }
.site-footer__disclaimer { border-top: 1px solid var(--border); padding: 1.6rem 0; }
.site-footer__disclaimer p { font-size: .78rem; color: var(--text-muted); max-width: 900px; }
.site-footer__bottom { border-top: 1px solid var(--border); padding: 1rem 0; font-size: .8rem; color: var(--text-muted); }

/* Decorative backgrounds */
.deco-grid { position:absolute; inset:0; opacity:.5; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, black, transparent); mask-image: linear-gradient(180deg, black, transparent); pointer-events:none; }
.deco-orbit { position:absolute; border:1px dashed var(--border); border-radius:50%; pointer-events:none; opacity:.6; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .main-nav, .site-header__actions .btn--primary { display: none; }
  .mobile-nav-trigger { display: inline-flex; }
  .hero__grid, .split-hero__grid, .company-grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-rows: none; }
  .hero__title, .hero__copy, .hero__form-col { grid-column: 1; grid-row: auto; }
  .hero__title { order: 1; }
  .hero__form-col { order: 2; }
  .hero__copy { order: 3; }
}
@media (min-width: 981px) {
  .company-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
}
@media (max-width: 980px) {
  .company-grid { display: grid; gap: 1.75rem; }
  .split-hero__grid .hero__form-col { order: -1; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Calculator modal — override the module's default purple styling to match the site theme (visual only, no calc logic touched) */
.calc-modal__overlay {
  background: rgba(6, 9, 8, .72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
.calc-modal__content {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}
.calc-modal__content { --calc-modal-text: var(--text); --calc-modal-muted: var(--text-muted); }
