/* ============================================================
   Nature & Ocean Theme
   Palette:
     Deep Ocean  : #1a3c4d
     Sea Teal    : #2a7f7f
     Sea Foam    : #4db6ac
     Sandy Shore : #f5f0e8
     Driftwood   : #8d6e63
     Leaf Green  : #4caf50
     Mist White  : #eaf4f4
   ============================================================ */

:root {
  --nature-deep:    #1a3c4d;
  --nature-teal:    #2a7f7f;
  --nature-foam:    #4db6ac;
  --nature-sand:    #f5f0e8;
  --nature-drift:   #8d6e63;
  --nature-leaf:    #4caf50;
  --nature-mist:    #eaf4f4;
}

/* --- Base -------------------------------------------------- */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--nature-mist);
  color: var(--nature-deep);
  font-family: 'Georgia', 'Palatino Linotype', serif;
}

/* --- Focus rings ------------------------------------------- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--nature-foam);
}

/* --- Navbar ------------------------------------------------ */
.navbar {
  background: linear-gradient(135deg, var(--nature-deep) 0%, var(--nature-teal) 100%) !important;
  border-bottom: 3px solid var(--nature-foam) !important;
  box-shadow: 0 2px 8px rgba(26, 60, 77, 0.4);
}

.navbar-brand {
  color: var(--nature-sand) !important;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.navbar-brand:hover {
  color: var(--nature-foam) !important;
}

.nav-link {
  color: var(--nature-mist) !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--nature-foam) !important;
}

.nav-link.active {
  color: var(--nature-foam) !important;
  border-bottom: 2px solid var(--nature-foam);
}

.navbar-toggler {
  border-color: var(--nature-foam);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* --- Buttons ----------------------------------------------- */
.btn-primary {
  background-color: var(--nature-teal);
  border-color: var(--nature-teal);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--nature-deep);
  border-color: var(--nature-deep);
}

.btn-secondary {
  background-color: var(--nature-drift);
  border-color: var(--nature-drift);
  color: #fff;
}

/* --- Cards ------------------------------------------------- */
.card {
  border: 1px solid var(--nature-foam);
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(42, 127, 127, 0.12);
}

.card-header {
  background: linear-gradient(135deg, var(--nature-deep) 0%, var(--nature-teal) 100%);
  color: var(--nature-sand);
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* --- Tables ------------------------------------------------ */
.table thead th {
  background-color: var(--nature-teal);
  color: #fff;
  border-color: var(--nature-foam);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(77, 182, 172, 0.08);
}

/* --- Forms ------------------------------------------------- */
.form-control:focus, .form-select:focus {
  border-color: var(--nature-foam);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Footer ------------------------------------------------ */
.footer {
  margin-top: auto;
  background: linear-gradient(135deg, var(--nature-deep) 0%, var(--nature-teal) 100%);
  color: var(--nature-sand) !important;
  border-top: 3px solid var(--nature-foam) !important;
  padding: 0.2rem 0;
  font-size: 0.78rem;
  line-height: 40px;
  white-space: nowrap;
}

.footer a {
  color: var(--nature-foam);
}

.footer a:hover {
  color: var(--nature-sand);
}

/* --- Headings ---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--nature-deep);
}

/* --- Links ------------------------------------------------- */
a {
  color: var(--nature-teal);
}

a:hover {
  color: var(--nature-deep);
}

/* --- Alerts ------------------------------------------------ */
.alert-success {
  background-color: rgba(76, 175, 80, 0.15);
  border-color: var(--nature-leaf);
  color: #2e7d32;
}

.alert-info {
  background-color: rgba(77, 182, 172, 0.15);
  border-color: var(--nature-foam);
  color: var(--nature-deep);
}

/* --- Footer clocks ----------------------------------------- */
.footer-clock {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.footer-clock-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nature-foam);
  white-space: nowrap;
}

.footer-clock-label::after {
  content: ':';
  margin-left: 0.15rem;
}

.footer-clock-time {
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--nature-sand);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* --- Outline nature button (View Service) ------------------ */
.btn-outline-nature {
  color: var(--nature-teal);
  border-color: var(--nature-teal);
  background-color: transparent;
}

.btn-outline-nature:hover, .btn-outline-nature:focus {
  background-color: var(--nature-teal);
  border-color: var(--nature-teal);
  color: #fff;
}

/* --- Kerry's name heading ---------------------------------- */
.kerry-name {
  color: var(--nature-teal);
  text-shadow: 1px 2px 6px rgba(26, 60, 77, 0.18);
  letter-spacing: 0.02em;
}

/* --- Decorative wave divider ------------------------------- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 1.5rem 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* --- Admin sub-navigation ---------------------------------- */
.admin-subnav {
  background: linear-gradient(135deg, rgba(26,60,77,0.07) 0%, rgba(42,127,127,0.10) 100%);
  border-bottom: 2px solid var(--nature-foam);
  border-top: 2px solid var(--nature-foam);
  padding: 0.75rem 1.25rem;
}

.admin-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
}

.admin-subnav-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.admin-subnav-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nature-teal);
  font-weight: 700;
  white-space: nowrap;
  margin-right: 0.15rem;
}

.admin-subnav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--nature-deep);
  background-color: rgba(255,255,255,0.55);
  border: 1px solid rgba(42,127,127,0.2);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.admin-subnav-link:hover {
  background-color: rgba(42,127,127,0.12);
  border-color: var(--nature-foam);
  color: var(--nature-teal);
  text-decoration: none;
}

.admin-subnav-link.active {
  background-color: var(--nature-teal);
  border-color: var(--nature-teal);
  color: #fff;
}

.admin-subnav-divider {
  width: 1px;
  height: 32px;
  background-color: var(--nature-teal);
  opacity: 0.25;
  align-self: center;
  flex-shrink: 0;
}

/* ── Kerry's Beach – view photo ────────────────────────────────────────── */
.beach-view-photo {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,60,77,0.18);
}

.beach-view-photo-inner {
  position: relative;
  line-height: 0;
}

.beach-view-photo-inner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 1rem;
  transition: transform 0.6s ease;
}

.beach-view-photo-inner:hover img {
  transform: scale(1.015);
}

.beach-view-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to top, rgba(26,60,77,0.72) 0%, transparent 100%);
  color: #e8f4f8;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  border-radius: 0 0 1rem 1rem;
}
}

/* ── Admin-editable page content body ─────────────────────────────────── */
.page-content-body {
  line-height: 1.75;
  color: var(--nature-deep);
}
.page-content-body h1,
.page-content-body h2,
.page-content-body h3 {
  color: var(--nature-teal);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.page-content-body p { margin-bottom: 1rem; }
.page-content-body ul,
.page-content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content-body blockquote {
  border-left: 4px solid var(--nature-foam);
  padding-left: 1rem;
  color: #5a7d8a;
  font-style: italic;
}
