/* ================================================================
   ANTELIO GROUP — Microsoft Power Platform Consultancy
   Home page styles
================================================================ */

:root {
  /* Brand colour system (Antelio Brand Guidelines v1.0 2026) */
  --ground:       #F2F2F3;
  --ground-alt:   #E7E7EA;
  --ink:          #1D1F20;
  --ink-soft:     #5D5D60;
  --ink-faint:    #98989B;
  --line:         #D4D4D7;

  --accent:       #FF5A2E;
  --accent-hover: #E8431D;
  --accent-tint:  #FFF0E9;
  --accent-tint-2:#FFDCC7;

  --dark:         #1A0A04;
  --dark-2:       #2B2B2D;

  --gradient: linear-gradient(115deg, #000000 0%, #7A1A06 32%, #E8431D 62%, #FF6A1E 100%);

  --font-head: 'PP Neue Montreal', system-ui, sans-serif;
  --font-body: 'PP Neue Montreal', system-ui, sans-serif;

  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Reveal-on-scroll ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--ink); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--container-pad) 20px;
  }
  .nav.is-open .nav-link { padding: 10px 0; width: 100%; }
  .nav.is-open .nav-cta .btn--primary {
    display: inline-flex;
    margin: 4px 0 16px;
  }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__fallback-img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 2, 0.55) 0%, rgba(10, 4, 2, 0.72) 55%, rgba(10, 4, 2, 0.92) 100%),
    linear-gradient(100deg, rgba(10, 4, 2, 0.55) 0%, rgba(10, 4, 2, 0.15) 55%);
}
.hero__body {
  position: relative;
  z-index: 1;
  padding: 140px 0 96px;
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tint-2);
  margin-bottom: 22px;
}
.hero__headline {
  font-size: clamp(40px, 6.4vw, 76px);
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Section shell ───────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--ground-alt); }
.section__header {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__title { font-size: clamp(28px, 3.6vw, 40px); }
.section__lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ── Expertise grid ──────────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.expertise-card {
  background: var(--ground);
  padding: 36px 32px;
  transition: background 0.2s var(--ease);
}
.expertise-card:hover { background: #fff; }
.expertise-card__num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: block;
}
.expertise-card__title {
  font-size: 21px;
  margin-bottom: 12px;
}
.expertise-card__body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ── Numbers ─────────────────────────────────────────────────── */
.numbers {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
}
.numbers__img-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.numbers__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--ground-alt);
  padding: 32px 28px;
}
.stat__value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 46px);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .numbers { grid-template-columns: 1fr; }
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}
.faq-q__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-q__icon::before, .faq-q__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq-q__icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q__icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-q__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-a__inner {
  padding: 0 4px 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.65;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}
.contact__meta-item {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact__meta-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact__meta-value { font-size: 16px; }
.contact__meta-value a:hover { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--ink);
}
.form-success.is-visible { display: block; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__brand-logo img { width: 32px; height: 32px; border-radius: 7px; }
.footer__brand-logo span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
}
.footer__tagline { font-size: 14.5px; max-width: 30ch; line-height: 1.6; }

.footer__col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__col ul li { margin-bottom: 12px; }
.footer__col a { font-size: 14.5px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__rule { border: none; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 0 0 28px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer__back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}
.footer__back-top:hover { color: #fff; }

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ── Responsive section spacing ─────────────────────────────── */
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__body { padding: 120px 0 72px; }
}
