/* ================================================
   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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #212936;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,.08,.24,1);
  font-weight: 600;
}
a:focus { outline: 2px solid #F4CF63; outline-offset: 2px; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit; background: none; border: none; outline: none;
}
button { cursor: pointer; }

/* ================================================
   VARIABLES (with fallback)
================================================== */
:root {
  --color-primary: #212936;
  --color-bg: #fff;
  --color-secondary: #F4CF63;
  --color-accent: #E9383E;
  --color-accent2: #BB2227;
  --color-contrast: #151a23;
  --color-link: #E9383E;
  --color-surface: #F7F8FA;
  --shadow: 0 4px 18px rgba(33,41,54,0.10), 0 1.5px 4px rgba(33,41,54,0.06);
  --radius-lg: 20px;
  --radius-sm: 8px;
  --font-display: 'Oswald', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: .18s cubic-bezier(.4,.08,.24,1);
}
/* Fallback for custom properties if needed (legacy) */

/* ================================================
   TYPOGRAPHY (Modern Bold)
================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem; /* 44px */
  line-height: 1.13;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.18;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.13rem; /* 18px */
  font-weight: 700;
}
p, ul, ol, li {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  color: var(--color-contrast);
  font-size: 1rem; /* 16px */
}
strong {
  font-weight: 700;
}
.text-section h3 {
  font-size: 1.25rem; /* 20px */
  color: var(--color-accent2);
  margin-top: 20px;
  margin-bottom: 12px;
}

/* ================================================
   COMMON LAYOUT & CONTAINERS
================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  flex: 1 1 260px;
}
.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  color: #212936;
  box-shadow: 0 2px 12px rgba(33,41,54,0.14);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 95vw;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 5px 28px rgba(233,56,62,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 7px rgba(33,41,54,0.07);
  padding: 22px 16px;
  flex: 1 1 240px;
  min-width: 200px;
  border-left: 5px solid var(--color-secondary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-list > div:hover {
  border-left: 5px solid var(--color-accent);
  box-shadow: 0 6px 18px rgba(233,56,62,0.10);
}

/* ================================================
   HEADER & MAIN NAVBAR
================================================== */
header {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  border-bottom: 6px solid var(--color-secondary);
  box-shadow: 0 2.5px 11px rgba(33,41,54,0.07);
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
}
header img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .018em;
  padding: 4px 8px;
  font-weight: 700;
  border-radius: 6px;
  transition: background .17s cubic-bezier(.34,.58,.72,.76);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent2);
}
.cta-button {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 13px 32px;
  font-weight: 900;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2.5px 15px rgba(185,34,39,0.10);
  border: none;
  position: relative;
  z-index: 11;
  transition: background .17s var(--transition), box-shadow var(--transition), color .2s;
  margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 5px 24px rgba(244,207,99,0.17);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.2em;
  color: var(--color-secondary);
  background: none;
  border: none;
  padding: 8px;
  margin-left: 18px;
  border-radius: 10px;
  transition: background .17s;
  z-index: 90;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(244,207,99,0.14);
}

/* ================================================
   MOBILE NAVIGATION
================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,41,54, 0.97);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100vw);
  pointer-events: none;
  opacity: 0;
  transition: transform .37s cubic-bezier(.6,.02,.81,.5), opacity .20s;
}
.mobile-menu.open {
  transform: translateX(0vw);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  margin: 20px 30px 18px 0;
  align-self: flex-end;
  border-radius: 12px;
  padding: 6px 18px 4px 10px;
  transition: background .17s;
  z-index: 1002;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(244,207,99,0.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-end;
  padding: 0 41px 0 0;
}
.mobile-nav a {
  color: #fff;
  background: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .045em;
  padding: 11px 0 11px 0;
  border-radius: 6px 0 0 6px;
  transition: background .17s, color .20s;
  width: 100%;
  display: block;
  text-align: right;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 1080px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =========== HEADER LOGO ADJUSTMENT ========== */
@media (max-width: 768px) {
  header img {
    height: 28px;
  }
  .container {
    padding: 0 8px;
  }
  .cta-button {
    font-size: 0.97rem;
    padding: 11px 22px;
    margin-left: 6px;
  }
}

/* ================================================
   SECTIONS, CARDS, UL LISTS, TESTIMONIALS
================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 0;
  margin-bottom: 0;
}
ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--color-primary);
  gap: 12px;
}
ul li img {
  width: 27px;
  height: 27px;
  margin-right: 8px;
  flex-shrink: 0;
}

.testimonial-card p {
  color: #212936;
  font-size: 1.09rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.testimonial-card h4 {
  margin-top: 2px;
  color: var(--color-accent2);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .021em;
}

/* Accent headline decoration */
h2:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 7px;
  background: var(--color-secondary);
  border-radius: 4px;
  margin-right: 13px;
  vertical-align: middle;
}

/* ================================================
   FOOTER
================================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  margin-top: 50px;
  border-top: 6px solid var(--color-secondary);
}
footer .container {
  padding: 26px 18px 23px 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-menu a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-weight: 700;
  transition: color .17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
}
.brand-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-direction: row;
  font-size: 1rem;
}
.brand-info img {
  width: 54px;
  height: 54px;
}
.brand-info p {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 6px;
}
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.95;
  transition: opacity .17s;
}
.social-links a:focus img, .social-links a:hover img {
  opacity: 1;
  filter: drop-shadow(0 1.5px 3px var(--color-secondary));
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
================================================== */
@media (max-width: 1100px) {
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-menu {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.18rem; }
  .section {
    margin-bottom: 36px;
    padding: 20px 8px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .service-list { gap: 13px; }
  .brand-info img { width: 37px; height: 37px; }
}
@media (max-width: 580px) {
  .brand-info { flex-direction: column; gap: 7px; }
  .social-links { gap: 7px; }
  .testimonial-card { padding: 16px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
}

/* ================================================
   BUTTONS & INTERACTIVE
================================================== */
button, .cta-button {
  cursor: pointer;
  border: none;
}
button:focus-visible { outline: 2.5px solid var(--color-secondary); }

/* ================================================
   COOKIE CONSENT BANNER & MODAL
================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 4px solid var(--color-accent2);
  box-shadow: 0 -1.5px 12px rgba(33,41,54,0.11);
  padding: 22px 16px 18px 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s, transform .24s;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
.cookie-banner-text {
  color: var(--color-primary);
  font-weight: 600;
  max-width: 410px;
  margin-right: 17px;
}
.cookie-banner button {
  margin-left: 0;
  margin-right: 9px;
}
.btn-cookie-accept {
  background: var(--color-accent2);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  transition: background .17s;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-cookie-reject {
  background: #d1dbf0;
  color: var(--color-accent2);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-accent2);
  transition: background .17s, border-color .17s;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: var(--color-accent2);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn-cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background .17s;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 550px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 11px; text-align: left; }
  .cookie-banner-text { margin-right: 0; }
}

/* Cookie prefs MODAL (pseudo demo – requires .cookie-modal) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(21,26,35,0.44);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .21s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  max-width: 395px;
  width: 93vw;
  border-radius: var(--radius-lg);
  padding: 36px 24px 29px 24px;
  box-shadow: 0 10px 44px rgba(33,41,54,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-accent2);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-checkbox {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  accent-color: var(--color-secondary);
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  font-size: 1.7rem;
  color: var(--color-accent2);
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 4px 10px 4px 7px;
  transition: background .14s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: rgba(233,56,62,0.07);
}

/* ================================================
   ANIMATIONS
================================================== */
@media (prefers-reduced-motion: no-preference) {
  .cta-button,
  .service-list > div,
  .testimonial-card,
  .mobile-nav a,
  .btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
    transition: background .16s, box-shadow .13s, color .20s;
  }
  .mobile-menu,
  .cookie-banner,
  .cookie-modal-overlay {
    transition: opacity .32s, transform .24s;
  }
}

/* ================================================
   MISCELLANEOUS
================================================== */
::-webkit-input-placeholder { color: #949ba7; }
::-moz-placeholder { color: #949ba7; }
:-ms-input-placeholder { color: #949ba7; }
::placeholder { color: #949ba7; }

/* Geometric accent shapes (optional example usage) */
.geometric-accent {
  position: absolute;
  top: -18px;
  right: -22px;
  width: 46px; height: 46px;
  background: var(--color-secondary);
  border-radius: 50% 20% 40% 30% / 60% 30% 70% 40%;
  opacity: .07;
  z-index: 0;
  pointer-events: none;
}

/* ================================================
   FOCUS VISIBLE
================================================== */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ================================================
   PRINT SAFE
================================================== */
@media print {
  header, .mobile-menu, .cookie-banner, footer, .cta-button { display: none !important; }
  .section, .content-wrapper, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; }
}

/* ================================================
   END
================================================== */
