/*
Theme Name: Sibebe Resort
Theme URI: https://sibeberesort.com
Author: Sibebe Resort
Author URI: https://sibeberesort.com
Description: Official website theme for Sibebe Resort, Eswatini. Clean, elegant, Apple-inspired layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sibebe
Tags: hospitality, resort, fullwidth, custom-logo, featured-images
*/

/* =============================================
   SIBEBE RESORT — THEME STYLES
   Fira Sans 700 headings / Jost 400 body
   ============================================= */

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

:root {
  --black:   #1d1d1f;
  --mid:     #6e6e73;
  --light:   #f5f5f7;
  --white:   #ffffff;
  --accent:  #c85a1a;
  --border:  #d2d2d7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--black);
}

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

/* Logo fills header height edge-to-edge, zero padding */
.site-logo {
  display: flex; align-items: stretch;
  height: 72px; /* match header */
  overflow: hidden;
}
.site-logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.site-logo .wp-post-image,
.site-logo .custom-logo {
  height: 72px !important;
  width: auto !important;
  max-width: none !important;
}

/* Centre nav */
#primary-navigation { display: flex; align-items: center; }
#primary-navigation ul {
  display: flex; gap: 32px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
#primary-navigation a {
  font-size: 13px;
  color: var(--mid);
  transition: color 0.15s;
}
#primary-navigation a:hover { color: var(--black); }

/* Book dropdown */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-has-dropdown > a::after {
  content: '›';
  font-size: 11px;
  transform: rotate(90deg);
  display: inline-block;
  transition: transform 0.15s;
}
.nav-has-dropdown:hover > a::after { transform: rotate(270deg); }

/* Dropdown sits flush — padding-top bridges the gap so hover never breaks */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 12px; /* bridges gap between link and box */
  min-width: 200px;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }

/* The visible card is inside a wrapper so the padding gap is invisible */
.nav-dropdown-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--mid);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { color: var(--black); background: var(--light); }

/* Social icons in nav */
.nav-social {
  display: flex; align-items: center; gap: 14px;
}
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--mid);
  transition: color 0.15s;
}
.nav-social a:hover { color: var(--black); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Right side of nav */
.nav-right { display: flex; align-items: center; gap: 20px; }

/* ── HERO ── */
.hero {
  padding-top: 72px;
  height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: #000;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  max-width: 780px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-family: 'Jost', sans-serif;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: 980px;
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.82; }
.btn-dark  { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 32px 48px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num sup { font-size: 22px; vertical-align: super; }
.stat-label { font-size: 14px; color: var(--mid); }

/* ── GENERIC SECTION ── */
.section { padding: 64px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Jost', sans-serif;
}

.section h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--mid);
  max-width: 540px;
}

/* ── FEATURE SPLIT ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-img {
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
}
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── ACTIVITIES GRID ── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 60px;
}
.activity {
  background: var(--white);
  padding: 40px 36px;
}
.activity-icon { font-size: 26px; margin-bottom: 16px; }
.activity h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.activity p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
}

/* ── CHALETS GRID ── */
.chalets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
.chalets-header .aside-text {
  font-size: 17px;
  color: var(--mid);
  max-width: 340px;
  line-height: 1.6;
}
.chalets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.chalet-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chalet-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--border);
}
.chalet-info { padding: 24px; }
.chalet-tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: 'Jost', sans-serif;
}
.chalet-name {
  font-family: 'Fira Sans', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.chalet-desc { font-size: 14px; color: var(--mid); }

/* ── CALLOUT STRIP ── */
.callout-strip {
  height: 70vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  background: #000;
}
.callout-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.48;
}
.callout-content { position: relative; z-index: 2; padding: 0 24px; }
.callout-content h2 {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 16px;
}
.callout-content p {
  font-size: 19px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── RESERVE ── */
.reserve-section {
  background: var(--black);
  text-align: center;
  padding: 80px 48px;
}
.reserve-section .section-eyebrow { color: rgba(255,255,255,0.4); }
.reserve-section h2 { color: var(--white); margin-bottom: 16px; font-size: clamp(40px, 5vw, 64px); }
.reserve-section .sub { font-size: 19px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.contact-row {
  display: flex; justify-content: center; gap: 64px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-item { text-align: center; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
  font-family: 'Jost', sans-serif;
}
.contact-val { font-size: 16px; color: rgba(255,255,255,0.8); }
.contact-val a:hover { color: var(--white); }

/* ── FOOTER ── */
#site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: 'Fira Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-nav a:hover { color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── WORDPRESS CORE CLASSES ── */
.wp-block-image { margin: 2rem 0; }
.aligncenter { text-align: center; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.entry-content p { font-size: 17px; line-height: 1.7; color: var(--mid); margin-bottom: 1.2em; max-width: 680px; }
.entry-content h2 { margin: 2em 0 0.5em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #site-header { padding: 0 20px; height: 60px; }
  .site-logo { height: 60px; }
  .site-logo .custom-logo { height: 60px !important; }
  #primary-navigation { display: none; }
  .nav-social { display: none; }
  .section { padding: 56px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse { direction: ltr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .chalets-grid { grid-template-columns: 1fr; }
  .chalets-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-row { flex-direction: column; gap: 24px; }
  #site-footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}
