/* =======================
   CSS RESET & NORMALIZATION
   ======================= */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  background: #FFFDF8;
  color: #12304A;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
img {
  border: 0;
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
input[type="text"] {
  background: #fffbe6;
  border-radius: 16px;
  border: 1px solid #f6c346;
  padding: 10px 18px;
  width: 100%;
  transition: box-shadow 0.2s;
}
input[type="text"]:focus {
  box-shadow: 0 0 0 2px #f6c34644;
}

/* ===== VARIABLES ===== */
:root {
  --color-primary: #12304A;
  --color-secondary: #F6C346;
  --color-bg: #FFFDF8;
  --color-card: #FFF9E5;
  --color-accent: #FFFFFF;
  --color-light: #FAEDD1;
  --color-text: #12304A;
  --color-dark: #1A252F;
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Lato', 'Arial', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 18px 0 rgba(123, 82, 8, 0.10);
  --shadow-small: 0 2px 6px 0 rgba(246, 195, 70, 0.10);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; line-height: 1.11; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; }
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: .02em;
  margin-bottom: 14px;
}
ul li, ol li { margin-bottom: 8px; }
strong { font-weight: 700; }
.text-section p { margin-bottom: 18px; }

/* Typography scale for responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  h3 { font-size: 1.18rem; }
}

/* ===== LAYOUT CONTAINERS & SPACING ===== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow .25s, transform .18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(246, 195, 70, 0.18);
  transform: translateY(-4px) scale(1.02);
}

.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;
  background: var(--color-accent);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 560px;
  color: var(--color-dark);
}
.testimonial-card p {
   font-size: 1.1rem;
   color: var(--color-primary);
   font-style: italic;
   margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--color-dark);
  font-size: 1rem;
  opacity: 0.76;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card);
  padding: 24px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Hero Section Button Special Layout (override) */
.content-wrapper > .cta-primary {
  align-self: flex-start;
}

/* ====== NAVIGATION ====== */
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--color-accent);
  padding: 12px 0 12px 0;
  position: relative;
  z-index: 900;
}
.main-nav > a img {
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: box-shadow 0.2s;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav .cta-primary {
  margin-left: 18px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: background 0.2s, color 0.2s, transform .15s;
  cursor: pointer;
  border: none;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffd66f;
  color: #1A252F;
  transform: translateY(-2px) scale(1.03);
}

/* ====== MOBILE MENU ====== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 9px 13px 9px 13px;
  font-size: 2rem;
  border: none;
  margin-left: 14px;
  cursor: pointer;
  z-index: 1300;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffd66f;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF8E5;
  box-shadow: 0 6px 36px 0 #f6c34610;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px;
}
.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-primary);
  background: var(--color-secondary);
  border-radius: 50%;
  padding: 6px 15px;
  margin-bottom: 28px;
  border: none;
  cursor: pointer;
  z-index: 1301;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffd66f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  text-align: center;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #1A252F;
}

/* Hamburger & Desktop Nav Toggler */
@media (max-width: 1023px) {
  .main-nav ul,
  .main-nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden;
  }
  .main-nav ul,
  .main-nav .cta-primary {
    display: flex;
  }
}

/* ====== FOOTER ====== */
footer {
  background: var(--color-primary);
  color: #fff9e6;
  position: relative;
  width: 100vw;
  overflow: hidden;
}
footer .container {
  padding-top: 34px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
  margin-top: 4px;
}
.footer-nav a {
  color: #fffbe6;
  font-size: 1rem;
  padding: 6px 0;
  transition: text-decoration 0.15s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.contact-short p {
  font-size: .97rem;
  color: #fff9e6;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0px 2px 7px rgba(246,195,70,.10));
  transition: filter 0.16s;
}
.social-links a:hover img {
  filter: drop-shadow(0px 6px 12px rgba(246,195,70,.44));
}
.copyright {
  text-align: center;
  color: #e3c796;
  font-size: 0.93rem;
  letter-spacing: .01em;
}

/* ===== CONTENT ELEMENTS ===== */
ul li img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
ul > li:not(:last-child) {
  margin-bottom: 0.4em;
}
.search-box {
  display: flex;
  align-items: center;
  gap:10px;
  margin-bottom: 18px;
}
.search-box button {
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  color: var(--color-primary);
  padding: 8px 22px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-small);
  transition: background 0.19s, color 0.19s, transform .13s;
  cursor: pointer;
}
.search-box button:hover, .search-box button:focus {
  background: #ffd66f;
  color: #1A252F;
  transform: scale(1.03);
}
.categories {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: .97rem;
}
.categories span {
  color: var(--color-primary);
  opacity: .7;
  margin-right: 6px;
}
.categories a {
  background: var(--color-card);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 6px 13px;
  font-weight: 500;
}
.categories a:hover, .categories a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}
/* Blog articles list */
.content-wrapper ul > li {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 26px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.content-wrapper ul > li a {
  color: var(--color-primary);
  font-weight: bold;
  margin-top: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.19s, border-bottom 0.18s;
}
.content-wrapper ul > li a:hover, .content-wrapper ul > li a:focus {
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
}

/* Team page - profiles */
.text-section ul > li {
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 320px;
}
.text-section ul > li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 500;
}
.text-section ul > li a img {
  width: 20px;
  height: 20px;
}

/* Cards - offer section */
.content-wrapper ul > li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-wrapper ul > li h3 {
  margin-bottom: 2px;
}
.content-wrapper ul > li span {
  color: var(--color-secondary);
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 1.09rem;
}

/* ====== BUTTONS ====== */
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 11px 28px;
  box-shadow: var(--shadow-small);
  margin-top: 5px;
  margin-bottom: 5px;
  transition: background 0.18s, color 0.18s, transform .1s;
  cursor: pointer;
}
button:hover, button:focus {
  background: #ffd66f;
  color: #1A252F;
  transform: scale(1.03);
}

/* SERVICE NOTE */
.service-note {
  background: #FFF2CF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  font-size: 1.01rem;
  box-shadow: 0 1px 7px 0 #f6c34621;
  margin-bottom: 16px;
}
/* ===== COOKIES BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe6;
  color: var(--color-primary);
  font-family: var(--font-body);
  box-shadow: 0 -2px 32px rgba(246,195,70,0.11);
  z-index: 5000;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 1rem;
  animation: cookieSlideUp .46s 1 cubic-bezier(.76,0,.18,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform .11s;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #ffd66f;
  color: #1A252F;
  transform: scale(1.03);
}
.cookie-btn-reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background .16s, color .16s;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--color-light);
}
.cookie-btn-settings {
  background: #fffbe6;
  color: var(--color-primary);
  border: 1.5px solid #d6bf6e;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 5100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(18,48,74,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieBg .30s;
}
@keyframes fadeInCookieBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffcea;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 38px 0 #f6c34637;
  max-width: 410px;
  width: 96vw;
  padding: 36px 30px 28px 30px;
  font-family: var(--font-body);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: popModal .33s cubic-bezier(.73,0,.16,1);
  position: relative;
  z-index: 5101;
}
@keyframes popModal {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--color-secondary);
  border-radius: 50%;
  font-size: 1.16rem;
  padding: 5px 11px;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.17s;
  z-index: 1;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #ffd66f;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal .category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 11px 13px;
}
.cookie-modal .category label {
  font-weight: bold;
}
.cookie-modal .cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e4c886;
  border-radius: 24px;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background-color: var(--color-secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px; bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 3px rgba(246,195,70,0.17);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .category-desc {
  font-size: .94rem;
  color: #82651c;
  margin-top: 2px;
  font-weight: 400;
  opacity: .89;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn-accept, .cookie-modal .cookie-btn-reject {
  padding: 10px 20px;
  font-size: .98rem;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .footer .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .card-container, .content-grid, .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 7px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .content-wrapper, .text-section {
    gap: 12px;
    padding: 0;
  }
  .main-nav {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px 0;
  }
}
@media (max-width: 600px) {
  .content-wrapper, .text-section {
    flex-direction: column;
  }
  .section {
    padding: 13px 2vw;
  }
  .card {
    padding: 19px 11px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 10px;
    min-width: unset;
    max-width: unset;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
/* Flex direction for text-image sections */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap:16px;
  }
  .card-container {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
*::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hide visually only (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =========== Z-INDEX FIXES =========== */
header,
.main-nav,
.mobile-menu,
.mobile-menu-toggle,
.mobile-menu-close {
  z-index: 1000;
}
footer {
  z-index: 80;
}

/* ====== MICRO-INTERACTIONS ====== */
.card, .testimonial-card, .cta-primary, button, .feature-item, .categories a {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.18s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 28px 0 rgba(246, 195, 70, 0.19);
  transform: translateY(-4px) scale(1.013);
}
.categories a:active {
  background: #fde8ab;
}

/* ====== PRINT SUPPORT ====== */
@media print {
  .main-nav, .mobile-menu, .mobile-menu-toggle, .footer-nav, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  footer {
    padding: 0 !important;
  }
}
