/* Kerry Ocean Lodge – site styles. No external fonts or scripts. */
:root {
  --sea: #0f3d4a;
  --sea-2: #1c5a6b;
  --sand: #f6f1e8;
  --sand-2: #ebe2d3;
  --ink: #1d2427;
  --muted: #5a6468;
  --accent: #b5652d;
  --accent-ink: #fff;
  --ok: #2d6a3e;
  --warn: #8a5a00;
  --err: #a12a2a;
  --line: #d9cfbf;
  --card: #fff;
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--sand); }
img { max-width: 100%; height: auto; }
a { color: var(--sea-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; color: var(--sea); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--sea); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.brand span { display: block; font: 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.main-nav { border-top: 1px solid rgba(255,255,255,.15); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { color: #fff; text-decoration: none; padding: 10px 12px; white-space: nowrap; font-size: .95rem; opacity: .85; border-bottom: 2px solid transparent; }
.nav-inner a:hover, .nav-inner a[aria-current="page"] { opacity: 1; border-bottom-color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 12px 24px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn-danger { background: var(--err); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f0b37e; outline-offset: 2px; }

/* hero */
.hero { color: #fff; padding: 72px 0 80px;
  background: linear-gradient(160deg, var(--sea-2), var(--sea) 70%); }
.hero-photo { background: linear-gradient(180deg, rgba(15,61,74,.55), rgba(15,61,74,.85)), url(img/hero.jpg) center/cover, var(--sea-2); }
.hero h1 { color: #fff; max-width: 16em; }
.hero p { font-size: 1.15rem; max-width: 34em; opacity: .95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-ghost { color: #fff; border-color: #fff; }

/* content */
.section { padding: 48px 0; }
.section-alt { background: #fff; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--sand); }
.card h3 { margin-top: 0; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.page-head { padding: 40px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.photo-slot { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; background: var(--sand-2); }

/* tables */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* forms */
form .row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
label .opt { font-weight: normal; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* notices */
.notice { border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; border: 1px solid; }
.notice-ok { background: #e8f3ea; border-color: #b7d8be; color: var(--ok); }
.notice-err { background: #f8e7e7; border-color: #e6bcbc; color: var(--err); }
.notice-info { background: #eaf2f4; border-color: #bcd5dc; color: var(--sea); }
.notice ul { margin: .4em 0 0; padding-left: 1.2em; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sea); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* summary list */
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; }

/* admin */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--sand-2); }
.badge-new { background: #eaf2f4; color: var(--sea); }
.badge-awaiting_payment { background: #fbf1dc; color: var(--warn); }
.badge-paid { background: #e8f3ea; color: var(--ok); }
.badge-declined, .badge-cancelled { background: #f1eeee; color: #6b5f5f; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.history { font-size: .9rem; color: var(--muted); padding-left: 1.2em; }

/* footer */
.site-footer { background: var(--sea); color: #dfe9ec; margin-top: 56px; padding: 32px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.site-footer .small { color: #b9cbd0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 1.25rem; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 36px 0; }
  dl.summary { grid-template-columns: 1fr; gap: 0; }
  dl.summary dd { margin-bottom: 8px; }
}
form.inline { display: inline; }
code { font-size: .9em; word-break: break-all; background: var(--sand-2); padding: 2px 6px; border-radius: 4px; }
.section h2:first-child, .section .wrap > h2:first-child { margin-top: 0; }
