/* 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #EFF2F7;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #23446D;
  background: #EFF2F7;
  min-height: 100vh;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23446D;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD800;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
strong, b {
  font-weight: 700;
}

/* BRAND COLOR VARIABLES */
:root {
  --primary: #23446D;
  --secondary: #EFF2F7;
  --accent: #FFD800;
  --dark: #212b37;
  --white: #fff;
  --gray: #E0E5EC;
  --box-shadow: 0 6px 24px 0 rgba(35,68,109,.08), 0 1.5px 6px 0 rgba(35,68,109,.12);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 24px;
  font-family: 'Roboto', Arial, sans-serif;
}

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}

.text-section ul, .text-section ol {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .subheadline { font-size: 1.05rem; }
}

/* GENERAL CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
}

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

/* FLEXBOX LAYOUTS (Mandatory Patterns) */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  padding: 32px 24px;
  min-width: 240px;
  min-height: 270px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-item:hover {
  box-shadow: 0 10px 32px -4px rgba(35,68,109,0.14), 0 2px 8px 0 rgba(35,68,109,0.13);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #FFD800 20%, #EFF2F7 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 60px 60px;
  margin-bottom: 60px;
  box-shadow: 0 8px 36px 0 rgba(35,68,109,0.08);
}
.hero h1 {
  font-family: 'Montserrat', cursive;
  color: var(--primary);
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 16px rgba(255, 216, 0, .16);
}

/* FEATURE GRID - Homepage */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.features .feature-item img {
  height: 48px;
  width: 48px;
  filter: drop-shadow(2px 4px 0px #ffd80033);
}

/* SERVICES PAGE CARDS */
.services .service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: start;
  margin-bottom: 32px;
}
.service-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  padding: 32px 24px 24px 24px;
  min-width: 240px;
  flex: 1 1 250px;
  min-height: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card:hover {
  box-shadow: 0 10px 40px -4px rgba(35,68,109,0.12), 0 2px 8px 0 rgba(35,68,109,0.15);
  transform: translateY(-3px) scale(1.035) rotate(1deg);
}
.service-price {
  margin-top: auto;
  padding: 4px 16px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 12px 12px 12px 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  align-self: flex-end;
}

/* TESTIMONIALS */
.testimonials .testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 18px 0 rgba(35,68,109,0.09);
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  margin-top: 0;
  transition: box-shadow 0.2s;
  flex-direction: column;
  align-items: flex-start;
  color: #222d36;
}
.testimonials .testimonial-card:hover {
  box-shadow:0 10px 30px 0 rgba(35,68,109,.14);
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  opacity: 0.9;
}
.testimonial-meta span {
  color: #FFD800;
  margin-left: 8px;
  font-family: 'Montserrat';
  font-size: 1.1rem;
}

/* CTA SECTION */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -6px 24px 0 rgba(35,68,109,0.06);
  margin-bottom: 60px;
  padding: 48px 20px !important;
}
.cta h2 {
  color: var(--accent);
}

/* BUTTONS */
.cta-button, .cookie-consent-btn, .cookie-settings-btn {
  display: inline-block;
  border-radius: 24px;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(255,216,0,.14);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 16px;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
  outline: none;
}
.cta-button:hover, .cta-button:focus,
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 8px 30px 0 rgba(35,68,109,0.07);
  transform: scale(1.045);
}

/* HEADER NAV */
header {
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(35,68,109,0.05);
  position: relative;
  z-index: 11;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  min-height: 72px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.main-nav a {
  font-size: 1rem;
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.18s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  border: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(35,68,109,.09);
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.14s;
  outline: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

@media (max-width:1024px) {
  .main-nav { gap: 10px; }
}
@media (max-width:900px) {
  .main-nav { gap: 3px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    gap: 10px;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 1002;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.77,0.2,0.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open { /* JS adds .open */
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.5rem;
  padding: 24px 12px 0 28px;
  align-self: flex-end;
  cursor: pointer;
  outline: none;
  transition: color 0.18s;
  margin-bottom: 12px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 28px 0 0 36px;
  gap: 22px;
  width: 90vw;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 16px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  letter-spacing: 0.005em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--white);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -4px 18px 0 rgba(35,68,109,0.08);
  padding: 40px 0 20px 0;
  margin-top: 36px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 2px;
}
.brand-tagline {
  color: var(--primary);
  font-size: 1.08rem;
  font-family: 'Montserrat', cursive;
  opacity: 0.82;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.footer-nav a, .legal-nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 8px;
  padding: 4px 12px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .legal-nav a:hover, .footer-nav a:focus, .legal-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.97rem;
  line-height: 1.7;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 9px;
  margin-bottom: -3px;
}
.footer-contact a {
  color: var(--primary);
}

/* CARD LAYOUTS & SPACING */
.card-container, .content-grid, .features .feature-grid, .services .service-card-grid {
  gap: 24px;
}
.card, .feature-item, .service-card, .testimonial-card {
  margin-bottom: 20px;
}

/* MAIN PAGE LAYOUT & SECTIONS */
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  main section { padding: 24px 5vw; margin-bottom: 40px; }
}

/* TABLE STYLES & LEGAL PAGES */
.legal.text-section {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  margin-bottom: 36px;
  padding: 42px 28px;
}

/* CONTACT PAGE */
.contact .text-section ul {
  list-style: none;
  padding-left: 0;
}
.contact .text-section li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact .map-preview {
  padding: 24px 0 0 0;
}
.contact .map-preview p {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.87;
}

/* THANK YOU PAGE */
.confirmation {
  background: #fffbea;
  border-radius: 30px;
  box-shadow: 0 4px 16px 0 rgba(35,68,109,0.09);
  margin: 50px auto 64px auto;
}
.confirmation .next-steps ul {
  margin-bottom: 24px;
  margin-left: 16px;
}
.confirmation .cta-button {
  margin-bottom: 14px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 96vw; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 5vw; }
  .footer-brand, .footer-contact { font-size: 0.98rem; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    border-radius: 0 0 32px 32px;
    min-height: 180px;
    padding-top: 30px;
  }
  .cta { border-radius: 18px 18px 0 0; }
}
@media (max-width:540px) {
  .hero { min-height: 110px; }
  main section { padding: 16px 2vw; margin-bottom: 24px; }
  .legal.text-section { padding: 17px 8px; }
  .feature-item, .service-card {
    min-width: unset;
    padding: 18px 7px;
  }
}

/* FLEXDIRECTION COLUMN FOR SMALL SCREENS */
@media (max-width: 880px) {
  .features .feature-grid,
  .services .service-card-grid, 
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-contact{font-size:0.92rem;}
}

/* MICRO-INTERACTIONS & ANIMATIONS */
.cta-button, .cookie-consent-btn, .cookie-settings-btn, .main-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.17s, box-shadow 0.15s, transform 0.15s;
}
.feature-item, .service-card, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.16s;
}

/* UNIQUE DECORATIVE ARTISTIC HINTS */
.feature-item {
  border: 3px dashed var(--accent);
  background: linear-gradient(105deg, #fff 87%, #ffe484 100%);
}
.features .feature-item:nth-child(2n) {
  background: linear-gradient(120deg, #fff, #e5e8f0 93%);
  border-style: solid;
}

/* COOKIE CONSENT BANNER (Fixed at bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 20px;
  box-shadow: 0 -4px 24px 0 rgba(44, 44, 44, 0.11);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  animation: cookiebanner-in 0.6s cubic-bezier(.04,1.08,.97,.95);
}
@keyframes cookiebanner-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--accent);
  max-width: 700px;
  margin-bottom: 0;
}
.cookie-consent-btn, .cookie-settings-btn {
  margin-left: 14px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.14s;
}
.cookie-consent-btn:hover, .cookie-settings-btn:hover {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 10px #FFD80055;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 12px 8px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px 18px 0 0;
  }
  .cookie-consent-btn, .cookie-settings-btn { margin-top: 7px; margin-left: 0; }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2050;
  background: rgba(35,68,109,0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiemodal-in 0.36s cubic-bezier(.04,1.08,.97,.95);
}
@keyframes cookiemodal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  padding: 38px 32px 32px 32px;
  border-radius: 20px;
  min-width: 305px;
  max-width: 420px;
  box-shadow: 0 8px 36px 0 rgba(35,68,109,0.18);
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: modal-content-in 0.5s cubic-bezier(.25,.83,.61,1);
}
@keyframes modal-content-in {
  from { opacity: 0; transform: translateY(60px) scale(0.83); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-modal-content ul {
  list-style: none;
  padding: 0;
}
.cookie-modal-content li {
  margin-bottom: 12px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-content label {
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 13px;
  background: var(--gray);
  outline: none;
  position: relative;
  vertical-align: middle;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.2s, background 0.2s;
}
.cookie-toggle:checked:before {
  background: var(--primary);
  transform: translateX(15px);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 15px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 3px 6px;
  transition: color 0.14s;
}
.cookie-modal-close:hover { color: #FFD800; }

/* ARTISTIC/FUN EFFECTS */
.features .feature-item {
  box-shadow:0 6px 18px 0 rgba(35,68,109,0.12);
  border: 3px dashed var(--accent);
  background: linear-gradient(99deg, #fff 70%, #FFD80022 100%);
}
.features .feature-item h3 {
  font-family: 'Montserrat', cursive;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.005em;
  color: var(--primary);
}

.features .feature-item:hover {
  transform: rotate(-1.7deg) scale(1.04) translateY(-6px);
  background: linear-gradient(105deg, #fff 58%, #eee07f6b 100%);
}
.features .feature-item img {
  filter: drop-shadow(0 1px 6px #FFD80055);
}

/* SPACING ENFORCEMENT */
.card-container > *:not(:last-child),
.content-grid > *:not(:last-child),
.features .feature-grid > *:not(:last-child),
.services .service-card-grid > *:not(:last-child),
.testimonials .testimonial-card:not(:last-child),
.section > *:not(:last-child) {
  margin-bottom: 20px;
}

/* FORMS (if any later) */
input, textarea, select {
  font-family:'Roboto', Arial, sans-serif;
  border-radius: 9px;
  border: 2px solid var(--gray);
  padding: 8px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #fff;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--accent);
  box-shadow: 0 0 3px #FFD80044;
}

button, input[type=submit] {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

/* Artistic/creative font fallback for fun */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Roboto:wght@400;500;700&display=swap');

/* Hide elements for accessibility only */
.sr-only {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ARTISTIC DETAILS: HAND-DRAWN LINE AS DECORATION (Optional for cards) */
@media (min-width:768px) {
  .features .feature-item::after {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 12px;
    opacity: 0.5;
  }
}

/* END */