/* ==========================================================================
   Joyful Enterprise Opportunities, Inc.
   Global stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --color-primary:    #E1AD52;  /* gold */
  --color-secondary:  #E8D689;  /* light gold */
  --color-accent:     #8A87B5;  /* purple */
  --color-text:       #000000;
  --color-white:      #FFFFFF;
  --color-surface:    #F7F7F7;

  /* Brand gradients */
  --gradient-button:  linear-gradient(148deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  --gradient-rule:    linear-gradient(90deg,  var(--color-secondary) 0%, var(--color-primary) 100%);
  --gradient-overlay: linear-gradient(180deg, var(--color-accent) 25%, var(--color-primary) 90%);

  /* Type families */
  --font-heading: "Aldrich", "Trebuchet MS", sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --fs-body: 16px;
  --fs-h1: 2.5em;
  --fs-h2: 2.25em;
  --fs-h3: 2em;
  --fs-h4: 1.75em;
  --fs-h5: 1.5em;
  --fs-h6: 1.25em;
  --lh-heading: 1.2em;
  --lh-body: 1.75em;

  /* Layout */
  --container: 1280px;
  --section-pad-y: 70px;
  --section-pad-x: 30px;
  --header-h: 150px;
}

@media (max-width: 1024px) {
  :root { --container: 1024px; }
}

@media (max-width: 767px) {
  :root {
    --fs-body: 15px;
    --fs-h1: 2em;
    --fs-h2: 1.75em;
    --fs-h3: 1.5em;
    --fs-h4: 1.3em;
    --fs-h5: 1.2em;
    --fs-h6: 1.1em;
    --container: 767px;
    --section-pad-y: 50px;
    --section-pad-x: 20px;
    --header-h: 100px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; border: 0; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 1.75em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .3s;
}
a:hover, a:focus { color: var(--color-primary); }

ul, ol { margin: 0 0 1.75em; padding-left: 1.5em; }
ul:last-child, ol:last-child { margin-bottom: 0; }
li { margin-bottom: .35em; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 6px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* Sections that stack their content centred in a column */
.section--stack > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.section--narrow > .container { max-width: 950px; }

.stack { display: flex; flex-direction: column; gap: 20px; }
/* A run of paragraphs the source keeps in one text block: they sit flush,
   with no margin between them. */
.copy > p { margin-bottom: 0; }

/* Vertical rhythm in these stacks comes from `gap`; a trailing paragraph
   margin would add to it and push sections taller than the source. */
.stack > p:last-child,
.stack > p,
.section--stack > .container > p,
.cta-card > p,
.card > p { margin-bottom: 0; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 30px; }

/* Gradient rule used under section intros */
.rule {
  width: 150px;
  min-height: 5px;
  border-radius: 3px;
  background-image: var(--gradient-rule);
}
@media (max-width: 1024px) { .rule { width: 120px; } }

/* Narrower variant above the numbered-step intros */
.rule--sm { width: 125px; }
@media (max-width: 1024px) { .rule--sm { width: 100px; } }

/* Background-image sections ------------------------------------------------ */
/* `--bg-pos` sets the focal point; `--bg-pos-md` / `--bg-pos-sm` override it at
   the tablet and phone breakpoints. Photos with people are positioned so faces
   stay inside the visible band no matter how wide the viewport gets — a wide
   hero crops a portrait photo by more than half its height. */
.bg-image {
  background-position: var(--bg-pos, center center);
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 1024px) {
  .bg-image { background-position: var(--bg-pos-md, var(--bg-pos, center center)); }
}
@media (max-width: 767px) {
  .bg-image { background-position: var(--bg-pos-sm, var(--bg-pos-md, var(--bg-pos, center center))); }
}

/* Purple→gold wash over a photo (used on several mid-page bands) */
.bg-image--brand-wash { position: relative; z-index: 0; }
.bg-image--brand-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--gradient-overlay);
  opacity: .73;
}

/* Dark scrim (hero) */
.bg-image--scrim { position: relative; z-index: 0; }
.bg-image--scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-text);
  opacity: .6;
}

/* Light wash over a photo (Careers "Perks of Working With Us") */
.bg-image--wash-light { position: relative; z-index: 0; }
.bg-image--wash-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-white);
  opacity: .85;
}

/* Parallax, desktop only — matching the source, and sidestepping the
   background-attachment: fixed bugs on mobile Safari. */
@media (min-width: 1025px) {
  .bg-image--scrim,
  .bg-image--brand-wash,
  .bg-image--wash-light { background-attachment: fixed; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 50px;
  border: 0;
  border-radius: 50px;
  background-color: transparent;
  background-image: var(--gradient-button);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text);
  cursor: pointer;
  transition: transform .3s, color .3s;
}
.btn:hover, .btn:focus { color: var(--color-text); transform: scale(1.1); }

@media (max-width: 1024px) { .btn { padding: 12px 35px; } }
@media (max-width: 767px)  { .btn { padding: 12px 20px; } }

/* Form submit sits a little tighter and goes white on hover */
.btn--submit { padding: 10px 45px; }
.btn--submit:hover, .btn--submit:focus { color: var(--color-white); }

.btn-wrap { display: flex; }
@media (max-width: 1024px) { .btn-wrap { justify-content: center; } }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 0 30px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-primary);
}

/* Content is capped and centred, matching the source's boxed container */
.site-header__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.site-header__col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-header__col--start { width: 20%; }
.site-header__col--brand { width: 60%; }
.site-header__col--end   { width: 20%; }

/* The burger is a percentage of its column, exactly as the source sizes it,
   so it stays ~25px on desktop and shrinks with the layout. The button keeps
   a 44px-tall hit area regardless. */
.menu-toggle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle img { width: 10%; min-width: 16px; height: auto; }

.site-header__logo img {
  width: 100%;
  height: var(--header-h);
  object-fit: contain;
}

@media (max-width: 1024px) {
  .site-header__col--start { width: 15%; }
  .menu-toggle { justify-content: center; }
  .menu-toggle img { width: 20%; }
}

@media (max-width: 767px) {
  .site-header { padding: 0 20px; }
  .site-header__col--start { width: 15%; }
  .site-header__col--brand { width: 30%; }
  .site-header__col--end   { width: 15%; }
  .menu-toggle img { width: 30%; }
}

/* --------------------------------------------------------------------------
   6. Off-canvas navigation
   -------------------------------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(0, 0, 0, .8);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-panel {
  position: relative;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  padding: 165px 0 0;
  overflow-y: auto;
  background-color: var(--color-white);
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.nav-overlay.is-open .nav-panel { transform: translateX(0); }

.nav-close {
  position: absolute;
  top: 1%;
  left: 9%;
  padding: 0 10px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 35px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  transition: color .3s;
}
.nav-close:hover { color: var(--color-primary); }

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 40px 0;
  font-family: var(--font-body);
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a[aria-current="page"] { color: var(--color-primary); }

@media (max-width: 767px) {
  .nav-panel { padding-top: 85px; }
  .nav-menu a { padding: 26px 0; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
/* Interior pages: 100vh desktop, fixed heights below — matching the source */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 70px var(--section-pad-x);
  text-align: center;
  gap: 25px;
}
.hero__title { color: var(--color-primary); }

@media (max-width: 1024px) { .hero { min-height: 600px; } }
@media (max-width: 767px)  { .hero { min-height: 400px; padding-top: 35px; padding-bottom: 35px; } }

/* Home and About keep the full viewport at every breakpoint */
.hero--full { min-height: 100vh; }
@media (max-width: 1024px) { .hero--full { min-height: 100vh; } }
@media (max-width: 767px)  { .hero--full { min-height: 100vh; padding-top: 50px; padding-bottom: 50px; } }

/* Inset dark panel with reversed type (Culture "Clear Standards").
   In the source this is a child container over a photo — it does not span the
   whole band, and it carries its own 100px padding. */
.panel-dark {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 100px;
  background-position: var(--bg-pos, center 30%);
  background-repeat: no-repeat;
  background-size: cover;
}
.panel-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-text);
  opacity: .62;
}
.panel-dark > * { flex: 1 1 0; min-width: 0; }
.panel-dark, .panel-dark p, .panel-dark h5 { color: var(--color-white); }

@media (max-width: 1024px) {
  .panel-dark { flex-direction: column; padding: 75px; align-items: stretch; }
}
@media (max-width: 767px) {
  .panel-dark { padding: 40px 25px; gap: 25px; }
}

/* --------------------------------------------------------------------------
   8. Two-column intro + card grid band
   -------------------------------------------------------------------------- */
.split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.split > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 1024px) { .split { flex-direction: column; } }

/* Careers perks band: columns meet at the baseline, wider gutter */
.split--bottom { align-items: flex-end; gap: 50px; }
@media (max-width: 1024px) { .split--bottom { align-items: stretch; gap: 30px; } }

/* Source column ratios */
@media (min-width: 1025px) {
  /* The source's 40% column carries a 30px right gutter */
  .split--40-60 > :first-child { flex: 40 1 0; padding-right: 30px; }
  .split--40-60 > :nth-child(2) { flex: 60 1 0; }
  .split--45-55 > :first-child { flex: 50 1 0; }
  .split--45-55 > :nth-child(2) { flex: 60 1 0; }

  /* About: text 40% / media 50% with a 35px gutter, as the source sets them.
     They deliberately do not fill the row. */
  .split--40-50, .split--50-40 { gap: 35px; }
  .split--40-50 > :first-child  { flex: 0 0 40%; padding-right: 30px; }
  .split--40-50 > :nth-child(2) { flex: 0 0 50%; padding-inline: 15px; }
  .split--50-40 > :first-child  { flex: 0 0 50%; padding-inline: 15px; }
  .split--50-40 > :nth-child(2) { flex: 0 0 40%; }
  .split--40-50 > :nth-child(2) img,
  .split--50-40 > :first-child img { width: 95%; margin-inline: auto; }
}

.eyebrow { font-size: var(--fs-h5); }
.section-title--primary { color: var(--color-primary); }

/* Icon cards ---------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .card-grid--4 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 30px 20px;
  background-color: var(--color-surface);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
  text-align: center;
  transition: transform .2s;
  margin: 0 auto;
  width: 100%;
}
.card:hover { transform: scale(1.1); }

/* Home band: the source site gives these cards a tall minimum */
.card--tall { min-height: 60vh; }
@media (max-width: 767px) { .card--tall { min-height: 20vh; } }

/* Culture band: four cards, tighter internal rhythm, smaller icon */
.card-grid--4 .card { gap: 15px; }
.card-grid--4 .card__icon { width: 40%; }
@media (max-width: 767px) { .card-grid--4 .card__icon { width: 15%; } }

.card__icon {
  width: 50%;
  margin: 0 auto 15px;
}
.card__icon img { height: 100px; width: auto; margin: 0 auto; transition: .3s; }
.card__title { font-size: var(--fs-h6); color: var(--color-primary); }
.card__text { margin: 0; }

/* --------------------------------------------------------------------------
   9. Numbered step cards
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .steps, .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .steps, .steps--4 { grid-template-columns: 1fr; } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 50px 0 0 88px;
  transition: transform .3s;
}
.step:hover { transform: translateY(-10px); }

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: 100px;
  font-weight: 700;
  line-height: 1.2em;
  color: var(--color-primary);
  /* The source renders these as a faint watermark behind the copy */
  opacity: .15;
  pointer-events: none;
}
.step__text { margin: 0; }

@media (max-width: 767px) {
  .step { padding-left: 70px; }
  .step__num { font-size: 76px; }
}

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  min-height: 590px;
  padding: var(--section-pad-y) var(--section-pad-x);
}
/* Boxed like the source: the card aligns to the container gutter, which is the
   same line the header's menu button sits on. */
.cta-band > .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .cta-band { min-height: 500px; }
  .cta-band > .container { justify-content: center; align-items: center; gap: 20px; }
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 602px;
  max-width: 100%;
  padding: 35px 25px;
  border-radius: 25px;
  background-color: var(--color-white);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, .64);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Icon lists
   -------------------------------------------------------------------------- */
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.icon-list li:last-child { margin-bottom: 0; }
.icon-list svg {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin-top: .45em;
  fill: var(--color-primary);
}
.icon-list a { color: inherit; display: flex; align-items: flex-start; gap: 12px; }
.icon-list a:hover { color: var(--color-primary); }

/* Inline layout — the About page bullets flow horizontally and wrap */
.icon-list--inline {
  display: flex;
  flex-flow: row wrap;
  gap: 8px 20px;
}
.icon-list--inline li { margin-bottom: 0; align-items: center; }
.icon-list--inline svg { width: 20px; height: 20px; margin-top: 0; fill: var(--color-text); }

.icon-list--contact li { align-items: center; }
.icon-list--contact svg { width: 22px; height: 22px; margin-top: 0; }

/* --------------------------------------------------------------------------
   12. Flip boxes
   -------------------------------------------------------------------------- */
.flip-grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.flip-grid > * { flex: 1 1 280px; }
@media (max-width: 1024px) { .flip-grid { flex-direction: column; } }

.flip {
  position: relative;
  height: 280px;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
}
.flip__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: all .6s ease-in-out;
}
.flip__front {
  background-position: var(--bg-pos, center center);
  background-size: cover;
  background-repeat: no-repeat;
}
.flip__back  { background-color: var(--color-accent); transform: translateY(100%); }

.flip__overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 25px;
  text-align: center;
}
.flip__front .flip__overlay { background-color: rgba(0, 0, 0, .65); }
.flip__back  .flip__overlay { justify-content: center; }

.flip__title {
  font-family: var(--font-heading);
  font-size: 2.25em;
  font-weight: 700;
  line-height: 1.2em;
  color: var(--color-primary);
  margin: 0;
}
.flip__desc { margin: 0; color: var(--color-white); }

.flip:hover .flip__front,
.flip:focus-within .flip__front { transform: translateY(-100%); }
.flip:hover .flip__back,
.flip:focus-within .flip__back  { transform: translateY(0); }

/* --------------------------------------------------------------------------
   13. Accordion
   -------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 10px; }

.accordion__item { border-radius: 15px; overflow: hidden; }
@media (max-width: 767px) { .accordion__item { border-radius: 20px; } }

.accordion__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 25px;
  border: 0;
  background-color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-h6);
  font-weight: 700;
  line-height: var(--lh-heading);
  text-align: left;
  color: var(--color-white);
  cursor: pointer;
}
.accordion__icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: var(--color-white);
  transition: transform .3s;
}
.accordion__title[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }

/* Padding lives on the inner element so the panel's own height is purely
   content — that keeps the max-height animation exact. */
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  background-color: var(--color-surface);
  color: #1e1e1e;
  opacity: 0;
  transition: max-height .38s cubic-bezier(.4, 0, .2, 1),
              opacity .28s ease;
}
.accordion__panel > * { margin: 0; padding: 15px 25px; }
.accordion__panel.is-open { opacity: 1; }

.accordion__title { transition: background-color .25s; }
.accordion__title:hover { background-color: #7d7aa8; }

@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
  .accordion__icon { transition: none; }
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 10px; }

.form__row { display: flex; gap: 10px; }
.form__row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) { .form__row { flex-direction: column; } }

.field { display: flex; flex-direction: column; gap: 0; }
.field > label {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.form--labels-hidden .field > label {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.field input:not([type="submit"]),
.field textarea,
.field select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 12px 10px; background-color: var(--color-surface); }

/* reCAPTCHA widget is a fixed-size iframe; let it shrink on small screens */
.field--captcha { min-height: 78px; }
.field--captcha .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 400px) {
  .field--captcha .g-recaptcha { transform: scale(.86); }
  .field--captcha { min-height: 68px; }
}

.form__actions { display: flex; }
@media (max-width: 767px) { .form__actions { justify-content: center; } }

.form__note {
  margin: 0;
  font-size: .8em;
  line-height: 1.6;
  color: #555;
}

.form__message {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: .95em;
  line-height: 1.6;
}
.form__message.is-visible { display: block; }
.form__message--ok    { background-color: #eaf7ee; color: #1c6b34; }
.form__message--error { background-color: #fdecea; color: #8f2018; }

/* --------------------------------------------------------------------------
   15. Map & embeds
   -------------------------------------------------------------------------- */
.map { position: relative; overflow: hidden; border-radius: 15px; }
.map iframe { display: block; width: 100%; height: 350px; border: 0; }

.embed-feed { display: block; margin: 0 auto; width: 100%; max-width: 1000px; }
.embed-feed iframe { display: block; margin: 0 auto; width: 100%; height: 1000px; border: 0; }
@media (max-width: 767px) { .embed-feed iframe { height: 700px; } }

/* --------------------------------------------------------------------------
   16. Content images
   -------------------------------------------------------------------------- */
.figure-plain img { width: 100%; height: auto; }
.figure-rounded img { width: 100%; height: auto; border-radius: 15px; }
.figure-shadow img { box-shadow: 0 4px 15px rgba(0, 0, 0, .25); }

/* --------------------------------------------------------------------------
   17. Long-form / legal copy
   -------------------------------------------------------------------------- */
.prose { max-width: 100%; }
.prose h2 { margin: 1.6em 0 .6em; font-size: var(--fs-h3); }
.prose h3 { margin: 1.5em 0 .5em; font-size: var(--fs-h4); }
.prose h4, .prose h5 { margin: 1.4em 0 .5em; font-size: var(--fs-h5); }
.prose h2:first-child, .prose h3:first-child, .prose h5:first-child { margin-top: 0; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: .6em; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-primary);
  text-align: center;
}
.site-footer__logo img {
  width: 100%;
  max-width: 420px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 767px) { .site-footer__logo img { height: 120px; } }

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.social li { margin: 0; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--color-text);
}
.social svg {
  width: 25px;
  height: 25px;
  fill: var(--color-text);
  transition: fill .3s;
}
.social a:hover svg, .social a:focus svg { fill: var(--color-primary); }

.site-footer__legal { padding: 0 20px 25px; }
.site-footer__legal p { margin: 0; color: var(--color-text); }
.site-footer__legal a { color: var(--color-text); }
.site-footer__legal a:hover, .site-footer__legal a:focus { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   19. Scroll-reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal.is-visible { animation-duration: 1.25s; animation-fill-mode: both; }

.reveal[data-anim="fadeIn"].is-visible    { animation-name: fadeIn; }
.reveal[data-anim="fadeInUp"].is-visible  { animation-name: fadeInUp; }
.reveal[data-anim="fadeInLeft"].is-visible{ animation-name: fadeInLeft; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; animation: none !important; }
  .card:hover, .step:hover, .btn:hover { transform: none; }
  .nav-panel { transition: none; }
}

/* --------------------------------------------------------------------------
   20. Particle canvas band
   -------------------------------------------------------------------------- */
.particles {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  min-height: 400px;
}
.particles > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.particles > .container { position: relative; z-index: 1; }

@media print {
  .site-header, .nav-overlay, .skip-link { display: none !important; }
  .reveal { opacity: 1; animation: none !important; }
}
