/* ========================================
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F5F5F7;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #174168;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background-color: transparent;
  color: #174168;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #47A77F;
  outline: none;
}

/* ========================================
   VARIABLE FALLBACKS (no CSS vars)
======================================== */

/* ========================================
   FONTS
======================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #012B47;
  word-break: break-word;
  line-height: 1.14;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #174168;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* ========================================
   CONTAINER & ALIGNMENT
======================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 720px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(30,38,94,0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
header img[alt="CogniShore Estates"] {
  height: 44px;
  margin-right: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
}
nav a {
  padding: 7px 12px;
  border-radius: 18px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s,
    box-shadow 0.2s, transform 0.2s;
}
nav a:hover, nav a:focus {
  background: #47A77F;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px 0 rgba(71,167,127,0.12);
  transform: translateY(-2px) scale(1.05);
}

/* Burger Mobile Toggle */
.mobile-menu-toggle {
  background: #174168;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  margin-left: 12px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #47A77F;
  color: #fff;
  box-shadow: 0 4px 18px rgba(71,167,127,0.15);
}

/* Hide on desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
}

/* CTA Btn in Header */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.05rem;
  padding: 12px 34px;
  border-radius: 28px;
  background: #ffce3a;
  color: #174168;
  border: none;
  box-shadow: 0 2px 8px rgba(71,167,127,0.07);
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.16s, transform 0.18s;
  outline: none;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.cta-btn.primary      {background: #47A77F; color: #fff;}
.cta-btn.secondary    {background: #174168; color: #fff;}
.cta-btn:hover, .cta-btn:focus {
  background: #fbb04b;
  color: #012B47;
  box-shadow: 0 6px 32px rgba(252,206,58,0.18);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #26c281;
  color: #fff;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #47A77F;
  color: #fff;
}

/* ========================================
   MOBILE NAVIGATION OVERLAY
======================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.87,-.41,.19,1.44);
  box-shadow: 0 0 60px rgba(23,65,104,0.21);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #174168;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: 20px 20px 0 0;
  cursor: pointer;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #47A77F;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #174168;
  padding: 11px 20px;
  border-radius: 17px;
  transition: background 0.19s, color 0.18s, transform 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #47A77F;
  color: #fff;
  transform: translateX(7px) scale(1.03);
}

/* ================================
   HERO & SECTIONS
================================ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
main section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper.text-section {
  background: #ffe97a33;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 6px 28px 0 rgba(252,206,58,0.10);
  gap: 18px;
}

/* ===============================
   FEATURE GRID & FLEX LAYOUTS
=============================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 0 0 12px 0;
}
.feature-grid li {
  background: #fffbea;
  border-radius: 20px;
  box-shadow: 0 1px 12px 0 rgba(252,206,58,0.09);
  flex: 1 1 260px;
  min-width: 230px;
  padding: 20px 20px 20px 60px;
  position: relative;
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #174168;
  word-break: break-word;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid li:hover, .feature-grid li:focus {
  box-shadow: 0 6px 28px 0 rgba(252,206,58,0.18);
  transform: translateY(-2px) scale(1.04);
}
.feature-grid li img {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin-right: 8px;
  filter: drop-shadow(0 3px 7px rgba(71,167,127,.08));
}

/* ==================================
   CARDS, CARD LAYOUTS & FLEX
================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(71,167,127,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===========================================
   TESTIMONIALS
=========================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(23,65,104,0.10);
  border-left: 8px solid #47A77F;
  min-width: 270px;
  max-width: 630px;
  font-style: italic;
  color: #0e3466;
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  margin: 0;
  color: #0e3466;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: #47A77F;
  margin-left: 4px;
}

/* ===========================================
   LAYOUT FLEX PATTERNS (MANDATORY CLASSES)
=========================================== */
.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;
}

/* =============================
   TEAMS & BIOS
============================= */
.team-bio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e9f6f1;
  border-radius: 17px;
  margin-bottom: 16px;
  padding: 24px 20px 12px 20px;
  box-shadow: 0 1px 10px 0 rgba(71,167,127,0.08);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #174168;
  color: #fff;
  padding: 32px 0;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  color: #fff;
}
footer nav a {
  color: #fff;
  opacity: .95;
  padding: 2px 7px;
  border-radius: 13px;
}
footer nav a:hover, footer nav a:focus {
  background: #47A77F;
  color: #fff!important;
}
footer address {
  font-style: normal;
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer address img {
  position: relative; top: 3px; width: 18px; height: 18px; margin-right: 2px;
}
footer address a {
  color: #ffe97a;
  text-decoration: underline;
  transition: color 0.18s;
}
footer address a:hover, footer address a:focus {
  color: #47A77F;
}

/* =========================================
   COOKIE CONSENT BANNER & MODAL
========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff7db;
  color: #174168;
  box-shadow: 0 -2px 22px 0 rgba(71,167,127,0.14);
  padding: 22px 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.5s cubic-bezier(.87,-.41,.19,1.44), opacity .32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 15px;
  margin-top: 9px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 18px;
  border: none;
  background: #ffce3a;
  color: #174168;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(71,167,127,0.07);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #47A77F;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: #fff;
  color: #174168;
  border: 2px solid #ffd44e;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #ffe97a;
  color: #174168;
}

/* COOKIE MODAL DIALOG */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1150;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(65,72,104,.39);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 48px 0 rgba(23,65,104,0.13);
  padding: 40px 30px 30px 30px;
  max-width: 370px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: bounceIn .65s cubic-bezier(.35,1.6,.23,1);
  position: relative;
}
@keyframes bounceIn {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.07); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: #174168;
  color: #fff;
  font-size: 1.4rem;
  border-radius: 16px;
  border: none;
  width: 32px; height: 32px;
  cursor: pointer;
  transition: background 0.16s;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #47A77F;
}
.cookie-prefs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-prefs .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-prefs input[type="checkbox"] {
  accent-color: #47A77F;
  transform: scale(1.18);
}
.cookie-prefs .essential {
  font-weight: 700;
  color: #174168;
}
.cookie-modal .save-btn {
  margin-top: 14px;
  background: #47A77F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
  background: #174168;
}

/* =====================================
   SPACING & PLAYFUL EFFECTS
====================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
h1, h2, h3 {
  margin-bottom: 18px;
}
ul, ol {
  margin-bottom: 24px;
}

/* Bouncy/animated headings and buttons (playful) */
h1, h2, h3, .cta-btn {
  animation: popin 0.65s cubic-bezier(.35,1.5,.23,1) both;
}
@keyframes popin {
  0% { transform: scale(0.8) rotate(-3deg); opacity: 0.6; }
  80% { transform: scale(1.09) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1;}
}

/* Playful hover scaling for images/icons */
img[alt^='icon-'], .feature-grid li img {
  transition: transform 0.20s cubic-bezier(.33,2,.65,.14);
}
img[alt^='icon-']:hover {transform: scale(1.24) rotate(-9deg);}
.feature-grid li img:hover {transform: scale(1.19) rotate(3deg);}

/* Bright shadows playful card hover */
.card:hover, .content-wrapper.text-section:hover {
  box-shadow: 0 8px 36px 0 rgba(71,167,127,0.16);
  transform: translateY(-3px) scale(1.02) rotate(-1deg);
  border-color: #ffd44e;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVENESS
========================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
  }
  .footer .container {
    flex-direction: column;
    align-items: center;
  }
  nav {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .content-wrapper.text-section {
    padding: 18px 8px;
  }
  header .container {
    gap: 8px;
    flex-wrap: wrap;
    min-height: 56px;
  }
  .mobile-menu-toggle {
    width: 40px; height: 40px; font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  section {
    margin-bottom: 36px;
    padding: 16px 0 24px 0;
  }
  .content-wrapper.text-section {
    padding: 10px 6px;
  }
}

/* ===========================
   SCROLLBAR STYLING (playful)
=========================== */
::-webkit-scrollbar {
  width: 10px;
  background: #f6fcfc;
}
::-webkit-scrollbar-thumb {
  background: #ffe97a;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #47A77F;
}

/* ===========================
   MISC
=========================== */
::selection {
  background: #ffe97a;
  color: #174168;
}

/* Accessibility outline for focus */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 3px dashed #47A77F;
  outline-offset: 3px;
}
/* ========== END STYLE.CSS ========== */
