/* ComptaBLG — one-page homepage styles */

:root {
  --navy: #0f2a3a;
  --navy-deep: #0a1d29;
  --navy-black: #050e16;
  --gold: #c89b4b;
  --gold-light: #e3c585;
  --cream: #f7f4ee;
  --ink: #1b2429;
  --muted: #5b6a72;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

#apropos, #services, #contact { scroll-margin-top: 88px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--navy); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background 160ms ease; }
  .btn:active { transform: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75em;
  display: inline-block;
}

/* Header — floats transparently over the hero, solidifies once scrolled past it */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  box-shadow: none;
  transition: background 220ms var(--ease-out), box-shadow 220ms var(--ease-out), backdrop-filter 220ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 29, 41, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--gold-light); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; color: #fff; cursor: pointer;
  flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero — full-bleed slideshow, photo masked into a radial glow behind the text */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 76% 48%, var(--navy) 0%, var(--navy-deep) 65%);
}

.hero-slider {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent, #000 37%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 37%);
}
.hero-slider-track { position: relative; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease-in-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.86; }

.hero-slider-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--navy-deep), transparent 22%, transparent 72%, var(--navy-deep));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 165px;
  padding-bottom: 135px;
}
.hero-content { width: min(57%, 700px); }
.hero-content > * { opacity: 0; animation: hero-rise 700ms var(--ease-out) forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.19s; }
.hero-content > *:nth-child(4) { animation-delay: 0.26s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.12; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Slideshow controls: bottom-right floating cluster over the image */
.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.hero-counter { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; color: var(--gold-light); letter-spacing: 0.04em; }
.hero-caption { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.hero-vert { width: 1px; height: 42px; background: rgba(255,255,255,0.18); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(6,32,28,0.45);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.hero-arrow svg { width: 15px; height: 15px; }
.hero-arrow-prev svg { transform: rotate(180deg); }
.hero-arrow:hover,
.hero-arrow:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .hero-content { width: min(61%, 650px); }
  .hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
}

/* Stats strip — continues the hero's own gradient instead of a hard color block */
.stats-strip {
  padding: 40px 0;
  margin-top: -1px;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.stats-strip .stat { text-align: left; }
.stats-strip .stat strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; color: var(--gold-light); }
.stats-strip .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Section generic */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* About */
.about { background: var(--cream); }
.about .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }

.about-figure {
  position: relative;
  border-radius: var(--radius);
  margin-left: 20px;
}
.about-figure-frame {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.about-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(15,42,58,0.35);
}
.about-tag {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 32px -14px rgba(10,29,41,0.55);
}
.about-tag svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.about-tag span { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

.about-copy h2 .accent { color: var(--gold); }

.about-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #e7e2d6;
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.about-list li:hover { border-color: var(--gold); transform: translateX(2px); }
.about-list .check {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.about-list .check svg { width: 15px; height: 15px; }
.about-list p { margin: 0; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .about-list li { transition: none; }
}

/* Services — equal grid, every card the same width and height */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e7e2d6;
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--white);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(15,42,58,0.3);
  border-color: var(--gold);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.service-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-card li { color: var(--ink); font-size: 0.95rem; padding-left: 18px; position: relative; }
.service-card li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}

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

/* Why / stats banner */
.banner {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
}
.banner h2 { color: var(--white); max-width: 720px; margin: 0 auto 16px; }
.banner p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto; }

/* Contact */
.contact { background: var(--cream); }
.contact .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin: 0 0 4px; font-size: 1rem; font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--navy-deep); }
.contact-item p { margin: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 50px -30px rgba(15,42,58,0.35);
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--navy-deep); }
.form-row input,
.form-row textarea {
  border: 1.5px solid #ddd6c4;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer p { color: rgba(255,255,255,0.9); }
.site-footer a { color: var(--white); }
.site-footer strong { color: var(--gold-light); }

.footer-credit {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.footer-credit span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-credit svg {
  color: var(--gold-light);
  fill: rgba(227,197,133,0.3);
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 160ms var(--ease-out), fill 160ms var(--ease-out);
}
.footer-credit span:hover svg {
  transform: scale(1.2);
  fill: var(--gold-light);
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 4px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.footer-credit a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit svg,
  .footer-credit a { transition: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .about .container,
  .contact .container { grid-template-columns: 1fr; }
  .about-figure { margin-left: 0; margin-bottom: 36px; max-width: 420px; }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    box-shadow: 0 16px 32px -16px rgba(0,0,0,0.4);
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav.is-open li { border-top: 1px solid rgba(255,255,255,0.08); }
  .site-nav.is-open li:first-child { border-top: none; }
  .site-nav.is-open a {
    display: block;
    padding: 14px 24px;
  }

  .header-cta .btn-outline { display: none; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }

  .hero { min-height: 850px; }
  .hero-inner { padding-top: 120px; padding-bottom: 180px; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero-slider { width: 100%; mask-image: linear-gradient(to bottom, transparent, #000 45%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); }

  .hero-controls { right: 24px; bottom: 24px; gap: 10px; }
  .hero-arrow { width: 31px; height: 31px; }
  .hero-vert { height: 31px; }
  .hero-meta { display: none; }

  .stats-strip .container { flex-direction: column; gap: 20px; }

  .about-figure-frame { top: -10px; left: -10px; right: 10px; bottom: 10px; }
  .about-tag { padding: 10px 14px; left: 14px; bottom: -16px; }
  .about-tag span { font-size: 0.75rem; }

  .contact-form { padding: 24px; }

  /* Prevent iOS Safari from zooming the page on input focus */
  .form-row input,
  .form-row textarea { font-size: 16px; }
}
