/* =======================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FB;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================
   ROOT VARIABLES & BASE FONTS
   ============================ */
:root {
  --color-primary: #14345C;
  --color-secondary: #F1E4E8;
  --color-accent: #C39CB8;
  --color-bg: #F8F9FB;
  --color-white: #FFFFFF;
  --color-dark: #222E3A;
  --color-lightgray: #EBEFF3;
  --color-border: #DBDFE5;
  --color-shadow: rgba(20, 52, 92, 0.06);
  --transition-fast: 0.18s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 4px 16px var(--color-shadow);
  --shadow-subtle: 0 2px 8px var(--color-shadow);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;600;700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-bg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 600;
}

p, ul, ol {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
}
li {
  margin-bottom: 7px;
}
strong {
  font-weight: 700;
}

/* ======================
   LAYOUT: Containers
   ====================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ========================================
   NAVIGATION & HEADER (Desktop & Mobile)
   ======================================== */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  justify-content: flex-start;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}
header nav a.cta {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 24px;
  margin-left: 16px;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px var(--color-shadow);
}
header nav img {
  height: 38px;
  width: auto;
  margin-right: 22px;
}

/* ======================
   BURGER MENU - MOBILE
   ====================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 2rem;
  padding: 4px 18px;
  margin: 4px 0;
  cursor: pointer;
  z-index: 92;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 8px 32px var(--color-shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.45,.04,.59,1.14);
  padding: 20px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin: 14px 20px 0 0;
  z-index: 220;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0 0 28px;
  width: 75vw;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 7px;
  transition: background var(--transition-fast), color var(--transition-fast);
  width: 100%;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Hide main nav on mobile */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 15px;
  }
}

@media (min-width: 993px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

/* =======================
   GENERAL SECTIONS & CTA
   ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section:last-child {
  margin-bottom: 0;
}
.cta {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  padding: 12px 28px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  margin-top: 20px;
  display: inline-block;
  transition: background 0.19s, box-shadow 0.19s, transform 0.16s;
  border: none;
  cursor: pointer;
}
.cta:hover,
.cta:focus {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.04);
}

/* ======================
   HERO & ABOUT (STRUCTURE)
   ====================== */
section.hero, .hero-section {
  padding: 48px 0 36px 0;
  background: var(--color-primary);
  color: var(--color-white);
}
section.hero h1, .hero-section h1 {
  color: var(--color-white);
  font-size: 2.5rem;
}

/* ===============================
   CARDS, GRIDS, FLEX LAYOUTS
   =============================== */
.features-grid, .team-profiles, .testimonial-row, .card-container, .card-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.features-grid > div, .team-profiles > div, .card, .testimonial-card, .faq-list > li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 24px 24px 24px;
  flex: 1 1 240px;
  min-width: 230px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.18s;
}
.features-grid > div:hover, .team-profiles > div:hover, .card:hover, .testimonial-card:hover, .faq-list > li:hover {
  box-shadow: 0 6px 22px var(--color-shadow);
  transform: translateY(-3px) scale(1.017);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.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-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  min-width: 240px;
  background: var(--color-lightgray);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 3px 12px var(--color-shadow);
  color: var(--color-dark);
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-dark);
  font-weight: 600;
}

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

.text-section {
  padding: 14px 2px;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
.text-section ul li {
  list-style: disc;
  margin-left: 16px;
  margin-bottom: 7px;
}
.text-section ol li {
  list-style: decimal;
  margin-left: 16px;
  margin-bottom: 7px;
}

.team-profiles {
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.team-profiles > div {
  min-width: 220px;
}

.faq-list {
  flex-direction: column;
  gap: 22px;
}
.faq-list li strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.faq-list li p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Address Info and Icons */
.address-information {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin: 14px 0 12px 0;
  font-weight: 600;
}
.contact-map {
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.contact-map img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

/* List icons (for contact & details) */
ul li img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

/*======================================
  FOOTER
======================================*/
footer {
  background: var(--color-dark);
  padding: 32px 0 15px 0;
  color: var(--color-white);
  text-align: center;
  position: relative;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer p {
  color: var(--color-white);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* =====================================
   Cookie Consent Banner & Modal Styles
   ===================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: 100vw;
  background: var(--color-white);
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -3px 12px var(--color-shadow);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  animation: fadeInBanner 0.8s;
}
@keyframes fadeInBanner {
  0% {
    transform: translateY(80px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-consent-banner p {
  color: var(--color-dark);
  font-size: 0.98rem;
  margin-bottom: 7px;
  text-align: center;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  justify-content: center;
}
.cookie-btn {
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 26px;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.19s, color 0.19s, transform 0.17s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--color-accent);
}
.cookie-btn.reject {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--color-accent);
  color: var(--color-white);
}
.cookie-btn.settings {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Cookie Modal (Dialog) */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1100;
  transform: translate(-50%, -50%) scale(0.98);
  background: var(--color-white);
  border-radius: 14px;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 9px 48px var(--color-shadow);
  width: 94vw;
  max-width: 440px;
  padding: 34px 28px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.45s;
}
.cookie-modal.open {
  display: flex;
  animation: cookieModalIn 0.38s;
}
@keyframes cookieModalIn {
  0% {opacity: 0; transform: translate(-50%, -50%) scale(0.89);}
  80% {opacity: 1; transform: translate(-50%, -50%) scale(1.04);}
  100% {opacity: 1; transform: translate(-50%, -50%) scale(1);}
}
.cookie-modal h3 {
  font-size: 1.28rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}
.cookie-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-lightgray);
  border-radius: 22px;
  transition: 0.2s;
  border: 1.5px solid var(--color-border);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 1.2px;
  background: var(--color-white);
  border-radius: 50%;
  transition: 0.17s;
  box-shadow: 0 1px 3px var(--color-shadow);
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-primary);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
  background: var(--color-accent);
}
.cookie-modal .cookie-modal-close {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  border-radius: 6px;
  align-self: flex-end;
  padding: 7px 20px;
  border: none;
  margin-top: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--color-primary);
}

/* =========================
   MEDIA QUERIES - RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  header nav a.cta {
    margin-left: 0;
  }
}
@media (max-width: 860px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    max-width: 97vw;
    padding: 0 2vw;
  }
  .features-grid, .team-profiles, .testimonial-row, .card-container, .card-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .team-profiles > div, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
  }
  .testimonial-row {
    gap: 18px;
  }
  .section {
    padding: 32px 6px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  header {
    padding-bottom: 5px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.43rem;
  }
  h2 {
    font-size: 1.11rem;
  }
  .section {
    padding: 20px 0;
    margin-bottom: 26px;
  }
  .cookie-consent-banner {
    padding: 16px 2px;
    font-size: 0.92rem;
  }
  .cookie-modal {
    padding: 18px 6px 16px 6px;
  }
}

/* ======================
   MICRO-INTERACTIONS
   ====================== */
.card, .testimonial-card, .features-grid > div, .team-profiles > div, .faq-list > li {
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .testimonial-card:hover, .features-grid > div:hover, .team-profiles > div:hover, .faq-list > li:hover {
  box-shadow: 0 6px 22px var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* Form Styles (Contact, Preferences) */
input, textarea {
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 1rem;
  width: 100%;
  background: var(--color-lightgray);
  transition: border 0.17s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--color-primary);
  background: var(--color-white);
}

::-webkit-input-placeholder {color: #999;}
::-moz-placeholder {color: #999;}
:-ms-input-placeholder {color: #999;}
::placeholder {color: #999;}

/* ===============================
   ACCESSIBILTY & FOCUS STATES
   =============================== */
a:focus, .cta:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ======================
   PRINT OVERRIDE
   ====================== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {display: none !important;}
  .container, .content-wrapper, section {max-width: 100% !important; padding: 0 !important;}
}
