/* =============================
   Quintara Negocia "elegant_classic" CSS
   Professional, timeless, elegant
   ============================= */

/* 1. RESET & BASES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Merriweather', 'Roboto', Times New Roman, Times, serif;
  background: #F5F7FA;
  color: #283248;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #23518C;
  text-decoration: underline;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #E89409;
  text-decoration: none;
}

ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
  padding-left: 1em;
  font-size: 1em;
}
li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: bold;
}
address {
  font-style: normal;
  color: #212E45;
  font-size: 1em;
  margin: 0.3em 0 0.7em 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 93%;
  display: flex;
  flex-direction: column;
  gap: 0; /* container never uses gap for main wrap */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* =============================
   BRAND & TYPOGRAPHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #183258;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.8em;
  line-height: 1.2;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 0.85em;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  font-family: 'Merriweather', 'Roboto', serif;
  margin-bottom: 1.25em;
  color: #2D3450;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: #fff;
  box-shadow: 0px 1px 12px rgba(30,60,90,0.04);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  min-height: 78px;
}
.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 2.5em;
}
.brand-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1em;
  color: #234571;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s, background 0.22s;
  margin-right: 0;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #183258;
  border-bottom: 2px solid #E89409;
  background: rgba(233,148,9,0.08);
  border-radius: 2px;
}
.main-nav .cta-primary {
  background: #23518C;
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 22px;
  padding: 10px 30px;
  margin-left: 24px;
  border: none;
  letter-spacing: 0.028em;
  box-shadow: 0 1px 4px rgba(35,81,140,.09);
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #E89409;
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,60,93,0.07);
}

.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #DAE0EA;
  border-radius: 7px;
  font-size: 2rem;
  color: #23518C;
  padding: 6px 16px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #F5F7FA;
  color: #E89409;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.02,.79,.57,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
  width: 100vw;
  height: 100vh;
  box-shadow: -1px 0 18px rgba(35,81,140,0.08);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: #fff;
  color: #23518C;
  border: 1.5px solid #DAE0EA;
  border-radius: 7px;
  padding: 3px 16px;
  cursor: pointer;
  margin-bottom: 24px;
  align-self: flex-end;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E89409;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.15em;
  color: #23518C;
  background: transparent;
  border-radius: 7px;
  padding: 14px 0 14px 10px;
  text-decoration: none;
  transition: background 0.18s, color 0.19s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F7FA;
  color: #E89409;
}

/* =============================
   HERO & CTA SECTIONS
   ============================= */
.hero-section {
  background: #f7f9fc;
  padding: 60px 0 48px 0;
  border-bottom: 1.5px solid #DFE5EF;
  margin-bottom: 60px;
}
.hero-section .container {
  align-items: center;
}
.hero-section h1 {
  font-size: 2.7rem;
  letter-spacing: 0.02em;
  color: #183258;
  margin-bottom: 1rem;
}
.hero-section p {
  color: #34435E;
  font-size: 1.13rem;
  margin-bottom: 2.1em;
  max-width: 680px;
}

.cta-section {
  background: #fff7ea;
  border-radius: 20px;
  box-shadow: 0 3px 16px rgba(233,148,9,0.03);
  margin-bottom: 60px;
  padding: 40px 28px;
}
.cta-section h2 {
  color: #23518C;
  font-size: 2.1rem;
}
.cta-section p {
  color: #2B384F;
  font-size: 1.15rem;
}

/* =============================
   BUTTONS
   ============================= */
.cta-primary {
  display: inline-block;
  background: #23518C;
  color: #fff;
  font-family: 'Montserrat', 'Merriweather', serif;
  border: none;
  border-radius: 25px;
  padding: 12px 36px;
  font-size: 1.12em;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px rgba(35,81,140,0.11);
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.23s, color 0.18s, box-shadow 0.3s;
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E89409;
  color: #fff;
  box-shadow: 0 8px 32px rgba(35,81,140,0.13);
}

button {
  font-family: inherit;
}

/* =============================
   FLEX LAYOUTS & CARDS
   ============================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container, .card-grid, .feature-grid, .profile-grid, .content-grid, .testimonial-slider, .testimonial-list, .success-stories-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 13px rgba(35,81,140,0.045);
  padding: 28px 24px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.feature-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(35,81,140,0.07);
  padding: 26px 20px 24px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.feature-card img {
  width: 45px; height: 45px;
  margin-bottom: 7px;
}
.feature-card h3 {
  color: #23518C;
  margin-bottom: 0.5em;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
}
.feature-card p {
  font-size: 0.97rem;
  color: #2A3756;
}
.feature-card:hover, .feature-card:focus-within {
  box-shadow: 0 8px 26px rgba(35,81,140,0.13);
  transform: translateY(-2px) scale(1.017);
}

.profile-grid {
  gap: 24px;
  margin-bottom: 16px;
}
.profile-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(35,81,140,0.07);
  padding: 28px 20px 24px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

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

.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 1.5em;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FEFEFE;
  border: 1.5px solid #E4EAF3;
  border-radius: 18px;
  padding: 20px 26px;
  min-width: 250px;
  max-width: 390px;
  box-shadow: 0 3px 18px rgba(17,28,39,0.10);
  margin-bottom: 0;
  position: relative;
  flex: 1 1 280px;
  transition: box-shadow 0.23s, border 0.19s;
}
.testimonial-card p {
  font-family: 'Merriweather', serif;
  color: #234571;
  font-style: italic;
  margin-bottom: 5px;
  font-size: 1.07rem;
}
.testimonial-card strong {
  color: #183258;
  font-family: 'Playfair Display', serif;
  font-size: 0.99rem;
  font-weight: 600;
  display: block;
  margin-top: 7px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #E89409;
  box-shadow: 0 7px 22px rgba(35,81,140,0.10);
}
.story-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 13px rgba(35,81,140,0.07);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s;
}
.story-card h3 {
  font-size: 1.14rem;
  margin-bottom: 0.5em;
  color: #23518C;
}
.story-card:hover, .story-card:focus-within {
  box-shadow: 0 7px 24px rgba(35,81,140,0.18);
}

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

/* =============================
   FOOTER STYLES
   ============================= */
footer {
  background: #22426E;
  color: #fff;
  letter-spacing: 0.01em;
  padding: 34px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
  justify-content: space-between;
  padding-bottom: 18px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 360px;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 8px;
}
.footer-brand p {
  color: #F5F7FA;
  font-size: 1.01em;
  margin-bottom: 10px;
}
.footer-brand address {
  color: #c7d5e8;
  font-size: 0.99em;
  gap: 2px;
}
.footer-brand address img {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-left: 9px;
  margin-top: 6px;
}
.footer-nav a {
  color: #E4EAF3;
  text-decoration: underline;
  font-size: 0.99em;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E89409;
}
.footer-hours {
  background: #1C3558;
  color: #CFE3FF;
  padding: 11px 0 13px 32px;
  margin-top: 0;
  font-size: 0.97em;
  font-family: 'Merriweather', serif;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff7ea;
  color: #234571;
  box-shadow: 0 -4px 24px rgba(233,148,9,0.11), 0 1px 0 #eae9e4;
  padding: 24px 18px 22px 18px;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  font-family: 'Merriweather', serif;
  border-top: 1.5px solid #E89409;
  transition: transform 0.44s cubic-bezier(.19,.90,.34,1.01), opacity 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text {
  flex: 1 1 0%;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-weight: 600;
  font-family: 'Montserrat', 'Merriweather', serif;
  font-size: 1em;
  cursor: pointer;
  margin-left: 0px;
  background: #23518C;
  color: #fff;
  box-shadow: 0 2px 10px rgba(35,81,140,0.05);
  transition: background 0.22s, color 0.21s;
}
.cookie-btn.reject {
  background: #e3e3e3;
  color: #243052;
}
.cookie-btn.accept {
  background: #E89409;
  color: #fff;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #234571;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #23518C;
}
.cookie-settings-btn {
  background: #fff;
  color: #E89409;
  border: 1.5px solid #E89409;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffe5b8;
  color: #23518C;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4150;
  background: rgba(42, 62, 91, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.26s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(35,81,140,0.13);
  padding: 34px 28px 30px 28px;
  max-width: 95vw;
  width: 420px;
  position: relative;
  font-family: 'Merriweather', serif;
  animation: popin 0.32s cubic-bezier(.43,1.45,.18,.92);
}
@keyframes popin {
  0% {transform:scale(.8) translateY(40px); opacity:0;}
  60% {transform:scale(1.04) translateY(-7px);}
  100% {transform:scale(1) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.7em;
  color: #183258;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #F5F7FA;
  padding: 10px 16px;
  font-size: 1rem;
}
.cookie-switch {
  appearance: none;
  background: #e6eaee;
  border-radius: 12px;
  width: 40px; height: 24px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #E89409;
}
.cookie-switch:before {
  content: "";
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35,81,140,0.08);
  position: absolute;
  top: 3px; left: 3px;
  transition: left 0.22s;
}
.cookie-switch:checked:before {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #23518C;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal .close:hover { color: #E89409; }

/* =============================
   SPACING, LAYOUT HELPERS
   ============================= */
.section, .cta-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid, .feature-grid, .content-grid { gap: 24px; }
.card { margin-bottom: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; margin-bottom: 0; }
.feature-item { gap: 15px; }
/* Guarantee min spacing between cards */
.card, .feature-card, .profile-card, .story-card, .testimonial-card {
  margin-bottom: 20px;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1150px) {
  .container { width: 97%; }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    width: 99%;
    gap: 0;
  }
  .footer-nav, .footer-brand { max-width: 60vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  body { font-size: 0.99em; }
  .container {
    flex-direction: column !important;
    align-items: stretch;
  }
  header .container {
    flex-direction: row;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .profile-grid, .card-container, .testimonial-slider, .testimonial-list, .success-stories-section, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .cta-section {
    border-radius: 11px;
    padding: 30px 8px;
  }
  .section, .hero-section {
    padding: 28px 7vw;
    margin-bottom: 45px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-bottom: 8px;
  }
  .footer-brand img {
    height: 36px;
  }
  .footer-hours {
    padding-left: 7vw;
    padding-right: 0;
    font-size: 0.96em;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 17px 11px 14px 11px;
  }
  .cookie-modal {
    width: 97vw;
    padding: 20px 7vw;
  }
}
@media (max-width: 540px) {
  .section, .hero-section, .cta-section {
    padding: 15px 2vw;
    margin-bottom: 28px;
  }
  .footer-hours {
    font-size: 0.93em;
    padding-left: 2vw;
  }
}

/* =============================
   UTILITIES & MISC
   ============================= */
::-webkit-input-placeholder { color:#b9c2ce; font-style:italic; }
::-moz-placeholder { color:#b9c2ce; font-style:italic; }
:-ms-input-placeholder { color:#b9c2ce; font-style:italic; }
input::placeholder, textarea::placeholder { color:#b9c2ce; font-style:italic; }

/* List tweaks for elegant bullets */
ul {
  list-style-type: disc;
  padding-left: 1.4em;
}
ol {
  list-style-type: decimal;
  padding-left: 1.4em;
}

/* Cards hover effect */
.card:hover, .profile-card:hover {
  box-shadow: 0 8px 30px rgba(35,81,140,0.13);
}

/* Contact/instructions purple icons */
address img {
  filter: grayscale(23%) contrast(1.24) brightness(0.97);
}

/* =============================
   MICRO-ANIMATIONS & INTERACTIONS
   ============================= */
a, .cta-primary, .feature-card, .story-card, .card, .profile-card, .testimonial-card, .mobile-menu, .mobile-menu-close, .mobile-menu-toggle, .cookie-btn, .cookie-settings-btn, .cookie-modal .close {
  transition: all 0.18s cubic-bezier(.3,.42,.2,1.0);
}

/* =============================
   ACCESSIBILITY & CONTRAST
   ============================= */
/* Testimonial and review backgrounds must be light, text must be dark & readable! */
.testimonial-card, .story-card {
  background: #FEFEFE;
  color: #1d263b;
}
.testimonial-card p, .testimonial-card strong,
.story-card h3, .story-card p {
  color: #183258;
}

/* =============================
   PRINT STYLES
   ============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none!important; }
  .section, .hero-section, .cta-section { background: none; }
}

/* =============================
   FONTS (ensure Playfair Display & Merriweather load via HTML as fallback if not otherwise loaded externally) 
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Merriweather:wght@400;700&display=swap');
