/* ===========================
   STYLE 2: HIGH-CONVERTING BOUTIQUE HOTEL DESIGN
   Modern, Engaging, Conversion-Focused
   Motel 6 Official Brand Colors
   =========================== */

/* ===========================
   CSS VARIABLES - MOTEL 6 BRAND + BOUTIQUE STYLE
   =========================== */
:root {
  /* Official Motel 6 Brand Colors */
  --motel6-red: #EE2722;
  --motel6-red-dark: #C41E1A;
  --motel6-red-light: #FF5043;
  --motel6-blue: #1476C6;
  --motel6-blue-dark: #0F5A9E;
  --motel6-blue-light: #1989E3;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --cream: #FBF9F6;
  --light-gray: #E5E7EB;
  --gray: #6B7280;
  --dark-gray: #374151;
  --charcoal: #1F2937;
  --black: #111827;

  /* Accent Colors */
  --gold: #D4AF37;
  --warm-beige: #F5F1E8;
  --success-green: #10B981;

  /* Shadows - Layered for depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.22);

  /* Border Radius - SQUARE EDGES */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 72px;
  --spacing-2xl: 96px;

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   GLOBAL RESET
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   BASE STYLES
   =========================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 90px 0 0; /* Header spacing, no footer padding for sticky bar */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Fixed Background Image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.28;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--motel6-blue);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.8;
}

a {
  color: var(--motel6-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--motel6-blue-dark);
}

strong, b {
  font-weight: 700;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1440px;
}

.container-full {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ===========================
   SECTIONS
   =========================== */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

section.section-hero {
  padding: 0;
}

section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

/* Elegant underline with gradient */
section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--motel6-blue), var(--motel6-blue-light));
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: linear-gradient(135deg, var(--motel6-blue) 0%, var(--motel6-blue-dark) 100%);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.section-red {
  background: linear-gradient(135deg, var(--motel6-blue) 0%, var(--motel6-blue-dark) 100%);
  color: var(--white);
}

.section-red h2,
.section-red h3,
.section-red p {
  color: var(--white);
}

/* ===========================
   BUTTONS - CONVERSION FOCUSED
   =========================== */
.button-primary,
.button-secondary,
.button-outline,
.button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.button-primary {
  background: var(--motel6-blue);
  color: var(--white);
  border-color: var(--motel6-blue);
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: var(--motel6-blue-dark);
  border-color: var(--motel6-blue-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.button-primary:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background: var(--motel6-blue);
  color: var(--white);
  border-color: var(--motel6-blue);
  box-shadow: var(--shadow-md);
}

.button-secondary:hover {
  background: var(--motel6-blue-dark);
  border-color: var(--motel6-blue-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.button-outline {
  background: transparent;
  color: var(--motel6-blue);
  border-color: var(--motel6-blue);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--motel6-blue);
  color: var(--white);
  border-color: var(--motel6-blue);
  box-shadow: var(--shadow-md);
}

.button-white {
  background: var(--white);
  color: var(--motel6-blue);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}

.button-white:hover {
  background: var(--cream);
  color: var(--motel6-blue-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.button-large {
  padding: 20px 48px;
  font-size: 1.125rem;
}

.button-small {
  padding: 12px 28px;
  font-size: 0.9375rem;
}

.button-block {
  display: flex;
  width: 100%;
}

/* Icon inside button */
.button-primary i,
.button-secondary i,
.button-outline i {
  font-size: 1.125rem;
}

/* ===========================
   CARDS - MODERN & ENGAGING
   =========================== */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-8px);
  border-color: var(--motel6-blue);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-elevated:hover {
  box-shadow: var(--shadow-2xl);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--motel6-blue);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--motel6-blue);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-secondary);
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  line-height: 1.7;
}

.card-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
}

/* ===========================
   HERO SECTION - ENGAGING & BOLD
   =========================== */
.hero {
  position: relative;
  height: clamp(320px, 48vh, 480px);
  width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 118, 198, 0.225) 0%,
    rgba(20, 118, 198, 0.195) 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0 0 var(--spacing-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   INTRO TEXT
   =========================== */
.intro-text {
  background: var(--cream);
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
}

.intro-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--motel6-blue), var(--motel6-blue-light));
  border-radius: 2px;
}

.intro-text p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--dark-gray);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

/* ===========================
   FEATURE BOXES
   =========================== */
.feature-box {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--light-gray);
}

.feature-box:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--motel6-blue);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--motel6-blue), var(--motel6-blue-light));
  border-radius: 50%;
  color: var(--white);
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--motel6-blue);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-secondary);
}

.feature-text {
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ===========================
   TRUST SIGNALS
   =========================== */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin: var(--spacing-xl) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.trust-badge i {
  font-size: 1.5rem;
  color: var(--motel6-blue);
}

.trust-badge-text {
  font-weight: 600;
  color: var(--dark-gray);
}

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.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); }

.mt-0 { margin-top: 0 !important; }
.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); }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.text-white { color: var(--white) !important; }
.text-red { color: var(--motel6-blue) !important; }
.text-blue { color: var(--motel6-blue) !important; }

.bg-white { background: var(--white) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-red { background: var(--motel6-blue) !important; }
.bg-blue { background: var(--motel6-blue) !important; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 40px;
    --spacing-xl: 56px;
  }

  section {
    padding: var(--spacing-xl) 0;
  }

  .hero {
    height: clamp(350px, 50vh, 500px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .button-primary,
  .button-secondary,
  .button-outline,
  .button-white {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .button-large {
    padding: 16px 40px;
    font-size: 1.0625rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .button-primary,
  .hero-buttons .button-white {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .hero {
    height: clamp(300px, 45vh, 400px);
  }

  .intro-text p {
    font-size: 1.0625rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .card-body {
    padding: var(--spacing-md);
  }
}
