/* ====================================================== */
/* 0. 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, 
main, 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.6;
  background: #F5F6FA;
  color: #1C2234;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, picture {
  max-width: 100%;
  display: block;
  border: 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
li { margin-bottom: 8px; }

strong { font-weight: 700; }

button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: #22314A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, .text-link:hover, .mobile-nav a:hover {
  color: #F0A202;
}


/* ====================================================== */
/* 1. ROOT & TYPOGRAPHY                                  */
/* ====================================================== */
:root {
  --primary: #22314A;
  --primary-rgb: 34,49,74;
  --secondary: #F5F6FA;
  --accent: #F0A202;
  --accent-dark: #cf8312;
  --gray: #E6E7EA;
  --card-bg: #fff;
  --card-shadow: 0 2px 16px rgba(34,49,74,0.08), 0 0.5px 2px rgba(240,162,2,0.04);
  --radius-lg: 22px;
  --radius-sm: 12px;
  --header-height: 72px;
  --shadow-btn: 0 2px 4px rgba(34,49,74,0.07);
  --shadow-popup: 0 4px 32px rgba(34,49,74,0.16);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 13px;
}
p, ul, ol, table, details {
  font-size: 1rem;
  margin-bottom: 18px;
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  position: relative;
  padding-bottom: 1px;
  border-bottom: 1.5px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.text-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Typography scale for headings and body */
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.98rem; }
}

/* ====================================================== */
/* 2. LAYOUT CONTAINERS                                  */
/* ====================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.cta-section {
  margin-bottom: 0;
  padding: 46px 22px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  color: #fff;
}
.cta-section h2,
.cta-section p,
.cta-section a {
  color: #fff;
}

@media (max-width: 768px) {
  .section, .cta-section {
    padding: 28px 7vw;
    margin-bottom: 36px;
    border-radius: var(--radius-sm);
  }
}

/* ====================================================== */
/* 3. HEADER & NAVIGATION                                */
/* ====================================================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,49,74,0.075);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 18px;
  position: relative;
}
.logo, .logo-footer {
  display: flex;
  align-items: center;
  min-width: 54px;
  max-width: 170px;
  height: 52px;
}
.logo img, .logo-footer img {
  max-height: 48px;
  border-radius: 8px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica,sans-serif;
  color: var(--primary);
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .footer-nav a:hover {
  color: var(--accent);
  background: var(--secondary);
}
.cta-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 22px;
  padding: 12px 28px;
  margin-left: 10px;
  box-shadow: var(--shadow-btn);
  border: none;
  outline: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.038);
  box-shadow: 0 4px 18px rgba(34,49,74,0.13);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  transition: background 0.2s, color 0.2s;
  z-index: 125;
}
.mobile-menu-toggle:hover {
  color: var(--accent);
  background: var(--secondary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,74,0.90);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.68,-0.55,.27,1.55);
  justify-content: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  padding: 24px 28px 8px 8px;
  margin-bottom: 10px;
  line-height: 1;
  border-radius: 22px;
  opacity: 0.95;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(240,162,2,0.18);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: center;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 14px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  width: 90vw;
  max-width: 340px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width:1000px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .logo img {
    max-width: 85px;
  }
}

/* ====================================================== */
/* 4. HERO                                                */
/* ====================================================== */
.hero {
  background: var(--secondary);
  padding: 50px 0 10px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 20px rgba(240,162,2,0.12);
  margin-bottom: 30px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 14px;
  text-align: center;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.2rem;
}
.hero p {
  color: #404b60;
}
.hero .cta-btn {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .hero { padding: 24px 0 4px 0; }
  .hero h1 { font-size: 1.32rem; }
}

/* ====================================================== */
/* 5. FLEXBOX PATTERNS, CARDS, FEATURES                   */
/* ====================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px 26px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 36px rgba(240,162,2,0.17);
  transform: translateY(-4px) scale(1.025);
}

.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 26px 26px 26px;
  background: #fffbe8;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 24px rgba(240,162,2,0.12);
  margin-bottom: 24px;
  min-width: 200px;
  max-width: 540px;
  color: #302700;
  border: 1.5px solid #ffe6b9;
}
.testimonial-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.testimonial-card p,
.testimonial-card strong {
  color: #302700;
  font-size: 1rem;
}
.star-rating {
  color: #F0A202;
  font-size: 1.14rem;
  letter-spacing: 1px;
  font-family: 'Roboto',Arial,Helvetica,sans-serif;
  margin-top: 5px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  gap: 15px;
  padding: 24px 22px 18px 22px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature-item img {
  width: 40px; height: 40px;
}
.feature-item:hover {
  box-shadow: 0 6px 32px rgba(240,162,2,0.18);
  transform: scale(1.035);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 9px;
}
.service-item {
  flex: 1 1 290px;
  min-width: 220px;
  max-width: 350px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.22s, transform 0.17s;
}
.service-item:hover {
  box-shadow: 0 6px 32px rgba(240,162,2,0.17);
  transform: scale(1.033);
}
.usp-list ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  list-style: disc inside;
}
.usp-list li {
  min-width: 165px;
  background: #F0A20210;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.97rem;
}

/* Tables */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
thead {
  background: var(--primary);
  color: #fff;
}
th, td {
  padding: 15px 12px;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid #ececec;
}
th {
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* Details / FAQ */
details {
  background: #fffdfa;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 11px rgba(240,162,2,0.09);
  padding: 15px 18px;
  margin-bottom: 15px;
  transition: box-shadow 0.2s;
}
details[open] { box-shadow: 0 4px 16px rgba(240,162,2,0.14); }
summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
details p { margin-top: 7px; }

/* ====================================================== */
/* 6. RESPONSIVE TYPO & FLEX                              */
/* ====================================================== */
@media (max-width: 950px) {
  .feature-grid, .service-list, .usp-list ul, .content-grid, .card-container {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .usp-list ul {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact, .footer-hours {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}



/* ====================================================== */
/* 7. FOOTER                                              */
/* ====================================================== */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 38px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 38px 0 18px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.logo-footer img {
  max-width: 95px;
  margin-bottom: 16px;
  border-radius: 13px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.99rem;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  transition: background 0.22s, color 0.18s;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: .97rem;
}
.footer-contact img {
  width: 18px; height: 18px; margin-right: 3px;
  vertical-align: middle;
}
.footer-hours {
  margin-top: 4px;
  font-size: .96rem;
}
footer a:hover {
  color: var(--accent);
  background: none;
}
@media (max-width: 600px) {
  footer .container {
    gap: 4px;
    padding-left: 0; padding-right: 0;
  }
  .footer-contact, .footer-hours {
    margin-top: 3px;
    font-size: 0.98rem;
  }
}

/* ====================================================== */
/* 8. COOKIE CONSENT BANNER + SETTINGS MODAL              */
/* ====================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe8;
  box-shadow: 0 -2px 18px rgba(240,162,2,0.15),0 1px 0 rgba(34,49,74,0.11);
  z-index: 9500;
  padding: 24px 20px 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  border-radius: 32px 32px 0 0;
  font-size: 1rem;
  justify-content: space-between;
  animation: cookie-slide-up 0.45s cubic-bezier(.51,1.35,.61,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(150%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #4B3715;
  margin-bottom: 0;
  max-width: 470px;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn, .cookie-btn-settings {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border-radius: 22px;
  padding: 11px 19px;
  font-weight: 600;
  font-size: 0.99rem;
  transition: background 0.2s, color 0.2s, transform 0.14s;
  box-shadow: 0 1px 7px rgba(240,162,2,0.08);
  border: none;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--accent-dark);
  transform: scale(1.045);
}
.cookie-btn.reject {
  background: #E6E7EA;
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: #ebb981;
  color: #fff;
  transform: scale(1.035);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  border: none;
}
.cookie-btn-settings:hover {
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    border-radius: 20px 20px 0 0;
  }
  .cookie-btns { gap: 8px; }
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 9900;
  background: rgba(34,49,74,0.47);
  justify-content: center;
  animation: fadein-popup 0.3s cubic-bezier(.51,1.35,.61,1);
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadein-popup {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.cookie-modal-content {
  background: #fffbe8;
  color: #281e04;
  border-radius: 24px;
  box-shadow: var(--shadow-popup);
  padding: 36px 28px 28px 28px;
  min-width: 316px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: bouncein 0.22s cubic-bezier(.51,1.25,.71,1.12);
}
@keyframes bouncein {
  0% { transform: scale(0.91); }
  100% { transform: scale(1); }
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.cookie-modal-content .cookie-settings-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--accent);
  min-width: 22px;
  min-height: 22px;
  border-radius: 5px;
  margin-right: 6px;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: #989898;
}
.cookie-category.essential label {
  color: #999;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-modal-content .cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 19px;
  margin-top: 12px;
}
@media (max-width: 450px) {
  .cookie-modal-content {
    padding: 18px 5vw;
    min-width: 0;
  }
}

/* ====================================================== */
/* 9. MICRO-ANIMATIONS & INTERACTIONS                    */
/* ====================================================== */
.cta-btn,
.card,
.feature-item,
.service-item,
button,
details {
  transition: box-shadow 0.18s, background 0.18s, color 0.16s, transform 0.15s;
}
b
/* Button highlight on click */
.cta-btn:active,
.card:active,
.feature-item:active,
.service-item:active {
  transform: scale(0.985);
  box-shadow: 0 2px 12px rgba(240,162,2,0.11);
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
}

/* ====================================================== */
/* 10. UTILITY SPACING/PATTERNS (MANDATORY)               */
/* ====================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Make sure all flex layouts have spacing between cards */
.card:not(:last-child), .feature-item:not(:last-child), .testimonial-card:not(:last-child), .service-item:not(:last-child) { margin-right: 0; }

/* Prevent card overlap */
.card, .testimonial-card, .feature-item, .service-item { margin-bottom: 20px; }


/* ====================================================== */
/* END OF CSS                                             */
/* ====================================================== */