:root {
  --green: #00824e;
  --green-2: #01935b;
  --green-deep: #04643d;
  --ink: #141c19;
  --muted: #5b6a64;
  --bg: #f4f7f5;
  --bg-white: #ffffff;
  --line: #dce6e0;
  --shadow: 0 18px 50px rgba(12, 40, 28, 0.08);
  --header-h: 88px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-deep);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0 0 0 1.1em;
}

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--ink);
  max-width: 52rem;
}

.section {
  padding: 5.2rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head p:last-child {
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 2px #cccccc;
  cursor: pointer;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}

.btn:hover {
  color: #fff;
  opacity: 0.82;
}

.btn--light {
  background: var(--green);
}

.btn--ghost {
  width: 100%;
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.btn--ghost:hover {
  background: var(--green);
  color: #fff;
  opacity: 1;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-white) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  --header-h: 68px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(12, 40, 28, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 42px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .logo img {
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero__veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.52));
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 2.4rem));
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 1.8rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  width: 28px;
  height: 42px;
  transform: translateX(-50%);
  color: var(--green-2);
}

.scroll-hint span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 8px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
  }
}

/* Mission */
.mission {
  background: var(--bg-white);
}

.mission .lead {
  margin: 0 auto 2.6rem;
  text-align: center;
}

.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.mission__grid article {
  padding: 1.6rem 1.5rem 1.3rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.mission__cta {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
}

/* Bands */
.band {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.band img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.band__label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Cards */
.cards-7 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cards-7 article:last-child {
  grid-column: 1 / -1;
  max-width: calc((100% - 2rem) / 3);
  justify-self: center;
}

.card,
.plan {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.idx {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card h3,
.plan h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  text-wrap: balance;
}

.card p,
.plan p {
  color: var(--muted);
  font-size: 0.94rem;
}

.card p {
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.card__note {
  margin-top: 0.55rem !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 0.2rem;
}

.plan:has(.plan__badge) h3 {
  padding-right: 4.8rem;
}

.plan__audience {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green) !important;
}

.plan__price {
  margin: 0.2rem 0;
  color: var(--ink) !important;
}

.plan__price span {
  font-size: 1.45rem;
  font-weight: 700;
}

.plan__hours {
  font-size: 0.82rem !important;
  margin-bottom: 0.8rem;
}

.plan__intro {
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: 0.2rem;
  min-height: 4.5em;
}

.plan ul {
  margin: 0.4rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.plan .btn {
  margin-top: auto;
}

.plan .plan__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #e23b3b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.plan .plan__badge--quiet {
  background: var(--green);
  color: #fff;
}

.plan--featured {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  box-shadow: 0 22px 50px rgba(0, 130, 78, 0.12);
}

/* Impots */
.impots {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 620px;
  background: var(--bg-white);
}

.impots__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.impots__copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  align-self: center;
  min-width: 0;
}

.impots__copy > p {
  max-width: 38rem;
}

.impots__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 1.4rem 0 1.8rem;
}

.impots__cols h3 {
  font-size: 0.95rem;
}

.impots__cols li {
  margin: 0.35rem 0;
  color: var(--muted);
}

/* Contact */
.contact {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(0, 130, 78, 0.08), transparent 55%),
    var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.4rem;
  align-items: start;
}

.contact__photo {
  margin: 1.6rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact__photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form__row--3 {
  grid-template-columns: 1.4fr 0.7fr 1fr;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fbfcfb;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--green) 45%, white);
  border-color: var(--green);
}

.form .btn {
  justify-self: start;
}

.form__status {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.92rem;
}

.form__status.is-ok {
  color: var(--green-deep);
  font-weight: 600;
}

.form__status.is-error {
  color: #b42318;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 1.6rem 0;
  background: #101815;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a.footer-partner {
  text-transform: none;
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Modal */
.plan-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(640px, calc(100vw - 2rem));
  max-height: min(88vh, 820px);
}

.plan-modal::backdrop {
  background: rgba(8, 18, 14, 0.72);
}

.plan-modal__box {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: min(88vh, 820px);
  overflow: auto;
}

.plan-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.plan-modal h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-modal h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
}

.plan-modal p,
.plan-modal li {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

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

@media (max-width: 1080px) {
  .plans,
  .cards-7 {
    grid-template-columns: 1fr 1fr;
  }
  .cards-7 article:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.2rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .mission__grid,
  .impots,
  .impots__cols,
  .contact__grid,
  .form__row,
  .form__row--3,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-inner {
    text-align: center;
    justify-items: center;
  }

  .hero {
    min-height: 64vh;
  }

  .contact__photo {
    display: none;
  }
}

@media (max-width: 640px) {
  .plans,
  .cards-7 {
    grid-template-columns: 1fr;
  }

  .plan__intro {
    min-height: 0;
  }

  .section {
    padding: 3.4rem 0;
  }

  .band img {
    height: 220px;
  }
}
