/* 
 * Samsara Indore - Luxury Hotel Website
 * Design System & Core Styles
 */

/* =========================================
   1. Variables & Design Tokens
   ========================================= */
:root {
  /* Colors */
  --primary-color: #C5A059;
  /* Gold/Bronze - Luxury */
  --primary-dark: #A68545;
  /* Darker Gold for hover */
  --text-color: #333333;
  /* Dark Gray text */
  --text-light: #666666;
  /* Light Gray text */
  --bg-color: #FAFAFA;
  /* Off-white background */
  --bg-white: #FFFFFF;
  /* Pure white */
  --bg-dark: #1A1A1A;
  /* Charcoal for footer/secondary */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 4px;

  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

ul {
  list-style: none;
}

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

/* =========================================
   3. Utilities & Layout
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--primary-color);
}

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

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

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

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

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* =========================================
   4. Components
   ========================================= */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--bg-dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-link {
  color: var(--bg-dark);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: block;
  line-height: 0;
  /* Remove potential extra space */
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Make logo white by default */
  transition: var(--transition);
}

.navbar.scrolled .logo {
  color: var(--bg-dark);
}

.navbar.scrolled .logo img {
  filter: none;
  /* Revert to black on scrolled white navbar */
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--bg-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
  color: var(--bg-dark);
}

/* Cards (Rooms etc.) */
.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.card-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
}

.float-whatsapp {
  background-color: #25D366;
}

.float-phone {
  background-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--bg-white);
  padding: var(--spacing-lg) 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  display: block;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

.footer-col .logo img {
  filter: brightness(0) invert(1);
}

/* Responsive Navbar overrides */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--bg-dark);
    font-size: 1.2rem;
  }
}