/* ===========================================================
   Seabreeze Resort — design tokens
   =========================================================== */
:root {
  --deep-water:   #0D3B36;
  --reef-teal:    #1B6B5F;
  --sand:         #F2E8D5;
  --foam:         #FDFBF6;
  --coral:        #E8562E;
  --coral-dark:   #C43F1C;
  --driftwood:    #8A6240;
  --ink:          #16211D;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--banner-height, 0px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.85;
  margin: 0 0 0.75em;
}
.eyebrow-dark { color: var(--reef-teal); opacity: 1; }

.section-intro {
  max-width: 62ch;
  color: #3A473F;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-coral {
  background: var(--coral);
  color: var(--foam);
  box-shadow: 0 4px 14px rgba(232, 86, 46, 0.35);
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 86, 46, 0.4); }
.btn-large { padding: 1.1em 2.2em; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ===========================================================
   Maintenance banner
   =========================================================== */
.maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--coral);
  color: var(--foam);
  text-align: center;
  padding: 0.7em 1em;
  font-size: 0.92rem;
}
.maintenance-banner p { margin: 0; }
.maintenance-banner a {
  color: var(--foam);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===========================================================
   Nav
   =========================================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1em 5vw;
  background: var(--foam);
  flex-wrap: wrap;
  gap: 0.75em;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--deep-water);
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.brand em { font-style: italic; color: var(--coral); }
.brand-logo {
  height: 2.25rem;
  width: auto;
  border-radius: 6px;
}
.site-nav nav { display: flex; gap: 1.3em; flex-wrap: wrap; }
.site-nav nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.site-nav nav a:hover { border-bottom-color: var(--coral); }
.nav-cta { color: var(--coral) !important; font-weight: 600; }

.page-jump-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 2rem;
}

.page-jump-links a {
    text-decoration: none;
    font-weight: 600;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  color: var(--foam);
  padding: 8vw 5vw 9vw;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,59,54,0.82) 0%, rgba(13,59,54,0.55) 45%, rgba(13,59,54,0.85) 100%);
  z-index: -1;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--foam);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(253, 251, 246, 0.92);
  max-width: 520px;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 8vw;
  min-height: 60px;
}
.hero-wave path { fill: var(--foam); }

/* ===========================================================
   About
   =========================================================== */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4vw;
  padding: 5vw 5vw 5vw;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--deep-water); }
.about-copy p { color: #3A473F; max-width: 52ch; }

.about-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 33, 29, 0.18);
  border: 6px solid var(--foam);
  outline: 1px solid #E4D8BC;
}
.about-photo img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.about-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--driftwood);
  padding: 0.6em 0.2em 0.2em;
  text-align: center;
}

/* ===========================================================
   Signature readout strip
   =========================================================== */
.readout-strip {
  background: var(--deep-water);
  color: var(--sand);
  padding: 1.8em 5vw;
  font-family: var(--font-mono);
}
.readout-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin: 0 0 1em;
  text-align: center;
}
.readout-grid {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.readout-item {
  padding: 0.4em 1.6em;
  border-right: 1px dashed rgba(242, 232, 213, 0.25);
  text-align: center;
}
.readout-item:last-child { border-right: none; }
.readout-item dt {
  font-size: 0.68rem;
  opacity: 0.65;
  letter-spacing: 0.06em;
  margin-bottom: 0.3em;
}
.readout-item dd {
  margin: 0;
  color: var(--foam);
  font-weight: 500;
  font-size: 1.02rem;
}

/* ===========================================================
   Bungalows
   =========================================================== */
.bungalows { padding: 5vw 5vw 6vw; background: var(--sand); }
.bungalows h2 { color: var(--deep-water); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.bungalow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bungalow-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bungalow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.bungalow-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bungalow-card .card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.bungalow-card h3 { padding: 0.9em 1.2em 0; color: var(--deep-water); }
.bungalow-card p { padding: 0 1.2em 1.3em; color: #3A473F; font-size: 0.95rem; }
.bungalow-swatch {
  height: 160px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.bungalow-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,59,54,0.75) 0%, rgba(13,59,54,0) 55%);
}
.swatch-garden   { background-image: linear-gradient(135deg, #8A6240, #5C4128); }
.swatch-standard { background-image: linear-gradient(135deg, #1B6B5F, #0D3B36); }
.bungalow-price {
  position: relative;
  z-index: 1;
  color: var(--foam);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.7em 0.9em;
}
.bungalow-price small { display: block; opacity: 0.75; font-size: 0.68rem; }

/* ===========================================================
   Restaurant band
   =========================================================== */
.restaurant {
  background: var(--foam);
  padding: 4vw 5vw;
  border-top: 1px solid #E4D8BC;
  border-bottom: 1px solid #E4D8BC;
}
.restaurant-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.restaurant h2 { color: var(--deep-water); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.restaurant p { color: #3A473F; }
.restaurant .eyebrow { color: var(--reef-teal); }

/* ===========================================================
   Dive centre
   =========================================================== */
.dive-centre { background: var(--deep-water); color: var(--foam); padding: 5vw 5vw 6vw; }
.dive-centre-inner { max-width: 900px; margin: 0 auto; }
.dive-centre-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2em;
}
.dive-centre h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--foam); margin: 0; }

.padi-badge {
  display: flex;
  align-items: center;
  gap: 0.7em;
  border: 1px solid rgba(242, 232, 213, 0.35);
  border-radius: 6px;
  padding: 0.5em 0.9em;
  flex-shrink: 0;
}
.padi-badge-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}
.padi-badge-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: rgba(253, 251, 246, 0.85);
}

.feature-list {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}
.feature-list li { display: flex; gap: 1em; align-items: flex-start; }
.feature-mark {
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 0.85rem;
  border: 1px solid rgba(242, 232, 213, 0.3);
  border-radius: 50%;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-list h3 { font-size: 1.05rem; color: var(--foam); margin-bottom: 0.2em; }
.feature-list p { font-size: 0.9rem; color: rgba(253, 251, 246, 0.75); margin: 0; }

/* ==========================================
   Rates Section & Rate Tables
   ========================================== */

.rates { 
  padding: 5vw 5vw 6vw; 
}

.rates h2 { 
  color: var(--deep-water); 
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); 
}

.rate-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5em;
  margin-top: 2em;
}

.rate-table h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep-water);
  margin-bottom: 0.8em;
}

.rate-table h3 span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--driftwood);
  margin-top: 0.2em;
}

/* Horizontal scroll container for mobile screens */
.table-container {
  overflow-x: auto;
  margin: 1em 0;
}

/* Base table styling */
.rate-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

/* Shared cell padding & bottom border */
.rate-table th, 
.rate-table td {
  text-align: left;
  padding: 0.65em 0.5em;
  border-bottom: 1px solid #E4D8BC;
}

/* Header row styling */
.rate-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--reef-teal);
  text-transform: uppercase;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.03);
}

/* Data cells */
.rate-table td:not(:first-child) { 
  font-family: var(--font-mono); 
  color: #3A473F; 
}

/* Row states: Zebra striping and hover */
.rate-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.rate-table tbody tr:hover { 
  background-color: rgba(27, 107, 95, 0.06); 
}

/* ===========================================================
   Dive sites
   =========================================================== */
.dive-sites { padding: 5vw 5vw 6vw; background: var(--sand); }
.dive-sites h2 { color: var(--deep-water); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.site-log { list-style: none; margin: 2em 0 0; padding: 0; border-top: 1px solid #DDD2B8; }
.site-log li {
  display: flex;
  justify-content: space-between;
  padding: 0.9em 0;
  border-bottom: 1px solid #DDD2B8;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.site-name { color: var(--deep-water); font-weight: 500; }
.site-note { color: var(--driftwood); }
.site-log-note {
  margin-top: 1em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--driftwood);
}

/* ===========================================================
   Contact
   =========================================================== */
.contact {
  background: var(--coral);
  color: var(--foam);
  text-align: center;
  padding: 6vw 5vw;
}
.contact h2 { color: var(--foam); font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.contact-sub { max-width: 480px; margin: 0 auto 1.6em; color: rgba(253, 251, 246, 0.9); }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }
.contact .btn-coral { background: var(--deep-water); box-shadow: none; }
.contact .btn-coral:hover { background: #092A26; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(253, 251, 246, 0.6);
  text-align: center;
  padding: 2em 1em;
  font-size: 0.82rem;
}
.site-footer p { margin: 0.2em 0; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo img { height: 260px; }
  .site-nav nav { gap: 1em; }
  .dive-centre-heading { flex-direction: column; align-items: flex-start; }
  .readout-item { padding: 0.4em 1em; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}


/* Info & Notice Boxes */
.notice-box {
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 4px solid #023e8a;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.notice-box ul {
  margin-left: 20px;
}

/* Photo Gallery Grids */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* ===========================================================
   Lightbox Gallery Component
   =========================================================== */
.gallery-grid img.gallery-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img.gallery-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 59, 54, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-btn {
  position: absolute;
  background: rgba(253, 251, 246, 0.15);
  color: var(--foam);
  border: 1px solid rgba(253, 251, 246, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 1001;
  user-select: none;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.lightbox-close:hover,
.lightbox-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-close,
  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
