/* Lawers Self Catering
   One typeface, a navy and sea-blue palette, square-ish corners, lines instead of boxes. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1b2a41;
  --text: #2c3a4f;
  --mute: #5d6878;
  --sea: #1d5f78;
  --sea-dark: #164b5f;
  --tint: #f1f4f6;
  --line: #d9dfe5;
  --white: #ffffff;
  --radius: 3px;
  --wrap: 1140px;
  --font: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 2px; }
a:hover { color: var(--sea-dark); }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; color: var(--mute); max-width: 46ch; }
.mute { color: var(--mute); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--sea);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .75em 1.25em;
  border: 2px solid var(--sea);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--tint); color: var(--ink); border-color: var(--mute); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #c5cfdc; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-block: 7px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar .sep { margin: 0 4px; opacity: .6; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-name { display: block; font-size: 1.3rem; font-weight: 700; }
.brand-place { display: block; font-size: .9rem; color: var(--mute); }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"] { color: var(--sea); border-bottom-color: var(--sea); }

.nav-toggle {
  display: none;
  font: 600 1rem var(--font);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(20px, env(safe-area-inset-left)) 20px;
    z-index: 20;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--mute); }

.page-head { padding-block: 48px 8px; }
.page-head p { color: var(--mute); font-size: 1.2rem; max-width: 60ch; }

/* ---------- Home hero ---------- */
.hero { padding-block: 48px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-text > * { min-width: 0; }
.hero-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-photos img:first-child { grid-row: span 2; }
.hero .actions { margin-top: 28px; }

/* Key facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 18px 20px 18px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.split-media img { border-radius: var(--radius); width: 100%; }

/* Lists */
.list-cols { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.list-cols li, .list-plain li { break-inside: avoid; padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid var(--line); }
.list-cols li::before, .list-plain li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; background: var(--sea); }
.list-plain { list-style: none; padding: 0; margin: 0 0 1em; }

/* Rooms on the home page */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.room h3 { margin-bottom: 4px; }
.room p { color: var(--mute); margin: 0; font-size: 1.05rem; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote { margin: 0; }
.quote p { font-size: 1.15rem; font-style: italic; color: var(--ink); margin-bottom: 10px; }
.quote footer { color: var(--mute); font-size: .95rem; font-weight: 600; }

.guestbook { columns: 2; column-gap: 48px; }
.guestbook .quote { break-inside: avoid; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.guestbook .quote p { font-size: 1.1rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 400; }
.table td { text-align: right; font-weight: 600; color: var(--ink); padding-left: 16px; overflow-wrap: anywhere; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; grid-auto-flow: dense; }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a.wide { grid-column: span 2; grid-row: span 2; }
.gallery a.wide img { aspect-ratio: auto; height: 100%; }

.lightbox { position: fixed; inset: 0; background: rgba(12, 20, 32, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: var(--radius); }
.lightbox figure { margin: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox figcaption { color: #dfe6ee; font-size: 1rem; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font: 600 1rem var(--font); padding: 12px 16px; cursor: pointer; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 2rem !important; }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 2rem !important; }

/* ---------- Map ---------- */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.map-tall { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .map-tall { aspect-ratio: 4 / 3; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Price box ---------- */
.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-box .amount { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-box .per { color: var(--mute); margin-bottom: 16px; }

/* ---------- Notice ---------- */
.notice { border-left: 4px solid var(--sea); background: var(--tint); padding: 14px 18px; margin: 0 0 24px; }
.notice.error { border-left-color: #b42318; background: #fdf0ef; }
.notice p:last-child { margin: 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.form .hint { font-weight: 400; color: var(--mute); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 11px 12px;
  border: 1.5px solid #b9c3cd;
  border-radius: var(--radius);
  background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sea); outline: 2px solid rgba(29, 95, 120, .2); outline-offset: 0; }
.form textarea { min-height: 150px; resize: vertical; }
.form .field-error { color: #b42318; font-size: .95rem; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5cfdc; padding-block: 56px 28px; font-size: 1rem; margin-top: 0; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.site-footer a { color: var(--white); }
.site-footer address { font-style: normal; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-small { margin-top: 40px; padding-top: 18px; border-top: 1px solid #33445e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-photos { height: 360px; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rooms, .quotes { grid-template-columns: 1fr; gap: 32px; }
  .guestbook { columns: 1; }
  .footer-cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .section { padding-block: 52px; }
  .hero { padding-block: 32px 40px; }
  .hero-photos { height: 280px; }
  .list-cols { columns: 1; }
  .form .row { grid-template-columns: 1fr; }
  .topbar .wrap > span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
}
