/* ================================
   CSS Reset & Normalize
================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #faf7ed;
  color: #2d2d2d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
a {
  color: #466c43;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #c3a765;
}
ul, ol {
  margin: 0 0 16px 28px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

/* ================================
   Custom Fonts (import from Google)
================================ */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');

:root {
  --vr-primary: #466c43;
  --vr-secondary: #a9c0b6;
  --vr-accent: #faf7ed;
  --vr-gold: #c3a765;
  --vr-border: #e1ded6;
  --vr-dark: #232015;
  --vr-light: #fff;
}

/* ================================
   Layout Containers
================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  flex: 1 1 auto;
  background: var(--vr-accent);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 780px;
  margin: 0 auto;
}

.feature-grid, .card-container, .card-grid, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div,
.card {
  background: var(--vr-light);
  border-radius: 20px;
  border: 1px solid var(--vr-border);
  box-shadow: 0 3px 18px 0 rgba(60,50,10,0.08);
  padding: 32px 24px;
  min-width: 240px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.24s;
}
.feature-grid > div:hover,
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(60,50,10,0.19);
  border-color: var(--vr-gold);
  transform: translateY(-4px) scale(1.01);
}

.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--vr-light);
  border-radius: 18px;
  border: 1.5px solid var(--vr-gold);
  box-shadow: 0 3px 18px 0 rgba(60,50,10,0.09);
  margin-bottom: 20px;
  color: var(--vr-dark);
  min-width: 250px;
}
.testimonial-card p {
  font-size: 18px;
  font-style: italic;
  color: var(--vr-dark);
}
.testimonial-card span {
  font-size: 15px;
  color: var(--vr-primary);
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  color: var(--vr-gold);
  font-weight: bold;
}

/* ================================
   Header & Navigation
================================ */
header {
  background: var(--vr-light);
  padding: 0;
  border-bottom: 1.5px solid var(--vr-border);
  position: sticky;
  top: 0;
  z-index: 990;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img[alt='Verde Rimpatamba'] {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: var(--vr-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  font-weight: 500;
  padding: 7px 8px;
  display: inline-block;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: var(--vr-gold);
  color: #fff;
}

/* --- Mobile Menu Styles --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 2.1rem;
  color: var(--vr-primary);
  cursor: pointer;
  margin-left: 32px;
  transition: color 0.18s;
  z-index: 1001;
  padding: 3px 12px;
  border-radius: 8px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--vr-gold);
  background: var(--vr-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--vr-light);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.47, 0, 0.745, 0.715);
  z-index: 1100;
  box-shadow: 6px 0 24px rgba(60,50,10,0.12);
  display: flex;
  flex-direction: column;
  padding: 20px 32px 40px 32px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--vr-dark);
  background: none;
  border: 0;
  align-self: flex-end;
  margin-bottom: 28px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.13s, color 0.17s;
  padding: 3px 15px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vr-gold);
  background: var(--vr-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.mobile-nav a {
  font-size: 20px;
  color: var(--vr-primary);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1.2px solid var(--vr-border);
  transition: color 0.2s, background 0.2s;
  border-radius: 0;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vr-gold);
  background: var(--vr-accent);
}

@media (max-width: 992px) {
  .main-nav {
    gap: 22px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ================================
   Typography & Hierarchy
================================ */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--vr-primary);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.13;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--vr-primary);
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--vr-primary);
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.18;
}
p, .subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232015;
  font-size: 17px;
  margin-bottom: 11px;
  letter-spacing: 0.009em;
}
.subtitle {
  color: var(--vr-secondary);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.012em;
}
strong {
  color: var(--vr-dark);
  font-weight: bold;
}

/* ================================
   Call To Action Buttons
================================ */
.cta-btn, .btn, button, input[type=submit], input[type=button] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--vr-gold);
  color: #fff;
  font-size: 1.1rem;
  padding: 11px 34px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
  letter-spacing: 0.014em;
  box-shadow: 0 2px 12px 0 rgba(60,50,10,0.10);
  transition: background 0.16s, color 0.16s, box-shadow 0.32s, transform 0.18s;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus,
.btn:hover, .btn:focus,
button:hover, button:focus,
input[type=submit]:hover, input[type=submit]:focus {
  background: var(--vr-primary);
  color: #fff;
  box-shadow: 0 5px 34px 0 rgba(195,167,101,0.18);
  transform: translateY(-2px) scale(1.04);
}

/* ================================
   Tag cloud (blog)
================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-cloud span {
  background: var(--vr-secondary);
  color: var(--vr-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: 16px;
  padding: 6px 20px;
  display: inline-block;
  margin-bottom: 4px;
  transition: background 0.16s, color 0.16s;
  cursor: pointer;
}
.tag-cloud span:hover {
  background: var(--vr-primary);
  color: #fff;
}

/* ================================
   .faq (faq block)
================================ */
.faq {
  background: var(--vr-accent);
  padding: 18px 21px;
  border-radius: 12px;
  border: 1.5px solid var(--vr-gold);
  margin-top: 9px;
  margin-bottom: 14px;
  box-shadow: 0 2px 7px 0 rgba(60,50,10,0.10);
}
.faq h3 {
  margin-bottom: 13px;
  font-size: 18px;
  color: var(--vr-gold);
}

/* ================================
   Footer
================================ */
footer {
  background: var(--vr-primary);
  color: #fff;
  padding: 38px 0 27px 0;
  border-top: 1.5px solid var(--vr-gold);
  font-size: 15px;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer .footer-nav a {
  color: #fff;
  padding: 3px 0;
  font-size: 15px;
  transition: color 0.13s;
}
footer .footer-nav a:hover, .footer-nav a:focus {
  color: var(--vr-gold);
}
footer img[alt='Verde Rimpatamba'] {
  height: 42px;
  margin-right: 15px;
}
.contact-details p {
  margin-bottom: 5px;
  color: white;
}

/* ================================
   Cookie Consent Banner & Modal
================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vr-dark);
  color: #fff;
  padding: 22px 30px 24px 30px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -3px 18px rgba(44,29,10,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 19px;
  justify-content: space-between;
  z-index: 2000;
  width: 100%;
  max-width: 820px;
  left: 50%;
  transform: translateX(-50%) translateY(98px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s, opacity 0.26s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 15px;
  margin-right: 18px;
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--vr-gold);
  color: var(--vr-dark);
  font-size: 15px;
  padding: 9px 22px;
  border: none;
  border-radius: 22px;
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.22s;
}
.cookie-btn.primary {
  background: var(--vr-gold);
  color: #fff;
}
.cookie-btn.secondary {
  background: var(--vr-primary);
  color: #fff;
}
.cookie-btn.ghost {
  background: transparent;
  color: var(--vr-gold);
  border: 1.5px solid var(--vr-gold);
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: var(--vr-primary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 32, 21, 0.44);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fade-in 0.25s;
}
@keyframes fade-in {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: var(--vr-light);
  border-radius: 18px;
  padding: 38px 28px 31px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--vr-dark);
  box-shadow: 0 8px 38px 0 rgba(60,50,10,0.14);
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: modalup 0.45s cubic-bezier(0.38,0.7,0.38,1);
}
@keyframes modalup {
  0% { transform: translateY(80px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--vr-primary);
  font-size: 1.2rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 16px;
  font-weight: 600;
  color: var(--vr-primary);
}
.cookie-switch {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--vr-secondary);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-block;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s, background 0.14s;
}
.cookie-switch input:checked + .slider {
  left: 20px;
  background: var(--vr-gold);
}
.cookie-modal .cookie-btn {
  margin-right: 8px;
  margin-top: 13px;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 15px; right: 19px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--vr-primary);
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 7px;
  transition: color 0.12s, background 0.13s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  color: var(--vr-gold);
  background: var(--vr-accent);
}
.cookie-category.disabled{
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(0.4);
}

/* ================================
   Misc & Details
================================ */
.map-placeholder {
  padding: 20px 19px;
  background: var(--vr-accent);
  border-radius: 13px;
  margin-top: 17px;
  font-size: 15px;
  border: 1.5px solid var(--vr-secondary);
}
hr {
  border: none;
  border-top: 1.5px solid var(--vr-border);
  margin: 28px 0;
}

/* ================================
   Responsive Design (mobile-first)
================================ */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 26px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .feature-grid > div, .card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.1rem;
  }
  h2, .h2 {
    font-size: 1.5rem;
  }
  .feature-grid,.card-container,.card-grid,.content-grid,.features {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .card {
    padding: 22px 12px;
  }
  .section {
    margin-bottom: 37px;
    padding: 22px 7px;
  }
  .testimonial-card {
    padding: 15px 12px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    padding: 14px 9px 15px 9px;
    border-radius: 11px 11px 0 0;
    max-width: 97vw;
  }
  .cookie-modal {
    padding: 19px 8px 22px 8px;
  }
}
@media (max-width: 500px) {
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
    min-width: 0;
  }
  h1, .h1 {
    font-size: 1.4rem;
  }
  h2, .h2 {
    font-size: 1.09rem;
  }
  .footer-nav {
    gap: 6px;
  }
}

/* ================================
   Animations / Micro-interactions
================================ */
.card, .feature-grid > div {
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.17s;
  will-change: transform, box-shadow;
}
.cta-btn, .btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.28s, transform 0.18s;
}
.main-nav a, .mobile-nav a {
  transition: color 0.15s, background 0.15s;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--vr-accent);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--vr-secondary);
  border-radius: 12px;
}

/* ================================
   Accessibility & Touch Targets
================================ */
button, .cta-btn, .cookie-btn {
  min-height: 44px;
}
.mobile-nav a {
  min-height: 44px;
  line-height: 44px;
}

/* ================================
   Utility Classes for Flex Only
================================ */
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}

/* ================================
   End of Style Sheet
================================ */
