/* ===================
   Cenote Vista - style.css
   Modern 'nature_organic' theme with Flexbox-only layouts
   =================== */

/* === 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,
b, 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F7F4EF;
  color: #23401e;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #258520;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.25em;
  margin-block: 12px 20px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25492e;
  margin-bottom: 8px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

/* === NATURE ORGANIC THEME VARIABLES === */
:root {
  --color-primary: #244065;       /* Deep blue stone (brand) */
  --color-secondary: #E6B800;    /* Golden earth (brand) */
  --color-accent: #25963E;       /* Organic green accent */
  --color-earth: #BEA77D;        /* Clay brown, background */
  --color-bg-light: #F7F4EF;     /* Light sand, page bg */
  --color-bg-dark: #23401e;      /* Deep leaf green */
  --color-foreground: #23401e;   /* Body text: strong earth green */
  --color-card-bg: #FFFDF8;      /* Card/section bg */
  --color-footer-bg: #224123;    /* Footer - leaf dark green */
  --color-divider: #DBD7C1;      /* Subtle divider sand */
  --color-shadow: rgba(36,64,101,0.05); /* Subtle shadow dark blue low opacity */
  --color-accent-fg: #1F5A1C;    /* Accent text dark green for contrast */

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

@media (max-width: 360px) {
  html { font-size: 95%; }
  h1 { font-size: 2.1rem; }
}

/* === GLOBAL FLEX CONTAINERS === */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--color-bg-light);
  border-bottom: 2px solid var(--color-divider);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
}
.logo img { height: 46px; width: auto; border-radius: 10px; }

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background .18s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 24px;
  margin-left: 4px;
  border-radius: 24px;
  border: none;
  box-shadow: 0 4px 18px 0 rgba(31, 90, 28, 0.09);
  letter-spacing: 0.05em;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent-fg);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 26px 0 rgba(31, 90, 28, 0.15);
}

/* === BURGER MOBILE MENU BUTTON === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.18s, box-shadow .20s, color .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-accent-fg);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* === MOBILE MAIN NAV === */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  height: 100vh;
  width: 100vw;
  z-index: 9999;
  background: rgba(34, 65, 35, 0.90);
  backdrop-filter: blur(2px);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.57,.15,.25,1.02);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-footer-bg);
  font-size: 2.2rem;
  border: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 20px 6px 20px;
  cursor: pointer;
  margin: 24px 20px 0 0;
  align-self: flex-end;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 340px;
  gap: 16px;
  margin: 36px 20px 0 0;
  background: var(--color-card-bg);
  border-radius: 20px 0 0 20px;
  box-shadow: 0 2px 18px rgba(34,65,35,0.13);
  padding: 32px 28px;
}
.mobile-nav a {
  color: var(--color-footer-bg);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.13rem;
  padding: 10px 0 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent-fg);
}

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 10px; padding-right: 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 12px;
    column-gap: 10px;
  }
  .main-nav { gap: 13px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 10px 6px;
  }
}

@media (max-width: 415px) {
  .mobile-nav {
    padding: 22px 10px;
    margin: 24px 6px 0 0;
  }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(125deg, var(--color-card-bg) 70%, var(--color-earth) 100%);
  border-radius: 0 0 42px 42px/0 0 16px 16px;
  box-shadow: 0 8px 26px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px 50px 20px;
  position: relative;
}
.hero .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--color-primary);
  text-shadow: 0 2px 12px var(--color-shadow);
  letter-spacing: 0.04em;
}
.hero .subheadline {
  font-size: 1.3rem;
  color: var(--color-accent-fg);
  font-weight: 500;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px var(--color-shadow);
}
@media (max-width: 768px) {
  .hero { padding: 34px 6vw 36px 6vw; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .subheadline { font-size: 1.05rem; }
}

/* === SECTION & SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
  position: relative;
}
.text-section {
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 640px) {
  section, .text-section, .section {
    padding: 24px 5vw !important;
    margin-bottom: 38px !important;
  }
}
/* === FEATURES GRID & ORGANIC LISTS === */
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-block: 16px 0;
}
ul.feature-grid li {
  display: flex;
  align-items: center;
  background: var(--color-card-bg);
  border-radius: 18px 34px 15px 30px / 24px 10px 24px 10px;
  box-shadow: 0 4px 14px var(--color-shadow);
  padding: 14px 22px;
  min-width: 260px;
  flex: 1 1 240px;
  font-size: 1.13rem;
  color: var(--color-bg-dark);
  gap: 13px;
  font-family: var(--font-body);
  transition: box-shadow 0.18s;
  margin-bottom: 20px;
}
ul.feature-grid li img {
  height: 32px;
  width: 32px;
  margin-right: 8px;
}
ul.feature-grid li:hover {
  box-shadow: 0 8px 30px var(--color-shadow);
  background: #F5FDEB;
}

/* STANDARD LISTS IN SECTIONS */
section ul:not(.feature-grid) li,
.text-section ul li {
  background: #f6f8f3;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 15px 30px 15px 30px/30px 15px 30px 15px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 7px;
  color: #274226;
  box-shadow: 0 2px 6px rgba(36, 64, 101, 0.045);
}
section ul:not(.feature-grid) li strong {
  color: var(--color-primary); font-weight: bold;
}
section ul:not(.feature-grid) li span {
  color: var(--color-accent);
  margin-left: 8px;
  font-weight: 600;
}

/* === CARDS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--color-shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
  min-width: 200px;
  max-width: 100%;
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.011);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* === FLEX LAYOUTS (MANDATORY PATTERNS) === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 20px 36px 15px 36px/36px 15px 36px 15px;
  box-shadow: 0 6px 28px rgba(36, 64, 101, 0.07);
  margin-bottom: 20px;
  max-width: 540px;
  min-width: 240px;
  border: 2.5px solid var(--color-divider);
  transition: box-shadow .14s, border-color .13s;
}
.testimonial-card blockquote {
  font-size: 1.11rem;
  color: #23401e;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0 0 7px 0;
  font-style: italic;
}
.testimonial-card cite {
  display: block;
  font-size: 0.99rem;
  color: var(--color-accent-fg);
  font-family: var(--font-display);
  font-weight: bold;
}
.testimonial-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 32px rgba(36, 64, 101, 0.13);
}

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

/* TESTIMONIAL SLIDER - FLEX WRAP */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* === CONTACT SECTION & MAP === */
.contact-info ul, .contact-info ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 18px;
}
.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-accent-fg);
  background: #f6f8f3;
  border-radius: 15px 30px 10px 35px / 22px 18px 22px 12px;
  padding: 10px 16px;
  margin-bottom: 0;
}
.contact-info ul li img {
  height: 22px;
}

.map-location {
  margin: 12px 0 0 0;
  background: #f4f9ef;
  border-radius: 10px 20px 25px 12px/20px 22px 12px 28px;
  padding: 12px 18px;
  color: #1F5A1C;
  font-size: 1.05rem;
  border: 1.5px solid #dbeeda;
}

/* === FOOTER === */
footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 34px 0 0 0;
  border-radius: 36px 36px 0 0/18px 18px 0 0;
  margin-top: 20px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 44px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}
footer .footer-logo img {
  height: 42px;
  margin-bottom: 8px;
  border-radius: 9px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #e9f8ec;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.01rem;
  text-decoration: none;
  transition: color 0.15s;
  margin: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
footer address {
  font-style: normal;
  color: #e4e9e0;
  font-family: var(--font-body);
  font-size: .97rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer address div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 2px;
}
footer address a {
  color: #fbfbe2;
  text-decoration: underline;
}
.footer-tagline {
  margin-top: 18px;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 600px){
footer {
  border-radius: 17px 17px 0 0/8px 8px 0 0;
  padding: 20px 0 0 0;
}
}

/* === BUTTONS & INTERACTIONS === */
button, .cta-btn {
  outline: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 20px;
  transition: background 0.18s, color 0.12s, box-shadow 0.13s, border 0.13s;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 3px #aee9b1;
}

/* === SCROLLBAR (subtle organic, for webkit) === */
body::-webkit-scrollbar {
  width: 10px;
  background: #EBE7DE;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #D2EAD6 50%, #BEA77D 100%);
  border-radius: 10px;
}

/* === RESPONSIVE FLEX-DIRECTION PATTERNS === */
@media (max-width: 768px) {
  .content-wrapper, .container, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .testimonial-slider {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px !important;
    align-items: flex-start;
  }
}

/* === TYPOGRAPHY === */
body,
p, ul, ol, li, address {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--color-foreground);
}
strong, b {
  font-weight: bold;
  color: var(--color-primary);
}

/* === SEPARATORS & DIVIDERS === */
hr {
  border: none;
  height: 1px;
  background: var(--color-divider);
  margin: 32px 0;
}

/* === UTILS === */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: var(--color-card-bg);
  box-shadow: 0 -4px 22px var(--color-shadow);
  border-top: 2px solid var(--color-accent);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px 15px 22px;
  min-height: 44px;
  font-size: 1.01rem;
  gap: 24px;
  animation: cookiein 0.5s cubic-bezier(0.32,1.31,0.33,1.01);
}
@keyframes cookiein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  margin: 0;
  flex: 1 1 0%;
}
.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: bold;
  border-radius: 20px;
  font-size: 1.03rem;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  transition: background .15s, color .12s;
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.settings {
  background: #FBFBDB;
  color: var(--color-accent-fg);
  border: 1.5px solid var(--color-accent);
  font-weight: 600;
}
.cookie-btn.reject {
  background: #E2DEBA;
  color: #4F4012;
  font-weight: 600;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent-fg);
}
.cookie-btn.settings:hover {
  background: #e6e0b1;
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: #B6AC49;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 10px 10px 10px 10px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 13000;
  background: rgba(34, 65, 35, 0.90);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open { display: flex; animation: popin .327s cubic-bezier(.77,-0.26,.5,1.32); }
@keyframes popin {
  from { transform: translateY(60%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-inner {
  background: var(--color-card-bg);
  padding: 38px 28px;
  border-radius: 32px 50px 24px 50px/36px 18px 36px 16px;
  box-shadow: 0 6px 48px var(--color-shadow);
  width: 90vw; max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 18px;
  font-size: 2.2rem;
  background: none;
  color: var(--color-footer-bg);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.cookie-modal-close:hover { color: var(--color-accent); }
.cookie-modal h2 { font-size: 1.35rem; margin-bottom: 8px; color: var(--color-primary); }
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 18px;
  padding: 10px 8px;
  background: #f6f8f3;
  margin-bottom: 8px;
  gap: 14px;
  font-size: 1.03rem;
}
.cookie-checkbox {
  width: 24px; height: 24px;
  accent-color: var(--color-accent);
  border-radius: 6px;
}
.cookie-category strong { color: var(--color-footer-bg); margin-right: 7px; }
.cookie-category em { font-size: 0.97rem; color: #666; }

@media (max-width: 500px) {
  .cookie-modal-inner {
    padding: 20px 5vw;
    border-radius: 20px 28px 14px 28px/18px 10px 18px 10px;
  }
}

/* === ORGANIC SHAPES + EFFECTS === */
section, .text-section, footer, .card, .testimonial-card, .cookie-modal-inner {
  border-radius: 22px 56px 30px 44px/37px 26px 38px 27px;
  /* Emulate organic wavy shapes with different radii */
}

/* === UTILITIES === */
@media (max-width: 530px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
  section, .text-section, .section { padding: 14px 6px !important; }
}
