/* ==========================================================================
   ALGIZ PROPERTY MANAGEMENT — Global stylesheet
   --------------------------------------------------------------------------
   Pure vanilla CSS. No build step, no framework.
   Load it from every page with:  <link rel="stylesheet" href="/styles.css">
   (Pages inside /it/ and /de/ use the SAME absolute path — do not copy this
   file into the language folders.)

   TABLE OF CONTENTS
   01. Design tokens (colours, type, spacing)
   02. Reset & base elements
   03. Typography
   04. Layout helpers (container, section, grids)
   05. Buttons
   06. Header, navigation & language selector
   07. Hero
   08. Cards (service overview)
   09. Split rows (image + text)
   10. Tick lists, steps, stats
   11. Pricing tiers
   12. FAQ (accordion)
   13. Quote / testimonial
   14. CTA band
   15. Contact & form
   16. Footer
   17. Scroll-reveal animation & motion preferences
   18. Utilities
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Change a value here and it updates everywhere on the site.
   ========================================================================== */
:root {
  /* --- Brand colours (brand guide v3 "Verbano", same as the flyers) ---- */
  --teal-900: #143F46;   /* Teal profondo — dark sections, footer, CTA band */
  --teal-800: #18505A;
  --teal-700: #1C5862;   /* Teal Verbano — primary brand colour             */
  --teal-600: #24697A;   /* hover state                                     */
  --teal-100: #C7D8D9;   /* hairline teal — borders on tinted areas         */
  --teal-50:  #EAF1F1;   /* Acqua — tinted panels and sections              */

  /* --- Neutrals -------------------------------------------------------- */
  --slate-900: #15262A;  /* Inchiostro — headings                           */
  --slate-700: #22353A;  /* body copy                                       */
  --slate-500: #4B5B5E;  /* Ardesia — secondary copy, captions              */
  --slate-300: #9AA7A9;
  --line:      #DCE6E6;  /* hairline borders                                */
  --sand:      #F3F7F7;  /* light Acqua — alternate section background      */
  --white:     #FFFFFF;

  /* --- Accent: Ottone, one short rule per page, never for text --------- */
  --brass: #B8925A;

  /* --- Typography: Newsreader (display) + Jost (text), as on the flyers  */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Century Gothic", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale: min size, preferred (viewport-based), max size */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.25rem, 1.7rem + 2.7vw, 4rem);

  /* --- Spacing & sizing ------------------------------------------------ */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container: 1180px;     /* max content width                            */
  --gutter: 1.25rem;       /* side padding on mobile                       */
  --header-h: 68px;        /* used for sticky-header scroll offsets        */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(21, 38, 42, 0.06),
               0 2px 8px rgba(21, 38, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 38, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(21, 38, 42, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 80px; }
}


/* ==========================================================================
   02. 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(--step-0);
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Stops the sticky header covering a section when you jump to an #anchor */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

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

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }

/* Visible keyboard focus everywhere — accessibility requirement */
:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-lg) 0; }


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate-900);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

/* Small uppercase label that sits above a heading */
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 var(--space-sm);
}
.eyebrow--light { color: var(--teal-100); }

/* Intro paragraph — slightly larger than body copy */
.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--slate-700);
}

.section-head { max-width: 62ch; margin-bottom: var(--space-lg); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }


/* ==========================================================================
   04. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--space-xl); }
@media (min-width: 768px) { .section { padding-block: var(--space-2xl); } }

.section--tint { background: var(--teal-50); }
.section--sand { background: var(--sand); }

.section--dark {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.85);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark a { color: var(--teal-100); }


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-600); color: var(--white); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-700); color: var(--white); }

/* For use on dark backgrounds and photographs */
.btn--light { background: var(--white); color: var(--teal-900); }
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Text link with a chevron, used at the bottom of cards */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }


/* ==========================================================================
   06. HEADER, NAVIGATION & LANGUAGE SELECTOR
   The markup for this block is identical on every page and in every
   language folder — only the href values and the visible labels change.
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal-700);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
/* .is-scrolled is added by scripts.js once the page scrolls */
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

/* --- Text-only logo ---------------------------------------------------- */
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--teal-700);
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__sub {
  display: none;               /* hidden on small screens to save room */
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-700);
  white-space: nowrap;
}
@media (min-width: 560px) { .brand__sub { display: inline; } }
@media (min-width: 768px) { .brand__name { font-size: 1.5rem; } }

/* --- Hamburger button (mobile only) ------------------------------------ */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span,
.nav-toggle__bars span::before,
.nav-toggle__bars span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--slate-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars span::before { content: ""; top: -5px; }
.nav-toggle__bars span::after  { content: ""; top: 5px; }
/* Morph into an X when the menu is open.
   The middle bar rotates 45°, the top bar slides down onto the same centre
   line and rotates 90° against it (so it reads as -45° on screen), and the
   bottom bar fades out. Keep translateY BEFORE rotate: the bar must be
   centred first, or the two strokes cross off-centre and it looks like a
   tick rather than an X. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::before { transform: translateY(5px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::after { opacity: 0; }

/* --- Navigation panel --------------------------------------------------- */
/* Mobile first: the nav is a panel that drops down below the header.      */
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) var(--gutter) var(--space-lg);
}
.site-nav.is-open { display: block; }

.site-nav__list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav__link {
  display: block;
  padding: 0.7rem 0;
  font-weight: 500;
  color: var(--slate-900);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav__link:hover { color: var(--teal-700); }
/* Add class "is-current" (and aria-current="page") to the active page link */
.site-nav__link.is-current { color: var(--teal-700); font-weight: 600; }

/* --- Language selector -------------------------------------------------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
}
.lang__btn:hover { border-color: var(--teal-700); color: var(--teal-700); }
.lang__btn .chev { transition: transform 0.2s var(--ease); font-size: 0.7em; }
.lang__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang__menu {
  display: none;
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  z-index: 120;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.lang__menu.is-open { display: block; }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--slate-900);
  text-decoration: none;
  white-space: nowrap;
}
.lang__menu a:hover { background: var(--teal-50); color: var(--teal-700); }
.lang__menu a[aria-current="true"] { background: var(--teal-50); font-weight: 700; color: var(--teal-700); }
.lang__flag { font-size: 1.05em; line-height: 1; }

/* --- Desktop navigation ------------------------------------------------- */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex !important;   /* always visible on desktop            */
    position: static;
    align-items: center;
    gap: var(--space-md);
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    margin: 0;
  }
  .site-nav__link { padding: 0.35rem 0; border-bottom: 2px solid transparent; }
  .site-nav__link:hover { border-bottom-color: var(--teal-100); }
  .site-nav__link.is-current { border-bottom-color: var(--teal-700); }

  .lang__btn { width: auto; }
  .lang__menu { left: auto; min-width: 180px; }
}


/* ==========================================================================
   07. HERO
   The <img> is real markup (not a CSS background) so search engines can
   index it and so it can carry descriptive alt text.
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  padding-block: var(--space-2xl) var(--space-xl);
  /* Gradient fallback: if the photo fails to load the text stays readable */
  background: linear-gradient(140deg, var(--teal-900), var(--teal-700));
  overflow: hidden;
}
.hero--page { min-height: 54vh; align-items: center; }

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 63, 70, 0.30) 0%, rgba(20, 63, 70, 0.55) 55%, rgba(20, 63, 70, 0.86) 100%),
    linear-gradient(90deg, rgba(28, 88, 98, 0.55) 0%, rgba(28, 88, 98, 0) 70%);
}
.hero__inner { position: relative; z-index: 2; color: var(--white); }
.hero__title { color: var(--white); max-width: 18ch; }
.hero--page .hero__title { max-width: 22ch; }
.hero__lead {
  max-width: 54ch;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-lg);
}

/* Trust strip under the hero buttons */
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.9);
}
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust li::before { content: "✓"; color: var(--teal-100); font-weight: 700; }


/* ==========================================================================
   08. CARDS — service overview grid
   ========================================================================== */
.cards {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}
.card__media {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--teal-50);
}
.card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: var(--step-2); margin-bottom: 0.6rem; }
.card__text { color: var(--slate-500); margin-bottom: var(--space-md); }
.card__body .link-arrow { margin-top: auto; }

/* Simple bordered box without an image — used for "why us" points */
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.feature h4 { margin-bottom: 0.4rem; color: var(--slate-900); }
.feature p { color: var(--slate-500); font-size: var(--step--1); }


/* ==========================================================================
   09. SPLIT ROWS — image beside text
   Add the modifier .split--reverse to flip the image to the right.
   ========================================================================== */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .split--reverse .split__media { order: 2; }
}
.split + .split { margin-top: var(--space-xl); }

.split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--teal-50);
}
.split__media img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }


/* ==========================================================================
   10. TICK LISTS, STEPS, STATS
   ========================================================================== */
.ticks { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-700);
  box-shadow: 0 0 0 4px var(--teal-50);
}
.section--dark .ticks li::before { background: var(--teal-100); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.ticks--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: 0.7rem var(--space-lg); } }

/* --- Numbered process steps -------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
@media (min-width: 860px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

.step { counter-increment: step; padding-top: var(--space-md); border-top: 2px solid var(--teal-100); }
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 0.35rem;
}
.step h3 { font-size: var(--step-1); font-family: var(--font-body); margin-bottom: 0.4rem; }
.step p { font-size: var(--step--1); color: var(--slate-500); }
.section--dark .step { border-top-color: rgba(255,255,255,0.25); }
.section--dark .step::before { color: var(--teal-100); }
.section--dark .step p { color: rgba(255,255,255,0.75); }

/* --- Stats band --------------------------------------------------------- */
.stats { display: grid; gap: var(--space-md); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--teal-700);
  line-height: 1;
}
.stat__label { font-size: var(--step--1); color: var(--slate-500); }
.section--dark .stat__num { color: var(--white); }
.section--dark .stat__label { color: rgba(255,255,255,0.75); }


/* ==========================================================================
   11. PRICING TIERS
   ========================================================================== */
.tiers { display: grid; gap: var(--space-md); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .tiers--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers--4 { grid-template-columns: repeat(4, 1fr); } }

.tier {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.tier--featured { border-color: var(--teal-700); box-shadow: var(--shadow-md); position: relative; }
.tier__badge {
  position: absolute;
  top: -0.8rem;
  left: var(--space-md);
  background: var(--teal-700);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.tier__name { font-size: var(--step-2); margin-bottom: 0.3rem; }
.tier__desc { font-size: var(--step--1); color: var(--slate-500); margin-bottom: var(--space-md); }
@media (min-width: 640px) { .tier__desc { min-height: 3.4em; } } /* two lines: keeps the prices aligned across cards */
.tier__price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--slate-900);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.tier .ticks { font-size: var(--step--1); margin-bottom: var(--space-md); }
.tier .btn { margin-top: auto; width: 100%; padding-inline: 0.75rem; font-size: var(--step--1); }

/* Price as on the flyer: amount in Newsreader, "per month" in Jost below */
.tier__amount { display: block; font-size: var(--step-3); font-weight: 600; line-height: 1; color: var(--teal-700); }
.tier__per { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-size: var(--step--1); color: var(--slate-500); }
/* "Everything in <previous level>, plus:" line above a tier's list */
.tier__plus { font-size: var(--step--1); font-weight: 600; color: var(--slate-500); margin: 0 0 0.6rem; }

/* Offer bar under the tiers (two months free with annual payment) */
.offer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-md);
  padding: 0.9rem 1.2rem;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  color: var(--slate-700);
}
.offer svg { flex-shrink: 0; color: var(--teal-700); }
.offer strong { color: var(--teal-700); }
.tiers-note { margin-top: var(--space-sm); font-size: var(--step--1); color: var(--slate-500); text-align: center; }

/* --- "On every visit we check": icon grid, same icons as the flyer ----- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .checks { grid-template-columns: repeat(4, 1fr); } }
.check { display: flex; flex-direction: column; gap: 0.5rem; padding: var(--space-md); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.check svg { color: var(--teal-700); }
.check h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; margin: 0; }
.check p { font-size: var(--step--1); color: var(--slate-500); margin: 0; }

/* Short brass rule under a hero title, as on the flyer */
.rule-brass { width: 44px; height: 2px; background: var(--brass); border: 0; margin: 0 0 var(--space-md); }


/* ==========================================================================
   12. FAQ — built on <details>/<summary>, works without JavaScript
   ========================================================================== */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-md);
}
.faq details[open] { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) 2rem var(--space-md) 0;
  font-weight: 600;
  color: var(--slate-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-700);
}
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: var(--space-md); color: var(--slate-500); margin: 0; }


/* ==========================================================================
   13. QUOTE / TESTIMONIAL
   ========================================================================== */
.quote {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--slate-900);
}
.quote figcaption { font-size: var(--step--1); color: var(--slate-500); letter-spacing: 0.04em; }
.section--dark .quote blockquote { color: var(--white); }
.section--dark .quote figcaption { color: rgba(255,255,255,0.7); }


/* ==========================================================================
   14. CTA BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700) 60%, var(--teal-600));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 56ch; margin-inline: auto; color: rgba(255,255,255,0.88); }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-lg); }


/* ==========================================================================
   15. CONTACT & FORM
   ========================================================================== */
.contact-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-xl); } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.contact-list dt, .contact-list .label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.15rem;
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) { .form { padding: var(--space-lg); } }

.form-row { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: var(--space-md); }
.field label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--slate-900); margin-bottom: 0.4rem; }
.field .req { color: var(--teal-700); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px var(--teal-50);
  outline: none;
}
/* Error state is applied by scripts.js */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.08); }
.field__error { display: none; font-size: var(--step--1); color: #B3261E; margin-top: 0.35rem; }
.field.has-error .field__error { display: block; }

.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--step--1); color: var(--slate-500); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--teal-700); }

.form-note { font-size: var(--step--1); color: var(--slate-500); margin-top: var(--space-md); }

/* Honeypot: hidden from humans, tempting to spam bots. Never remove. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: var(--space-md); padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: var(--step--1); }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--teal-50); color: var(--teal-900); border: 1px solid var(--teal-100); }


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-xl) var(--space-md);
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.site-footer .brand__name { color: var(--white); font-size: 1.35rem; }
.site-footer .brand__sub { display: inline; color: rgba(255,255,255,0.6); }
.site-footer h4 {
  color: var(--white);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom a { color: rgba(255,255,255,0.7); }


/* ==========================================================================
   17. SCROLL-REVEAL & MOTION
   Elements carrying data-reveal fade up as they enter the viewport.
   The .js class is set by a one-line inline script in <head> so that the
   content is never hidden if JavaScript is unavailable.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ==========================================================================
   18. UTILITIES
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
