/* =======================
   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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #163754;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.6,.2,.25,1) 0s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}

/* =========================
   BRAND COLORS & TYPOGRAPHY
   ========================= */
:root {
  --color-primary: #163754;
  --color-secondary: #5FB25B;
  --color-accent: #F5F7FA;
  --color-vibrant1: #F15772;   /* artistic accent */
  --color-vibrant2: #FCBE2D;   /* warm gold accent */
  --color-vibrant3: #0593E2;   /* blue accent for art */
  --shadow-card: 0 6px 40px 0 rgba(22, 55, 84, 0.12);
  --radius-xl: 36px;
  --radius-lg: 20px;
  --radius-md: 10px;
  --radius-sm: 5px;
  --transition-main: all 0.28s cubic-bezier(.69,.06,.25,1.02);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #163754;
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; line-height: 1.13; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.37rem; margin-bottom: 14px; font-weight: 700; }
h4, h5, h6 { font-size: 1.08rem; margin-bottom: 10px; font-weight: 700; }
p, li, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #2D3659;
  margin-bottom: 15px;
}
strong, b { color: var(--color-vibrant1); font-weight: 700; }

/* =============
   CONTAINERS
   ============= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 24px 0 rgba(22,55,84,0.11);
  /* optional background paint splatter decorative */
  position: relative;
  overflow: hidden;
}

main > section:not(.hero) {
  margin-bottom: 60px;
}
.hero {
  background: linear-gradient(120deg,#F5F7FA 75%,#FCBE2D 100%);
  padding-top: 42px;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  min-height: 300px;
  box-shadow: 0 6px 40px 0 rgba(22, 55, 84, 0.10);
  position: relative;
}

/* ============
   HEADER
   ============ */
header {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(22, 55, 84, 0.11);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 0 22px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.32rem;
}
.logo img {
  width: 38px;
  height: auto;
  margin-right: 8px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  position: relative;
  font-weight: 700;
  transition: var(--transition-main);
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-vibrant2);
}
.cta.primary {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 30px;
  margin-left: 18px;
  transition: var(--transition-main);
  box-shadow: var(--shadow-card);
  letter-spacing: 0px;
  border: none;
  cursor: pointer;
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-vibrant1);
  filter: brightness(1.1);
  color: #fff;
  transform: translateY(-3px) scale(1.045) rotate(-1.5deg);
  box-shadow: 0 8px 44px 0 rgba(245,87,110,0.18);
}

.cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  margin-top: 10px;
  transition: var(--transition-main);
  box-shadow: 0 1px 12px 0 rgba(22,55,84,0.08);
  position: relative;
  overflow: hidden;
}
.cta:hover,
.cta:focus {
  background: var(--color-vibrant2);
  color: var(--color-primary);
  box-shadow: 0 6px 24px 0 rgba(252,190,45,0.12);
  letter-spacing: 1px;
  transform: translateY(-2px) scale(1.03) rotate(1deg);
}

/* ===================
   MOBILE NAVIGATION
   =================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.2rem;
  border-radius: var(--radius-lg);
  padding: 6px 18px 6px 15px;
  margin-left: 16px;
  border: none;
  cursor: pointer;
  z-index: 1201;
  transition: background 0.24s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-vibrant1);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 370px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 22px 4px rgba(22,55,84,0.13);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.63,.1,.12,1);
  z-index: 1200;
  padding: 44px 24px 0 24px;
  gap: 40px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  margin-top: -12px;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-vibrant1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--color-primary);
  padding: 12px 0;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition-main);
  position: relative;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-vibrant2);
}

@media (max-width: 990px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   LAYOUT PATTERNS & FLEXBOX
   =========================== */
.content-wrapper,
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  min-width: 260px;
  flex: 1 1 290px;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 8px 44px 0 rgba(22,55,84,0.15);
  z-index: 1;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fdfdfc;
  border-left: 6px solid var(--color-secondary);
  box-shadow: 0 6px 28px 0 rgba(39, 127, 83, 0.10);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 470px;
  transition: box-shadow .19s, border-color .18s;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.12rem;
  color: #2D3659;
  margin-bottom: 6px;
  line-height: 1.4;
}
.testimonial-card cite {
  font-size: 0.98rem;
  font-style: normal;
  color: var(--color-vibrant1);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.testimonial-card:hover {
  border-color: var(--color-vibrant2);
  box-shadow: 0 12px 52px 0 rgba(39,127,83,0.13);
  background: #fff9f4;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}
.service-item {
  background: #fffbe9;
  border-radius: var(--radius-lg);
  padding: 26px 30px 22px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 330px;
  box-shadow: 0 3px 22px 0 rgba(252,190,45,0.12);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .16s, background .17s;
}
.service-item:hover {
  box-shadow: 0 12px 32px 0 rgba(252,190,45,0.18);
  background: #fff7db;
  transform: translateY(-3px) scale(1.02) rotate(-0.7deg);
}

/* =========================
   SPACING & ARTISTIC FLOURISH
   ========================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section { align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; }

section {
  margin-bottom: 60px;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .service-item, .card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 24px 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    min-height: 180px;
  }
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 26px 5px 26px 5px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ======================
   ARTISTIC ELEMENTS
   ====================== */
.section::before {
  content: "";
  position: absolute;
  top: -32px; left: -60px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, var(--color-vibrant2) 60%, transparent 100%);
  opacity: 0.19;
  z-index: 0;
  pointer-events: none;
}
.section::after {
  content: "";
  position: absolute;
  bottom: -42px; right: -70px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, var(--color-vibrant3) 60%, transparent 100%);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.hero .container::before {
  content: "";
  display: block;
  position: absolute;
  left: 0; bottom: -32px;
  width: 120px; height: 90px;
  background: radial-gradient(circle,var(--color-vibrant1) 56%,transparent 100%);
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   LISTS, BLOCKQUOTES, HR
   ============================ */
ul, ol {
  padding-left: 21px;
  font-size: 1.06rem;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  line-height: 1.55;
}
ul li::before {
  content: '';
  background: var(--color-vibrant2);
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 13px;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(252,190,45,0.22);
}
blockquote {
  font-style: italic;
  color: #163754;
  font-size: 1.12rem;
  border-left: 4px solid var(--color-secondary);
  padding-left: 14px;
  margin: 14px 0 14px 0;
}
hr {
  border: none;
  border-top: 1px solid #e3e8ec;
  margin: 30px 0;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #eaf5e6;
  padding: 42px 0 22px 0;
  border-top: 1px solid #d2e9d0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
footer img {
  width: 50px;
  margin-bottom: 13px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  transition: color .2s;
}
.footer-nav a:hover {
  color: var(--color-vibrant1);
}
.footer-contact p {
  color: #376a59;
  font-size: 0.99rem;
  margin-bottom: 2px;
}

/* ======================
   COOKIE CONSENT BANNER
   ====================== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--color-vibrant1);
  box-shadow: 0 -8px 50px 0 rgba(22,55,84,0.08);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 9px;
  animation: cookieSlideIn 0.55s cubic-bezier(.75,.21,.16,1.1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-content {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
#cookie-banner p {
  font-size: 1rem;
  color: #30343e;
  max-width: 390px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 1.01rem;
  font-weight: 700;
  margin-right: 8px;
  cursor: pointer;
  transition: background .16s, color .16s;
  border: none;
}
.cookie-btn.reject {
  background: var(--color-vibrant1);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.09);
  background: var(--color-vibrant2);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44, 52, 74, 0.42);
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.33s;
}
#cookie-modal.open { display: flex; }
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 28px 29px 28px;
  width: 97vw;
  max-width: 460px;
  box-shadow: 0 16px 44px 0 rgba(22,55,84,0.09);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalPopIn 0.3s cubic-bezier(.59,.13,.37,1.17);
}
@keyframes modalPopIn {
  from {transform: scale(0.91) translateY(40px) rotate(-3deg); opacity: 0.2;}
  to {transform: scale(1) translateY(0) rotate(0); opacity: 1;}
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal-header h3 {
  font-size: 1.28rem;
  color: var(--color-primary);
  font-family: 'Montserrat';
  font-weight: 700;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 6px 9px;
  transition: background 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #f5f5f5;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: #2d365b;
  user-select: none;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
}
.cookie-category.essential label {
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-category.essential input {
  display: none;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 13px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 16px 6vw 16px 6vw;
  }
  #cookie-banner .cookie-banner-content { flex-direction: column; gap: 16px; }
}

/* ===============
   ANIMATIONS
   =============== */
.cta, .cta.primary, .card, .service-item, .testimonial-card,
.mobile-menu, .mobile-menu-toggle, .cookie-btn, .cookie-modal-content {
  transition: var(--transition-main);
}
.cta:active, .cta.primary:active {
  filter: brightness(0.97);
}
/* Slight bounce-in for hero headings */
.hero h1 { animation: heroPopIn 0.8s cubic-bezier(.66,.01,.11,1.13); }
@keyframes heroPopIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  80% { opacity: 1; transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: none; }
}

/* ===============
   FORMS
   =============== */
input, textarea, select {
  border: 1px solid #e3e8ec;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 1.05rem;
  margin-bottom: 16px;
  width: 100%;
  background: #f7fafc;
  color: #163754;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
}

/* ===============
   MISC
   =============== */
::-webkit-selection, ::selection {
  background: var(--color-vibrant2);
  color: #2d2655;
}

::-webkit-scrollbar {
  width: 10px;
  background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 6px;
}

/* ===============
   UTILITIES & ACCENT FONTS
   =============== */
.accent {
  color: var(--color-vibrant1);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  text-shadow: 0 1px 3px #fffabe1d;
}
.display {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-secondary);
  font-size: 2.8rem;
}

/* ================
   RESPONSIVE HIERARCHY
   ================ */
@media (max-width: 600px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.05rem; }
  .cta.primary, .cta { padding: 10px 14px; font-size: 1rem; }
  .card, .testimonial-card, .section, .service-item {
    padding: 15px 8px !important;
    font-size: 1rem;
  }
  .container {
    padding: 0 2vw;
  }
}

/* ===== For screen readers ===== */
.sr-only {
  user-select: none;
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
/* Hide navigation when modal open */
body.menu-open {
  overflow: hidden;
}
