/*
Theme Name:    Cabana Child
Theme URI:     https://themerex.net/
Description:   Cabana Child Theme — Pure WordPress, no Elementor required
Author:        ThemeRex (child by custom)
Author URI:    https://themerex.net/
Template:      cabana
Version:       1.0.17 
License:       GNU General Public License v2 or later
License URI:   http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:   cabana-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Background — warm cream matching Cabana demo */
  --color-bg: #fff4ee;
  --color-bg-alt: #fef0e6;
  --color-bg-dark: #1a1208;
  --color-bg-light: #ffffff;

  /* Accent — mapped from Theme Options skin colors */
  --color-accent: #f56916;
  --color-accent-hover: #e55e0d;
  --color-accent-2: #ce21e7;
  --color-accent-2-hover: #ba15d2;
  --color-link: #39b6ab;
  --color-link-hover: #2aaba0;

  /* Gold kept for decorative elements */
  --color-gold: #c8a96e;
  --color-gold-light: #e0c99a;

  /* Text */
  --color-white: #ffffff;
  --color-text: #1a1208;
  --color-text-muted: #7a6a5a;
  --color-border: rgba(245, 105, 22, 0.15);
  --color-border-dark: rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Layout */
  --section-pad: clamp(60px, 8vw, 120px);
  --container: 1280px;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body,
.page-wrapper,
#page_wrap,
.body_wrap,
#page,
.site {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

p {
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* Gold divider line */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 20px 0;
}

.centered .gold-line {
  margin: 20px auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-solid {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-solid:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 18, 8, 0.97);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#site-header.scrolled #primary-nav>li>a {
  color: rgba(255, 255, 255, 0.85);
}

#site-header.scrolled #primary-nav>li>a:hover {
  color: var(--color-white);
}

#site-header.scrolled .site-logo .logo-text {
  color: var(--color-white);
}

#site-header.scrolled .nav-toggle span {
  background: var(--color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: auto;
  max-height: 64px;
  width: auto;
  filter: invert(0);
  transition: filter 0.3s ease;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

/* Homepage logo invert logic */
#site-header.scrolled .site-logo img,
.home .site-logo img,
.home #site-header.scrolled .site-logo img {
  filter: invert(1);
}

/* Primary nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

#primary-nav>li>a {
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

#primary-nav>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

#primary-nav>li>a:hover {
  color: var(--color-accent);
}

#primary-nav>li>a:hover::after {
  width: 100%;
}

/* Dropdown styling & gap fix */
#primary-nav li {
  position: relative;
}

#primary-nav li::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
  z-index: 1001;
  display: none;
}

#primary-nav li:hover::before {
  display: block;
}

#primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(-6px);
  background: #1a1208 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1002;
}

#primary-nav li:nth-last-child(1)>.sub-menu,
#primary-nav li:nth-last-child(2)>.sub-menu {
  left: auto;
  right: 0;
}

#primary-nav li:hover>.sub-menu,
#primary-nav li:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#primary-nav .sub-menu li {
  padding: 0 !important;
  margin: 0 !important;
}

/* Force Submenu Text to Stay White */
#primary-nav .sub-menu li a,
html body #site-header #main-nav ul.sub-menu li a,
html body #site-header #main-nav ul.sub-menu li>a {
  display: block;
  padding: 12px 20px !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: color var(--transition), background var(--transition);
}

#primary-nav .sub-menu li:last-child a {
  border-bottom: none !important;
}

#primary-nav .sub-menu li a:hover,
html body #site-header #main-nav ul.sub-menu li a:hover {
  color: var(--color-accent) !important;
  background: rgba(245, 105, 22, 0.08) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Ensure the toggle button stays visible over the open menu overlay */
.nav-toggle {
  position: relative;
  z-index: 1000;
}

/* ============================================================
   MOBILE MENU TOGGLE — ACTIVE STATE (BLACK ICON)
   ============================================================ */

/* Force hamburger lines to black when menu is expanded */
.nav-toggle.active span {
  background-color: #000000 !important;
}

/* Optional: Morph the 3 lines into an "X" when active */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Ensure smooth transition for color and shape change */
.nav-toggle span {
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   HOMEPAGE TRANSPARENT HEADER OVERLAY
   ============================================================ */
.home #site-header:not(.scrolled) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  z-index: 1000;
}

.home #site-header:not(.scrolled) #primary-nav>li>a {
  color: #ffffff !important;
}

.home #site-header:not(.scrolled) .site-logo .logo-text {
  color: #ffffff !important;
}

.home #site-header:not(.scrolled) .nav-toggle span {
  background: #ffffff !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(10, 8, 4, 0.72) 0%,
      rgba(10, 8, 4, 0.42) 60%,
      rgba(10, 8, 4, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content .eyebrow {
  color: var(--color-gold-light);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.hero-actions .btn:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.hero-actions .btn-solid {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.hero-actions .btn-solid:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Slide dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--color-accent);
  width: 48px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ============================================================
   INNER PAGE HERO & CONTENT LAYOUT
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: 100px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 31, 0.55);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-hero-eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
  color: #c5a880;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.page-content-area {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section {
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header h2 {
  color: var(--color-text);
}

.section-header p {
  max-width: 540px;
  margin-top: 16px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin: 16px auto 0;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.service-card {
  position: relative;
  padding: 52px 40px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border-dark);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.service-card:hover {
  background: var(--color-white);
  border-color: rgba(245, 105, 22, 0.25);
  box-shadow: 0 4px 24px rgba(245, 105, 22, 0.08);
}

.service-card:hover::before {
  width: 100%;
}

.service-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(245, 105, 22, 0.08);
  position: absolute;
  top: 20px;
  right: 32px;
  transition: color var(--transition);
}

.service-card:hover .service-num {
  color: rgba(245, 105, 22, 0.14);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.service-card h3 {
  color: var(--color-text);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.9rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.service-link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card:hover .service-link::after {
  transform: translateX(6px);
}

/* ============================================================
   ABOUT / TRAVEL SECTION
   ============================================================ */
#about-travel {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--color-bg);
}

.about-text h2 {
  color: var(--color-text);
}

.about-text p {
  margin: 20px 0 32px;
}

.about-portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(26, 18, 8, 0.85) 0%, transparent 100%);
}

.portfolio-caption h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-white);
}

/* ============================================================
   ISLAND CTA BANNER
   ============================================================ */
#island-cta {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--color-bg-dark);
}

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

.island-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.island-text .eyebrow {
  color: var(--color-gold-light);
}

.island-text h2 {
  color: var(--color-white);
}

.island-text .gold-line {
  background: var(--color-accent);
}

.island-text h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.8;
}

.island-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.island-phone {
  font-size: 0.9rem;
  color: var(--color-gold-light);
  letter-spacing: 0.06em;
}

.island-image-stack {
  position: relative;
  height: 500px;
}

.island-img-a {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 78%;
  object-fit: cover;
}

.island-img-b {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  object-fit: cover;
  border: 6px solid var(--color-bg-dark);
}

/* ============================================================
   SUITES
   ============================================================ */
#suites {
  background: var(--color-bg);
}

.suites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.suite-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.suite-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.suite-card:hover .suite-img {
  transform: scale(1.05);
}

.suite-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 24px;
  background: linear-gradient(to top, rgba(26, 18, 8, 0.95) 0%, transparent 100%);
}

.suite-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.suite-info h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.suite-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.suite-meta span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.suites-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   GALLERY STRIP
   ============================================================ */
#gallery-strip {
  background: var(--color-bg-alt);
  padding: var(--section-pad) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.88);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 5%;
  font-family: var(--font-display);
  font-size: 28rem;
  line-height: 1;
  color: rgba(245, 105, 22, 0.05);
  pointer-events: none;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 40px;
}

.testimonial-author {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.testimonial-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ============================================================
   BLOG
   ============================================================ */
#blog {
  background: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.blog-card {
  cursor: pointer;
}

.blog-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.05);
}

.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.3;
}

.blog-card h3 a {
  color: var(--color-text);
}

.blog-card h3 a:hover {
  color: var(--color-accent);
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
#stats {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  padding: clamp(40px, 6vw, 80px) 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--color-border-dark);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-text);
  line-height: 1;
  display: block;
}

.stat-suffix {
  color: var(--color-accent);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
#instagram-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.insta-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.insta-overlay svg {
  opacity: 0;
  transition: opacity var(--transition);
  color: white;
  width: 28px;
  height: 28px;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-item:hover .insta-overlay {
  background: rgba(245, 105, 22, 0.5);
}

.insta-item:hover .insta-overlay svg {
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(40px, 7vw, 100px) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
#partners {
  background: var(--color-bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-logo {
  filter: grayscale(1);
  opacity: 0.3;
  transition: opacity var(--transition), filter var(--transition);
  max-height: 36px;
  width: auto;
}

.partner-logo:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

/* ============================================================
   CABANA FORM CARD (#FCF2DC) & SUBMIT BUTTON MATCH
   ============================================================ */

/* 1. Form Card Background & Subtle Gold Border */
.wp-block-columns .overlap-card {
  background-color: #FCF2DC !important;
  /*border: 1px solid rgba(197, 168, 128, 0.4) !important;*/
  box-shadow: 0 2px 2px rgba(15, 27, 31, 0.06);
}

body .wpcf7 input[type="submit"],
body .wpcf7 input.wpcf7-submit,
body .wp-block-columns .overlap-card .wpcf7 input[type="submit"] {
  background-color: var(--color-accent) !important;
}

/* Override ThemeRex hover overlay pseudo-elements */
body .wpcf7 input[type="submit"]::before,
body .wpcf7 input[type="submit"]::after,
body .wpcf7 input.wpcf7-submit::before,
body .wpcf7 input.wpcf7-submit::after {
  display: none !important;
  background: transparent !important;
}

/* Force explicit hover state so it doesn't revert to theme default */
body .wpcf7 input[type="submit"]:hover,
body .wpcf7 input.wpcf7-submit:hover,
body .wpcf7 input[type="submit"]:focus,
body .wpcf7 input[type="submit"]:active {
  background-color: var(--color-accent-hover);
  /*background: #0f1b1f !important;*/
  /*border-color: #0f1b1f !important;*/
  color: #ffffff !important;
}

.wp-block-columns .overlap-card .wpcf7-response-output {
  border: none;
  box-shadow: none;
}

/* ============================================================
   GUTENBERG BLOCK EDITOR: OVERLAPPING CARD HELPER
   ============================================================ */

/* Force high z-index and negative margin on desktop */
@media (min-width: 993px) {
  .wp-block-columns .overlap-card {
    margin-left: -80px !important;
    /* Pulls form card over the left column */
    position: relative;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Floating drop shadow */
  }
}

/* Ensure clean stack on tablet and mobile */
@media (max-width: 992px) {
  .wp-block-columns .overlap-card {
    margin-left: 0 !important;
  }
}

/* ============================================================
   OVERRIDE THEMEREX TRX_ADDONS IFRAME RESIZE JS
   ============================================================ */

/* 1. Force the iframe to ignore JS inline width calculations */
.contact-map-section iframe,
.contact-map-section iframe.trx_addons_resize,
.contact-map-section iframe.cabana_resize {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

/* 2. Break the parent group block out of the 840px layout constraint to screen edges */
.contact-map-section {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 244, 238, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-text);
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

.mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  /* Ensures links never block the X button */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .suites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid var(--color-border-dark);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #instagram-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #primary-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .island-grid {
    grid-template-columns: 1fr;
  }

  .about-img-accent {
    display: none;
  }

  .island-image-stack {
    height: 300px;
  }

  .suites-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  #instagram-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}