/**
 * Modern UI Enhancements for Salmiya Oasis
 * Version: 2025
 *
 * Design Principles:
 * - Clean, modern design
 * - Brand colors only (no heavy effects)
 * - High contrast for readability
 * - Generous padding and spacing
 * - Larger text sizes
 */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* Original Brand Colors */
  --primary-color: #407F76;
  --secondary-color: #C69A35;
  --light-gray: #F4F4F4;
  --dark-gray: #333333;
  --white: #FFFFFF;
  --black: #000000;

  /* Text Colors - High Contrast */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #666666;
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;

  /* Spacing System - Balanced */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Typography - Reasonable sizes */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 2rem;        /* 32px */
  --font-size-4xl: 2.5rem;      /* 40px */
  --font-size-5xl: 3rem;        /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--white);
}

/* Selection Styling */
::selection {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* ============================================
   BUTTONS - CLEAN STYLES (2 TYPES ONLY)
   ============================================ */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-expand,
input[type="submit"],
input[type="button"],
a.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  user-select: none;
}

/* Primary Button - Teal */
.btn-primary,
button[type="submit"] {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(64, 127, 118, 0.2);
}

.btn-primary:hover,
button[type="submit"]:hover {
  background-color: #2d5f58;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 127, 118, 0.3);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* Secondary Button - Golden */
.btn-secondary,
.btn-cta,
.btn-expand {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(198, 154, 53, 0.2);
}

.btn-secondary:hover,
.btn-cta:hover,
.btn-expand:hover {
  background-color: #b88a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 154, 53, 0.3);
}

.btn-secondary:active,
.btn-cta:active,
.btn-expand:active {
  transform: translateY(0);
}

/* Disabled State */
button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ============================================
   CARDS - CLEAN STYLES
   ============================================ */
.card,
.panel,
.box,
.content-box {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header,
.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.card-body,
.card-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ============================================
   FORMS - CLEAN STYLES
   ============================================ */
.form-group,
.form-field {
  margin-bottom: 1.5rem;
}

label,
.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="file"],
textarea,
select,
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 48px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 127, 118, 0.1);
}

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

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23333333' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Input States */
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--light-gray);
}

input.error {
  border-color: #dc3545;
}

input.success {
  border-color: #28a745;
}

/* ============================================
   HEADER - CLEAN MODERN STYLE
   ============================================ */
header,
.header,
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-color);
  /* box-shadow removed */
  padding: 0;
  transition: all var(--transition-base);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

nav a:hover,
.nav-link:hover {
  color: var(--secondary-color);
  background: transparent;
}

nav a.active,
.nav-link.active {
  color: var(--secondary-color);
  background-color: transparent;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 500px;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 !important;
  margin-bottom: 0;
}

.hero-video {
  border-radius: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 3rem;
  max-width: 900px;
}

.hero-title,
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero-subtitle,
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  line-height: var(--line-height-normal);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   TABLE - NEUMORPHISM
   ============================================ */
table,
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* box-shadow removed */
}

thead th {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  font-weight: var(--font-weight-bold);
  text-align: left;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  letter-spacing: 0.02em;
}

tbody td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid #ddd;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

tbody tr:hover {
  background: var(--light-gray);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge,
.tag,
.label {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  /* box-shadow removed */
}

.badge-primary {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: var(--text-on-secondary);
}

/* ============================================
   ALERTS
   ============================================ */
.alert,
.notification {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  /* box-shadow removed */
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e3a8a;
  border-left: 4px solid #3b82f6;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  background: var(--white);
  border-radius: var(--radius-xl);
  /* box-shadow removed */
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  padding: var(--spacing-xl);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing */
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-dark { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

/* Text Sizes */
.text-sm { font-size: var(--font-size-base); }
.text-base { font-size: var(--font-size-lg); }
.text-lg { font-size: var(--font-size-xl); }
.text-xl { font-size: var(--font-size-2xl); }
.text-2xl { font-size: var(--font-size-3xl); }

/* Font Weights */
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flex */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Background Colors */
.bg-primary { background-color: var(--primary-color); color: var(--text-on-primary); }
.bg-secondary { background-color: var(--secondary-color); color: var(--text-on-secondary); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--dark-gray); color: var(--white); }
.bg-white { background-color: var(--white); }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Removed neumorphic effects */

/* ============================================
   GRID SYSTEM
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--spacing-md) * -1);
  margin-right: calc(var(--spacing-md) * -1);
}

.col {
  flex: 1;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1.125rem;
    --font-size-5xl: 4.5rem;
  }
}

@media (max-width: 767px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }

  .hero-title { font-size: var(--font-size-3xl); }
  .hero-subtitle { font-size: var(--font-size-base); }

  .card,
  .panel,
  .box {
    padding: var(--spacing-lg);
  }

  button,
  .btn {
    width: 100%;
  }

  section {
    padding: var(--spacing-xl) 0;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .no-print,
  nav,
  button,
  .btn {
    display: none !important;
  }
}

/* ============================================
   ENHANCED UI COMPONENTS - BRAND COLORS
   ============================================ */

/* Button animations are now handled by base button styles at top of file */

/* Enhanced Accordion Cards - Image + Text Side by Side */
.service-card-accordion {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--secondary-color);
  display: flex;
  gap: 5px;
  padding: 0.4em;
  margin: var(--spacing-lg) 0;
  min-height: 400px;
}

.service-card-accordion .accordion-item {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.5s;
  background: var(--white);
  border: 2px solid var(--secondary-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

.service-card-accordion .accordion-item:hover {
  flex: 3;
}

.service-card-accordion .accordion-item .accordion-image {
  width: 40%;
  height: 100%;
  overflow: hidden;
}

.service-card-accordion .accordion-item .accordion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-accordion .accordion-item .accordion-text {
  flex: 1;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-accordion .accordion-item .accordion-text h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.service-card-accordion .accordion-item .accordion-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Enhanced Hover Card with Images */
.card-container {
  width: 100%;
  height: 320px;
  position: relative;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.card-container::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: transparent;
  transform: translate3d(0, 0, 0) scale(0.95);
}

.card {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.card .img-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: scale 0.6s, rotate 0.6s, filter 1s;
}

.card .img-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #e8e8e8;
  padding: 20px 24px;
  line-height: 1.5;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  background: rgba(0, 0, 0, 0.7);
}

.card .content .heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card .content p {
  color: var(--white);
}

.card:hover .content {
  opacity: 1;
  transform: translateY(0);
}

.card:hover .img-content {
  scale: 1.2;
  filter: blur(5px);
}

.card:hover .img-content img {
  opacity: 0.3;
}

/* Enhanced Contact Form */
.contact-form-enhanced {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: transparent;
  border-radius: 0;
  /* box-shadow removed */
}

.contact-form-enhanced h2 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.contact-form-enhanced .form-group {
  margin-bottom: var(--spacing-lg);
}

.contact-form-enhanced label {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
}

.contact-form-enhanced input,
.contact-form-enhanced textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  /* box-shadow removed */
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.contact-form-enhanced input:focus,
.contact-form-enhanced textarea:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.contact-form-enhanced button[type="submit"] {
  width: 100%;
  background: var(--primary-color);
  color: var(--text-on-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-form-enhanced button[type="submit"]:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  /* box-shadow removed */
}

/* Animated Navigation with SVG Border */
.nav-animated {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 60px;
  border-radius: 40px;
  margin: var(--spacing-lg) auto;
}

.nav-animated .nav-outline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-animated .nav-rect {
  stroke-dashoffset: 5;
  stroke-dasharray: 0 0 10 40 10 40;
  transition: 0.5s;
  stroke: var(--secondary-color);
  stroke-width: 3;
}

.nav-animated .nav-container-animated {
  position: absolute;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: var(--spacing-sm);
  border-radius: 40px;
  /* box-shadow removed */
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.nav-animated .nav-btn-animated {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  white-space: nowrap;
}

.nav-animated .nav-btn-animated:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.nav-animated .nav-container-animated:hover .nav-outline .nav-rect {
  transition: 999999s;
  stroke-dashoffset: 1;
  stroke-dasharray: 0;
}

.nav-animated .nav-btn-animated:hover ~ .nav-outline .nav-rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 0 10 40 10 40;
  transition: 0.5s !important;
}

/* Three Body Loader */
.loader-three-body {
  --loader-size: 35px;
  --loader-speed: 0.8s;
  --loader-color: var(--secondary-color);
  position: relative;
  display: inline-block;
  height: var(--loader-size);
  width: var(--loader-size);
  animation: loader-spin calc(var(--loader-speed) * 2.5) infinite linear;
}

.loader-three-body__dot {
  position: absolute;
  height: 100%;
  width: 30%;
}

.loader-three-body__dot:after {
  content: '';
  position: absolute;
  height: 0%;
  width: 100%;
  padding-bottom: 100%;
  background-color: var(--loader-color);
  border-radius: 50%;
}

.loader-three-body__dot:nth-child(1) {
  bottom: 5%;
  left: 0;
  transform: rotate(60deg);
  transform-origin: 50% 85%;
}

.loader-three-body__dot:nth-child(1)::after {
  bottom: 0;
  left: 0;
  animation: loader-wobble1 var(--loader-speed) infinite ease-in-out;
  animation-delay: calc(var(--loader-speed) * -0.3);
}

.loader-three-body__dot:nth-child(2) {
  bottom: 5%;
  right: 0;
  transform: rotate(-60deg);
  transform-origin: 50% 85%;
}

.loader-three-body__dot:nth-child(2)::after {
  bottom: 0;
  left: 0;
  animation: loader-wobble1 var(--loader-speed) infinite
     calc(var(--loader-speed) * -0.15) ease-in-out;
}

.loader-three-body__dot:nth-child(3) {
  bottom: -5%;
  left: 0;
  transform: translateX(116.666%);
}

.loader-three-body__dot:nth-child(3)::after {
  top: 0;
  left: 0;
  animation: loader-wobble2 var(--loader-speed) infinite ease-in-out;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-wobble1 {
  0%, 100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-66%) scale(0.65);
    opacity: 0.8;
  }
}

@keyframes loader-wobble2 {
  0%, 100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(66%) scale(0.65);
    opacity: 0.8;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 767px) {
  /* Contact Form */
  .contact-form-enhanced {
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
  }

  /* Accordion Card */
  .service-card-accordion {
    flex-direction: column;
    min-height: auto;
    height: auto;
  }

  .service-card-accordion .accordion-item {
    min-height: 80px;
  }

  .service-card-accordion .accordion-item .accordion-label {
    transform: rotate(0);
    min-width: auto;
  }

  .service-card-accordion .accordion-item:hover .accordion-label {
    font-size: var(--font-size-lg);
  }

  /* Flip Card */
  .flip-card {
    min-height: 200px;
  }

  /* Animated Nav */
  .nav-animated {
    max-width: 100%;
    min-height: auto;
  }

  .nav-animated .nav-container-animated {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .nav-animated .nav-btn-animated {
    flex: 1 1 45%;
    text-align: center;
    padding: var(--spacing-sm);
  }

  /* CTA Buttons */
  .cta,
  .btn-cta,
  .btn-expand {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .service-card-accordion {
    min-height: 250px;
  }

  .nav-animated {
    max-width: 90%;
  }

  .flip-card {
    min-height: 230px;
  }
}

/* ============================================
   GOLDEN FORM CONTAINER
   ============================================ */
.form-container-golden {
  background: var(--white);
  border: 3px solid var(--secondary-color);
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(198, 154, 53, 0.1);
}

.form-container-golden form {
  background: transparent;
}

/* ============================================
   NAVBAR GOLDEN HOVER
   ============================================ */
.nav a:hover,
.nav li a:hover {
  color: var(--secondary-color) !important;
  opacity: 1 !important;
}

/* ============================================
   SERVICES HERO ENHANCED
   ============================================ */
.services-hero-enhanced {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d5f58 100%);
  background-image: url('/img/services/_DSC3388.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: var(--spacing-2xl) 0;
  overflow: hidden;
}

.services-hero-enhanced .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(64, 127, 118, 0.9) 0%, rgba(45, 95, 88, 0.85) 100%);
  z-index: 1;
}

.services-hero-enhanced .container {
  position: relative;
  z-index: 2;
}

.services-hero-enhanced .hero-content {
  text-align: center;
  color: var(--white);
}

.services-hero-enhanced h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-enhanced .hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.95);
}

.services-hero-enhanced .hero-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.services-hero-enhanced .hero-service-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(198, 154, 53, 0.3);
  border-radius: 15px;
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.services-hero-enhanced .hero-service-item:hover {
  background: rgba(198, 154, 53, 0.2);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.services-hero-enhanced .hero-service-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.services-hero-enhanced .hero-service-item h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.services-hero-enhanced .hero-service-item p {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.services-hero-enhanced .hero-cta {
  margin-top: var(--spacing-xl);
}

.services-hero-enhanced .btn-cta {
  background: var(--secondary-color);
  color: var(--white);
  font-size: var(--font-size-lg);
  padding: 1rem 3rem;
}

.services-hero-enhanced .btn-cta:hover {
  background: #b88a2d;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .services-hero-enhanced {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .services-hero-enhanced h1 {
    font-size: var(--font-size-3xl);
  }

  .services-hero-enhanced .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .services-hero-enhanced .hero-services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}
