/* ============================================================ */
/*                      COMBINED SITE STYLES                    */
/*   Consolidates styles, navbar, tables, TOC, reviews, etc.    */
/* ============================================================ */

/* ================================================== */
/* 0) FONTS                                           */
/* ================================================== */
@font-face {
  font-family: "Montserrat";
  src: url(/fonts/Montserrat-Regular.woff2) format("woff2"),
    url(/fonts/Montserrat-Regular.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url(/fonts/Montserrat-SemiBold.woff2) format("woff2"),
    url(/fonts/Montserrat-SemiBold.woff) format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url(/fonts/Montserrat-Bold.woff2) format("woff2"),
    url(/fonts/Montserrat-Bold.woff) format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Theme tokens */
:root {
  --text: #e9edf3;
  --card-edge: rgba(255, 255, 255, 0.08);
  --accent: #9de9ff;

  --fs-xsmall: clamp(10px, 1vw, 12px);
  --fs-small: clamp(12px, 1.2vw, 14px);
  --fs-base: clamp(13px, 1.3vw, 15px);
  --fs-medium: clamp(15px, 1.6vw, 18px);
  --fs-large: clamp(18px, 2vw, 22px);
  --fs-xlarge: clamp(22px, 3vw, 34px);
}

/* ================================================== */
/* GLOBAL RESET + BASE                                */
/* ================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif; /* ✅ global Montserrat */
  background: #f9f9f9 url("../images/background.png") repeat top center;
  background-size: cover;
  background-attachment: fixed;
}
main {
  flex: 1;
}
a {
  color: #00b7ff; /* stronger blue for visibility */
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #008fcc; /* darker hover */
  text-decoration: underline;
}

/* ... keep your styles for .heading, .description-text, .navbar, .review-card, .toc, etc. exactly as you already have ... */

/* ================================================== */
/* MONTESERRAT OVERRIDE HELPERS                       */
/* ================================================== */
.navbar-menu a,
.toggle-label,
.site-footer,
.header-container,
.living_in_quesada,
.heading,
.description-text,
.read-more,
.review-content,
.toc,
.toc-title-button {
  font-family: inherit; /* inherits Montserrat */
}
p,
ul li {
  font-size: var(--fs-base);
  line-height: 1.6;
}
.site-footer {
  font-size: var(--fs-small);
}
.navbar-menu a {
  font-size: 22px;
}

/* ================================================== */
/* RESPONSIVE QUERIES                                 */
/* ================================================== */
@media (max-width: 768px) {
  /* mobile nav styles */
}
@media (max-width: 868px) {
  /* footer/social responsiveness */
}
@media (max-width: 850px) {
  /* table responsiveness */
}

main {
  flex: 1;
}

.heading-text {
  font-size: 18px;
  font-weight: 600;
}

.description-text {
  font-size: 16px;
  color: #646464;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 15px;
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.main-image {
  border-radius: 15px;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #003b4e;
  margin-bottom: 10px;
}

.living-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #003b4e;
  padding: 10px 0;
  flex-wrap: wrap;
  backdrop-filter: blur(4px);
  margin-bottom: 10px;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #003b4e;
  padding: 10px 10px;
  border-radius: 5px;
  color: white;
  width: 100%;
  font-size: 20px;
}

.living_in_quesada {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.welcome-translate {
  gap: 20px;
  margin-bottom: 15px;
}

.welcome-text {
  font-size: 42px;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Footer container layout to match portfolio */
.site-footer {
  background-color: #003b4e; /* keep your Quesada colour */
  backdrop-filter: blur(4px);
  color: #fef1df;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  margin-top: 40px;
  padding: 12px 0;
}

/* exact same flex layout as portfolio */
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* copyright text + link styling */
.copyright {
  margin: 0;
  text-align: left;
  font-size: 12px; /* or var(--fs-xsmall) if you’re importing variables */
}
.site-footer .copyright a {
  color: #9de9ff;
  font-weight: 600; /* slightly bolder like portfolio vibe */
  text-decoration: none;
}
.site-footer .copyright a:hover {
  color: #9de9ff;
  text-decoration: underline;
}

.heading {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
  text-align: left;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
}

.toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: #003b4e;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #003b4e;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #000000;
}

input:checked + .slider::before {
  transform: translateX(22px);
}

.language-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.language-icons img {
  width: 22px;
  height: auto;
  margin: 0 2px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* ✅ glow always on */
  transition: transform 0.2s ease;
}

.language-icons img:hover {
  transform: scale(1.1);
}

.language-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
}
.language-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* ============================================================ */
/* =================== NAVIGATION BAR (navbar.css) ============ */
/* ============================================================ */

/* === NAVBAR STYLES === */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.navbar {
  padding: 10px 0;
  background-color: #003b4e;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1000;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  height: 150px;
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo:hover {
  transform: scale(1.01); /* small zoom */
  opacity: 1; /* keep normal opacity */
}

.navbar-menu {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
}

.navbar-menu li {
  margin: 0 15px;
  position: relative;
}

.navbar-menu a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 22px;
  font-family: "Montserrat", sans-serif; /* <-- swap Outfit → Montserrat */
  transition: transform 0.2s ease;
  letter-spacing: 0.5px;
}

.navbar-menu a:hover {
  transform: scale(1.1);
}

.navbar-menu .dropdown {
  border: 2px solid #000000;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003b4e;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: none;
  list-style: none;
}

.navbar-menu .dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.navbar-menu .dropdown a {
  background-color: #003b4e;
  color: white;
  display: block;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  border: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

/* Top-level hover + active */
.navbar-menu a:hover,
.navbar-menu a[aria-current="page"] {
  color: #ea9c45;

  transform: scale(1.05);
}

/* Dropdown hover + active */
.navbar-menu .dropdown a:hover,
.navbar-menu .dropdown a[aria-current="page"] {
  background-color: #003b4e; /* same bg as parent */
  color: #ea9c45;
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    background-color: #003b4e;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
  }

  .navbar-menu.show {
    display: flex;
  }

  .navbar-menu li {
    text-align: center;
    margin: 8px 0;
    width: 100%;
  }

  .navbar-menu a {
    padding: 10px 14px;
    font-size: 18px;
    display: block;
    width: 100%;
  }
}

/* ============================================================ */
/* =================== REVIEWS SECTION (reviews.css) ========== */
/* ============================================================ */

/* === REVIEWS SECTION === */

.review-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 20px auto;
  padding: 0 15px;
}

.review-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  gap: 20px;
}

.review-thumb {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #003b4e;
}

.review-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  padding-left: 5px;
}

.review-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #000;
  text-align: left;
}

.review-content p {
  margin: 0 0 10px 0;
  text-align: left;
}

.review-preview {
  font-size: 22px;
  color: #000000;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.read-more {
  color: #0d3848;
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.read-more::after {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #09232c;
}

.read-more:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* === Social Links (desktop + mobile merged) === */
.social-links {
  display: flex;
  align-items: center;
  gap: 16px; /* space between icons */
  padding: 8px 10px; /* space inside the pill container */
  background: #003b4e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  flex-wrap: wrap; /* ✅ wraps neatly on small screens */
  justify-content: center; /* ✅ keeps icons centered */
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* consistent tap target size */
  height: 44px;
  border-radius: 50%; /* ✅ circular clickable area */
  transition: background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08); /* subtle hover circle */
}

.social-links img {
  width: 24px; /* icon size */
  height: 24px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img,
.social-links a:focus-visible img {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Responsive match */
@media (max-width: 868px) {
  .site-footer .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
  }
  .copyright {
    order: 1;
    white-space: normal;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
  }
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* tighter spacing on mobile */
    padding: 10px 14px; /* breathing room inside the pill */
    background: #003b4e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(6px);
  }

  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* ✅ good tap target size */
    height: 40px;
    border-radius: 50%; /* circular clickable area */
    transition: background 0.2s ease;
  }

  .social-links a:hover,
  .social-links a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .social-links img {
    width: 22px; /* icon size inside button */
    height: 22px;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .social-links a:hover img,
  .social-links a:focus-visible img {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* ============================================================ */
/* =================== TABLE STYLES (tables.css) ============== */
/* ============================================================ */

/* === TABLE STYLES === */

.info-table {
  width: 100%;
  border-collapse: separate; /* Required for border-radius */
  border-spacing: 0; /* Avoids extra gaps */
  margin-top: 1em;
  font-size: 16px;
  background-color: #9947470c;
  border-radius: 12px;
  overflow: hidden; /* Ensures radius applies cleanly */
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
  word-break: break-word; /* Wrap long text or links */
  white-space: normal; /* Prevent no-wrap issues */
}

.info-table th {
  background-color: #003b4e;
  color: white;
  font-weight: bold;
}
.nav-icon {
  width: 28px; /* or 20–22px if you want a bit bigger */
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
  object-fit: contain; /* keeps proportions without stretching */
}
.nav-icon:hover {
  transform: scale(1.01);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  opacity: 0.9;
}
/* === Responsive tweaks === */
@media (max-width: 868px) {
  .social-links {
    gap: 8px 50px;
    padding: 6px 10px;
  }
  .social-links a {
    width: 32px;
    height: 32px;
  }
  .social-links img {
    width: 32px;
    height: 32px;
  }
}

/* Responsive tweak for smaller screens */
@media (max-width: 850px) {
  .info-table {
    font-size: 14px;
  }
}

/* ============================================================ */
/* =================== TABLE OF CONTENTS (toc.css) ============ */
/* ============================================================ */

.toc-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 30px auto;
  padding: 0 15px;
  text-align: left;
  box-sizing: border-box;
  display: block;
}

/* Ensure all TOC child elements wrap and stay within bounds */
.toc-wrapper,
.toc-wrapper ul,
.toc-wrapper li,
.toc-wrapper a {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  box-sizing: border-box;
}

/* TOC toggle button (if used) */
.toc-title-button {
  background-color: #003b4e;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.toc-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #333;
  margin: 10px 0 20px;
}

/* The full TOC box */
.toc {
  background: #003b4e;
  padding: 20px 20px;
  margin-top: 0;
  border-left: 5px solid #003b4e;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.toc h2 {
  margin-top: 0;
  font-size: 22px;
}

.toc ul {
  padding-left: 0;
  list-style-type: none;
}

.toc li {
  margin-bottom: 6px;
}

.toc li.level-1 a {
  padding-left: 0;
  font-weight: bold;
}
.toc li.level-2 a {
  padding-left: 20px;
}
.toc li.level-3 a {
  padding-left: 40px;
}
.toc li.level-4 a {
  padding-left: 60px;
}

/* TOC links - same style as navbar hover/active */
.toc a {
  text-decoration: none;
  color: white;
  display: inline-block;
  max-width: 100%;
  transition: all 0.3s ease; /* Smooth hover */
}

/* Hover + Active (aria-current) */
.toc a:hover {
  color: #ea9c45;
  transform: scale(1.05); /* match navbar */
  text-decoration: none;
}
/* Base: never show dropdown by default */
.navbar-menu .has-dropdown .dropdown {
  display: none;
}
.social-links li {
  margin: 0px 16px;
}

/* Desktop/laptop: devices that support hover + precise pointer (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .navbar-menu li.has-dropdown:hover > .dropdown {
    display: block;
  }
}

/* Touch devices (phones, tablets incl. iPad/iPad Pro): no hover */
@media (hover: none), (pointer: coarse) {
  .navbar-menu .has-dropdown .dropdown {
    display: none !important; /* always hide on touch */
  }
  /* Keep the parent link (e.g., Retail) fully clickable */
  .navbar-menu .has-dropdown > a {
    pointer-events: auto;
  }
  /* Optional: hide any dropdown caret/chevron so users don't expect a menu */
  .navbar-menu .has-dropdown > a .caret,
  .navbar-menu .has-dropdown > a::after {
    display: none;
  }
  .nav-icon {
    width: 25px; /* or 20–22px if you want a bit bigger */
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain; /* keeps proportions without stretching */
  }
}
