/*
 * Retire2Paraguay
 * Copyright (c) 2026 Retire2Paraguay
 * All rights reserved.
 *
 * Unauthorized copying, modification, distribution,
 * or commercial use is prohibited.
 */

/* Retire2Paraguay — responsive stylesheet */
:root {
  --red: #d50920;
  --blue: #003c98;
  --green: #16803c;
  --green-hover: #11632f;
  --navy: #082d70;
  --ink: #142b52;
  --muted: #68776c;
  --white: #fff;
  --light-blue: aliceblue;
  --pale-blue: #eef3ff;
  --section-bg: #f7f9fd;
  --border: #e6ebf4;
  --input-border: #b9c9df;
  --content-width: 1160px;
  --navbar-height: 85px;
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --shadow-soft: 0 4px 14px rgb(0 0 0 / 12%);
  --shadow-card: 0 12px 36px rgb(20 43 82 / 10%);
  --shadow-panel: 0 12px 36px rgb(20 43 82 / 15%);
}

/* 1. Global */
html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-height); }
body { color: var(--ink); background: var(--white); top: 0 !important; overflow-x: clip; }
h1, h2 { color: var(--navy); font-weight: 800; }
h2 { margin-top: 1.8rem; }
*, *::before, *::after { box-sizing: border-box; }

/* 2. Quarto layout */
header#title-block-header { display: none !important; }
#quarto-content { padding-top: 0 !important; }
.page-layout-full .content { padding: 0; }
main.content { max-width: var(--content-width); margin: 0 auto; padding: 0 24px 32px; }

/* 3. Navigation */
.navbar { border-top: 6px solid var(--red); box-shadow: 0 3px 15px rgb(8 45 112 / 10%); }
.navbar-brand { color: var(--blue) !important; font-size: 1.6rem; font-weight: 850; font-style: italic; }
.nav-link:hover { color: var(--red) !important; }

/* 4. Full-width hero. Quarto content may be width-constrained. */
.hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 650px;
  height: auto;
  padding: 60px max(24px, calc((100vw - var(--content-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgb(0 15 38 / 5%), rgb(0 15 38 / 85%)),
    url("assets/paraguay-quincho.webp");
  background-position: center, center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  scroll-margin-top: var(--navbar-height);
}
.hero-inner { width: 46%; min-width: 340px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 5vw, 5.7rem); font-style: italic; font-weight: 900; line-height: 1.05; }
.hero p { color: var(--white); font-size: 1.25rem; }

/* 5. Labels and buttons */
.eyebrow { color: var(--red); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .eyebrow { display: inline-block; color: var(--white); background: var(--red); padding: 5px 12px; }
.btn-red, .btn-blue, .btn-green, .btn-white {
  display: inline-block;
  border: none;
  border-radius: 24px;
  padding: 12px 22px;
  margin: 8px 8px 0 0;
  text-decoration: none !important;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-red { background: var(--red); color: var(--white) !important; }
.btn-blue, .btn-green { background: var(--green); color: var(--white) !important; }
.btn-white { background: var(--white); color: var(--blue) !important; }
.btn-red:hover { background: darkred; color: var(--white) !important; transform: translateY(-2px); }
.btn-blue:hover, .btn-green:hover { background: var(--green-hover); color: var(--white) !important; transform: translateY(-2px); }
.btn-white:hover { background: #e6eefb; color: var(--blue) !important; transform: translateY(-2px); }
.btn-red:focus-visible, .btn-blue:focus-visible, .btn-green:focus-visible, .btn-white:focus-visible { outline: 3px solid orange; outline-offset: 3px; }

/* Hero buttons are always stacked vertically, regardless of viewport width. */
.hero .hero-buttons {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}
.hero .hero-buttons > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 12px 22px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero .hero-buttons > .btn-red { background: var(--red); color: var(--white) !important; }
.hero .hero-buttons > .btn-blue, .btn-green { background: var(--green); color: var(--white) !important; }
.hero .hero-buttons > .btn-white { background: var(--white); color: var(--blue) !important; }
.hero .hero-buttons > .btn-red:hover { background: darkred; }
.hero .hero-buttons > .btn-blue:hover, .btn-green:hover { background: var(--green-hover); }
.hero .hero-buttons > .btn-white:hover { background: #e6eefb; }

/* 6. Content sections */
.scroll-section { padding: 72px 24px; border-bottom: 1px solid var(--border); scroll-margin-top: var(--navbar-height); }
.scroll-section:nth-of-type(even) { background: var(--section-bg); }

/* 7. Trust indicators */
.trust { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; padding: 22px; border-bottom: 4px solid var(--blue); font-weight: 650; }
.trust span::before { content: "✦ "; color: var(--red); }

/* 8. Cards and grids */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 30px 0; }
.card-r { padding: 25px; border-top: 4px solid var(--red); border-radius: var(--radius-medium); box-shadow: var(--shadow-card); }
.card-r .icon { font-size: 3.3rem; }
.card-r h3 { color: var(--navy); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px; align-items: center; }
.photo { display: block; width: 100%; height: auto; border-radius: 18px; }
.dark-panel { background: var(--navy); color: var(--white); padding: 45px; border-radius: var(--radius-large); }
.dark-panel h2 { color: var(--white); }

/* 9. Calculator and contact form */
.calculator, .contact-panel { background: var(--white); padding: 30px; border-top: 5px solid var(--red); border-radius: 18px; box-shadow: var(--shadow-panel); }
.field { margin-bottom: 15px; }
.field label, .contact-panel label { display: block; font-weight: 700; margin-bottom: 7px; }
.field input, .contact-panel input, .contact-panel select, .contact-panel textarea {
  width: 100%; padding: 10px; margin: 5px 0 12px;
  border: 1px solid var(--input-border); border-radius: var(--radius-small);
}
#fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
#fields > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
#fields label { flex: 1; min-width: 0; margin: 0; font-size: 0.9rem; }
#fields input, #fields select { width: 90px; flex-shrink: 0; padding: 4px 6px; font-size: 0.9rem; }
.total { background: var(--pale-blue); padding: 20px; border-radius: 12px; }
.total b { display: block; color: var(--blue); font-size: 2.5rem; }
.note { color: var(--muted); font-size: 0.85rem; }

/* 10. FAQ */
.faq details { background: var(--light-blue); padding: 18px; margin: 12px 0; border-radius: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }

/* 11. Google Translate */
.translate-nav { position: relative; display: flex; align-items: center; }
.translate-nav > .nav-link { color: var(--navy) !important; background: transparent !important; border: none !important; font-size: inherit; font-weight: normal; cursor: pointer; }
.translate-nav > .nav-link:hover { color: var(--red) !important; }
#google_translate_element {
  display: none !important;
  position: absolute !important;
  top: 100%; right: 0; left: auto;
  width: 210px; margin: 0; padding: 12px;
  background: var(--white); border: 1px solid lightgray; border-radius: 6px;
  box-shadow: var(--shadow-soft); z-index: 2000;
}
.translate-nav.translate-open #google_translate_element { display: block !important; }
#google_translate_element .goog-te-combo {
  width: 100%; margin: 0 !important; padding: 5px 8px;
  font-size: 14px !important; color: var(--navy); background: var(--white);
  border: 1px solid lightgray; border-radius: 5px;
}
.goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame, iframe.skiptranslate { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }

/* 12. Full-width panoramic footer */
footer.footer, .nav-footer {
  background: var(--white) !important; border: none !important;
  padding: 0 !important; margin: 0 !important;
  width: 100% !important; max-width: none !important;
}
.nav-footer-center {
  width: 100% !important; max-width: none !important;
  flex: 1 1 100% !important; padding: 0 !important; margin: 0 !important;
}
.footer-image { display: block; width: 100%; height: auto; cursor: pointer; }
.nav-footer-center a { display: block; width: 100%; }
footer a { color: var(--navy); }

/* 13. Location gallery */
.location-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.location-cards > * { min-width: 0; }
#where-could-you-live-in-paraguay .lightbox img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 10px; cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#where-could-you-live-in-paraguay .lightbox img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

/* 14. Floating WhatsApp */
/*
.whatsapp-float {
  position: fixed; bottom: 25px; right: 25px; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  font-size: 30px; text-decoration: none;
  box-shadow: 0 4px 15px rgb(0 0 0 / 25%);
  transition: transform 0.2s, background 0.2s;
}
.whatsapp-float:hover { background: #128c7e; color: var(--white); transform: scale(1.1); }
*/

/* 15. Booking */
.booking-container {
  max-width: 1100px; margin: 40px auto; padding: 24px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 4px 24px rgb(0 0 0 / 8%);
}
.booking-container iframe { display: block; width: 100%; min-height: 750px; border: 0; }

/* Floating consultation booking button */
.booking-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #198754;
  color: white !important;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.booking-float:hover {
  background: #146c43;
  transform: translateY(-3px);
}

.booking-float:focus-visible {
  outline: 3px solid orange;
  outline-offset: 3px;
}

/* 16. Tablet */
@media (max-width: 1000px) {
  .location-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hero {
    min-height: 0;
    height: auto;
    padding: 45px 24px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    background-image:
      linear-gradient(to top, rgb(0 17 49 / 90%), rgb(0 17 49 / 35%)),
      url("assets/paraguay-quincho.webp");
    background-position: center, 37% center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .hero-inner { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
  .cards, .two { grid-template-columns: 1fr; }
  .scroll-section { padding: 42px 16px; }
  .dark-panel { padding: 24px; }
}

/* 17. Phones */
@media (max-width: 600px) {
  .hero { min-height: 0; height: auto; padding: 35px 20px 40px; }
  .hero .eyebrow { max-width: 100%; padding: 6px 10px; font-size: 0.65rem; letter-spacing: 0.04em; line-height: 1.4; }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); line-height: 1.15; margin: 14px 0; }
  .hero p { font-size: 0.95rem; line-height: 1.5; }
  .hero .hero-buttons { gap: 10px; margin-top: 16px; }
  .hero .hero-buttons > a { font-size: 0.85rem; padding: 10px 14px; }
  .navbar-brand { font-size: 1.05rem !important; max-width: none !important; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .navbar-container { flex-wrap: nowrap; }
  .navbar-brand-container { min-width: 0; flex: 1; }
  .location-cards { grid-template-columns: 1fr; }
  #fields { grid-template-columns: 1fr; }
  .calculator, .contact-panel { padding: 20px; }
  .trust { gap: 10px 18px; padding: 16px; }
  .whatsapp-float { bottom: 20px; right: 15px; width: 52px; height: 52px; font-size: 26px; }
  .booking-container { margin: 20px 10px; padding: 10px; }
}

/* 18. Accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
