:root {
  --navy: #082d55;
  --navy-deep: #051f3a;
  --copper: #c96f32;
  --copper-dark: #9d4e22;
  --ivory: #fbf7ef;
  --paper: #fffdf9;
  --ink: #172332;
  --muted: #607080;
  --line: #dfe5e8;
  --success: #176b4b;
  --shadow: 0 24px 70px rgba(5, 31, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8, 45, 85, .08);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 290px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .93rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--copper-dark); }
.mobile-nav-toggle { display: none; min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: white; font: inherit; font-weight: 800; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--copper); color: white; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.button:hover { background: var(--copper-dark); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--navy); border: 1px solid rgba(8,45,85,.24); }
.button-outline:hover { color: white; }

.hero { overflow: hidden; background: radial-gradient(circle at 90% 10%, #f1dfcf 0, transparent 32%), var(--ivory); }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 90px; }
.eyebrow { margin: 0 0 16px; color: var(--copper-dark); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy-deep); line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6.4vw, 6rem); }
.hero-copy { max-width: 660px; margin: 24px 0 32px; color: #405466; font-size: clamp(1.06rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  position: relative; padding: 42px; border-radius: 28px; color: white;
  background: var(--navy); box-shadow: var(--shadow);
}
.hero-card::before { content: "✦"; position: absolute; right: 30px; top: 20px; color: var(--copper); font-size: 2rem; }
.hero-photo { width: calc(100% + 84px); max-width: none; height: 260px; margin: -42px -42px 34px; object-fit: cover; border-radius: 28px 28px 0 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.price strong { font-size: 4.4rem; line-height: 1; letter-spacing: -.07em; }
.price span { color: #b9c8d6; font-weight: 700; }
.quick-facts { list-style: none; margin: 0; padding: 0; }
.quick-facts li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.quick-facts b { display: block; color: #f5c39f; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding-block: 100px; }
.section-soft { background: #f3f6f7; }
.section-dark { color: white; background: var(--navy-deep); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(2.3rem, 4vw, 4rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark .section-head p { color: #b8c7d4; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.service-photo { width: calc(100% + 68px); max-width: none; height: 190px; margin: -34px -34px 28px; object-fit: cover; border-radius: 22px 22px 0 0; }
.card-number { color: var(--copper); font-weight: 900; }
.card h3 { margin: 30px 0 12px; font-size: 1.45rem; }
.card p { margin: 0; color: var(--muted); }

.standards-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.standards-grid h2 { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.8rem); }
.standards-list { display: grid; gap: 12px; }
.standard { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.045); }
.check { color: #f5a96e; font-weight: 900; }
.fine-print { margin-top: 22px; color: #9fb2c2; font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: 18px; background: white; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 290px; display: block; object-fit: cover; }
.gallery-item figcaption { padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.media-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.media-admin-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.media-admin-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.media-move-form { display: grid; gap: 8px; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.media-move-form .button { min-height: 42px; width: 100%; }
.placement-layout { display: grid; grid-template-columns: 1fr .7fr; gap: 24px; align-items: start; }
.site-map { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #f4f6f7; }
.site-map-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.placement-slot { position: relative; min-height: 105px; overflow: hidden; border: 2px dashed #b9c5cc; border-radius: 12px; background: white; transition: border-color .15s, box-shadow .15s; }
.placement-slot[data-slot="hero"] { min-height: 180px; }
.placement-slot[data-slot="gallery"] { min-height: 85px; }
.placement-slot.selected { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(201,111,50,.15); }
.placement-slot img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.placement-slot span { position: absolute; left: 9px; bottom: 9px; z-index: 1; padding: 4px 8px; border-radius: 6px; color: white; background: rgba(5,31,58,.82); font-size: .72rem; font-weight: 800; }
.upload-preview { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.upload-preview img { display: none; width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; }
.upload-preview.has-image img { display: block; }
.upload-preview.has-image .preview-empty { display: none; }

.enquiry-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.enquiry-copy h2 { margin: 0 0 18px; font-size: clamp(2.4rem, 4vw, 4.2rem); }
.enquiry-copy p { color: var(--muted); }
.form-card { padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--navy-deep); font-size: .9rem; font-weight: 800; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: #fff;
  border: 1px solid #cbd5db; border-radius: 10px; font: inherit;
}
textarea { min-height: 145px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201,111,50,.18); border-color: var(--copper); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: 18px; min-height: 18px; margin-top: 4px; }
.checkbox label { margin: 0; font-weight: 600; }
.honeypot { position: absolute; left: -9999px; }
.form-message { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-message.error { color: #7b1f1f; background: #fff0f0; }
.form-message.success { color: var(--success); background: #edf9f3; }

.site-footer { padding-block: 34px; color: #c5d1dc; background: #03172b; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: .88rem; }
.footer-inner a { color: white; }
.legal-hero { padding-block: 90px 70px; color: white; background: var(--navy-deep); }
.legal-hero h1 { margin: 0 0 18px; color: white; font-size: clamp(3rem,6vw,5.6rem); }
.legal-hero p:last-child { max-width: 700px; color: #c5d1dc; font-size: 1.1rem; }
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 70px; align-items: start; }
.legal-summary { position: sticky; top: 110px; padding: 24px; border-radius: 18px; color: white; background: var(--navy); }
.legal-summary ul { margin: 14px 0 0; padding-left: 20px; }
.legal-summary li + li { margin-top: 8px; }
.legal-copy { max-width: 780px; }
.legal-copy h2 { margin: 2.2em 0 .55em; font-size: 1.6rem; letter-spacing: -.02em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: #445565; }
.legal-note { margin-top: 42px; padding: 20px; border-left: 4px solid var(--copper); background: var(--ivory); }

.admin-shell { min-height: 100vh; padding: 50px 0; background: #eef2f4; }
.admin-wrap { width: min(1050px, calc(100% - 32px)); margin: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.admin-nav { display: flex; gap: 8px; margin: -10px 0 28px; padding: 6px; width: fit-content; border: 1px solid var(--line); border-radius: 999px; background: white; }
.admin-nav a { padding: 8px 16px; border-radius: 999px; color: var(--navy); font-size: .9rem; font-weight: 800; text-decoration: none; }
.admin-nav a.active { color: white; background: var(--navy); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stat-grid a { display: grid; padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--navy); background: white; text-decoration: none; }
.stat-grid strong { font-size: 2rem; line-height: 1; }
.stat-grid span { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.admin-panel { margin-bottom: 24px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.admin-panel h1, .admin-panel h2 { margin-top: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stack { display: grid; gap: 15px; }
.login-box { width: min(460px, calc(100% - 32px)); margin: 10vh auto; }
.member-header { background: var(--navy-deep); color: white; }
.member-header .nav { min-height: 86px; }
.member-header .brand-text { color: white; font-size: 1.15rem; font-weight: 900; text-decoration: none; }
.member-header nav { display: flex; align-items: center; gap: 20px; }
.member-header nav a { color: white; }
.member-main { min-height: calc(100vh - 86px); padding-block: 55px 90px; background: #eef2f4; }
.member-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; align-items: start; }
.member-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(5,31,58,.07); }
.member-card h1, .member-card h2, .member-card h3 { margin-top: 0; }
.booking-list { display: grid; gap: 15px; }
.booking-item { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.booking-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.booking-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.booking-item p { margin: 4px 0; color: var(--muted); }
.booking-collapsible { padding: 0; }
.booking-collapsible summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; cursor: pointer; list-style: none; }
.booking-collapsible summary::-webkit-details-marker { display: none; }
.booking-collapsible summary::before { content: "+"; color: var(--copper); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.booking-collapsible[open] summary::before { content: "−"; }
.booking-collapsible summary > span:first-of-type { display: grid; flex: 1; }
.booking-collapsible summary small { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.booking-details { padding: 0 20px 22px 58px; border-top: 1px solid var(--line); }
.booking-details > p:first-child { margin-top: 18px; }
.status { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.status-pending { color: #7b4a04; background: #fff1d6; }
.status-confirmed { color: #0c6041; background: #dff5eb; }
.status-completed { color: #38516a; background: #e7eef4; }
.status-cancelled, .status-declined { color: #7b2831; background: #fbe5e8; }
.auth-links { margin-top: 18px; text-align: center; }
.small { color: var(--muted); font-size: .88rem; }
.danger-link { color: #a12e3a; background: transparent; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.inline-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.inline-actions form, .admin-actions form { margin: 0; }
.availability-note { margin-top: 18px; color: var(--muted); }
.safety-box { margin: 18px 0; padding: 16px; border-radius: 12px; background: var(--ivory); }
.confirmation-list { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.confirmation-list dt { font-weight: 800; }
.confirmation-list dd { margin: 0; }

@media (max-width: 850px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; }
  .site-header .nav { position: relative; }
  .site-header .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); padding: 18px 20px; flex-direction: column; align-items: stretch; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links a { display: block; }
  .brand img { width: 225px; }
  .hero-grid, .standards-grid, .enquiry-grid { grid-template-columns: 1fr; gap: 46px; }
  .member-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-summary { position: static; }
  .hero-grid { padding-block: 65px; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid, .media-admin-grid { grid-template-columns: 1fr; }
  .placement-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-nav { width: 100%; overflow-x: auto; border-radius: 14px; }
  .section { padding-block: 76px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media print { .member-header,.no-print{display:none!important}.member-main{background:white;padding:0}.print-card{box-shadow:none;border:0}.print-card{width:100%} }

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 68px; }
  .nav .button { min-height: 42px; padding-inline: 15px; font-size: .86rem; }
  .brand img { width: 188px; }
  h1 { font-size: 3rem; }
  .hero-card, .form-card { padding: 26px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .price strong { font-size: 3.8rem; }
}
