/* =========================================
   1. CSS VARIABLES (Merged from all files)
   ========================================= */
:root {
  /* Colors */
  --primary: #81001c;
  --primary-container: #a6192e;
  --on-primary: #ffffff;
  --primary-fixed: #ffdad9;
  --secondary: #515f7a;
  --tertiary: #735c00;
  --tertiary-fixed: #ffe088;

  --background: #fcf9f6;
  --on-background: #1c1c1a;

  --surface: #fcf9f6;
  --surface-low: #f6f3f0;
  --surface-lowest: #ffffff;
  --surface-high: #eae8e5;
  --surface-container: #f0edea;
  --surface-highest: #e5e2df;

  --on-surface: #1c1c1a;
  --on-surface-variant: #594040;
  --outline-variant: #e1bebe;
  --surface-container-low: #f6f3f0;
  --surface-container-lowest: #ffffff;
  --surface-dim: #dcdad7;
  --surface-variant: #e5e2df;

  --outline: #8d7070;
  --outline-variant: #e1bebe;

  /* Typography */
  --font-headline: "Noto Serif", serif;
  --font-body: "Inter", sans-serif;

  /* Layout & Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* =========================================
   2. BASE RESET & TYPOGRAPHY
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
}

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

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 767px) {
  .container {
    padding: 0 1.5rem;
  }
}

.hidden {
  display: none !important;
}

.shadow-large {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.shadow-glow {
  box-shadow: 0 8px 24px rgba(129, 0, 28, 0.15);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

.icon-fill {
  font-variation-settings: "FILL" 1;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
}

.btn:active {
  transform: scale(0.95);
}

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

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

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

.btn-full {
  width: 100%;
}

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

.btn-outline-white {
  border: 2px solid var(--surface-lowest);
  color: var(--surface-lowest);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  border: 2px solid rgba(225, 190, 190, 0.5);
  color: var(--secondary);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.flex-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(252, 249, 246, 0.85);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(225, 190, 190, 0.2);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 85%;
  height: 100%;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  padding-right: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90%;
}

.logo-icon {
  max-height: 100%;
}

.logo-title {
  padding-left: 0.5vw;
  height: 100%;
  align-content: center;
  border-left: 2px solid var(--primary);
}

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  display: none;
}

@media (min-width: 1024px) {
  .nav-btn {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: block;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 1rem 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 49;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .nav-links.nav-open a {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-low);
  }

  .nav-links.nav-open a:last-child {
    border-bottom: none;
  }
}

/* =========================================
   6. FOOTER
   ========================================= */
.footer {
  background-color: var(--surface-low);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-background);
  margin-bottom: 1.5rem;
}

.footer-contact {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--surface-lowest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-links h3 {
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

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

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--secondary);
  font-size: 0.875rem;
  transition:
    color 0.3s,
    text-decoration-color 0.3s;
}

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

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(225, 190, 190, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-badges {
  display: flex;
  gap: 2rem;
}

@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366; /* Official WhatsApp Green */
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
