/* ===== THEME VARIABLES ===== */
:root {
  --color-primary: #4A2F22;
  --color-primary-light: #AE8A6F;
  --color-primary-lighter: #C8AB8F;
  --color-secondary: #FDFBF7;
  --color-dark: #2D1D16;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E8E0D0;
  --color-accent: #D4A574;

  --bg-primary: #FDFBF7;
  --bg-secondary: #2D1D16;
  --bg-tertiary: rgba(253, 251, 247, 0.05);

  --text-primary: #333333;
  --text-secondary: #FDFBF7;
  --text-accent: #AE8A6F;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  --border-radius: 14px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
}

/* Dark theme */
[data-theme="dark"] {
  --color-primary: #F5F1ED;
  --color-primary-light: #D4A574;
  --color-primary-lighter: #E8D4C0;
  --color-secondary: #1A1410;
  --color-dark: #0F0A08;
  --color-text: #F5F1ED;
  --color-text-light: #C9BFBA;
  --color-border: #3A2F28;
  --color-accent: #E8D4C0;

  --bg-primary: #1A1410;
  --bg-secondary: #2D2219;
  --bg-tertiary: rgba(245, 241, 237, 0.05);

  --text-primary: #F5F1ED;
  --text-secondary: #1A1410;
  --text-accent: #D4A574;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

html, body {
  height: 100%;
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ===== NAVBAR ===== */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--bg-primary);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
  transition: background-color var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.navbar-modern .nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.navbar-modern .nav-links a {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.navbar-modern .nav-links a:hover,
.navbar-modern .nav-links a.active {
  border-bottom-color: var(--text-accent);
  color: var(--text-accent);
}

.navbar-modern .nav-dropdown {
  position: relative;
}

.navbar-modern .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.navbar-modern .nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.navbar-modern .nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--color-primary);
  font-size: 14px;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.navbar-modern .nav-dropdown-menu a:hover {
  background-color: var(--bg-tertiary);
  text-decoration: none;
  border-bottom: none;
}

.navbar-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-btn:hover {
  background-color: var(--bg-tertiary);
}

/* ===== CONTENT PADDING ===== */
body {
  padding-top: 70px;
}

main {
  min-height: calc(100vh - 70px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-section .hero-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.hero-section .hero-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(74, 47, 34, 0.6);
  z-index: 1;
  transition: background-color var(--transition-base);
}

[data-theme="dark"] .hero-section .hero-tile::before {
  background-color: rgba(15, 10, 8, 0.7);
}

.hero-section .hero-tile:hover::before {
  background-color: rgba(74, 47, 34, 0.75);
}

[data-theme="dark"] .hero-section .hero-tile:hover::before {
  background-color: rgba(15, 10, 8, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 500px;
}

.hero-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background-color: var(--text-accent);
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1em;
  border: 2px solid var(--text-accent);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-cta:hover {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--text-secondary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .hero-section .hero-tile {
    min-height: 350px;
    padding: 40px 30px;
  }

  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }
}

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

.bento-tile {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: all var(--transition-base);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .bento-tile {
  background-color: rgba(245, 241, 237, 0.03);
}

.bento-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.05) 100%);
  pointer-events: none;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-accent);
}

/* Tile size variants */
.bento-tile.size-1x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tile.size-2x1 {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-tile.size-1x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-tile.size-2x2 {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-tile-content {
  position: relative;
  z-index: 1;
}

.bento-tile h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.4em;
}

.bento-tile p {
  color: var(--text-primary);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-tile-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-tile.size-2x2 {
    grid-column: span 4;
  }

  .bento-tile.size-2x1 {
    grid-column: span 4;
  }
}

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

  .bento-tile {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 250px;
    padding: 20px;
  }

  .bento-tile.size-2x2 {
    grid-column: span 2;
  }
}

/* ===== SECTIONS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--bg-primary);
}

.section-dark {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.section h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
  text-align: center;
  color: var(--color-primary);
}

.section-dark h2 {
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 80px 0;
}

.testimonial-item {
  background-color: rgba(245, 241, 237, 0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 20px auto;
  max-width: 700px;
  transition: all var(--transition-base);
}

[data-theme="light"] .testimonial-item {
  background-color: rgba(212, 165, 116, 0.08);
  border-color: rgba(212, 165, 116, 0.2);
}

.testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-item p {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-item cite {
  display: block;
  font-size: 0.95em;
  font-style: normal;
  color: var(--text-accent);
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--color-border);
}

footer h4 {
  color: var(--text-accent);
  margin-bottom: 20px;
  font-size: 1.2em;
}

footer p {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 15px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

footer a:hover {
  border-bottom-color: var(--text-accent);
  color: var(--text-secondary);
  text-decoration: none;
}

footer ul.footer-links {
  list-style: none;
}

footer ul.footer-links li {
  margin-bottom: 10px;
}

footer .footer-bottom {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9em;
  color: var(--text-light);
}

footer .footer-bottom a {
  color: var(--text-secondary);
}

/* ===== FORMS & INPUTS ===== */
input, textarea, select {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color var(--transition-fast);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: rgba(245, 241, 237, 0.08);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-size: 1em;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--text-accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
}

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

.btn-secondary:hover {
  background-color: var(--text-accent);
  color: var(--bg-primary);
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--text-accent);
}

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 60px; padding-bottom: 60px; }

.px-1 { padding-left: 10px; padding-right: 10px; }
.px-2 { padding-left: 20px; padding-right: 20px; }
.px-3 { padding-left: 30px; padding-right: 30px; }

/* ===== RESPONSIVE IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
}

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

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

/* ===== CAROUSEL ===== */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-border);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.carousel-indicators button.active {
  background-color: var(--text-accent);
}

/* ===== GRID UTILITIES ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background-color: white;
    color: black;
  }

  footer {
    page-break-before: avoid;
  }
}
