/* ============================================
   THEME VARIABLES & ROOT STYLES
   ============================================ */
:root {
  --bg-primary: #fdfbf7;
  --bg-secondary: #f8f6f2;
  --bg-tertiary: #f0ede8;
  --text-primary: #1a1a1a;
  --text-secondary: #444444;
  --text-tertiary: #666666;
  --border-color: #e8e6e1;
  --card-bg: #ffffff;
  --footer-bg: #2d3a32;
  --accent-primary: #2d4a3d;
  --accent-secondary: #d4a574;
  --shadow-color: rgba(0,0,0,0.1);
  --glass-bg: rgba(255,255,255,0.7);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; line-height: 1.2; }
h3 { font-size: 1.75rem; line-height: 1.3; }
h4 { font-size: 1.5rem; line-height: 1.4; }
h5 { font-size: 1.25rem; line-height: 1.4; }
h6 { font-size: 1.1rem; line-height: 1.5; }

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

a:hover {
  color: var(--accent-secondary);
}

/* ============================================
   TYPOGRAPHY & IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Outfit:wght@400;500;600;700&display=swap');

/* ============================================
   NAVBAR & HEADER
   ============================================ */
.navbar {
  background-color: var(--bg-primary) !important;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: var(--transition-smooth);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary) !important;
  letter-spacing: -0.02em;
}

.nav-link {
  color: var(--accent-primary) !important;
  font-weight: 500;
  margin-left: 1rem;
  position: relative;
  padding: 0.5rem 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-secondary) !important;
}

.navbar-toggler {
  border: none;
  color: var(--accent-primary);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--accent-secondary);
}

/* Language & Theme Toggle */
.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.theme-toggle, .lang-toggle {
  background: none;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.theme-toggle:hover, .lang-toggle:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-primary-custom {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.btn-primary-custom:hover {
  background-color: transparent;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-secondary-custom {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.btn-secondary-custom:hover {
  background-color: transparent;
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-outline-primary-custom {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: transparent;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============================================
   BENTO GRID SYSTEM
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
}

.bento-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

/* Grid Span Classes */
.bento-item.span-1 { grid-column: span 1; }
.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-3 { grid-column: span 3; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-12 { grid-column: span 12; }

.bento-item.row-2 { grid-row: span 2; }

/* Responsive Bento Grid */
@media (max-width: 1200px) {
  .bento-item.span-6 { grid-column: span 12; }
  .bento-item.span-4 { grid-column: span 6; }
  .bento-item.span-3 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .bento-item {
    grid-column: span 6 !important;
    grid-row: span 1 !important;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-item {
    grid-column: span 1 !important;
    padding: 1.25rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fdfbf7;
  padding: 120px 0;
  height: auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 74, 61, 0.8) 0%, rgba(45, 74, 61, 0.6) 100%);
  z-index: 1;
}

.hero-banner h1,
.hero-banner p {
  z-index: 2;
  position: relative;
  animation: slideUp 0.8s ease-out;
}

.hero-banner h1 {
  animation-delay: 0.1s;
}

.hero-banner p {
  animation-delay: 0.2s;
}

.hero-banner .btn {
  animation: slideUp 0.8s ease-out 0.3s backwards;
}

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

/* ============================================
   CARDS & SERVICE ITEMS
   ============================================ */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition-smooth);
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--accent-secondary);
}

.card-body {
  padding: 2rem;
}

.service-icon {
  color: var(--accent-primary);
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.card:hover .service-icon {
  color: var(--accent-secondary);
  transform: scale(1.1);
}

/* ============================================
   ACCORDION & DISCLOSURE
   ============================================ */
.accordion .card-header {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.accordion .card-header:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-secondary);
}

.accordion .card-header button.btn-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
}

.accordion .card-header .btn-link:hover,
.accordion .card-header .btn-link:not(.collapsed) {
  color: var(--accent-secondary);
}

.accordion .card-body {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background-color: var(--card-bg);
  border-left: 5px solid var(--accent-secondary);
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-left-color: var(--accent-primary);
  transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--footer-bg) !important;
  color: #e0e0e0;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: #e0e0e0;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-secondary);
}

footer h5 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookieConsentBanner {
  background-color: var(--footer-bg) !important;
  color: #e0e0e0;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 12px var(--shadow-color);
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.img-fluid {
  border-radius: 12px;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */
section {
  padding: 4rem 0;
}

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

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fdfbf7;
  padding: 4rem 0;
  text-align: center;
  border-radius: 16px;
  margin: 3rem 0;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.cta-banner h2 {
  color: #fdfbf7;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: #f0ede8;
  margin-bottom: 2rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-control {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.form-control:focus {
  background-color: var(--card-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(45, 74, 61, 0.1);
}

.form-group label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.shadow-sm {
  box-shadow: 0 2px 8px var(--shadow-color);
}

.shadow {
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero-banner {
    min-height: 400px;
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.2rem; }

  section {
    padding: 2rem 0;
  }

  .hero-banner {
    min-height: 300px;
    padding: 60px 0;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  footer,
  #cookieConsentBanner,
  .btn {
    display: none;
  }
}
