/* ==========================================================================
   Oldbay Guest House — shared stylesheet
   Palette lifted from the printed tariff sheet and the room photography:
   warm paper, laurel gold, ink brown, deep navy from the crest.
   ========================================================================== */

:root {
  --paper:      #FAF7F0;
  --paper-2:    #F2EADD;
  --paper-3:    #EAE0CF;
  --ink:        #2A2118;
  --ink-soft:   #6B5D4C;
  --gold:       #A8863F;
  --gold-deep:  #7C6128;
  --navy:       #1E3350;
  --navy-deep:  #16273D;
  --line:       #DED2BE;
  --white:      #FFFDF9;

  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(42, 33, 24, .05), 0 12px 32px -18px rgba(42, 33, 24, .28);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0;
}

/* The eyebrow + gold rule is the tariff sheet's own device, reused as the
   structural marker for every section on the site. */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head .rule {
  width: 260px;
  max-width: 60%;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  max-width: 56ch;
  margin: 14px auto 0;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover { background: var(--navy-deep); }

.btn-primary:disabled {
  background: var(--paper-3);
  color: #A2957F;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-block { width: 100%; }

/* --- Site header --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .22em;
}

.wordmark .sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 5px;
}

/* Centre logo — height capped so the header keeps its 68px min-height */
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 48px;
  width: auto;
}

@media (max-width: 480px) {
  .header-logo img { height: 40px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--gold-deep); }

.site-nav .btn { padding: 11px 20px; color: var(--white); }

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/double-01.png") center 58% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 25, 17, .58), rgba(31, 25, 17, .34) 45%, rgba(31, 25, 17, .66));
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  padding: 0 24px;
}

.hero .eyebrow { color: #E4CE95; }

.hero h1 {
  font-size: clamp(38px, 7vw, 74px);
  letter-spacing: .1em;
  line-height: 1.05;
  margin: 18px 0 0;
}

.hero-rule {
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 26px auto;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 253, 249, .88);
  max-width: 46ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 253, 249, .5);
}

.hero-actions .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 253, 249, .1);
}

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

.section { padding: 96px 0; }

.section-tinted { background: var(--paper-2); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* --- Room tariff cards --------------------------------------------------- */

.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .rooms { grid-template-columns: 1fr; }
}

.room {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.room-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Room photo carousel */
.room-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .room-photo {
  flex: 0 0 100%;
  height: 100%;
  aspect-ratio: auto;
  scroll-snap-align: center;
}

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, .55);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.carousel-dots button[aria-selected="true"] {
  background: var(--white);
  transform: scale(1.25);
}

.room-body {
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.room-top h3 { font-size: 27px; }

.room-price {
  font-family: var(--display);
  font-size: 30px;
  color: var(--gold-deep);
  white-space: nowrap;
}

.room-price small {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 2px;
}

.room-occupancy {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.room-desc {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.room-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.room-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.room-list li::before {
  content: "✓";
  color: var(--gold);
  font-size: 13px;
}

.room-body .btn { margin-top: auto; }

/* --- Gallery ------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.filter {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
}

.filter:hover { border-color: var(--gold); color: var(--gold-deep); }

.filter[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.tile:hover img { transform: scale(1.045); }

.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FFFDF9;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(31, 25, 17, .72));
}

.tile[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(24, 19, 13, .93);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 0;
  color: #FFFDF9;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* --- Standards ----------------------------------------------------------- */

.standards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 860px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .standards { grid-template-columns: 1fr; } }

.standard {
  background: var(--paper);
  padding: 34px 26px;
  text-align: center;
}

.standard .mark {
  font-size: 18px;
  color: var(--gold);
}

.standard h3 {
  font-size: 19px;
  margin: 12px 0 8px;
}

.standard p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- Location ------------------------------------------------------------ */

.location {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .location { grid-template-columns: 1fr; gap: 34px; }
}

.location img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.location h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 14px 0 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list dt,
.contact-list .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.contact-list .value { font-size: 16px; }

.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }

.contact-list a:hover { border-color: var(--gold); }

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 253, 249, .72);
  padding: 56px 0 40px;
  text-align: center;
}

.site-footer .wordmark { color: var(--white); align-items: center; }

.site-footer p { font-size: 13px; margin: 20px 0 0; }

.site-footer a { color: rgba(255, 253, 249, .9); }

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 940px) {
  .checkout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.panel + .panel { margin-top: 28px; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.panel-head .step {
  font-family: var(--display);
  font-size: 13px;
  color: var(--white);
  background: var(--gold);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.panel-head h2 { font-size: 22px; }

/* Room choice */
.choices { display: grid; gap: 14px; }

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.choice:hover { border-color: var(--gold); }

.choice img {
  width: 84px; height: 66px;
  object-fit: cover;
  border-radius: 2px;
}

.choice input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}

.choice:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.choice .title { font-family: var(--display); font-size: 19px; }

.choice .meta { font-size: 12px; color: var(--ink-soft); }

.choice .rate {
  font-family: var(--display);
  font-size: 21px;
  color: var(--gold-deep);
}

.choice.selected {
  border-color: var(--navy);
  background: #F7F4EC;
  box-shadow: inset 0 0 0 1px var(--navy);
}

/* Calendar */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-nav {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 34px; height: 34px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.cal-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-deep); }

.cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.cal-months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

@media (max-width: 700px) {
  .cal-months { grid-template-columns: 1fr; gap: 26px; }
  .cal-month.secondary { display: none; }
}

.cal-title {
  text-align: center;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-dow span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

.day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

.day:hover:not(:disabled) { background: var(--paper-3); }

.day:disabled { color: #C4B9A6; cursor: not-allowed; }

.day.empty { pointer-events: none; }

.day.in-range { background: var(--paper-2); border-radius: 0; }

.day.edge {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.day.edge:hover { background: var(--navy-deep); }

.cal-legend {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.cal-legend b { color: var(--ink); font-weight: 600; }

/* Fields */
.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.field .req { color: #A03B2C; }

.field input,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 51, 80, .12);
}

.field textarea { resize: vertical; min-height: 96px; }

.field .error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: #A03B2C;
}

.field.invalid input,
.field.invalid textarea { border-color: #A03B2C; }

.field.invalid .error { display: block; }

.field .hint { margin-top: 7px; font-size: 12px; color: var(--ink-soft); }

/* Honeypot: off-screen, not display:none, so simple bots still fill it in */
.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* Summary ledger */
.summary {
  position: sticky;
  top: 92px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

@media (max-width: 940px) { .summary { position: static; } }

.summary h2 {
  font-size: 21px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold);
}

.summary-rows { margin: 4px 0 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.summary-row .k { color: var(--ink-soft); }

.summary-row .v { text-align: right; font-weight: 500; }

.summary-row .v.muted { color: #B3A794; font-weight: 400; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0 22px;
}

.summary-total .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.summary-total .v {
  font-family: var(--display);
  font-size: 34px;
  color: var(--ink);
}

.summary .note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.form-alert {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  background: #FBEDEA;
  border: 1px solid #E4C0B7;
  color: #8A3325;
}

.form-alert.show { display: block; }

/* Success */
.success {
  display: none;
  text-align: center;
  padding: 60px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success.show { display: block; }

.success .seal {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold);
}

.success h2 { font-size: 30px; }

.success p {
  max-width: 48ch;
  margin: 14px auto 0;
  color: var(--ink-soft);
}

.success-details {
  max-width: 380px;
  margin: 30px auto 0;
  text-align: left;
}

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