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

/* ========================
   BRAND FONTS
======================== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #F7F7F7;
  color: #2C4B75;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #2C4B75;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 10px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

p, ul, ol, address, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #273045;
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  color: #2C4B75;
}
strong, b {
  font-weight: 700;
}

/* ========================
   VARIABLE COLORS
======================== */
:root {
  --primary: #2C4B75;
  --secondary: #F7F7F7;
  --accent: #FCC515;
  --neutral-dark: #273045;
  --neutral-light: #fffdfa;
  --warm-orange: #FFD89E;
  --warm-pink: #FFE6D2;
  --soft-shadow: 0 2px 12px rgba(44, 75, 117, 0.08);
  --border-radius: 18px;
}

/* =============
   CONTAINER
============== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  background: var(--neutral-light);
  box-shadow: var(--soft-shadow);
}

/* ========================
   HEADER & NAVIGATION
======================== */
header {
  background: var(--neutral-light);
  box-shadow: 0 1px 8px rgba(44, 75, 117, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 60;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
  padding: 8px 6px;
  border-radius: 10px;
  line-height: 1.2;
}
nav a:hover, nav a:focus {
  color: #d08d23;
  background: var(--warm-orange);
}
nav .cta.primary {
  margin-left: 22px;
}

/* ========================
   CTA BUTTONS
======================== */
.cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 32px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 1px 8px rgba(252, 197, 21, 0.13);
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cta.primary {
  background: var(--accent);
  color: var(--primary);
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffe086;
  color: #9E6F18;
  box-shadow: 0 2px 16px rgba(252, 197, 21, 0.18);
}

/* ========================
      HERO SECTION
======================== */
.hero {
  background: linear-gradient(120deg, #FFD89E 0%, #FFE6D2 100%);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 4px 24px rgba(44, 75, 117, 0.06);
  margin-bottom: 44px;
  padding: 50px 0 42px 0;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.hero .content-wrapper {
  max-width: 540px;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 6px;
}
.hero p {
  color: var(--neutral-dark);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ===========================
  FLEXBOX LAYOUTS & GAPS
=========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--neutral-light);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 3px 20px rgba(252,197,21,0.09);
  transform: translateY(-2px) scale(1.012);
}
.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: #FFF5E2;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 16px rgba(252,197,21,0.08);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 700px;
  font-size: 1.12rem;
}
.testimonial-card blockquote {
  color: #2C4B75;
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 4px 0;
  flex: 1 1 auto;
}
.testimonial-card cite {
  color: #8d6421;
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  margin-left: 8px;
  margin-top: 0.5em;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.feature-grid li {
  flex: 1 1 230px;
  background: #FFF8ED;
  border-radius: var(--border-radius);
  padding: 18px 13px 14px 13px;
  box-shadow: 0 1px 8px rgba(252,197,21,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.01rem;
  margin-bottom: 10px;
}
.service-list-short,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.service-list-short li,
.service-list li {
  background: #FFF8ED;
  border-radius: 12px;
  padding: 11px 18px;
  box-shadow: 0 1px 6px rgba(252,197,21,0.07);
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Team List */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.team-member {
  flex: 1 1 220px;
  border-radius: var(--border-radius);
  background: #FFF8ED;
  box-shadow: 0 1px 10px rgba(252,197,21,0.06);
  padding: 22px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  transition: box-shadow 0.15s, transform 0.13s;
}
.team-member:hover {
  box-shadow: 0 4px 18px rgba(44,75,117,0.09), 0 0 0 1px #FFE6D2;
  transform: translateY(-2px) scale(1.016);
}

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

/* =======================
      GENERAL SPACING
======================= */
section {
  margin-bottom: 60px;
}
section:last-child {
  margin-bottom: 0;
}

.content-wrapper > *:not(:last-child) { margin-bottom: 16px; }

/* ========================
    ADDRESS, MAP, ICONS
======================== */
address {
  font-style: normal;
  color: #273045;
  font-size: 1.04rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
address img {
  display: inline;
  width: 1.2em;
  vertical-align: middle;
  margin-right: 7px;
}
.map-embed {
  margin: 18px 0 0 0;
  width: 100%;
  max-width: 620px;
  height: 180px;
  border-radius: var(--border-radius);
  background: #FFE6D2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================
      ARTICLE & BLOG
======================== */
article {
  background: #FFF8ED;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px rgba(252,197,21,0.06);
  padding: 22px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.13s, transform 0.13s;
}
article:hover {
  box-shadow: 0 3px 16px rgba(252,197,21,0.12);
  transform: translateY(-2px) scale(1.01);
}
article h3 {
  margin-bottom: 7px;
}
article a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  margin-top: 5px;
  transition: color 0.09s;
}
article a:hover {
  color: #d08d23;
}

/* ========================
      FOOTER
======================== */
footer {
  background: var(--primary);
  color: #fffdfa;
  padding: 42px 0 20px 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 -2px 10px rgba(44,75,117,0.10);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav,
.brand-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #FBEFC8;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.14s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
.brand-info img {
  width: 34px;
  height: 34px;
  margin-right: 9px;
}
.brand-info span {
  font-size: 0.98rem;
  color: #fffdfa;
}

/* ==========================
     TABLETS & DESKTOP
========================== */
@media (min-width: 769px) {
  .content-wrapper { gap: 0; }
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand-info {
    justify-content: flex-end;
  }
  .footer-nav {
    justify-content: flex-start;
  }
  nav {
    gap: 20px;
  }
}

/* ========================
    MOBILE BURGER MENU
======================== */
.mobile-menu-toggle {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  border-radius: 16px;
  margin-left: 18px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.13s, color 0.18s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFD89E;
  color: #8d6421;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(252,197,21, 0.98);
  transform: translateX(-100%);
  transition: transform 0.30s cubic-bezier(0.77,0.2,0.05,1.0);
  z-index: 200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 17px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 27px;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  transition: background 0.13s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffe086;
  color: #8d6421;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 70px;
  align-items: center;
}
.mobile-nav a {
  width: 100vw;
  display: block;
  font-size: 1.23rem;
  padding: 19px 0 19px 34px;
  color: var(--primary);
  background: none;
  font-weight: 600;
  border-bottom: 1px solid #FBEFC8;
  transition: background 0.11s, color 0.12s;
}
.mobile-nav a.cta.primary {
  background: var(--primary);
  color: #fffdfa;
  font-size: 1.12rem;
  margin: 18px 24px;
  border-radius: 32px;
  text-align: center;
  padding: 14px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE6D2;
  color: #8d6421;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  nav {
    display: none;
  }
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 500;
  background: #FFF8ED;
  color: #2C4B75;
  box-shadow: 0 -2px 18px rgba(44, 75, 117, 0.09);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  animation: fade-in-bottom 0.44s;
}
@keyframes fade-in-bottom {
  0% { transform: translateY(80px); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: translateY(0px); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cta {
  padding: 11px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  margin: 0;
  transition: background 0.14s, color 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 4px rgba(252,197,21,0.05);
}
.cookie-banner button.reject-btn {
  background: #ffe086;
  color: #805800;
}
.cookie-banner button.settings-btn {
  background: #F7F7F7;
  color: #8d6421;
  border: 1px solid #FCC515;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ffd04b;
  color: #6b5200;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(44,75,117,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal 0.32s;
}
@keyframes fade-in-modal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF8ED;
  max-width: 410px;
  width: 92vw;
  border-radius: 30px;
  box-shadow: 0 6px 36px rgba(44, 75, 117, 0.09);
  padding: 30px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  animation: pop-fade-in 0.24s;
}
@keyframes pop-fade-in {
  0% { transform: scale(0.94) translateY(36px); opacity: 0; }
  98% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid #ffd04b;
}
.cookie-category label {
  font-size: 1rem;
  color: #273045;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.7em;
}
.cookie-category .always-on {
  color: #8d6421;
  font-size: 0.96em;
  background: #ffe086;
  border-radius: 9px;
  padding: 2px 10px;
  margin-left: 9px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 18px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  border-radius: 17px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s, color 0.16s;
}
.cookie-modal-close:hover {
  background: #ffd04b;
}

/* ========================
    RESPONSIVE DESIGN
======================== */
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
  }
  .card, .team-member, .article {
    flex: 1 1 90vw;
  }
  .hero .container {
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
  }
  .hero {
    padding: 32px 0 28px 0;
    min-height: 140px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1.03rem;
  }
  .service-list-short,
  .service-list,
  .feature-grid,
  .team-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .footer .container,
  .footer-nav, .brand-info {
    flex-direction: column !important;
    gap: 12px;
  }
  .Section, section, .section {
    padding: 23px 5px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1em;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  address {
    gap: 3px;
  }
  .cta {
    width: 100%;
    font-size: 1.03rem;
    padding: 12px 0;
  }
  .mobile-nav a {
    font-size: 1.09rem;
    padding: 18px 0 18px 25px;
  }
}

/* ================
  FOCUS OUTLINE
================ */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2px solid #d08d23;
  outline-offset: 2px;
}

/* ========================
   MICRO-INTERACTIONS
======================== */
.card, .team-member, article, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:active, .team-member:active, article:active, .testimonial-card:active {
  transform: scale(0.99);
  box-shadow: 0 1px 4px #FFD89E;
}

/* Hide visually if .hidden is added */
.hidden {
  display: none !important;
}

/* =============
   UTILITY
============ */
.text-center {
  text-align: center;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.gap-16 { gap: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }

/* Ensure min spacing for all cards/sections */
.card, .testimonial-card, .feature-grid li, .team-member, article, .section {
  margin-bottom: 20px;
}

/* =========
  PRINT
========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  html, body { background: #fff; color: #222; }
  .container, .section, .content-wrapper { box-shadow: none !important; border: none !important; background: #fff !important; }
}
