/* ===== 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; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img,svg { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button { font-family: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }

/* ======= BRAND MONOCHROME VARIABLES ======= */
:root {
  --color-black: #161616;
  --color-dark: #232323;
  --color-charcoal: #212327;
  --color-primary: #27415c;
  --color-accent: #b87424;
  --color-light: #fff;
  --color-gray-100: #f6f8f9;
  --color-gray-200: #eceef0;
  --color-gray-300: #cccccc;
  --color-gray-600: #535353;
  --color-gray-800: #2e2e2e;
  --shadow-card: 0 8px 22px 0 rgba(22,24,26,0.12);
  --shadow-popup: 0 12px 40px 0 rgba(0,0,0,.24);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ======= BASE LAYOUT ======= */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-light);
  color: var(--color-charcoal);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--color-charcoal);
  margin-bottom: 12px;
  line-height: 1.7;
}
strong { font-weight: 700; color: var(--color-black); }
em, i { font-style: italic; }
.text-section { margin-bottom: 24px; }

/* ======= SPACING & FLEXBOX SECTION PATTERNS ======= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 410px;
  flex: 1 1 280px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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-gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--color-black);
  flex: 1 1 320px;
  max-width: 540px;
  min-width: 240px;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.09rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-gray-800);
  font-size: 0.97rem;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 14px 40px rgba(34,39,49,0.19);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========= HEADER & NAVIGATION ========= */
header {
  background: var(--color-light);
  box-shadow: 0 2px 10px rgba(10,10,10,0.06);
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav a {
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-gray-200);
  color: var(--color-primary);
  outline: none;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.08rem;
  background: var(--color-black);
  color: var(--color-light);
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px 0 rgba(40,40,40,0.10);
  border: none;
  transition: background 0.22s, box-shadow 0.18s, color 0.18s, transform 0.14s;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-light);
  box-shadow: 0 6px 16px 0 rgba(50,55,64,0.19);
  transform: translateY(-2px) scale(1.034);
  outline: none;
}
.cta-btn.secondary {
  background: var(--color-light);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-primary);
  color: var(--color-light);
}

/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1001;
  background: var(--color-black);
  color: var(--color-light);
  padding: 8px 14px;
  font-size: 2rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 2px 10px 0 rgba(40,40,40,0.10);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,16,24,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(.69,-0.05,.46,1.39);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--color-light);
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 30px 30px 0 0;
  border: none;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  outline: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18vh;
  gap: 28px;
}
.mobile-nav a {
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  background: rgba(240,240,240,0.04);
  padding: 14px 34px;
  border-radius: var(--radius-lg);
  transition: background 0.18s, color 0.18s;
  text-align: center;
  width: 80%;
  max-width: 340px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.09);
  outline: none;
}

/* ===== MAIN ===== */
main {
  width: 100%;
  min-height: 60vh;
  margin-bottom: 64px;
}

/* ======= INDEX HERO ======= */
main section:first-of-type {
  background: var(--color-gray-100);
  box-shadow: 0 6px 40px 0 rgba(30,30,36,0.10);
  border-radius: var(--radius-lg);
}

/* ======= CARDS & PANELS ======= */
.card,
.section .card {
  transition: box-shadow 0.18s, transform 0.18s;
  background: var(--color-gray-100);
}
.card:hover,
.card:focus {
  box-shadow: 0 12px 38px rgba(50,55,70,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* ======= TABLES (PRICES) ======= */
table {
  width: 100%;
  background: var(--color-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  color: var(--color-black);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}
thead th {
  background: var(--color-accent);
  color: var(--color-light);
  font-weight: 700;
  font-family: var(--font-display);
  padding: 18px 10px;
  font-size: 1.08rem;
  border: none;
}
tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 1.04rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
table th, table td {
  text-align: left;
}

/* ======= MAP PLACEHOLDER (CONTACT) ======= */
.map-placeholder {
  width: 100%;
  min-height: 220px;
  background: var(--color-gray-200);
  color: var(--color-gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  font-size: 1.12rem;
  opacity: 0.75;
}

/* ======= FOOTER ======= */
footer {
  background: var(--color-gray-100);
  box-shadow: 0 -2px 12px 0 rgba(20,20,20,0.04);
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 0.97rem;
}
footer .container { gap: 0; }
footer .content-wrapper {
  gap: 24px;
  align-items: center;
  text-align: center;
}
footer img {
  height: 42px;
  margin: 0 auto 18px auto;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  color: var(--color-black);
}
footer nav a {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}
footer .text-section {
  font-size: 0.99rem;
  color: var(--color-charcoal);
}

/* ======= UTILITY CLASSES ======= */
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-20 { margin-bottom: 20px; }
.w100 { width: 100%; }

/* ======= BUTTONS / LINKS ======= */
a, button {
  outline: none;
}
button:active { transform: scale(0.97); }

/* ======= COOKIES CONSENT BANNER/MODAL ======= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-light);
  color: var(--color-black);
  box-shadow: 0 -8px 32px rgba(10,10,12,0.14);
  z-index: 2222;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  gap: 32px;
  min-height: 0;
}
.cookie-consent-banner .cookie-message {
  font-size: 1rem;
  font-family: var(--font-body);
  max-width: 500px;
  color: var(--color-black);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  padding: 10px 22px;
  transition: background 0.17s, color 0.14s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 2px 10px 0 rgba(50,50,60,0.06);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: var(--color-light);
}
.cookie-btn.reject {
  background: var(--color-gray-300);
  color: var(--color-black);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-black);
  color: var(--color-light);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 8px 18px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: var(--color-light);
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,40,0.81);
  z-index: 2230;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-light);
  box-shadow: var(--shadow-popup);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 92vw;
  padding: 38px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 0;
}
.cookie-toggle {
  width: 44px; height: 24px;
  border-radius: 13px;
  background: var(--color-gray-200);
  position: relative;
  transition: background 0.16s;
  outline: none;
  border: none;
  cursor: pointer;
}
.cookie-toggle.enabled {
  background: var(--color-accent);
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-light);
  box-shadow: 0 1.5px 6px 0 rgba(26,28,29,0.10);
  transition: transform 0.16s, background 0.13s;
}
.cookie-toggle.enabled::before {
  transform: translateX(20px);
  background: var(--color-black);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.55rem;
  color: var(--color-black);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-primary);
  outline: none;
}

/* ======= FORM ELEMENTS ======= */
input, textarea, select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-gray-300);
  font-size: 1rem;
  padding: 10px 16px;
  font-family: var(--font-body);
  background: var(--color-light);
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ======= ANIMATIONS & MICRO-INTERACTIONS ======= */
.cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.17s, color 0.14s, transform 0.14s;
}

.section, .testimonial-card, .card {
  transition: box-shadow 0.17s, background 0.19s;
}

/* ======= RESPONSIVE DESIGN (MOBILE FIRST) ======= */
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
  }
  .section { padding: 32px 8px; }
  .content-wrapper { gap: 22px; }
}
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  section .container {
    padding-left: 0; padding-right: 0;
  }
  header .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .section { padding: 24px 6px; margin-bottom: 32px; }
  .container { padding-left: 6px; padding-right: 6px; }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 70px;
  }
  header nav { display: none; }
  .cta-btn { margin-left: 0; margin-top: 8px; }
  .mobile-menu-toggle {
    display: block;
  }
  footer .content-wrapper {
    gap: 16px;
    font-size: 0.95rem;
    text-align: left;
  }
  .map-placeholder { min-height: 120px; }
  .testimonial-card { padding: 14px 11px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.12rem; }
  .section { padding: 14px 2px; margin-bottom: 22px; }
}

/* ======= Z-INDEX CONTROLS ======= */
header {
  z-index: 999;
  position: relative;
}
main { z-index: 1; position: relative; }
footer { z-index: 10; position: relative; }

/* ======= A11Y FOCUSED STATES ======= */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ======= CUSTOM CLASSES FOR PAGES ======= */
ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
ul li:before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
  position: absolute;
  left: 0;
  top: 9px;
  opacity: 0.6;
}

/* === special for accent highlight === */
strong, em {
  color: var(--color-accent);
}

/* ======= OVERRIDES ======= */
::-webkit-input-placeholder { color: var(--color-gray-600); opacity: 1; }
::-moz-placeholder { color: var(--color-gray-600); opacity: 1; }
:-ms-input-placeholder { color: var(--color-gray-600); opacity: 1; }
::placeholder { color: var(--color-gray-600); opacity: 1; }
