/* Root colors - Default English */
:root {
  --color-primary: #800000; /* Deep Maroon */
  --color-accent: #ffd700; /* Gold */
  --color-support: #f4e1c1; /* Sandstone Beige */
  --color-bg: rgb(249, 240, 227); /* Off-white */
  --color-text-dark: #3b1f1f; /* Darker maroon for text */
  --color-text-light: #5a2a2a; /* Lighter maroon for secondary text */
}

* {
  box-sizing: border-box;
}
body {
  font-family: "Philosopher", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  margin: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:is(:hover, :focus) {
  color: var(--color-accent);
  outline: none;
}

/* Header */
.header {
  background-color: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 0.25rem;
  position: relative;
}

.una-row {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-support);
  text-align: center;
  margin-top: -0.5rem;
}

.title-row {
  display: flex;
  align-items: flex-end;
  width: min(100%, 1200px);
  margin: 0 auto;
  gap: 0.5rem;
}

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

.main-title {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent);
  text-align: left;
  margin-bottom: 0.1rem;
}

.subtitle {
  text-align: left;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-support);
}

.menu {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 0.5rem;
  position: relative;
  z-index: 1002;
}

.language-toggle {
  display: inline-flex;
  gap: 0.12rem;
  padding: 0.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-bg);
  background: var(--color-support);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1002;
}

.lang-option {
  min-width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(128, 0, 0, 0.8);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 0.38rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.lang-option.active {
  background: var(--color-primary);
  color: #fff;
}

/* Navigation */
nav {
  background-color: var(--color-support);
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 0.3rem 0.5rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 0.5rem;
  line-height: 1;
}
.nav-buttons a,
.nav-buttons button {
  background: none;
  color: var(--color-primary);
  border: 0;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-buttons a:hover,
.nav-buttons button:hover,
.nav-buttons a:focus-visible,
.nav-buttons button:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-support);
  outline: none;
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 35px;
  height: 35px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background-color: rgba(255, 215, 0, 0.15);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-support);
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
  transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(59, 31, 31, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(200px, 80vw);
  height: 100vh;
  background: var(--color-support);
  border-right: 3px solid var(--color-primary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 4.5rem 1.5rem 2rem;
  gap: 0.3rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-drawer a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  display: block;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:focus {
  background-color: var(--color-primary);
  color: var(--color-support);
  outline: none;
}

.mobile-nav-drawer-title {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem 0.8rem;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Content */
.content {
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 0.5rem;
  border-radius: 15px;
  color: var(--color-text-dark);
}
.content h3 {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  margin: 0;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.4rem;
}
.content p {
  margin-bottom: 1rem;
  text-align: justify;
  font-weight: normal;
}
.content strong {
  color: var(--color-primary);
}

/* Splash container and items */
.splash-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  padding: 0;
}

/* Collapse splash containers with no visible items (all items are display:none) */
.splash-container:not(:has(.splash-item[style*="display: flex"])) {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
}

.splash-item {
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  flex: 1 1 300px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  color: var(--color-text-dark);
  text-align: left;
}

.splash-item.full-width {
  flex-basis: 100%; /* Span entire width */
}
.splash-item h3 {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  padding: 0 0 0.5rem;
  font-weight: bold;
  font-size: 1.4rem;
}
.splash-item h2 {
  margin: 0;
  padding-bottom: 1rem;
  font-weight: bold;
  font-size: 1.3rem;
}
.splash-item p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}
.splash-item li {
  color: var(--color-text-light);
}
.splash-btn {
  font-family: inherit;
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: left;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}
.splash-btn:focus {
  color: var(--color-bg);
}
.splash-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  outline: none;
}
/* Disabled state */
.splash-btn.disabled {
  pointer-events: none; /* disables clicking */
  opacity: 0.5; /* faded look */
  cursor: not-allowed; /* disabled cursor */
}

.qr-code {
  margin: 0 auto;
  display: block;
  background: var(--color-bg);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(128, 0, 0, 0.3);
}

/* Gallery */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

/* Action buttons */
#record-action {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#record-action button {
  cursor: pointer;
}

@media (max-width: 900px) {
  .header {
    padding: 0.5rem;
  }
  .title-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .title-column {
    width: 100%;
    align-items: center;
  }

  .main-title {
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
  }
  .subtitle {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
  }
  .menu {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .splash-item {
    width: 100%;
  }

  header > nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

/* Footer */
.site-footer {
  background-color: var(--color-support);
  color: var(--color-text-dark);
  border-top: 3px solid var(--color-primary);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 2rem;
  align-items: start;
}

.footer-content h4 {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding: 0 0 0.5rem 0.5rem;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  object-fit: cover;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--color-text-light);
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Pill hover on entire link (icon + text) */
.footer-item a {
  font-size: 1rem;
  color: var(--color-text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  width: fit-content;
}

.footer-item a:hover {
  background-color: var(--color-primary);
  color: var(--color-support);
}

/* Social icons row */
.social-row {
  display: flex;
  gap: 0.8rem;
}

/* Social icon pill hover */
.social-row a {
  width: 45px;
  font-size: 19px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.social-row a:hover {
  background-color: var(--color-primary);
  color: var(--color-support);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  text-align: center;
  padding: 1rem;
  text-align: left;
  padding: 1rem 3cm;
  border-top: 1px solid var(--color-primary);
  font-size: 1rem;
  color: var(--color-text-light);
}

.footer-copyright .footer-item {
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

/* Small screens */
@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 2;
    align-items: center;
  }

  .footer-item {
    text-align: left;
  }
}

/* Floating Chat */
.floating-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.6rem;
}

.floating-chat-toggle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background-color: #2b2b2b;
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  cursor: pointer;
}

.floating-chat-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-chat-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-chat-icon-close {
  display: none;
}

.floating-chat.open .floating-chat-icon-chat {
  display: none;
}

.floating-chat.open .floating-chat-icon-close {
  display: inline-flex;
}

.floating-chat-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  color: #fff;
}

.floating-chat-toggle:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.7);
  outline-offset: 4px;
}

.floating-chat-toggle:focus {
  outline: none;
}

.floating-chat-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.floating-chat.open .floating-chat-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-chat-link {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.floating-chat-toggle,
.floating-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-chat-link i {
  font-size: 1.25rem;
}

.floating-chat-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
  opacity: 0.95;
}

.floating-chat-link,
.floating-chat-link:visited,
.floating-chat-link:active,
.floating-chat-link:hover,
.floating-chat-link:focus,
.floating-chat-link:focus-visible {
  color: #fff;
}

.floating-chat-link.whatsapp {
  background-color: #25d366;
}

.floating-chat-link.youtube {
  background-color: #ff0000;
}

.floating-chat-link.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.floating-chat-link.facebook {
  background-color: #1877f2;
}

@media (max-width: 600px) {
  .floating-chat {
    right: 1rem;
    bottom: 1rem;
  }

  .floating-chat-toggle {
    width: 3rem;
    height: 3rem;
  }

  .floating-chat-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .floating-chat-link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .floating-chat-link i {
    font-size: 1.15rem;
  }
}
