/* Domaine des Pradiès — shared look for the guide pages.
   Loaded after each page's own <style>, so these rules win over the old green theme.
   Colours, type and spacing follow domainedespradies.com. */

:root {
  --ink: #24281F;
  --cream: #F6F3EC;
  --sand: #EFEBE1;
  --text: #4B5044;
  --muted: #646859;
  --accent: #945432;
  --line: rgba(36, 40, 31, 0.14);
  --line-strong: rgba(36, 40, 31, 0.25);
  --on-dark: #F0EDE4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Karla, Helvetica, Arial, sans-serif;
  --gutter: 40px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none; }
.skiplink:focus { top: 12px; color: var(--cream); }

/* ---------- top bar (only when the page is opened on its own) ---------- */
.hb-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  padding: 14px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid rgba(36, 40, 31, 0.08);
}
.hb-logo { display: flex; align-items: center; min-height: 44px; }
.hb-logo img { display: block; height: 40px; width: auto; }
.hb-back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); font-size: 15px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.hb-back:hover { background: var(--ink); color: var(--cream); }
.framed .hb-top { display: none; }

/* ---------- page frame ---------- */
.page {
  max-width: none;
  margin: 0;
  padding: 0 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.page > :not(.header):not(.footer) {
  width: min(1200px, calc(100% - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
}
.page > :first-child:not(.header) { margin-top: 64px; }

/* ---------- photo header ---------- */
.header {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: clamp(260px, 38vh, 420px);
  padding: 56px var(--gutter) 44px;
  text-align: left;
  background-position: center;
  background-size: cover;
}
.header::before {
  background: linear-gradient(180deg, rgba(20, 22, 17, 0.12) 0%, rgba(20, 22, 17, 0.35) 45%, rgba(20, 22, 17, 0.78) 100%);
}
.header > * {
  width: min(1200px, 100%);
  margin-left: auto !important;
  margin-right: auto !important;
}
.header-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(20, 22, 17, 0.35);
  text-wrap: balance;
}
.header-sub, .header-subtitle {
  margin-top: 14px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.82);
  text-shadow: none;
}
.header-tagline {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--on-dark);
}
.header .divider {
  justify-content: flex-start;
  gap: 12px;
  margin: 12px 0 0;
  color: rgba(246, 243, 236, 0.7);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.header .divider::before { display: none; }
.header .divider::after { flex: 0 0 56px; background: rgba(246, 243, 236, 0.4); }

/* ---------- banner (waste guide) ---------- */
.banner {
  margin-top: 56px;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: left;
}
.banner-sub {
  padding: 14px 24px;
  background: var(--sand);
  border: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 21px;
  text-align: left;
}

/* ---------- hairline tile grids ---------- */
.grid-3, .grid-2, .footer-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.header + .grid-3, .header + .grid-2 { margin-top: 56px; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .grid-2, .footer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
}

.section, .alt-box {
  min-width: 0;
  padding: 34px 30px 38px;
  background: var(--cream);
  border: 0;
}
.section:last-child { border: 0; }

/* full-width blocks */
.full-section, .video-section {
  margin-top: 32px;
  padding: 34px 30px 38px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.video-section { background: var(--sand); }

/* ---------- headings inside blocks ---------- */
.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.section-title .icon { font-size: 20px; }
.sub-title {
  margin: 24px 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title + .sub-title { margin-top: 0; }

/* ---------- body text ---------- */
p.info-text,
ul.info-list li, ul.item-list li, ol.steps-list li,
.rule-row, .pool-row, .park-row, .route-item, .step,
.phone-list li, .tip-box, .warning-box, .info-box, .contact-box, .wifi-box {
  font-size: 15.5px;
  line-height: 1.6;
}
p.info-text { color: var(--text); max-width: 68ch; }
.step-text { line-height: 1.6; color: var(--text); }

.rule-bold, .step-bold, .route-bold, .item-label { font-weight: 600; color: var(--ink); }
.rule-bold, .step-bold, .route-bold { margin-bottom: 2px; }

ul.info-list li, ul.item-list li { padding: 6px 0; gap: 10px; }
ul.info-list li::before, ul.item-list li::before { color: var(--accent); }
ul.item-list li, .rule-row, .pool-row, .park-row, .route-item, .step, ol.steps-list li, .phone-list li {
  border-bottom: 1px solid var(--line);
}
.rule-row, .pool-row, .park-row, .route-item, .step { padding: 12px 0; gap: 12px; color: var(--text); }
.rule-row:first-of-type, .pool-row:first-of-type, .park-row:first-of-type { padding-top: 0; }
ul.item-list li:last-child, .rule-row:last-child, .pool-row:last-child, .park-row:last-child,
.route-item:last-child, .step:last-child, ol.steps-list li:last-child, .phone-list li:last-child { border-bottom: 0; }
.rule-icon, .step-icon, .route-icon { font-size: 18px; }

ol.steps-list li { padding: 10px 0; gap: 12px; color: var(--text); }
ol.steps-list li::before {
  width: 24px; height: 24px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
}

/* phone list */
.phone-list li { padding: 8px 0; flex-wrap: wrap; }
.phone-label { color: var(--text); }
.phone-num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- boxes ---------- */
.tip-box, .warning-box, .info-box, .contact-box, .wifi-box {
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  color: var(--text);
}
.tip-box, .contact-box { background: var(--sand); border-left: 2px solid var(--accent); }
.warning-box { background: #F1E6D2; border-left: 2px solid #A9782A; }
.info-box { background: #E6E9DE; border-left: 2px solid var(--ink); }
.wifi-box { margin: 0 0 8px; background: var(--sand); }
.wifi-label {
  margin-bottom: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em;
  color: var(--muted);
}
.swipe-box {
  margin-top: 18px; padding: 12px 16px;
  background: var(--sand); border: 0; border-radius: 0;
  color: var(--text); font-size: 14px; font-weight: 500;
}

/* ---------- small cards (fridge, tv, velux) ---------- */
.overview-cards, .dispenser-row { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.overview-cards { margin-bottom: 18px; }
.dispenser-row { margin: 12px 0; }
.overview-card, .dispenser-card, .step-card {
  min-width: 0;
  padding: 18px 12px;
  background: var(--sand);
  border: 0;
  border-radius: 0;
  font-size: 14px;
  color: var(--text);
}
.overview-card .label, .dispenser-card .d-label, .step-card .label {
  margin: 6px 0 2px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.dispenser-card .d-desc, .step-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.step-card { padding: 22px 16px; }
.step-card .icon, .overview-card .icon { font-size: 24px; }
.tips-grid { gap: 16px; }

.slider-demo { height: 10px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; }
.slider-fill { background: var(--accent); border-radius: 999px; }
.slider-label { font-size: 13px; color: var(--muted); }

/* ---------- waste guide specifics ---------- */
.container-card { gap: 14px; }
.container-label { border-radius: 0; padding: 4px 12px; font-size: 12px; letter-spacing: 0.18em; }
.thanks-box {
  min-width: 0;
  padding: 34px 30px 38px;
  background: var(--ink);
  border: 0;
  color: var(--on-dark);
}
.thanks-box .section-title { color: var(--cream); }
.thanks-box p.info-text { color: rgba(240, 237, 228, 0.82) !important; }

/* ---------- emergency (welcome guide) ---------- */
.emergency-box {
  min-width: 0;
  padding: 34px 30px 38px;
  background: #8E2B1E;
  border: 0;
}
.emergency-box .section-title { border: 0 !important; }
.emergency-call { padding: 4px 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 500; text-align: left; letter-spacing: 0.02em; }
.emergency-list li { padding: 4px 0; gap: 14px; font-size: 15.5px; color: #F7DCD6; }
.emergency-num { min-width: 40px; font-variant-numeric: tabular-nums; }

/* ---------- floor plans ---------- */
.floor-block { margin-bottom: 72px; }
.floor-title {
  margin: 0 0 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
}
.floor-sub { margin: 14px 0 24px; font-size: 12px; font-weight: 500; letter-spacing: 0.24em; color: var(--muted); }
.floor-block img { border-radius: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 70px -48px rgba(20, 22, 17, 0.55); }
.plan-intro { margin-top: 64px; padding-bottom: 8px; }
.plan-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; }
.plan-intro + .floor-block { margin-top: 40px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 72px;
  padding: 44px var(--gutter) 40px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-align: center;
}
.footer-italic { font-style: italic; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section, .alt-box, .thanks-box, .emergency-box, .full-section, .video-section { padding: 26px 20px 30px; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips-grid { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: 25px; }
  .hb-logo img { height: 32px; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .overview-cards, .dispenser-row { flex-direction: column; }
  .header { padding-top: 40px; padding-bottom: 32px; }
  .hb-top { padding-top: 10px; padding-bottom: 10px; }
  .hb-back { padding: 0 14px; font-size: 14px; }
  .hb-logo img { height: 28px; }
}
@media (max-width: 340px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .hb-top, .skiplink { display: none; }
  body { background: #fff; }
  .header { min-height: 0; }
  .footer { margin-top: 24px; }
}
