:root {
  --bg-primary: #F5F3F0;
  --bg-secondary: #FFFFFF;
  --text-primary: #373737;
  --text-secondary: #666666;
  --accent-primary: #A87D56;
  --accent-secondary: #C75D41;
  --nav-bg: #2D3B4C;
  --nav-text: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
  --border-color: #E5E0DA;
  --overlay-dark: rgba(45,59,76,0.7);
  --grid-bg: linear-gradient(135deg, #F5F3F0 0%, #FFFFFF 100%);
  --accent-gradient: linear-gradient(135deg, #A87D56 0%, #C75D41 100%);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

/* NAVBAR */
.navbar {
  background-color: var(--nav-bg) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1030;
  padding: 0.8rem 0;
}

.navbar-brand {
  font-family: 'Lora', serif;
  font-size: 1.8rem !important;
  font-weight: 700;
  color: var(--nav-text) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--nav-text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.navbar-nav .dropdown-menu {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dropdown-item {
  color: var(--text-primary);
  padding: 0.6rem 1.5rem;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
}

.navbar-toggler {
  border: 1px solid var(--nav-text);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 163, 115, 0.25);
}

/* THEME & LANGUAGE CONTROLS */
.nav-controls {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
  align-items: center;
}

#themeToggle, .lang-switch {
  background: none;
  border: 2px solid var(--nav-text);
  color: var(--nav-text);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-weight: 600;
}

#themeToggle:hover, .lang-switch:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 120px;
  box-shadow: var(--card-shadow);
  padding: 0.5rem 0;
  z-index: 1;
  border-radius: 8px;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.lang-dropdown.active .lang-menu {
  display: block;
}

.lang-menu button {
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.lang-menu button:hover {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
}

/* MAIN CONTENT */
main {
  margin-top: 80px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grid-bg);
  overflow: hidden;
  animation: fadeInHero 0.8s ease-out;
}

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

.hero-section img {
  opacity: 0.25;
  object-fit: cover;
}

.hero-split-screen {
  margin-top: 80px;
  animation: fadeInHero 0.8s ease-out;
}

.hero-split-screen > div {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-split-screen h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-split-screen p {
  font-size: 1.25rem;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-split-screen .btn {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

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

/* BENTO GRID LAYOUT */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

.bento-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.bento-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

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

.bento-item.wide {
  grid-column: span 2;
}

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

.bento-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.bento-item:hover .bento-image {
  transform: scale(1.05);
}

/* BUTTONS */
.btn {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 125, 86, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 93, 65, 0.3);
}

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

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* CARDS */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.8rem;
}

.card-title {
  color: var(--accent-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
}

/* SECTIONS */
section {
  padding: 4rem 0;
  animation: fadeInSection 0.6s ease-out;
}

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

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

/* TYPOGRAPHY */
h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: slideInUnderline 0.6s ease-out;
}

@keyframes slideInUnderline {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

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

.lead {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* FOOTER */
footer {
  background-color: var(--nav-bg);
  color: var(--nav-text);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}

footer h5 {
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

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

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* COOKIE BANNER */
#cookieConsentBanner {
  background-color: var(--nav-bg);
  border-top: 2px solid var(--accent-primary);
  animation: slideInUp 0.5s ease-out;
}

/* ACCORDION */
.accordion-button {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-primary);
  box-shadow: none;
  color: var(--accent-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(168, 125, 86, 0.25);
  border-color: var(--accent-primary);
}

.accordion-body {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* TESTIMONIALS */
.testimonial {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent-primary);
}

.testimonial p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--accent-secondary);
}

/* IMAGES */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* FORMS */
.form-control, .form-select, textarea {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus, textarea:focus {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(168, 125, 86, 0.25);
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-split-screen h1 {
    font-size: 2rem;
  }

  .hero-split-screen {
    flex-direction: column;
  }

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

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

  .bento-item.large,
  .bento-item.wide {
    grid-column: span 1;
  }

  .nav-controls {
    margin-left: 1rem;
    gap: 0.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .navbar {
    padding: 0.6rem 0;
  }

  main {
    margin-top: 70px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h2::after {
    width: 60px;
  }

  .hero-split-screen h1 {
    font-size: 1.5rem;
  }

  .bento-grid-4 {
    grid-template-columns: 1fr;
  }

  .bento-item {
    padding: 1.5rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .navbar-brand {
    font-size: 1.3rem !important;
  }

  main {
    margin-top: 65px;
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* FOCUS VISIBLE */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
