/* =========================================================
   ROBIN RUTH SA — Safari Gold theme
   Plain CSS. The palette lives in :root with theme-neutral
   names, so re-theming the whole site = edit this one block.
========================================================= */

:root {
  /* Palette — Safari Gold */
  --dark:        #1f1b16;   /* warm near-black — header, footer, dark bands */
  --link:        #a9761a;   /* bronze — links, tags, eyebrows (readable on light) */
  --accent:      #f5b700;   /* gold — primary CTA + accents */
  --accent-dark: #d99e00;   /* gold hover */
  --on-accent:   #1f1b16;   /* text on gold buttons */
  --bg:          #fffaf3;   /* sand — page background */
  --surface:     #ffffff;   /* ivory — cards / surfaces */
  --text:        #221f19;   /* body text */
  --muted:       #7f7665;   /* warm secondary text */
  --error:       #c0392b;   /* form error */

  /* Type */
  --font: 'Montserrat', system-ui, sans-serif;

  /* Layout */
  --max:   1200px;
  --radius:14px;
  --shadow:0 10px 24px rgba(31, 22, 10, 0.08);
  --header-h:74px;
}

* { 
  margin:0; padding:0; box-sizing:border-box; 
}

html { 
  scroll-behavior:smooth; 
}

body {
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

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

h1,h2,h3 { 
  line-height:1.2; 
  color:var(--dark); 
}

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

/* visible keyboard focus everywhere interactive */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px;
}

/* shared helpers (used on inner pages) */
.page-top { 
  padding-top: calc(var(--header-h) + 60px); 
}
.lede {
  text-align: center; 
  max-width: 640px;
  margin: -30px auto 60px; 
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.gallery .lede {
  color: rgba(0,0,0,.90);
}

.contact .lede {
  color: rgba(0,0,0,.90);
}

.admin-block .lede{
  color: rgba(0,0,0,.90);
}
/* ---------- Header / nav ---------- */
header {
  position:fixed; top:0; left:0; width:100%;
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(20px, 5vw, 60px);
  background:rgba(31, 27, 22, 0.92);
  backdrop-filter:blur(8px);
  z-index:1000;
}

.logo {
  display: flex;
  align-items: center;
  color:var(--surface);
  font-size:24px; 
  font-weight:700; 
  letter-spacing:2px;
  text-decoration:none;
}
.logo span { 
  color:var(--accent); 
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

nav a {
  color:var(--surface);
  text-decoration:none;
  margin-left:26px;
  font-weight:500;
  position:relative;
  transition:color .25s;
}
nav a::after {
  content:''; position:absolute; left:0; bottom:-6px;
  width:0; height:2px; background:var(--accent);
  transition:width .25s;
}
nav a:hover,
nav a[aria-current="page"] { color:var(--accent); }
nav a:hover::after,
nav a[aria-current="page"]::after { width:100%; }

.nav-toggle { display:none; background:none; border:0; cursor:pointer; }
.nav-toggle span {
  display:block; width:26px; height:2px; margin:5px 0;
  background:var(--surface); transition:.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display:inline-block;
  padding:14px 34px;
  background:var(--accent);
  color:var(--on-accent);
  text-decoration:none;
  font-weight:700;
  border:0;
  border-radius:40px;
  cursor:pointer;
  transition:transform .25s, background .25s, box-shadow .25s;
}
.btn:hover {
  background:var(--accent-dark);
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(245, 183, 0, .4);
}
.btn-ghost {
  background:transparent;
  color:#fff;
  border:2px solid #fff;
  padding:12px 32px;
}
.btn-ghost:hover { 
  background:#fff; color:var(--dark); 
}

/* ---------- Hero: cloud banner + stats ---------- */
.hero {
  position:relative;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding:calc(var(--header-h) + 40px) clamp(20px,6vw,60px) 60px;
  background-size:cover; background-position:center;
}
.hero::before {
  content:''; 
  position:absolute; 
  inset:0;
  background:linear-gradient
  (rgba(26,20,12,.08), 
  rgba(26,20,12,.18));
}
.hero-content {
  position:relative; z-index:2;
  color:#fff; max-width:880px;
}
.hero-content h1 {
  color:#fff;
  font-size:clamp(38px, 7vw, 76px);
  text-transform:uppercase; letter-spacing:4px;
  margin-bottom:18px;
}
.hero-content > p {
  font-size:clamp(16px, 2.2vw, 22px);
  max-width:620px; margin:0 auto 44px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* people / places stats on the cloud picture */
.hero-stats {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:clamp(16px,4vw,48px);
  margin:0 auto 44px;
  max-width:760px;
}
.hero-stat h2 {
  color:var(--accent);
  font-size:clamp(30px,5vw,52px);
  line-height:1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-stat p {
  color:#f1e7d3;
  margin-top:8px;
  font-size:clamp(12px,1.6vw,15px);
  text-transform:uppercase; letter-spacing:1px;
}
@media (max-width:600px) {
  .hero-stats { grid-template-columns:repeat(2, 1fr); }
}

/* ---------- Places slideshow (Swiper) ---------- */
.gallery { 
  background:var(--bg); overflow:hidden; 
}
.gallery-header { 
  text-align:center; margin-bottom:20px; 
}
.gallery-header .lede { 
  margin:-30px auto 0; 
}

.placesSwiper { 
  width:100%; padding:30px 0 60px; 
}
.placesSwiper .swiper-slide {
  height:clamp(360px, 56vw, 520px);
  border-radius:24px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.placesSwiper .swiper-slide img {
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.placesSwiper .swiper-slide-shadow-left,
.placesSwiper .swiper-slide-shadow-right { display:none; }

.placesSwiper .swiper-pagination-bullet {
  background:var(--muted); opacity:.5;
}
.placesSwiper .swiper-pagination-bullet-active {
  background:var(--accent); opacity:1;
}

/* nav arrows */
.placesSwiper .swiper-button-prev,
.placesSwiper .swiper-button-next {
  width:52px; height:52px;
  border-radius:50%;
  background:var(--surface);
  color:var(--dark);
  border:0;
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:background .25s, color .25s, transform .25s;
  margin-top:-46px;            /* lift above the pagination row, centre on slides */
}
.placesSwiper .swiper-button-prev:hover,
.placesSwiper .swiper-button-next:hover {
  background:var(--accent); color:var(--on-accent);
  transform:scale(1.08);
}
.placesSwiper .swiper-button-prev::after,
.placesSwiper .swiper-button-next::after {
  font-size:18px; font-weight:700;
}
.placesSwiper .swiper-button-prev { left:clamp(8px,4vw,40px); }
.placesSwiper .swiper-button-next { right:clamp(8px,4vw,40px); }
.placesSwiper .swiper-button-disabled { opacity:0; }

/* ---------- Generic section ---------- */
section { padding:clamp(60px, 9vw, 110px) clamp(20px, 8vw, 10%); }

.section-title {
  text-align:center;
  font-size:clamp(30px, 5vw, 44px);
  margin-bottom:60px;
  position:relative;
}
.section-title::after {
  content:''; position:absolute; left:50%; bottom:-16px;
  width:70px; height:4px; border-radius:4px;
  background:var(--accent); transform:translateX(-50%);
}

/* ---------- Stats band ---------- */
.stats {
  background:var(--dark);
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
  gap:40px; text-align:center;
}
.stat h2 { 
  color:var(--accent); font-size:clamp(36px,5vw,52px); 
}
.stat p  { 
  color:#d8cba9; margin-top:8px; 
}

/* ---------- Intro / about story ---------- */
.story { 
  max-width:var(--max); margin:0 auto; 
}

.story-row {
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(30px,5vw,60px); align-items:center;
  margin-bottom:clamp(50px,8vw,90px);
}
.story-row:last-child { 
  margin-bottom:0; 
}
.story-row.reverse .story-img { 
  order:2; 
}

.story-img img {
  width:100%; border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .4s ease;
}
.story-img img:hover { 
  transform:scale(1.03); 
}

.story-text .eyebrow {
  color:var(--link); font-weight:700; letter-spacing:2px;
  text-transform:uppercase; font-size:14px; margin-bottom:10px;
}
.story-text h3 { 
  font-size:clamp(24px,3.5vw,34px); margin-bottom:16px; 
}
.story-text p { 
  color:var(--muted); margin-bottom:16px; 
}

.vertical {
  height:350px;
  object-fit:cover;
  object-position:center;
}

/* ---------- Feature cards ---------- */
.why { 
  max-width:var(--max); margin:0 auto; text-align:center; 

}
.feature-grid {
  display : grid;
  grid-template-columns : repeat(4, 1fr);
  gap : 28px; 
  margin-top : 50px;
}
.feature-card {
  background: var(--surface);
  padding: 34px 26px;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}
.feature-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);

}
.feature-card .icon { 
  font-size:40px; margin-bottom:14px;
  transition: transform .3s ease; 
}
.feature-card:hover .icon{
  transform: scale(1.25) rotate(-8deg);
}
.feature-card h3 { 
  font-size:20px; margin-bottom:10px; 
}
.feature-card p { 
  color:var(--muted); 
}

/* ---------- Locations ---------- */
.locations-grid {
  max-width:var(--max); margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
  gap:32px;
}
.location-card {
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  transition:transform .3s ease, box-shadow .3s ease;
}
.location-card:hover {
  transform:translateY(-6px);
  box-shadow:0 18px 36px rgba(31,22,10,.18);
}
.location-card img { 
  width:100%; 
  height:240px; 
  object-fit:cover; 
}
.location-body { 
  padding:24px; 
  display:flex; 
  flex-direction:column; 
  flex:1; 
}
.location-body h3 { 
  font-size:22px; 
  margin-bottom:10px; 
}

.locations .section-title {
  color: #FFF8E8;
  text-shadow: 0 3px 12px rgba(0,0,0,.6);
}

.location-body p { 
  color:var(--muted); 
  margin-bottom:16px; 
}
.tag {
  align-self:flex-start; margin-top:auto;
  background:rgba(169,118,26,.14); color:var(--link);
  font-size:13px; font-weight:600;
  padding:6px 14px; border-radius:30px;
}

.locations {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ---------- Gallery grid (product / collection) ---------- */
.product-grid {
  max-width:var(--max); margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px,1fr));
  gap:24px;
}
.product-card {
  background:var(--surface); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
  transition:transform .3s ease;
}
.product-card:hover { 
  transform:translateY(-5px); 
}
.product-card img { 
  height:240px; width:100%; object-fit:cover; 
}
.product-card span { 
  display:block; padding:16px; font-weight:600; text-align:center; 
}

/* ---------- Contact form ---------- */
.contact { 
  text-align:center; 
}
.contact-form { 
  max-width:640px; margin:0 auto; text-align:left; 
}
.contact-form input,
.contact-form textarea {
  width:100%; padding:16px;
  margin-bottom:18px;
  border:1px solid #e3d8c4;
  background:var(--surface);
  border-radius:10px;
  font-size:16px; font-family:inherit;
  transition:border .25s, box-shadow .25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline:none; border-color:var(--link);
  box-shadow:0 0 0 3px rgba(169,118,26,.18);
}
.contact-form textarea { 
  min-height:160px; resize:vertical; 
}
.hp { 
  position:absolute; left:-9999px; 
}      /* honeypot */
.form-note { 
  margin-top:16px; font-weight:600; min-height:24px; 
}
.form-note.ok  { 
  color:var(--link); 
}
.form-note.err { 
  color:var(--error); 
}

/* ---------- Footer ---------- */
footer {
  background:var(--dark);
  color:#c9bca1;
  text-align:center;
  padding:34px 20px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity:0; transform:translateY(28px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.visible { 
  opacity:1; transform:none; 
}

/* ---------- Responsive ---------- */
@media (max-width:820px) {
  .story-row, .story-row.reverse .story-img { 
    grid-template-columns:1fr; order:0; 
  }

  .feature-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap : 20px;
  }

  .story-row .story-img { 
    order:-1; 
  }

  .nav-toggle { 
    display:block; 
  }
  nav {
    position:absolute; top:var(--header-h); right:0;
    flex-direction:column;
    background:rgba(31,27,22,.98);
    width:220px; padding:10px 0;
    transform:translateX(110%); visibility:hidden;
    transition:transform .3s ease, visibility .3s ease;
  }
  nav.open { 
    transform:translateX(0); visibility:visible; 
  }
  nav a { 
    margin:0; padding:14px 24px; display:block; 
  }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; }
}

/* =========================================================
   ADMIN PANEL  (admin.html) — reuses the Safari Gold theme
========================================================= */
.admin nav a,
.admin-link {
  background:none; border:0; cursor:pointer;
  color:var(--surface); font-family:inherit; font-weight:500;
  font-size:16px; margin-left:26px;
}
.admin-link:hover { 
  color:var(--accent); 
}

.admin-shell { 
  max-width:var(--max); margin:0 auto; padding-bottom:80px; 
}

.admin-card {
  background:var(--surface); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:36px;
}
.login-card { 
  max-width:420px; margin:0 auto; 
}

.admin-form { 
  display:flex; flex-direction:column; text-align:left; 
}
.admin-form label { 
  font-weight:600; margin-bottom:8px; 
}
.admin-form input {
  padding:14px; border:1px solid #e3d8c4; background:var(--bg);
  border-radius:10px; font-size:16px; font-family:inherit; margin-bottom:20px;
}
.admin-form input:focus {
  outline:none; border-color:var(--link);
  box-shadow:0 0 0 3px rgba(169,118,26,.18);
}

/* metrics */
.metric-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
  gap:22px; margin-bottom:56px;
}
.metric {
  background:var(--surface); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:28px 24px; text-align:center;
}
.metric-num {
  display:block; color:var(--accent);
  font-size:clamp(34px,5vw,48px); font-weight:700; line-height:1;
}
.metric-label {
  display:block; margin-top:10px; color:var(--muted);
  text-transform:uppercase; letter-spacing:1px; font-size:13px;
}

/* blocks */
.admin-block {
  background:var(--surface); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:28px; margin-bottom:36px;
}
.admin-block-head {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-bottom:16px; flex-wrap:wrap;
}
.admin-block-head h3 { 
  font-size:22px; 
}
.admin-hint { 
  text-align:left; max-width:none; margin:0 0 20px; 
}

.upload-btn { 
  position:relative; 
}

/* submissions table */
.table-wrap { 
  overflow-x:auto; 
}
.admin-table { 
  width:100%; border-collapse:collapse; font-size:15px; 
}
.admin-table th, .admin-table td {
  text-align:left; padding:12px 14px;
  border-bottom:1px solid #ece2cf; vertical-align:top;
}
.admin-table th {
  font-size:12px; text-transform:uppercase; letter-spacing:1px;
  color:var(--muted);
}
.admin-table tr:last-child td { 
  border-bottom:0; 
}
.nowrap { 
  white-space:nowrap; 
}
.msg-cell { 
  max-width:420px; white-space:pre-wrap; word-break:break-word; 
}
.muted-row { 
  color:var(--muted); text-align:center; padding:28px; 
}
.row-del {
  background:none; border:0; cursor:pointer; color:var(--error);
  font-size:16px; line-height:1; padding:4px 8px; border-radius:6px;
}
.row-del:hover { 
  background:rgba(192,57,43,.12); 
}

/* image grids */
.img-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(190px,1fr));
  gap:18px;
}
.img-tile {
  background:var(--bg); border-radius:12px; overflow:hidden;
  border:1px solid #ece2cf; display:flex; flex-direction:column;
}
.img-tile img { 
  width:100%; height:150px; object-fit:cover; 
}
.img-tile figcaption {
  display:flex; align-items:center; gap:6px; padding:8px; flex-wrap:wrap;
}

/* ---- gallery framing (full-picture modal) ---- */
.tile-img-wrap { 
  position:relative; 
}
.frame-modal {
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.frame-dialog {
  background:var(--surface);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:20px;
  width:min(860px, 100%);
  display:flex; flex-direction:column; gap:14px;
}
.frame-hint { 
  font-size:14px; color:var(--muted); margin:0; 
}
.frame-stage {
  position:relative;
  width:100%; height:min(62vh, 520px);
  background:#111;
  border-radius:10px;
  overflow:hidden;
}
.frame-stage img {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;               /* the FULL picture, edges included */
  user-select:none; -webkit-user-drag:none; pointer-events:none;
}
.frame-box {
  position:absolute;
  border:3px solid var(--accent);
  border-radius:6px;
  /* dims everything outside the frame — that's what gets cropped */
  box-shadow:0 0 0 9999px rgba(0,0,0,.6);
  cursor:grab; touch-action:none;
}
.frame-box.grabbing { 
  cursor:grabbing; 
}
.frame-actions { 
  display:flex; justify-content:flex-end; gap:10px; 
}
/* ---- background slider (element with data-bg-slider) ---- */
[data-bg-slider] { 
  position:relative; overflow:hidden; 
}
[data-bg-slider] > .bg-slide {
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.2s ease;
  pointer-events:none;
}
[data-bg-slider] > .bg-slide.visible { 
  opacity:1; 
}
/* keep the element's own content above the background layers */
[data-bg-slider] > :not(.bg-slide) { 
  position:relative; z-index:1; 
}
.tile-btn {
  background:var(--bg); border:1px solid #ddd0b6; color:var(--text);
  cursor:pointer; font-family:inherit; font-size:14px; font-weight:600;
  border-radius:8px; padding:6px 10px; text-align:center;
}
.tile-btn:hover { 
  background:var(--accent); border-color:var(--accent); color:var(--on-accent); 
}
.tile-btn:disabled { 
  opacity:.4; cursor:not-allowed; 
}
.tile-btn.danger {
  color:var(--error); margin-left:auto; 
  }
.tile-btn.danger:hover { 
  background:var(--error); border-color:var(--error); color:#fff; 
}
.tile-btn.primary { 
  background:var(--accent); border-color:var(--accent); color:var(--on-accent);
}