/* Il Tedesco Artigiano: one-page site
   Mobile first. Brand values from 02-brand.md. */

/* ---------- Fonts (self-hosted, no data to Google) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --teal: #0F4C5C;
  --teal-dark: #0B3A48;
  --orange: #DF9216;          /* backgrounds: buttons, CTA band */
  --orange-hover: #CE5A12;
  --orange-text: #B8720D;     /* orange headline words: brand orange darkened for readable contrast */
  --text: #30323D;
  --muted: #666874;
  --bg: #F9FAFD;
  --white: #FFFFFF;
  --tint: #E9F2F6;
  --warm: #FFF6E0;
  --wa: #25D366;
  --line: #D6E2E8;

  --radius: 16px;
  --radius-btn: 999px;
  --max: 1100px;
  --gutter: 20px;
  --section: 64px;

  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Figtree", "Atkinson Hyperlegible", system-ui, sans-serif;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --section: 112px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; color: var(--teal); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { color: var(--teal-dark); }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* Headline sizes and colors */
.h-xl { font-size: clamp(2.25rem, 7.4vw, 3.75rem); font-weight: 700; }
.h-lg { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700; margin-bottom: 0.45em; }
.h-md { font-size: clamp(1.5rem, 3.6vw, 2.125rem); font-weight: 700; }
.t { color: var(--teal); }
.o { color: var(--orange-text); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
.eyebrow .icon { color: var(--orange); width: 22px; height: 22px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon.flip { transform: scaleX(-1); }

/* Placeholder marker for content still to confirm */
mark.tbc { background: #FFE8A3; color: #5A3A00; padding: 0 4px; border-radius: 4px; font-size: 0.92em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius-btn); border: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
/* Orange buttons use dark teal text: white on brand orange is too faint to read (2.5:1). */
.btn-orange { background: var(--orange); color: var(--teal-dark); }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 80px; height: 80px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.05; color: var(--teal); }
.brand-name .o { display: block; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; box-shadow: 0 16px 24px -16px rgba(15,76,92,.25); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav li a { display: block; padding: 14px 0; font-size: 1.125rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav .btn { width: 100%; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .header-inner { min-height: 128px; }
  .brand img { width: 112px; height: 112px; }
  .brand-name { font-size: 1.5rem; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 32px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 28px; margin: 0; }
  .site-nav li a { padding: 8px 0; border: 0; font-size: 1.0625rem; }
  .site-nav li a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
  .site-nav .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-note { margin-top: -4px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(11,58,72,.45); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero .h-xl { font-size: clamp(2.5rem, 4.4vw, 3.4rem); }
  .hero-text > p:not(.eyebrow) { max-width: 34em; }
  .hero-photo { aspect-ratio: 4 / 4.4; }
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: 32px; }
.about-portrait { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 20%; }
.about-text .btn { margin-top: 4px; }
.about-second { margin-top: 40px; width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1fr; gap: 64px; align-items: start; }
  .about-second { margin-top: 64px; }
}

/* ---------- Waves ---------- */
.wave { display: block; width: 100%; height: 32px; position: absolute; left: 0; }
.wave-top { top: -31px; }
.wave-bottom { bottom: -31px; }
@media (min-width: 900px) { .wave { height: 48px; } .wave-top { top: -47px; } .wave-bottom { bottom: -47px; } }

/* ---------- Services ---------- */
.services { position: relative; z-index: 1; background: var(--tint); }
.services .wave path { fill: var(--tint); }
.split-head { display: grid; gap: 8px; margin-bottom: 36px; }
@media (min-width: 900px) {
  .split-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
  .split-head p { margin-bottom: 1.2em; }
}

.cards { display: grid; gap: 20px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--teal); aspect-ratio: 4 / 3.6; }
.card { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.card-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; border-radius: inherit; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
/* teal wash that rises on hover */
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11,58,72,.92) 0%, rgba(15,76,92,.55) 55%, rgba(15,76,92,.15) 100%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
/* orange bar that grows along the bottom edge */
.card-link::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; height: 6px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-body { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--orange); background: rgba(255,255,255,0); box-shadow: inset 0 0 0 2px var(--orange); transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.card-more .icon { width: 18px; height: 18px; transition: transform .4s ease; }

@media (hover: hover) {
  .card:hover, .card:focus-within { transform: translateY(-10px); box-shadow: 0 30px 50px -24px rgba(11,58,72,.7); }
  .card:hover img, .card:focus-within img { transform: scale(1.12); filter: saturate(1.15); }
  .card:hover .card-link::before, .card:focus-within .card-link::before { opacity: 1; }
  .card:hover .card-link::after, .card:focus-within .card-link::after { transform: scaleX(1); }
  .card:hover .card-body, .card:focus-within .card-body { transform: translateY(-14px); }
  .card:hover .card-more, .card:focus-within .card-more { background: var(--orange); color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--orange); }
  .card:hover .card-more .icon, .card:focus-within .card-more .icon { transform: translateX(6px); }
}
.card-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,58,72,0) 30%, rgba(11,58,72,.55) 58%, rgba(11,58,72,.94) 100%); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 24px; color: #fff; }
.card-body h3 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.card-body p { margin: 0; font-size: 1rem; line-height: 1.45; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } .card { aspect-ratio: 4 / 4.6; } .card-body h3 { font-size: 1.45rem; } }


/* ---------- New clients ---------- */
.newwork-grid { display: grid; gap: 36px; align-items: center; }
.newwork-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .newwork-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }

/* ---------- Reviews (link to Google) ---------- */
.reviews { background: var(--teal); color: #fff; }
.reviews .eyebrow { color: #fff; }
.reviews .eyebrow .icon { color: var(--orange); }
.reviews h2 { color: #fff; }
.reviews h2 .o { color: var(--orange); }   /* large text on teal: 3.7:1, passes */
.reviews p { max-width: 36em; font-size: 1.1rem; }
.rv-google { display: grid; gap: 12px; }
.rv-google-btn { justify-self: start; }
@media (min-width: 900px) { .rv-google { grid-template-columns: 1fr auto; gap: 64px; align-items: center; } .reviews p { margin-bottom: 0; } }

/* Round arrow buttons (reviews + gallery) */
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--teal); color: #fff; cursor: pointer; transition: background-color .2s; }
.round-btn:hover { background: var(--teal-dark); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-light { background: #fff; color: var(--teal); }
.round-light:hover { background: var(--orange); color: var(--teal-dark); }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin: 8px -2px 24px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 10px; background: #EEF1F4; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background-color .2s; }
.tab:hover { background: #E2E8EC; }
.tab[aria-pressed="true"] { background: var(--orange); color: var(--teal-dark); font-weight: 700; }

.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track li { flex: 0 0 82%; scroll-snap-align: start; }
.track li[hidden] { display: none; }
.track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.track-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
@media (min-width: 700px) { .track li { flex-basis: calc((100% - 32px) / 3); } .track img { aspect-ratio: 4 / 4.4; } }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--orange); color: var(--teal-dark); padding: 48px 0; }
.cta .wave path { fill: var(--orange); }
.cta .eyebrow { color: var(--teal-dark); }
.cta .eyebrow .icon { color: var(--teal-dark); }
.cta h2 { color: var(--teal-dark); margin-bottom: 20px; }
.cta p { font-size: 1.0625rem; }
.cta-grid { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .cta { padding: 64px 0; }
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .cta h2 { margin-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); padding: 56px 0 24px; font-size: 1rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand img { width: 120px; height: 120px; margin-bottom: 20px; }
.f-head { font-size: 1.125rem; margin-bottom: 14px; }
.f-list li { margin-bottom: 10px; }
.f-list a, .social { color: var(--text); text-decoration: none; }
.f-list a:hover, .social:hover { color: var(--teal); text-decoration: underline; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.social svg { width: 26px; height: 26px; fill: var(--teal); }
.footer-bottom { margin-top: 40px; }
.footer-bottom p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.footer-bottom .legal-line { padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 6px; color: var(--text); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer { padding-top: 80px; } .footer-grid { grid-template-columns: 1fr 1.3fr 1.1fr 0.9fr; gap: 40px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 34px; height: 34px; }

/* ---------- Simple legal pages ---------- */
.legal { padding-top: 40px; padding-bottom: 96px; max-width: calc(800px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal-dl { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0; }
.legal-dl dt { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }
.legal-dl dd { margin: 0; }
@media (min-width: 600px) { .legal-dl { grid-template-columns: 180px 1fr; } .legal-dl dt { margin-top: 0; } .legal-dl dt, .legal-dl dd { padding: 8px 0; border-bottom: 1px solid var(--line); } }
.legal-date { margin-top: 40px; color: var(--muted); font-size: .95rem; }

/* ---------- Service subpages ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--teal); }
.svc-lead { font-size: 1.15rem; }
@media (min-width: 900px) { .svc-hero { padding-top: 40px; } .crumbs ol { margin-bottom: 40px; } }

.svc-detail { position: relative; z-index: 1; background: var(--tint); }
.svc-detail .wave path { fill: var(--tint); }
.svc-detail-grid { display: grid; gap: 36px; }
.svc-text h2 { margin-bottom: 18px; }
.points-title { margin-bottom: 18px; }
.points { display: grid; gap: 16px; }
.point { position: relative; background: #fff; border-radius: var(--radius); padding: 24px 24px 22px 68px; }
.point-icon { position: absolute; left: 22px; top: 24px; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--orange); color: var(--teal-dark); }
.point h3 { font-size: 1.2rem; margin-bottom: 6px; }
.point p { margin: 0; color: var(--text); }
@media (min-width: 900px) { .svc-detail-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.others-wrap { background: var(--white); }
.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.other { display: block; height: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--teal-dark); transition: transform .35s ease, box-shadow .35s ease; }
.other img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.other span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
.other .icon { width: 18px; height: 18px; color: var(--orange-text); transition: transform .35s ease; }
.other:hover, .other:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(11,58,72,.5); }
.other:hover img { transform: scale(1.06); }
.other:hover .icon { transform: translateX(4px); }
@media (min-width: 900px) { .others { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
