/* Tuscany Ride - the website's one stylesheet. Golden-hour Tuscany: cream paper, terracotta, olive, cypress. */

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf6ea;
  --cream: #f3e8d0;
  --sand: #ead9b4;
  --ink: #2e2a24;
  --muted: #6b6155;
  --terracotta: #b5532f;
  --terracotta-dark: #8f3f22;
  --ochre: #d99a3d;
  --olive: #6d7a3e;
  --cypress: #2f4a33;
  --line: #dccaa5;
  --radius: 14px;
  --content: 1080px;
  --text: 720px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Lora", Georgia, "Times New Roman", serif; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.35em; }

a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 16px; }
.wrap--text { max-width: var(--text); }

/* --- header ---------------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--terracotta-dark); font-weight: 600; }

/* --- hero ------------------------------------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7d9a4 0%, #f6e3bd 45%, var(--paper) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(150px, 24vw, 280px); text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 960px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 680px; margin: 0 auto 0.8em; color: #4a4036; }
.hero .hero-note { max-width: 600px; margin: 0 auto 1.8em; color: var(--muted); font-style: italic; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 24vw, 300px); display: block; }
.badge {
  display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px;
  background: var(--cypress); color: #f6eedd; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--terracotta); color: #fff8ec; border: 2px solid var(--terracotta);
}
.button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff8ec; }
.button--ghost { background: transparent; color: var(--terracotta-dark); }
.button--ghost:hover { background: var(--cream); color: var(--terracotta-dark); }

/* --- sections -------------------------------------------------------------------------------------------------- */
section { padding: clamp(48px, 8vw, 88px) 0; }
section.tinted { background: var(--cream); }
.section-intro { max-width: 680px; color: var(--muted); margin: 0 0 2em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px;
}
section.tinted .card { background: #fbf4e3; }
.card p { margin: 0; color: #4a4036; }
.card .icon { width: 40px; height: 40px; margin-bottom: 10px; color: var(--olive); }

.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.needs ul { margin: 0; padding-left: 1.2em; }
.needs li { margin-bottom: 0.45em; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
.tag--must { background: var(--terracotta); color: #fff8ec; }
.tag--recommended { background: var(--olive); color: #f7f1df; }
.tag--optional { background: var(--sand); color: var(--ink); }

.places { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.places li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote-card {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ochre);
  border-radius: var(--radius); padding: 20px 22px;
}
.quote-card blockquote {
  margin: 0 0 10px; font-family: "Lora", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.5; color: #3d362e;
}
.quote-card figcaption { color: var(--muted); font-size: 0.92rem; }
.quote-card figcaption::before { content: "\2014\00a0"; }
.quotes-more { margin: 1.4em 0 0; font-family: "Lora", Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--terracotta-dark); }

/* --- gallery: a row to swipe, a tap opens the large picture (CSS :target, no script) ---------------------------- */
.gallery-section { padding-bottom: clamp(36px, 6vw, 64px); }
.gallery {
  list-style: none; margin: 0; padding: 4px max(16px, calc((100% - var(--content)) / 2 + 16px)) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 440px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - var(--content)) / 2 + 16px));
  overscroll-behavior-x: contain; scrollbar-color: var(--sand) transparent;
}
.gallery li { scroll-snap-align: start; margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(46, 42, 36, 0.16); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; transition: transform 0.25s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery span { display: block; margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 50; background: rgba(20, 18, 15, 0.97);
  align-items: center; justify-content: center; padding: 16px;
}
.lightbox:target { display: flex; }
.lightbox img {
  position: relative; max-width: 100%; max-height: calc(100% - 44px); width: auto; height: auto;
  border-radius: 8px; pointer-events: none;
}
.lightbox-close { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox-close::after {
  content: "\00d7"; position: absolute; top: 12px; right: 18px; font-size: 2.4rem; line-height: 1; color: #f6eedd;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(246, 238, 221, 0.18); color: #f6eedd; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; line-height: 1;
}
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-prev:focus-visible, .lightbox-next:focus-visible {
  background: rgba(246, 238, 221, 0.34); color: #fff;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev::before { content: "\2039"; margin-top: -4px; }
.lightbox-next::before { content: "\203a"; margin-top: -4px; }
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: #f6eedd;
  font-size: 0.95rem; pointer-events: none;
}
.lightbox-caption span { margin-left: 10px; opacity: 0.65; }

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbf4e3; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row span { padding: 14px 18px; }
.compare-row span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 97, 85, 0.45); }
.compare-row span:last-child { font-weight: 600; color: var(--cypress); border-left: 1px solid var(--line); }
.compare-head span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none !important; }
.compare-head span:first-child { color: var(--muted); }
.compare-head span:last-child { color: var(--terracotta-dark); background: var(--cream); }

/* --- text pages (FAQ, privacy, imprint) ------------------------------------------------------------------------ */
.page { padding: clamp(36px, 6vw, 64px) 0 72px; }
.page h2 { margin-top: 1.8em; font-size: 1.45rem; }
.page h3 { margin-top: 1.4em; }
.page .meta { color: var(--muted); font-size: 0.95rem; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { background: var(--cream); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.summary {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.4em 0;
}
.summary ul { margin: 0.4em 0 0; padding-left: 1.2em; }
address { font-style: normal; }

details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-family: "Lora", Georgia, serif; font-size: 1.15rem; font-weight: 600;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--terracotta); font-family: system-ui, sans-serif;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding: 0 0 14px; color: #3d362e; }
details.faq > div p:first-child { margin-top: 0; }
details.faq > div ul { padding-left: 1.2em; }
details.faq > div li { margin-bottom: 0.5em; }
details.faq > div h3 { font-size: 1.02rem; margin: 1.2em 0 0.2em; }
details.faq > div h3 + p { margin-top: 0; }
.faq-note { background: var(--cream); border-left: 4px solid var(--ochre); border-radius: 8px; padding: 12px 16px; }

/* --- footer ---------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--cypress); color: #e9e0c9; padding: 36px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: #f6d9a0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .site-nav { justify-content: flex-start; margin-left: -10px; }
  .site-header { position: static; }
}
