/* =======================
   CSS RESET & BASE STYLES
   ======================= */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
* {
  box-sizing: inherit;
}
html {
  line-height: 1.15;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #222938;
  min-height: 100vh;
  color: #F7EBC5;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #222938 0%, #2B3A55 100%);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #A47551;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f0c585;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
}
strong, b { font-weight: 700; }

/* =======================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: #FFF;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.4rem; line-height: 1.18; margin-bottom: 18px; }
h2 { font-size: 1.7rem; line-height: 1.22; margin-bottom: 14px; }
h3 { font-size: 1.26rem; line-height: 1.28; margin-bottom: 10px; }
h4 { font-size: 1.07rem; margin-bottom: 6px; }
p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #F7EBC5;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.7;
}
p.subheadline {
  font-size: 1.13rem;
  color: #f0c585;
  font-weight: 500;
}
.text-section h1, .text-section h2, .text-section h3 {
  color: #F7EBC5;
}

/* VISUAL HIERARCHY */
.section h1, .section h2 { margin-bottom: 16px; }
.section h3 { margin-bottom: 12px; }

/* =======================
   CONTAINER & LAYOUTS
========================= */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-right: 20px;
  padding-left: 20px;
  max-width: 1120px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================
   HEADER & NAVIGATION
========================= */
header {
  width: 100%;
  background: #242e46;
  box-shadow: 0 2px 12px rgba(43,58,85,0.12);
  z-index: 30;
  position: relative;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px #F7EBC5bb);
  transition: filter .3s;
}
.logo:hover img, .logo:focus img {
  filter: drop-shadow(0 0 24px #F7EBC5);
}

header .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 18px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  color: #F7EBC5;
  text-shadow: 0 1px 12px #2B3A5533;
  position: relative;
  padding: 6px 2px;
}
.main-nav a:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,#A47551 0%,#F7EBC5 100%);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  transform: scaleX(0.55);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  opacity: 1;
  transform: scaleX(1);
}
.main-nav a:hover, .main-nav a:focus {
  color: #A47551;
}

.cta.primary, .cta.secondary {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  padding: 12px 26px;
  margin-left: 22px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  background: #A47551;
  color: #FFF;
  box-shadow: 0 2px 18px #a4755136,0 0px 0px 1.5px #997050 inset;
  transition: background .22s, box-shadow .18s, color .14s, filter .12s;
  position: relative;
  z-index: 2;
}
.cta.primary:hover, .cta.primary:focus {
  background: #F7EBC5;
  color: #2B3A55;
}
.cta.secondary {
  background: transparent;
  color: #A47551;
  border: 2px solid #A47551;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #A47551;
  color: #FFF;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #A47551;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 10px;
  display: none;
  transition: color .16s, filter .16s;
  z-index: 60;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A47551;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    margin-left: 6px;
  }
  .cta.primary {
    font-size: .98rem;
    padding: 10px 18px;
    margin-left: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta.primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============================
   MOBILE MENU (BURGER NAVIGATION)
============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,29,45,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.63,.03,.22,.99), opacity .28s;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F7EBC5;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 24px 4px 0;
  cursor: pointer;
  z-index: 150;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 0 0 32px;
}
.mobile-nav a {
  color: #F7EBC5;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.32rem;
  padding: 12px 0 4px 0;
  position: relative;
  border-radius: 14px;
  transition: background .18s, color .15s;
  min-width: 180px;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: #2B3A55;
  color: #A47551;
  outline: none;
}
.mobile-nav a:hover {
  color: #A47551;
  background: #222938;
}
@media (max-width:1024px) {
  .mobile-menu {
    width: 100vw;
  }
}

/* =======================
   HERO / HEADER SECTION
========================= */
.hero {
  width: 100%;
  min-height: 360px;
  background: #2B3A55;
  background: linear-gradient(120deg, #2B3A55 70%, #A47551 125%);
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 4px 36px #2B3A5533;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}
.hero h1 {
  color: #F7EBC5;
  text-shadow: 0 4px 36px #2B3A55bb, 0 0px 3px #F7EBC5aa;
  font-size: 2.5rem;
}
.hero .subheadline {
  color: #A47551;
  font-size: 1.22rem;
  margin-bottom: 14px;
  font-family: 'Open Sans', sans-serif;
}

/* =======================
   FEATURES SECTION
========================= */
.features {
  background: #242e46;
  border-radius: 32px;
  box-shadow: 0 6px 32px 0 #A475511A;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 22px;
}
.feature-card {
  background: #232a3a;
  border-radius: 18px;
  padding: 24px 20px 20px 20px;
  width: 258px;
  box-shadow: 0 2px 18px #2B3A5533, 0 0 0 1.7px #F7EBC51C inset;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform .18s, box-shadow .22s;
  border: 1.6px solid #2B3A5555;
  position: relative;
  margin-bottom: 20px;
}
.feature-card h3 {
  color: #F7EBC5;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: #e9cfa6;
  font-size: 1rem;
}
.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 10px 32px #A475514A, 0 0 0 2.2px #A47551CC inset;
}

/* =======================
   TESTIMONIALS
========================= */
.testimonials {
  margin-bottom: 60px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fcfcfa;
  color: #232a3a;
  border-radius: 18px;
  box-shadow: 0 2px 18px #2B3A5534;
  min-width: 280px;
  max-width: 345px;
  padding: 24px 20px 24px 22px;
  margin-bottom: 20px;
  align-items: flex-start;
  flex: 1 1 30%;
  border: 2px solid #F7EBC5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  font-size: 1.07rem;
  transition: box-shadow .22s,transform .18s;
}
.testimonial-card strong {
  color: #A47551;
  font-size: 0.98rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  margin-top: 8px;
}
.testimonial-card p {
  color: #232a3a;
  font-size: 1.07rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px #A4755142;
  transform: scale(1.022);
}

/* CTA Section */
.cta {
  background: #A47551;
  padding: 42px 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 24px #A4755130, 0 0 0 1.8px #F7EBC5aa inset;
  margin-bottom: 48px;
}
.cta .content-wrapper {
  text-align: center;
  width: 100%;
  align-items: center;
}
.cta h2 {
  color: #fff;
}
.cta .cta.secondary {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* =======================
   FOOTER
========================= */
footer {
  background: #232a3a;
  color: #F7EBC5;
  padding: 36px 0 24px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 24px #232a3a19;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  color: #A47551;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: color .19s;
  line-height: 1.4;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7EBC5;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}
.footer-info img {
  height: 42px;
  width: 42px;
}
.footer-info div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  filter: grayscale(0.08);
  transition: filter .18s,box-shadow .18s;
}
.social-links a:hover img {
  filter: drop-shadow(0 0 16px #F7EBC580);
}
.social-links img {
  width: 27px; height: 27px;
  display: block;
}

/* =======================
   GENERIC UTILITIES
==================== */
.map-embed img {
  max-width:220px; border-radius:16px; box-shadow:0 2px 24px #2B3A5534;
}
.text-section {
  margin-bottom: 20px;
}
.team-bio-list h3 {
  margin-bottom: 7px;
  margin-top: 18px;
  color: #F7EBC5;
}
.team-bio-list p {
  margin-bottom: 8px;
}
li img {
  margin-right: 8px;
  vertical-align: middle;
  height: 18px; width: 18px;
}
@media (min-width: 600px) {
  .feature-grid {
    justify-content: flex-start;
  }
}

/* =======================
   RESPONSIVE BREAKPOINTS
========================= */
@media (max-width: 900px) {
  .hero h1 { font-size: 1.65rem; }
  .feature-card { width: 100%; }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-content {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 26px 4px;
  }
  .content-wrapper, .content-grid, .card-container, .feature-grid, .testimonial-slider, .footer-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .feature-card, .testimonial-card {
    min-width: unset; max-width: unset; width: 100%; margin-bottom: 20px;
  }
  .hero, .cta {
    border-radius: 0;
    padding: 26px 8px;
  }
  .footer-info img { height: 36px; width: 36px; }
}
@media (max-width: 520px) {
  header .container { height: 56px; padding: 0 8px; }
  .footer-content { gap: 14px; }
  .container { padding: 0 5px; }
}
@media (max-width: 430px) {
  .logo img { height: 35px; }
  .footer-info img { height: 28px; width: 28px; }
}

/* ===============================
   ANIMATIONS & MICRO-INTERACTIONS
================================== */
.cta.primary, .cta.secondary, .feature-card, .testimonial-card, .main-nav a, .mobile-menu-toggle, .social-links a {
  transition: all 0.2s cubic-bezier(.5,.14,.46,1.38), box-shadow 0.18s cubic-bezier(.47,.07,.65,1.32);
}
.cta.primary:active {
  filter: brightness(96%);
  box-shadow: 0 1px 4px #A4755140;
}
.cta.secondary:active {
  filter: brightness(97%);
  box-shadow: 0 1px 5px #A4755112;
}

/* =======================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #232a3a;
  color: #F7EBC5;
  box-shadow: 0 -2px 20px #2B3A5541;
  padding: 22px 20px;
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  width: 100%;
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: all .38s cubic-bezier(.58,.15,.32,1.08);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__text {
  flex: 1 1 280px;
  margin-bottom: 8px;
  color: #F7EBC5;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Open Sans',sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  padding: 7px 24px;
  cursor: pointer;
  margin-right: 0;
  margin-bottom: 0;
  color: #fff;
  background: #A47551;
  box-shadow: 0 1px 7px #A4755120;
  transition: background .2s, color .13s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #F7EBC5;
  color: #2B3A55;
}
.cookie-btn.settings {
  background: transparent;
  color: #A47551;
  border: 1.4px solid #A47551;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: #A47551;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(27,34,52,0.93);
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .31s;
}
.cookie-modal-overlay.visible {
  display: flex;
}
.cookie-modal {
  background: #232a3a;
  color: #F7EBC5;
  border-radius: 22px;
  max-width: 360px;
  width: 94vw;
  padding: 34px 24px 26px;
  box-shadow: 0 0px 36px #2B3A5540;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h3 {
  color: #A47551;
  margin-bottom: 10px;
  font-size: 1.12rem;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #A47551;
  font-size: 2.2rem;
  position: absolute;
  top: 10px; right: 16px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #F7EBC5;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans',sans-serif;
}
input[type="checkbox"].cookie-toggle {
  accent-color: #A47551;
  width: 21px; height: 21px;
  border-radius: 4px;
}
.cookie-category .locked {
  color: #A47551;
  font-size: 0.88em;
  margin-left: 2px;
}

/* Ensuring spacing and no overlap */
footer .footer-nav, footer .footer-info, footer .social-links {
  margin-bottom: 12px;
}

/* Accessibility: always visible focus ring for clickable elements */
a:focus, button:focus, .cta:focus, .cookie-btn:focus {
  outline: 2px solid #A47551;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #A4755122;
}

/* Hide scrollbars in modal */
.cookie-modal::-webkit-scrollbar { width: 0px; }

/* Hide cookie category toggles for essential */
.cookie-category[data-essential] input[type="checkbox"] {
  display: none;
}

/* =======================
   PRINT STYLES (Optional)
========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display:none!important; }
  main { padding:0!important; }
}
