/* ==========================================================================
   Burra Heritage Cottages — Tivers Row
   Palette taken from the cottages themselves: the green front doors,
   Burra stone, sage parlour walls, and the blue hour in photo 0088.
   ========================================================================== */

:root {
  --door:        #1E5638;   /* the green front door — primary brand colour */
  --door-deep:   #143A26;
  --door-tint:   #E3EDE6;
  --stone:       #B07B3E;   /* Burra sandstone — accent, used sparingly */
  --stone-tint:  #F6EDE0;
  --dusk:        #22304E;   /* blue hour */

  --paper:       #F7F8F5;
  --surface:     #FFFFFF;
  --surface-2:   #EDF0EA;
  --ink:         #16241C;
  --ink-2:       #47554C;
  --ink-3:       #6F7C73;
  --rule:        #DBE1D8;
  --rule-2:      #C2CCBE;

  --shadow-s: 0 1px 2px rgba(22,36,28,.06), 0 4px 12px -8px rgba(22,36,28,.22);
  --shadow-m: 0 2px 4px rgba(22,36,28,.06), 0 18px 40px -24px rgba(22,36,28,.34);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans:  "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --readw: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --door: #63BE8C; --door-deep: #8FD4AE; --door-tint: #16281E;
    --stone: #D3A163; --stone-tint: #2A2118;
    --paper: #10150F; --surface: #171E18; --surface-2: #1F2820;
    --ink: #E9EEE7; --ink-2: #AEB9AF; --ink-3: #808C83;
    --rule: #2A342C; --rule-2: #3B473E;
    --shadow-s: 0 1px 2px rgba(0,0,0,.45), 0 4px 12px -8px rgba(0,0,0,.7);
    --shadow-m: 0 2px 4px rgba(0,0,0,.45), 0 18px 40px -24px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --door: #63BE8C; --door-deep: #8FD4AE; --door-tint: #16281E;
  --stone: #D3A163; --stone-tint: #2A2118;
  --paper: #10150F; --surface: #171E18; --surface-2: #1F2820;
  --ink: #E9EEE7; --ink-2: #AEB9AF; --ink-3: #808C83;
  --rule: #2A342C; --rule-2: #3B473E;
  --shadow-s: 0 1px 2px rgba(0,0,0,.45), 0 4px 12px -8px rgba(0,0,0,.7);
  --shadow-m: 0 2px 4px rgba(0,0,0,.45), 0 18px 40px -24px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.14; text-wrap: balance; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5.6vw, 58px); }
h2 { font-size: clamp(27px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 25px); }
p  { margin: 0 0 1em; max-width: var(--readw); }
a  { color: var(--door); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--stone); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--door); color: #fff; padding: 10px 16px; border-radius: 3px; }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); font-weight: 600; margin-bottom: 14px;
}
.lede { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 22px); line-height: 1.52; color: var(--ink-2); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.brand b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand span { font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--stone); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--door); }
.topbar .btn { padding: 9px 18px; font-size: 14.5px; }
.navtoggle { display: none; background: none; border: 1px solid var(--rule-2); border-radius: 3px; padding: 8px 12px; color: var(--ink); font-size: 14px; cursor: pointer; }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-m); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px var(--gut); border-bottom: none; }
  .navtoggle { display: block; }
  .topbar .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; cursor: pointer;
  background: var(--door); color: #fff; border: 1px solid var(--door);
  transition: background .16s ease, transform .16s ease;
}
:root[data-theme="dark"] .btn { color: #0C1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0C1410; } }
.btn:hover { background: var(--door-deep); border-color: var(--door-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.btn--light { background: #fff; color: var(--door-deep); border-color: #fff; }
.btn--light:hover { background: #EAEFE9; border-color: #EAEFE9; color: var(--door-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 660px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,28,.30) 0%, rgba(12,20,28,.12) 32%, rgba(10,17,24,.80) 100%);
}
.hero__in { position: relative; z-index: 2; padding-block: 64px 54px; color: #fff; }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero .lede { color: rgba(255,255,255,.93); max-width: 54ch; margin-top: 18px; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.hero .eyebrow { color: #E8C48E; }
.hero--page { min-height: min(46vh, 400px); }
.hero--page h1 { max-width: 22ch; }

.trustline {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 30px;
  font-size: 13.5px; color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.trustline span { display: flex; align-items: center; gap: 8px; }
.trustline span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--stone); flex: none; }

/* ---------- bands ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band--tint { background: var(--surface-2); }
.band--paper { background: var(--surface); }
.band__head { max-width: 700px; margin-bottom: 40px; }
.band__head p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-m); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

.figcap { font-size: 13px; color: var(--ink-3); margin-top: 10px; font-style: italic; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { font-size: 15.5px; color: var(--ink-2); }
.card__meta { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 14px; }
.card .btn { margin-top: auto; align-self: flex-start; }

.pricetag { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 4px; }
.pricetag small { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); font-weight: 400; }

/* ---------- feature list ---------- */
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 30px; }
.feats li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15.5px; }
.feats li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 11px; height: 6px;
  border-left: 2px solid var(--door); border-bottom: 2px solid var(--door);
  transform: rotate(-45deg);
}

/* ---------- rates table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow-s); }
table.rates { border-collapse: collapse; width: 100%; font-size: 16px; }
table.rates th, table.rates td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--rule); }
table.rates thead th { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); font-weight: 600; }
table.rates tr:last-child td { border-bottom: none; }
table.rates td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.rates tr.included td.amt { color: var(--door); font-weight: 600; }
.smallprint { font-size: 14.5px; color: var(--ink-3); margin-top: 18px; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
blockquote.q { margin: 0; padding: 28px 30px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--stone); border-radius: 3px; box-shadow: var(--shadow-s); }
blockquote.q p { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; color: var(--ink); margin-bottom: 16px; }
blockquote.q cite { font-style: normal; font-size: 13.5px; color: var(--ink-3); letter-spacing: .03em; }

/* ---------- callout / cta ---------- */
.cta { background: var(--door-deep); color: #fff; padding-block: clamp(52px, 7vw, 84px); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); }
.cta .btn--light { margin-top: 8px; }
:root[data-theme="dark"] .cta { background: #0E1B14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #0E1B14; } }

.note {
  background: var(--stone-tint); border-left: 3px solid var(--stone);
  padding: 18px 22px; border-radius: 0 3px 3px 0; font-size: 15.5px; color: var(--ink-2);
}
.note strong { color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */
.galgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.galgrid button, .galgrid a {
  padding: 0; border: none; background: var(--surface-2); cursor: pointer; border-radius: 3px;
  overflow: hidden; aspect-ratio: 4 / 3; display: block;
}
.galgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.galgrid button:hover img, .galgrid a:hover img { transform: scale(1.045); opacity: .93; }
.galgrid--strip { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.galfilters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.galfilters button {
  font-family: var(--sans); font-size: 14px; padding: 8px 17px; border-radius: 40px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule-2); color: var(--ink-2);
}
.galfilters button:hover { border-color: var(--ink-3); color: var(--ink); }
.galfilters button[aria-pressed="true"] { background: var(--door); border-color: var(--door); color: #fff; }
:root[data-theme="dark"] .galfilters button[aria-pressed="true"] { color: #0C1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .galfilters button[aria-pressed="true"] { color: #0C1410; } }

dialog.lightbox { border: none; background: transparent; padding: 0; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(8,14,10,.92); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: 3px; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; color: #fff; font-size: 14px; }
.lb__bar button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 8px 16px; border-radius: 3px; cursor: pointer; font-size: 14px; font-family: var(--sans); }
.lb__bar button:hover { background: rgba(255,255,255,.24); }

/* ---------- forms / booking ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 3px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--door); outline: none; box-shadow: 0 0 0 3px var(--door-tint); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

.quote-panel {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  padding: 26px 28px; box-shadow: var(--shadow-s); position: sticky; top: 92px;
}
.quote-panel h3 { font-size: 20px; margin-bottom: 6px; }
.qline { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); }
.qline span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 600; }
.qline--total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 15px; font-size: 19px; }
.qline--total span { color: var(--ink); font-weight: 700; }
.qline--total span:first-child { font-family: var(--serif); font-weight: 600; }
.qempty { color: var(--ink-3); font-size: 15px; font-style: italic; padding: 14px 0; }
.qwarn { font-size: 14px; color: var(--stone); background: var(--stone-tint); padding: 11px 14px; border-radius: 3px; margin-top: 14px; }
@media (max-width: 900px) { .quote-panel { position: static; } }

.bookgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .bookgrid { grid-template-columns: 1fr; } }

/* engine slot placeholder — remove once the real widget is pasted in */
.engine-slot {
  border: 2px dashed var(--rule-2); border-radius: 4px; padding: 30px;
  background: var(--surface-2); color: var(--ink-3); font-size: 15px;
}
.engine-slot h3 { color: var(--ink-2); font-size: 18px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #C9D3CB; padding-block: 56px 30px; margin-top: 0; }
:root[data-theme="dark"] .footer { background: #0A0F0B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { background: #0A0F0B; } }
.footer a { color: #EAF0EA; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8B9A8E; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.footer__brand b { font-family: var(--serif); font-size: 21px; color: #fff; display: block; margin-bottom: 10px; font-weight: 600; }
.footer__brand p { font-size: 15px; color: #B4C0B6; max-width: 40ch; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13.5px; color: #8B9A8E; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.tel-big { font-family: var(--serif); font-size: 25px; color: #fff !important; text-decoration: none; display: inline-block; margin-bottom: 6px; }

/* ---------- sticky mobile action bar ---------- */
.mobilebar { display: none; }
@media (max-width: 760px) {
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
    background: var(--rule); box-shadow: 0 -4px 20px rgba(0,0,0,.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilebar a {
    background: var(--surface); color: var(--ink); text-decoration: none;
    text-align: center; padding: 15px 8px; font-size: 15px; font-weight: 600;
  }
  .mobilebar a.primary { background: var(--door); color: #fff; }
  body { padding-bottom: 62px; }
}

/* ---------- misc ---------- */
.mapframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 4px; }
@media (max-width: 620px) { .mapframe { aspect-ratio: 4 / 3; } }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--stone); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { padding-bottom: 6px; color: var(--ink-2); font-size: 16px; }
