/* ============================================
   Amanecer Yoga Studio - Premium Styles
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ============================================
   CSS Variables - Premium Brand Colors
   ============================================ */
:root {
  --midnight-blue: #1A2B4C;
  --gold-accent: #C9A227;
  --ivory-white: #F9F6F1;
  --warm-sand: #E7DCC8;
  --emerald-green: #2E6F59;

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

  --transition-smooth: all 0.25s ease;
  --shadow-soft: 0 4px 20px rgba(26, 43, 76, 0.1);
  --shadow-medium: 0 8px 30px rgba(26, 43, 76, 0.15);
  --shadow-strong: 0 12px 40px rgba(26, 43, 76, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--midnight-blue);
  background-color: var(--ivory-white);
  overflow-x: hidden;
  min-width: 320px;
}

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

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

ul {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--midnight-blue);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.text-gold { color: var(--gold-accent); }
.text-emerald { color: var(--emerald-green); }
.text-center { text-align: center; }

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--gold-accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 43, 76, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}

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

.navbar-logo img {
  height: 50px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo img {
  height: 40px;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: white;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.25s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 43, 76, 0.7), rgba(46, 111, 89, 0.6));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeUp 1s ease-out;
}

.hero-title {
  color: white;
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: var(--warm-sand);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--gold-accent);
  color: var(--midnight-blue);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
  background: #B89120;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--midnight-blue);
}

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

.btn-outline:hover {
  background: var(--gold-accent);
  color: white;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  height: 100%;
}

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--midnight-blue);
}

.card-text {
  color: #666;
  line-height: 1.7;
}

/* ============================================
   Grid System
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--midnight-blue);
}

.form-control {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--warm-sand);
  background: white;
  color: var(--midnight-blue);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

.form-error {
  color: #c92727;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error {
  border-color: #c92727;
}

.form-control.error + .form-error {
  display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--midnight-blue);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-section h3 {
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--warm-sand);
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--gold-accent);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.2);
  border-radius: 50%;
  color: var(--gold-accent);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--gold-accent);
  color: var(--midnight-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--warm-sand);
  font-size: 0.9rem;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-strong);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-up {
  animation: fadeUp 0.8s ease-out;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.bg-midnight { background-color: var(--midnight-blue); }
.bg-sand { background-color: var(--warm-sand); }
.bg-ivory { background-color: var(--ivory-white); }

.text-white { color: white; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--midnight-blue);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-strong);
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu a {
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

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

  section {
    padding: 3rem 0;
  }

  .hero {
    height: 90vh;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container, .container-wide {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .btn {
    padding: 0.875rem 2rem;
  }
}

/* ============================================
   Loading State
   ============================================ */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold-accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar, .footer, .cookie-banner {
    display: none;
  }

  body {
    background: white;
  }

  a {
    text-decoration: underline;
  }
}
