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

:root {
  /* Ultra-Premium Bright Palette */
  --primary-color: #d32f2f;      /* Elegant corporate red */
  --primary-hover: #b71c1c;
  --secondary-color: #1e293b;    /* Slate dark */
  --secondary-hover: #0f172a;
  --accent-color: #f59e0b;       /* Sophisticated gold/amber */
  --accent-hover: #d97706;

  /* Typography */
  --text-primary: #1e293b;       /* Slate 800 */
  --text-muted: #64748b;         /* Slate 500 */
  --bg-color: #ffffff;
  --bg-subtle: #f8fafc;          /* Slate 50 */
  --bg-muted: #f1f5f9;           /* Slate 100 */
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  /* Soft Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px -5px rgba(0,0,0,0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.08);

  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --navbar-height: 90px;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  --radius-xl: 28px;
}

/* =========================================
   Base Rules
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

p {
  margin-bottom: 24px;
}

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

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

/* Strict Spacing Rules */
section {
  padding: 100px 0;
  position: relative;
}

/* =========================================
   Utility Classes & Overrides
   ========================================= */
.bg-subtle { background-color: var(--bg-subtle) !important; }
.bg-muted { background-color: var(--bg-muted) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-primary { color: var(--primary-color) !important; }

/* Elegant Solid Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
  color: #fff;
}

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

.btn-outline-primary:hover {
  background: var(--bg-subtle);
  color: var(--primary-hover);
  transform: translateY(-2px);
  border-color: var(--primary-hover);
}

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

.btn-white:hover {
  background: var(--bg-subtle);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Forms overrides */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
  background-color: var(--bg-color);
  outline: none;
}

/* Typography Hierarchy */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 32px auto 0;
}

/* =========================================
   Top Bar (Light version)
   ========================================= */
.top-bar {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.top-bar a {
  color: var(--secondary-color);
  transition: var(--transition-fast);
}
.top-bar a:hover { color: var(--primary-color); }
.top-bar .fa-envelope, .top-bar .fa-phone-alt { color: var(--primary-color); }

/* =========================================
   Navbar (Permanent Elegant Light)
   ========================================= */
.navbar {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: fixed;
  top: 36px;  /* Height of top-bar to keep it visible while scrolled top */
  left: 0; right: 0;
  z-index: 1030;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  height: 55px;
  transition: var(--transition-smooth);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.navbar-brand .brand-text span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  padding: 8px 12px !important;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.navbar .btn {
  padding: 8px 24px;
  font-size: 0.9rem;
}

.nav-item { position: relative; }
.nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 16px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link:hover::before, .nav-link.active::before {
  width: 24px;
}

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

/* Hover Dropdown for Desktop */
@media (min-width: 1200px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeUp 0.3s forwards;
  }
}

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

@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    margin-top: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg-muted);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Lightened overlay for better contrast and cleaner look */
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.3) 100%);
  z-index: 1;
}

.hero img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 180px 0 80px 0; /* Extra padding top to account for permanent white navbar */
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero-eyebrow i { color: var(--accent-color); }

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff !important;
  letter-spacing: -1px;
}

.hero h1 .accent {
  color: var(--accent-color); /* Switching from gradient text to elegant solid gold */
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #f1f5f9;
  font-weight: 400;
  line-height: 1.8;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================
   UI Components
   ========================================= */

/* Glass Quick Link Panel */
.glass-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

/* Premium Cards */
.premium-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: var(--bg-subtle);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.premium-card:hover .icon-box {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

/* Gallery Hover Zoom */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--bg-muted);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Facilities Alternating Sections */
.facility-block {
  padding: 80px 0;
}

.facility-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--bg-muted);
}

.facility-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   Footer (Clean Light Layout)
   ========================================= */
.footer {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 40px 0 16px;
  border-top: 1px solid #e2e8f0;
}

.footer-heading {
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
}
.footer-list li { margin-bottom: 16px; }

.footer-link {
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-link::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--primary-color);
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateX(-10px);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}
.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.social-circle {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--secondary-color);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: var(--transition-smooth);
}
.social-circle:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* =========================================
   Animations
   ========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* WhatsApp Floating */
.floating-whatsapp {
  position: fixed;
  bottom: 40px; right: 40px;
  width: 65px; height: 65px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center; align-items: center;
  font-size: 34px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  color: white;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Sub-page Headers */
.inner-header {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-muted);
  padding-top: 100px;
  overflow: hidden;
}
.inner-header img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.inner-header::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30, 41, 59, 0.75); z-index: 1;
}

.inner-header-content { position: relative; z-index: 2; }
.inner-header h1 { font-size: 4rem; color: #fff !important; margin-bottom: 16px; }

.breadcrumb-premium {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
}
.breadcrumb-premium .breadcrumb-item a { color: var(--accent-color); font-weight: 500; }
.breadcrumb-premium .breadcrumb-item.active { color: #f8fafc; }
.breadcrumb-premium .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
