/* Dentosofia Milano – 2026 */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf8f1;
  --bg-alt: #f3eee2;
  --surface: #ffffff;
  --ink: #1e2b25;
  --muted: #53645b;
  --line: #e4dfd0;

  --green-900: #14322a;
  --green-800: #1d4a39;
  --green-700: #2a6a50;
  --green-600: #35805f;
  --green-300: #9cc9b0;
  --green-200: #cfe3d6;
  --green-100: #e7f1ea;

  --sun: #e2a83e;
  --sun-100: #fbefd3;
  --sun-700: #8f6210;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 50, 42, 0.06), 0 18px 40px -18px rgba(20, 50, 42, 0.22);
  --maxw: 1120px;
  --measure: 68ch;
  --header-h: 76px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green-900);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.15em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(228, 223, 208, 0.8);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--green-900);
}
.brand { flex: none; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.brand-tag {
  display: block;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li a,
.header-cta { white-space: nowrap; }
.site-nav li a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.site-nav li a:hover { background: var(--green-100); color: var(--green-900); }
.site-nav li a[aria-current="page"] {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(42, 106, 80, 0.8);
}
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-300);
}
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.93rem; }

.header-cta { margin-left: 0.4rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(900px 500px at 88% 0%, var(--green-100), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, var(--sun-100), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-700);
}
.hero-lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-art {
  position: relative;
  /* never wider than the screen allows once the outer disc (+14%) and its breathing (+5%) are added */
  width: min(100%, 440px, calc((100vw - 1.5rem) / 1.2));
  aspect-ratio: 1;
  margin-inline: auto;
  margin-block: 3.8rem;
  --p: 0; /* scroll progress 0..1, set by main.js */
}

/* flat layered discs: one green family, paler and wider the further out they go */
.hero-art .rings {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--p) * 0.7);
}
.hero-art .ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  scale: calc(1 + var(--p) * var(--k, 0.2));
  animation:
    disc-in 1.9s cubic-bezier(0.2, 0.9, 0.25, 1.12) var(--d, 0s) both,
    disc-breathe var(--t, 8s) ease-in-out calc(var(--d, 0s) + 1.9s) infinite;
}
/* band widths grow outwards: narrow, medium, wide */
.hero-art .ring-1 {
  inset: 9.5%;
  --d: 0.3s;
  --k: 0.16;
  --t: 6.5s;
  --amp: 1.07;
  background: #bddbc9;
}
.hero-art .ring-2 {
  inset: 3%;
  --d: 0.6s;
  --k: 0.3;
  --t: 7.5s;
  --amp: 1.055;
  background: #d6e8dd;
}
.hero-art .ring-3 {
  inset: -7%;
  --d: 0.9s;
  --k: 0.46;
  --t: 8.5s;
  --amp: 1.045;
  background: #e9f2ec;
  box-shadow: 0 34px 70px -34px rgba(20, 50, 42, 0.2);
}

/* golden ripples (welcome, return-to-view, and an occasional idle one) */
.hero-art .waves {
  position: absolute;
  inset: 13%;
  pointer-events: none;
}
.hero-art .wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(226, 168, 62, 0.6);
  opacity: 0;
  animation: wave-out 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
  animation-delay: 1.3s;
}
.hero-art .wave-2 { animation-delay: 1.8s; }
.hero-art .wave-3 {
  border-color: rgba(226, 168, 62, 0.42);
  animation: wave-idle 11s ease-out 6s infinite;
}

.hero-art .mark-wrap {
  position: absolute;
  inset: 13%;
  animation: mark-float 7s ease-in-out 1.6s infinite;
}
.hero-art .mark {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 24px rgba(20, 50, 42, 0.26));
  translate: 0 calc(var(--p) * -26px);
  scale: calc(1 - var(--p) * 0.05);
  animation: mark-in 1.5s cubic-bezier(0.2, 0.9, 0.25, 1.1) 0.05s both;
}

/* gentle pulse when the logo scrolls back into view */
.hero-art.is-pulse .rings { animation: rings-bump 1.8s ease-out; }
.hero-art.is-pulse .mark-wrap { animation: mark-bump 1.5s ease-out; }
.hero-art.is-pulse .wave:not(.wave-3) { animation-name: wave-pulse; animation-delay: 0s; }
.hero-art.is-pulse .wave-2 { animation-delay: 0.45s; }

@keyframes mark-in {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes disc-in {
  0% { transform: scale(0.3); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes disc-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(var(--amp, 1.05)); }
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.012); }
}
@keyframes wave-out {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes wave-idle {
  0% { transform: scale(1); opacity: 0; }
  4% { opacity: 0.55; }
  32% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes wave-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes rings-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
@keyframes mark-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.cards {
  display: grid;
  gap: 1.5rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); }
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-700);
}
.card-link::after { content: "→"; transition: transform 0.15s; }
.card-link:hover::after { transform: translateX(4px); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card-sun .card-icon { background: var(--sun-100); color: var(--sun-700); }

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-split blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--green-900);
  padding-left: 1.4rem;
  border-left: 4px solid var(--sun);
}

.contact-band {
  background: var(--green-900);
  color: #e9f1ec;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-band h2 { color: #fff; margin-bottom: 0.3em; }
.contact-band p { margin: 0; color: #c8dbd0; }
.contact-band .btn-primary { background: var(--sun); color: #2a1d05; box-shadow: none; }
.contact-band .btn-primary:hover { background: #f0b956; color: #2a1d05; }
.contact-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(156, 201, 176, 0.12);
  pointer-events: none;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(700px 320px at 95% 0%, var(--green-100), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-800); }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }

.page-body { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.prose { max-width: var(--measure); }
.prose p { color: #2b3a33; }
.prose strong { color: var(--green-900); }
.prose h2 { margin-top: 2.2em; }
.prose ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}
.prose li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 14px;
  height: 14px;
  background: var(--green-600);
  border-radius: 14px 0 14px 0;
  transform: rotate(0deg);
}

.prose .lead {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--green-900);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--green-100);
  border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--green-900);
}
.prose blockquote p { margin: 0; color: inherit; }

.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.7rem;
  background: var(--sun-100);
  border-radius: var(--radius-sm);
  font-size: 1.12rem;
  color: #3b2d0c;
}
.prose .callout p { color: inherit; margin: 0; }

.cost-card {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--sun);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cost-card h2 { margin-top: 0; }
.cost-card .price {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--green-800);
}
.cost-card p:last-child { margin-bottom: 0; }

.layout-with-aside {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.aside-card {
  background: var(--green-900);
  color: #e9f1ec;
  border-radius: var(--radius);
  padding: 1.7rem;
}
.aside-card h2 { color: #fff; font-size: 1.4rem; }
.aside-card p { color: #c8dbd0; margin-bottom: 1.2rem; }
.aside-card .btn-primary { background: var(--sun); color: #2a1d05; box-shadow: none; width: 100%; }
.aside-card .btn-primary:hover { background: #f0b956; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; gap: 1.8rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-list strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--green-900); }
.info-list a { text-decoration: none; }

.map-box {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--green-100), var(--sun-100));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.map-box p { max-width: 24rem; color: var(--muted); font-size: 0.95rem; }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-box.is-loaded { padding: 0; display: block; }
.map-box .map-links { margin: 1rem 0 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-900);
  color: #c8dbd0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 0;
}
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 1rem;
  font-weight: 600;
}
.site-footer a { color: #e9f1ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--green-300); }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(156, 201, 176, 0.2);
  font-size: 0.88rem;
  color: var(--green-300);
}

/* ---------- Mobile call button ---------- */

.call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(20, 50, 42, 0.6);
}
.call-fab svg { width: 20px; height: 20px; }
.call-fab:hover { color: #fff; background: var(--green-800); }

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .contact-band { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1100px) and (max-width: 1239px) {
  .site-nav li a { padding: 0.5rem 0.65rem; font-size: 0.92rem; }
  .brand-name { font-size: 1.18rem; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .about-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .layout-with-aside { grid-template-columns: minmax(0, 1fr) 320px; }
  .aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .map-box { min-height: 100%; }
}

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .call-fab { display: inline-flex; }
  body { padding-bottom: 5rem; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.4rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: 0 24px 40px -24px rgba(20, 50, 42, 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav li a { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: 14px; }
}

@media (max-width: 400px) {
  .brand img { width: 42px; height: 42px; }
  .brand-tag { font-size: 0.56rem; letter-spacing: 0.07em; }
  .brand-name { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-art .ring, .hero-art .mark, .hero-art .mark-wrap { animation: none; }
  .hero-art .waves { display: none; }
}

/* ---------- Justified text (with hyphenation, to avoid wide gaps) ---------- */

.hero-lead,
.section-head p,
.card p,
.about-split p,
.prose p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 5 2 2;
}

/* the cost card keeps its own layout (unbreakable price) */
.cost-card p { text-align: left; }
.cost-card .price { white-space: nowrap; }

/* ---------- Phones: the two hero buttons side by side ---------- */

@media (max-width: 520px) {
  .hero-lead { font-size: 1.03rem; }
  .hero-actions { flex-wrap: nowrap; gap: 0.55rem; }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 0.7rem;
    font-size: 0.92rem;
    gap: 0.4rem;
    white-space: nowrap;
  }
  .hero-actions .btn svg { width: 17px; height: 17px; }
}
@media (max-width: 340px) {
  .hero-actions { flex-wrap: wrap; }
}
/* phones: slightly smaller justified text, so lines hold more words and gaps stay even */
@media (max-width: 520px) {
  .prose p:not(.lead),
  .card p,
  .about-split p {
    font-size: 1rem;
    word-spacing: -0.02em;
  }
}

/* very small phones: keep the header inside the screen */
@media (max-width: 345px) {
  .brand-tag { display: none; }
}

/* the key sentence on the home page: three deliberate lines, left-aligned, never hyphenated */
.hero-lead {
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
.hero-lead span { display: block; }
.hero-lead span:last-child { text-wrap: balance; }
