/* --- 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }
button { font: inherit; border: none; background: none; padding: 0; cursor: pointer; }

/* --- CUSTOM PROPERTIES --- */
:root {
  --color-primary: #1C2833;
  --color-secondary: #F7F9F9;
  --color-accent: #E67E22;
  --color-bg: #FFFFFF;
  --color-border: #EAEBED;
  --color-muted: #8B959E;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --border-radius: 12px;
  --shadow-card: 0 2px 12px 0 rgba(28,40,51,0.06);
  --shadow-modal: 0 8px 32px 0 rgba(28,40,51,0.16);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

body {
  color: var(--color-primary);
  background: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* --- TYPOGRAPHY --- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.18;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.22;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}
p, ul, li, table, th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
strong { font-weight: 500; }

/* Typography spacing */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 8px;
}
p, ul, ol {
  margin-bottom: 16px;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 20px 20px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-weight: 400;
  font-size: 1rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.button.primary {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.button.primary:hover, .button.primary:focus {
  background: #CA6F1E;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(230,126,34,0.16);
}

/* --- MOBILE HEADER & MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  position: absolute;
  right: 30px;
  top: 24px;
  z-index: 110;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-accent);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: var(--shadow-modal);
  z-index: 300;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 32px 32px 32px;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

@media (max-width: 1024px) {
  .container { max-width: 920px; }
  header .container { gap: 20px; }
}
@media (max-width: 900px) {
  .container { max-width: 720px; }
}

@media (max-width: 930px) {
  header nav { display: none !important; }
  .button.primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* --- HERO / SECTIONS --- */
.hero {
  margin-bottom: 60px;
  padding: 60px 20px 40px 20px;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  min-height: 270px;
}
.hero .container { justify-content: center; }
.hero.confirmation { background: #fff; }
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- FEATURES --- */
.features {
  margin-bottom: 60px;
  padding: 0 0 20px 0;
}
.features .container { padding: 0; }
.features .content-wrapper { gap: 28px; }
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-item {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px 24px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 4px 28px 0 rgba(28,40,51,0.13);
  transform: translateY(-2px) scale(1.025);
}
.features ul {
  padding-left: 18px;
  list-style: disc;
  color: var(--color-primary);
}
.features li {
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- SERVICES / SECTION CARDS --- */
.services {
  margin-bottom: 60px;
  padding: 40px 20px 20px 20px;
}
.services .container { padding: 0; }
.services .content-wrapper { gap: 24px; }
.services ul {
  padding-left: 18px;
  list-style: disc;
  color: var(--color-primary);
}
.services li {
  margin-bottom: 9px;
  color: var(--color-primary);
  font-size: 1rem;
}

/* --- TABLES --- */
table {
  width: 100%;
  margin-bottom: 24px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
thead tr {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
}
th, td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }
tbody tr {
  background: #fff;
  transition: background var(--transition);
}
tbody tr:hover {
  background: #f9f9fb;
}

/* --- ABOUT US / TESTIMONIALS --- */
.testimonials {
  margin-bottom: 60px;
  padding: 0 0 20px 0;
}
.testimonials .container { padding: 0; }
.testimonials .content-wrapper { gap: 28px; }
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 24px 0 rgba(28,40,51,0.08);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(28,40,51,0.15);
  border-left-color: #B55E19;
}
.testimonial-text {
  font-size: 1.13rem;
  color: var(--color-primary);
  font-style: italic;
  flex: 1;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--color-muted);
}
.testimonial-name {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
}
.testimonial-location {
  color: var(--color-muted);
  font-style: normal;
}

/* --- CONTACT / LISTS --- */
.contact .text-section ul,
.footer-contact .content-wrapper ul {
  padding-left: 0;
  list-style: none;
}
.contact .text-section li,
.footer-contact .content-wrapper li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.contact .text-section img,
.footer-contact .content-wrapper img {
  width: 22px;
  height: 22px;
  opacity: 0.78;
}
.footer-contact nav {
  margin-bottom: 18px;
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.social-media {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 14px;
}
.social-media a img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}
.social-media a:hover img,
.social-media a:focus img {
  opacity: 1;
  transform: scale(1.06);
}

/* --- LEGAL PAGES --- */
.legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.legal h1, .legal h2, .legal h3 {
  margin-top: 0;
}
.legal ul {
  padding-left: 18px;
  list-style: disc;
}
.legal li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 20px 30px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-muted);
  font-size: 1rem;
  transition: color var(--transition);
  padding: 6px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.text-section {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* --- SECTION / CARD CONTAINERS (MANDATORY SPACING) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(28,40,51,0.13);
  transform: translateY(-2px) scale(1.0175);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 12px 0 rgba(28,40,51,0.09);
  z-index: 500;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 26px 22px;
  transition: transform 0.4s var(--transition), opacity 0.2s;
  gap: 32px;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 2 1 400px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  flex: 1 1 180px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #CA6F1E;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f4f4f7;
}
.cookie-btn.settings {
  background: none;
  color: var(--color-accent);
  border: none;
  text-decoration: underline;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #B55E19;
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  background: rgba(38, 50, 56, 0.32);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--transition), visibility 0.35s;
}
.cookie-modal-overlay.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-modal);
  min-width: 310px;
  max-width: 98vw;
  width: 440px;
  padding: 38px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-in 0.28s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-in {
  from { transform: translateY(90px) scale(0.95); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal .modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal .modal-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0;
}
.cookie-modal .close-modal-btn {
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category-label { flex: 2; font-size: 1rem; }
.cookie-category .cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.cookie-category .cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ECF0F1;
  transition: background var(--transition);
  border-radius: 24px;
}
.cookie-category .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
  border-radius: 50%;
}
.cookie-category .cookie-switch input:checked + .slider {
  background: var(--color-accent);
}
.cookie-category .cookie-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-category .cat-essential {
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-category .cat-essential + .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* --- UTILITY SPACING --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 20px 12px 16px 12px;
  }
  .hero {
    padding: 38px 8px 25px 8px;
    min-height: 120px;
  }
  .section, .services, .legal {
    padding: 24px 8px;
    margin-bottom: 34px;
  }
  .features .content-wrapper, .services .content-wrapper, .legal .content-wrapper {
    gap: 14px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    min-width: 0;
    max-width: 100%;
    padding: 18px 12px 16px 12px;
    gap: 10px;
  }
  .testimonials .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  footer .container {
    gap: 9px;
    padding: 18px 10px 18px 10px;
  }
  .footer-nav {
    gap: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px 18px 10px;
  }
}

@media (max-width: 480px) {
  h1, .hero h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .button.primary, .cookie-btn {
    padding: 9px 14px;
    font-size: 0.92rem;
  }
  .cookie-modal { padding: 22px 7px 16px 7px; width: 98vw; }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-banner .cookie-text { font-size: 0.95rem; }
}

/* --- SMOOTH ANIMATIONS --- */
a, .button, button, .feature-item, .card, .cookie-btn {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
