/* 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ul, ol { list-style: none; margin:0; padding:0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display:block; }

table { border-collapse: collapse; border-spacing: 0; }

/* BRAND VARIABLES */
:root {
  --color-primary: #23527C;
  --color-secondary: #67A8A2;
  --color-accent: #F2EECB;
  --color-background: #FFFDF7;
  --color-card: #FFF7EB;
  --color-cta: #D09763;
  --color-cta-hover: #926230;
  --color-focused: #F7E6C3;
  --color-border: #E5E7EB;
  --color-success: #6DD370;
  --color-error: #DC6161;
  --color-text: #2D3640;
  --color-footer: #EDF1F5;
  --shadow-soft: 0 3px 14px 0 rgba(56,33,0,0.08);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition-main: 0.2s cubic-bezier(.55,.1,.6,.96);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 0 0 0;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 0;
}
header img {
  height: 48px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #FFF;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition-main), color var(--transition-main);
}
header nav a:hover,
header nav a:focus {
  background: rgba(255,255,255,0.12);
  color: var(--color-accent);
}
.cta-button {
  background: var(--color-cta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(35,82,124,0.15);
  cursor: pointer;
  transition: background var(--transition-main), box-shadow var(--transition-main), transform 0.13s;
  outline: none;
  margin-left: 24px;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--color-cta-hover);
  box-shadow: 0 4px 14px rgba(35,82,124,0.20);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 110;
  margin-left: 20px;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(255,255,255,0.20);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.54,.01,0,1);
  box-shadow: 4px 0 40px 0px rgba(35,82,124,0.08);
  opacity: 1;
  visibility: visible;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 32px 0 0 24px;
  align-self: flex-start;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 8px;
  transition: background 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(255,255,255,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 10px 0 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.13);
}

@media (max-width: 1020px) {
  header .container nav { display: none; }
  header .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  background: var(--color-accent);
  color: var(--color-primary);
  min-height: 340px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 0 60px 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero p {
  max-width: 550px;
  font-size: 1.28rem;
}
.hero .cta-button {
  margin-top: 6px;
}

/* SECTION & CONTENT LAYOUTS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-md);
}
.cta {
  background: var(--color-cta);
  color: #fff;
  padding: 60px 20px 60px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.cta h2, .cta h1 {
  color: #fff;
}
.cta .cta-button {
  background: #fff;
  color: var(--color-cta);
  margin-top: 24px;
  box-shadow: 0 2px 10px rgba(255,255,255,0.16);
}
.cta .cta-button:hover,
.cta .cta-button:focus {
  background: var(--color-accent);
  color: var(--color-cta-hover);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
}

/* FLEXBOX spacing layouts (MANDATORY PATTERNS) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: var(--radius-md); background: var(--color-card); box-shadow: var(--shadow-soft); }
.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: center; gap: 20px; padding: 20px; border-radius: var(--radius-lg); background: #fff; color: var(--color-text); box-shadow: 0 2px 12px rgba(56,33,0,0.08); margin-bottom: 20px; min-width: 260px; max-width: 420px; transition: box-shadow .2s; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* FEATURE GRID */
.feature-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: flex-start; margin-top: 16px; }
.feature {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px 18px 22px;
  flex: 1 1 270px;
  max-width: 330px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 1px solid var(--color-border);
  transition: box-shadow .18s, transform .23s;
}
.feature:hover, .feature:focus {
  box-shadow: 0 5px 32px 0 rgba(35,82,124,0.13);
  transform: translateY(-3px) scale(1.04);
}
.feature img {
  width: 56px;
  margin-bottom: 10px;
}
.feature h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0;
}

/* PRICING TABLE */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 40px;
}
.plan {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 34px 28px 22px 28px;
  flex: 1 1 270px;
  max-width: 320px;
  border: 2px solid var(--color-border);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 240px;
  position: relative;
  transition: box-shadow .18s, border .19s;
}
.plan.featured {
  border: 2.5px solid var(--color-cta);
  box-shadow: 0 7px 26px 0 rgba(208,151,99,0.08);
  transform: scale(1.035);
  z-index:2;
}
.plan h3 {
  color: var(--color-primary);
  font-size: 1.28rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.plan p {
  font-size: 2rem;
  color: var(--color-cta);
  font-weight: 700;
}
.plan ul {
  margin: 12px 0 0 0;
}
.plan ul li {
  font-size: 1.08rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* TESTIMONIALS */
.testimonial-slider,
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff;
  color: var(--color-text);
  border-left: 5px solid var(--color-secondary);
  min-width: 240px;
  transition: border-color .15s, box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(35,82,124,0.16);
  border-left: 5px solid var(--color-cta);
}
.testimonial-card.featured {
  border-left: 7px solid var(--color-cta);
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: var(--color-secondary);
  font-style: normal;
  align-self: flex-end;
}

/* TEXT & TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}
h1 { font-size: 2.4rem; margin-bottom: 14px; }
h2 { font-size: 1.7rem; margin-bottom: 8px; }
h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 6px; }
h4 { font-size: 1.11rem; }
p, ul, ol { font-size: 1.05rem; line-height: 1.8; color: var(--color-text); }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
ul li, ol li { margin-bottom: 10px; }

/* LINKS, BUTTONS & FORMS */
a, button {
  transition: color var(--transition-main), background var(--transition-main), box-shadow var(--transition-main);
}
button, .cta-button {
  font-family: var(--font-display);
  font-size: 1.08rem;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}
button:focus, 
.cta-button:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* CARDS */
.card {
  padding: 30px 24px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  border: 1.2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CONTACT */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(35,82,124,0.07);
}
.location-map {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
}

/* FOOTER */
footer {
  background: var(--color-footer);
  color: var(--color-primary);
  padding: 40px 0 8px 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -2px 12px rgba(35,82,124,0.06);
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 24px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1.05rem;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-cta);
}
.footer-contact, .footer-hours {
  font-size: 0.99rem;
  color: var(--color-text);
  margin-top: 4px;
}
.footer-contact img {
  width: 17px; height: 17px; margin-right: 5px;
  vertical-align: middle;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  box-shadow: 0 -3px 16px rgba(35,82,124,0.14);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 2200;
  opacity: 1;
  transition: opacity .18s, bottom .25s;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -140px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-size: 1.08rem;
  font-family: var(--font-display);
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  border: none;
  margin: 0;
  transition: background .14s, color .14s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner button.reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  opacity: 0.85;
}

.cookie-modal-overlay {
  position: fixed; left:0; top:0; width:100vw; height:100vh;
  background: rgba(45,54,64,0.23);
  z-index: 2220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .18s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(35,82,124,0.20);
  max-width: 420px;
  min-width: 320px;
  padding: 42px 32px 32px 32px;
  z-index: 2230;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalPop .33s cubic-bezier(.5,1.6,.35,.86);
}
@keyframes cookieModalPop {
  0% { transform: scale(0.92) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.24rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.cookie-category {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.01rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  transform: scale(1.21);
  border-radius: 4px;
  margin-right: 5px;
}
.cookie-category.essential label {
  color: var(--color-text);
  font-weight: 600;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-primary);
  opacity: 0.7;
  transition: opacity .25s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  opacity: 1;
}

/* === RESPONSIVENESS === */
@media (max-width: 1020px) {
  .container {
    flex-direction: column !important;
    gap: 18px;
  }
  .hero .container { flex-direction: column; align-items: stretch; justify-content: center; }
  .feature-grid, .testimonial-grid, .pricing-table {
    flex-direction: column;
    align-items: stretch;
    gap: 24px !important;
  }
  .plan, .feature, .testimonial-card {
    max-width: 100%;
  }
  .content-wrapper {
    padding: 0;
  }
  .cta {
    padding: 36px 10px;
    border-radius: var(--radius-md);
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  body { font-size: 15px; }
  section, .cta {
    margin-bottom: 36px;
    padding: 29px 10px 29px 10px;
  }
  .hero { padding: 22px 0 38px 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.039rem; }
  .content-wrapper { gap: 17px; }
  .testimonial-slider, .testimonial-grid, .feature-grid, .pricing-table {
    gap: 18px;
  }
  .footer-contact,
  .footer-hours {
    font-size: 0.98rem;
  }
}
@media (max-width: 560px) {
  html { font-size: 14px; }
  header .container img {
    height: 38px;
  }
  .hero h1, .cta h2 {
    font-size: 1.28rem;
  }
  .cta-button { font-size: 1rem; padding: 9px 20px; }
}
@media (max-width: 1000px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Micro-animations */
.cta-button,
.plan,
.feature-card,
.testimonial-card,
.feature {
  transition: box-shadow .15s, transform .18s, background .17s, color .17s;
}

.cta-button:active, button:active {
  transform: scale(0.97);
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* Accessibility */
:focus-visible { outline: 2.5px solid var(--color-secondary); outline-offset: 1px; }

/* Z-INDEX for overlays */
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 2200; }
.cookie-modal-overlay, .cookie-modal { z-index: 2220; }

/* Prevent overlapping */
section, .card, .feature, .plan, .testimonial-card {
  margin-bottom: 20px !important;
}

/* Hide content on overflow but not for accessibility */
[hidden] { display:none !important; }

/* END OF CSS */
