/* =========================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F2EDEB;
  color: #222239;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style-position: outside;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

/* =======================
    BRAND COLORS & FONT
======================== */
:root {
  --color-primary: #222239;
  --color-secondary: #F2EDEB;
  --color-accent: #F7BB42;
  --color-white: #fff;
  --color-black: #1b1b26;
  --color-grey: #e5e5e8;
  --color-bg-contrast: #fffbea;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =======================
    TYPOGRAPHY
======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.65;
  margin-bottom: 12px;
  color: var(--color-primary);
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-grey);
  border-left: 5px solid var(--color-accent);
  padding: 16px 24px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,34,57,0.03);
}
cite {
  font-size: 0.98rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

b, strong {
  font-weight: 700;
}

/* =======================
    LAYOUT
======================== */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(34,34,57,0.08);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(34,34,57,0.13);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  margin-bottom: 20px;
  background: var(--color-grey);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34,34,57,0.08);
  flex-direction: row;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ENFORCE SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* ============================
   HEADER & NAVIGATION
============================ */
header {
  position: relative;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1px 10px rgba(34,34,57,0.06);
  padding: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
header > a img {
  height: 44px;
  margin: 14px 0 14px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 8px 14px 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  color: var(--color-primary);
  position: relative;
}
header nav a.cta-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(247,187,66,0.12);
  border-radius: 24px;
  font-size: 1.08rem;
  padding: 11px 24px;
  margin-left: 14px;
  font-weight: 900;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-grey);
  color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  margin-right: 20px;
  font-size: 2rem;
  background: var(--color-white);
  border: none;
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s;
  z-index: 1051;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-grey);
  color: var(--color-accent);
}

/* =======================
   MOBILE MENU
======================== */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1200;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 6px 64px rgba(34,34,57,0.22);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.6,.05,.28,.91);
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 28px 12px auto;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 2.3rem;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  box-shadow: 0 2px 14px rgba(34,34,57,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-grey);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.32rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  padding: 16px 28px;
  border-radius: 14px;
  transition: background 0.18s, color 0.17s;
  width: 95vw;
  text-align: left;
  max-width: 410px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =================
   HERO SECTION
================== */
.hero {
  background: var(--color-bg-contrast);
  padding: 44px 0 44px 0;
  margin-bottom: 60px;
}
.hero h1 {
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero p {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 22px;
}

/* =================
   FEATURE SECTION
================== */
.features ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.features ul li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(34,34,57,0.04);
  transition: box-shadow 0.18s, background 0.16s;
}
.features ul li img {
  width: 32px;
  height: 32px;
  margin-top: 2px;
}
.features ul li:hover {
  background: var(--color-grey);
  box-shadow: 0 6px 32px rgba(34,34,57,0.10);
}
.features h2 {
  margin-bottom: 14px;
}

/* =====================
   SERVICES SECTION
====================== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.services-list > div {
  flex: 1 1 275px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,34,57,0.10);
  padding: 24px 22px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.12s;
}
.services-list > div:hover {
  box-shadow: 0 8px 38px rgba(247,187,66,0.16);
  transform: translateY(-2px) scale(1.01);
}
.services-list h3 {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.service-price {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  background: var(--color-grey);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
}

/* ========================
    TESTIMONIAL CARDS
======================== */
.testimonials h2 {
  margin-bottom: 18px;
}
.testimonial-card {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,34,57,0.10);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 26px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 48px rgba(247,187,66,0.13);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card cite {
  margin-left: 18px;
  font-weight: 700;
  color: var(--color-accent);
  font-style: normal;
}

/* ========================
    CONTACT SECTION
======================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-grey);
  border-radius: 8px;
  padding: 9px 14px;
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.contact-info a.cta-primary,
.contact-info a.cta-minimal {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-details .contact-box {
  display: flex;
  flex-direction: row;
  gap: 28px;
  padding: 18px 0 0 0;
}
.contact-box .company-info {
  min-width: 240px;
  max-width: 340px;
  background: var(--color-grey);
  border-radius: 12px;
  padding: 22px 18px;
}
.contact-box .map-placeholder {
  background: var(--color-grey);
  border-radius: 12px;
  padding: 22px 18px;
  color: var(--color-primary);
}

/* =====================
   CTA BUTTONS
====================== */
.cta-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.13rem;
  border-radius: 28px;
  padding: 12px 34px;
  box-shadow: 0 2px 12px rgba(247,187,66,.11);
  border: none;
  transition: background 0.2s, color 0.16s, transform 0.17s;
  display: inline-block;
  margin: 0;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
}
.cta-minimal {
  background: var(--color-white);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 24px;
  padding: 10px 24px;
  border: 2px solid var(--color-accent);
  transition: background 0.17s, color 0.12s;
  margin-top: 5px;
}
.cta-minimal:hover,
.cta-minimal:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===================
    FOOTER
==================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 42px 0 32px 0;
  font-family: var(--font-body);
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-secondary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 0;
  opacity: 0.97;
  transition: color 0.17s, opacity 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
footer .company-info p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.96rem;
  color: #e5e5e8;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: 9px;
}
footer .social-links a img {
  width: 32px;
  height: 32px;
  filter: brightness(1) invert(0.04) contrast(1.18);
  transition: filter 0.15s;
}
footer .social-links a:hover img {
  filter: brightness(1.1) saturate(1.5);
}

/* =======================
      LEGAL PAGES
======================== */
.legal h1 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.legal h2 {
  margin-top: 32px;
}
.legal ul {
  margin: 16px 0 18px 20px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal li {
  padding-left: 4px;
  font-size: 1rem;
}

/* =========================
    COOKIE CONSENT BANNER
========================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 18px 24px 18px 24px;
  z-index: 2000;
  box-shadow: 0 -2px 20px rgba(34,34,57,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: cookiebannerfadein 0.45s;
}
@keyframes cookiebannerfadein {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 1rem;
  margin-left: 2px;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background 0.15s, color 0.12s, transform 0.17s;
}
.cookie-btn.cookie-reject {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-1px) scale(1.02);
}
.cookie-btn.cookie-reject:hover,
.cookie-btn.cookie-reject:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.cookie-settings:hover,
.cookie-btn.cookie-settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,34,57,0.45);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiemodalfadein .27s;
}
@keyframes cookiemodalfadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 18px;
  padding: 36px 26px 26px 26px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 48px rgba(34,34,57,0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: #646477;
  margin-left: 32px;
  margin-bottom: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .modal-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 18px;
  font-family: var(--font-display);
  padding: 8px 18px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 0;
}
.cookie-modal .modal-close:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

/*=======================
    UTILITY CLASSES
=========================*/
.hide {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.w-space {
  height: 24px;
}

/* ========================
    RESPONSIVE DESIGN
========================== */
@media (max-width: 1100px) {
  .container { max-width: 930px; }
  .footer .content-wrapper,
  .services-list,
  .card-container { gap: 16px; }
}
@media (max-width: 992px) {
  .container { max-width: 90vw; }
  header nav { gap: 22px; }
  footer .company-info, footer .social-links { margin-top: 16px; }
}
@media (max-width: 840px) {
  .services-list,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 10px; }
  header nav { display: none !important; }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 16px; top: 12px;
  }
  header { flex-direction: row; align-items: center; justify-content: space-between; }
  header > a img { margin: 10px 0 10px 8px; height: 40px; }
  .hero { padding: 34px 0 34px 0; }
  .features ul li { flex-direction: row; font-size: 1rem; }
  .testimonial-card { flex-direction: column; padding: 18px 12px; gap: 12px; }
  .services-list > div, .card { min-width: 0; padding: 19px 10px; }
  .contact-details .contact-box { flex-direction: column; gap: 14px; }
  .map-placeholder, .company-info { padding: 16px 8px; }
  section { padding: 22px 0 22px 0; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 12px;
    font-size: 0.97rem;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.09rem; }
  h3 { font-size: 1rem; }
  .section, section { padding: 13px 0 20px 0; }
  .services-list > div, .card { padding: 13px 7px; }
  .testimonial-card, .features ul li { padding: 10px 7px; }
  .cookie-modal { padding: 18px 5vw; min-width: 0; }
}

/* ===============
     ANIMATIONS
================ */
.cta-primary, .cta-minimal, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: 
    background 0.17s, color 0.12s,
    box-shadow 0.17s, transform 0.15s;
}
.testimonial-card, .card, .features ul li, .services-list > div {
  transition: box-shadow 0.2s, transform 0.16s, background 0.15s;
}

/* ==== OVERRIDES FOR FOCUS ACCESSIBILITY ==== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
