/* ==========================================================================
   Gable Oaks Villa Management - Modern Luxury Resort Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary: #961212;
  --primary-dark: #6e0b0b;
  --primary-light: #b91c1c;
  --primary-subtle: #fbf0f0;
  --primary-gradient: linear-gradient(135deg, #961212 0%, #630808 100%);
  --hero-gradient: linear-gradient(135deg, rgba(150, 18, 18, 0.88) 0%, rgba(35, 10, 10, 0.92) 100%);
  --gold-accent: #c59b27;
  --gold-gradient: linear-gradient(135deg, #dfb746 0%, #b88d1d 100%);

  /* Neutrals & Surfaces */
  --bg-page: #fbfaf8;
  --bg-alt: #f4f0e8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --border: #e8e3d8;
  --border-light: #f0ede6;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-dark: #191817;
  --text-muted: #5e5a55;
  --text-light: #8e8880;
  --text-on-dark: #ffffff;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 10px 28px rgba(150, 18, 18, 0.28);
  --shadow-float: 0 20px 50px rgba(25, 24, 23, 0.16);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

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

a:hover, a:focus-visible {
  color: var(--primary-dark);
}

button, input, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Header & Top Utility Bar
   ========================================================================== */

.topbar {
  background: #141212;
  color: #e5e0d8;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d1cbc1;
  transition: color var(--transition-fast);
}

.topbar-item:hover {
  color: #ffffff;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(197, 155, 39, 0.18);
  color: #dfb746;
  border: 1px solid rgba(197, 155, 39, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Hide location item on small screens to prevent topbar wrapping */
@media (max-width: 640px) {
  .topbar-item.hide-mobile {
    display: none;
  }
}

/* Hide entire topbar on very small screens */
@media (max-width: 400px) {
  .topbar {
    display: none;
  }
}

/* Main Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.site-logo:hover img {
  transform: scale(1.04);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Hide logo sub-text on very small screens to avoid overflow */
@media (max-width: 380px) {
  .logo-text-group {
    display: none;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-link svg.arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link svg.arrow {
  transform: rotate(180deg);
}

/* Dropdown / Mega Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.dropdown-link svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.mega-menu {
  min-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
}

.dropdown-header {
  grid-column: span 2;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.25rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover, .btn-primary:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(150, 18, 18, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover, .btn-white:focus-visible {
  background: #fdfdfd;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Always above the drawer and header */
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile Drawer Backdrop */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 18, 0.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: backdropFadeIn 0.25s ease;
}

.mobile-backdrop.open {
  display: block;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: min(340px, 88vw);
  height: calc(100vh - 80px);
  background: var(--surface);
  z-index: 1001; /* Above header (1000) and backdrop (1000) */
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-float);
  border-right: 1px solid var(--border);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-sub-menu {
  list-style: none;
  padding: 0.25rem 0 0.5rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-sub-menu.open {
  display: flex;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-sub-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: #191817;
  color: #ffffff;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) brightness(0.8);
  transform: scale(1.03);
  transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg {
  transform: scale(1.07);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 10, 10, 0.88) 0%, rgba(150, 18, 18, 0.65) 50%, rgba(20, 10, 10, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fce7e7;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span.accent {
  color: #ffcccc;
  background: linear-gradient(120deg, #ffffff 0%, #ffc2c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #e5dfd8;
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: #d1cbc1;
}

/* ==========================================================================
   Page Headers (Sub-pages)
   ========================================================================== */

.page-banner {
  background: linear-gradient(135deg, #1f1414 0%, #6e0b0b 100%);
  color: #ffffff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #d9c4c4;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #ffffff;
  opacity: 0.85;
}

.breadcrumb a:hover {
  opacity: 1;
}

.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.page-banner p {
  color: #f0e6e6;
  font-size: 1.15rem;
  max-width: 650px;
}

/* ==========================================================================
   Sections & Layout Modules
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2.5rem;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
}

/* Cards & Components */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(150, 18, 18, 0.2);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.card:hover .card-icon-box {
  background: var(--primary);
  color: #ffffff;
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
}

/* Media Cards */
.media-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.media-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #201e1d;
}

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

.media-card:hover .media-card-img {
  transform: scale(1.08);
}

.media-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(20, 18, 18, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.media-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.media-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Badges Showcase */
.badge-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.badge-banner-img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
}

/* Quote / Testimonial Cards */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(150, 18, 18, 0.25);
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #f0e6e6;
  width: 36px;
  height: 36px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #dfb746;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.faq-trigger:hover, .faq-item.active .faq-trigger {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

/* Emergency Highlight Cards */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.emergency-card {
  background: var(--surface);
  border: 1px solid #f2c7c7;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.emergency-card.urgent {
  background: #fff8f8;
  border-color: #f7a8a8;
  border-left: 6px solid #dc2626;
}

.emergency-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fdfdfd;
  color: var(--text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(150, 18, 18, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  background: #eefdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* ==========================================================================
   Footer & Complete Sitemap
   ========================================================================== */

.site-footer {
  background: #141212;
  color: #e5e0d8;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--primary);
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-slogan {
  color: #dfb746;
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
}

.footer-about {
  color: #b0a99f;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #b0a99f;
  font-size: 0.88rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #b0a99f;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #dfb746;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #8c857b;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #8c857b;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Floating AI Chat Widget
   ========================================================================== */

.chat-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: var(--primary-gradient);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(150, 18, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.chat-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(150, 18, 18, 0.55);
}

.chat-widget-btn svg {
  width: 28px;
  height: 28px;
}

.chat-badge-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.chat-box {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-box.active {
  display: flex;
}

@media (max-width: 480px) {
  .chat-box {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: unset;
    border-radius: var(--radius-lg);
  }
  .chat-widget-btn {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-header-text h3 {
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
}

.chat-header-text span {
  font-size: 0.72rem;
  color: #ffd8d8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-text span .status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fdfcfb;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.bot .msg-bubble {
  background: #f2eee8;
  color: var(--text-dark);
  border-radius: 16px 16px 16px 4px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.user .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 0.75rem 1rem;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chat-suggestion-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-suggestion-chip:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

/* Inline Chat Contact Form */
.chat-inline-form {
  background: #ffffff;
  border: 1px solid #f2c7c7;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.chat-inline-form h4 {
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.chat-inline-form .form-group {
  margin-bottom: 0.6rem;
}

.chat-inline-form .form-control {
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
}

.chat-input-area {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  background: #fbf9f6;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Dots */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.8rem;
  background: #f2eee8;
  border-radius: 12px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #8e8880;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Scroll Animation Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Table Utilities */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.custom-table th, .custom-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.custom-table th {
  background: #f8f6f2;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

.custom-table tr:last-child td {
  border-bottom: none;
}
