/* ================================
   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;
  background: #F4F3EF;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  color: #2C1810;
  background: #F4F3EF;
  min-height: 100vh;
  line-height:1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #7C2F17;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6AB3C;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
strong {
  font-weight: 700;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* ================================
   COLOR AND TYPOGRAPHY VARIABLES
=================================== */
:root {
  --primary: #7C2F17;
  --secondary: #F6AB3C;
  --accent: #F4F3EF;
  --body-bg: #F4F3EF;
  --dark: #2C1810;
  --white: #fff;
  --gray: #ece9e6;
  --shadow: rgba(60, 40, 10, 0.09);
  --card-radius: 18px;
  --border-radius: 24px;
  --transition: 0.2s cubic-bezier(.48,1.16,.34,1);
}

/* ================================
   GEOMETRIC STRUCTURED THEME
=================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.12;
  text-transform: none;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.65;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 12px var(--shadow);
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================
   HEADER & NAVIGATION
=================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  border: none;
  border-radius: 18px;
  padding: 12px 30px;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 8px;
  outline: none;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateY(-2px) scale(1.045) skew(-1deg);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1001;
  border: none;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  outline: none;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.48,1.16,.34,1);
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: 0 3px 12px var(--shadow);
  z-index: 2010;
  border: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 54px 30px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 14px 8px;
  color: var(--primary);
  background: var(--accent);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: background .2s, color .2s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--white);
  background: var(--secondary);
}

@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none!important;
  }
}
@media (max-width: 768px) {
  .main-nav, header .cta-btn {
    display: none!important;
  }
  header .container {
    justify-content: flex-start;
    padding-right: 48px;
  }
  .logo {
    max-width: 130px;
  }
}

/* ================================
   SECTION LAYOUTS & STRUCTURE
=================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
/* MANDATORY FLEX LAYOUT CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 28px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .18s;
}
.card:hover {
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px) scale(1.03);
}
.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(--accent);
  border-left: 6px solid var(--secondary);
  border-radius: var(--card-radius);
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px var(--shadow);
  max-width: 650px;
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-left-color: var(--primary);
  box-shadow: 0 2px 16px var(--shadow);
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  align-items: flex-end;
}
.testimonial-meta img {
  width:21px;
  display: inline-block;
  margin-right:2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  padding: 26px 18px;
  border-radius: var(--card-radius);
  box-shadow: 0 1px 7px var(--shadow);
  transition: box-shadow .2s, background .2s;
}
.feature-item:hover {
  background: var(--accent);
  box-shadow: 0 2px 16px var(--shadow);
}
/* GRID STRUCTURE FOR FEATURES & SERVICES */
.features-grid, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div, .services-grid > div {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 7px var(--shadow);
  flex: 1 1 240px;
  min-width: 228px;
  max-width: 340px;
  padding: 26px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow .18s, background .18s, transform .15s;
  position: relative;
}
.features-grid > div:hover, .services-grid > div:hover {
  background: var(--accent);
  box-shadow: 0 2px 16px var(--shadow);
  transform: translateY(-2px) scale(1.023);
}
.features-grid img {
  margin-bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--secondary);
  padding: 5px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 18px;
  margin-bottom: 18px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  background: var(--accent);
  padding: 12px 16px;
  border-radius: 12px;
  gap: 12px;
  font-size: 1rem;
  min-width: 220px;
  font-weight: 500;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 2px 0;
  border-radius: 8px;
  transition: color 0.19s, background 0.19s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
  background: rgba(246, 171, 60, 0.11);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.98rem;
  font-family: 'Nunito', Arial, sans-serif;
}
.footer-contact img {
  width:18px; display:inline-block; margin-right:6px;
}

/* ================================
   COOKIE CONSENT BANNER
=================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 14px rgba(124,47,23,0.08);
  z-index: 9000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 22px 24px 22px 24px;
  font-size: 1rem;
  line-height: 1.4;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transition: opacity 0.2s, transform 0.24s cubic-bezier(0.67,1,0.27,1);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p { margin-bottom: 0; }
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 8px 22px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  margin-left: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.23s;
  box-shadow: 0 1px 6px var(--shadow);
  outline: none;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.reject {
  background: #e5e0dc;
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE PREFERENCES MODAL  */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,24,16, 0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: background .28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 22px;
  max-width: 400px;
  width: 92vw;
  box-shadow: 0 6px 32px var(--shadow);
  padding: 42px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.29s cubic-bezier(.48,1.16,.34,1), opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translateY(40px);
}
.cookie-modal h3 {
  margin-bottom:12px; font-size:1.25rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 16px 0 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 21px;
  background: #e0d6ca;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background .18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 2px;
  transition: left .19s;
}
.cookie-toggle:checked:before {
  left: 16px;
}
.cookie-category.essential .cookie-toggle {
  opacity: .5;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-close {
  position: absolute;
  top: 10px; right: 19px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .features-grid > div, .services-grid > div {
    max-width: 40vw;
  }
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .container, header .container {
    padding: 0 11px;
  }
  .card-container, .content-grid, .features-grid, .services-grid, .contact-info {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card, .features-grid > div, .services-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    font-size: 0.98rem;
    padding: 17px 10px;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .card, .testimonial-card, .features-grid > div, .content-wrapper, .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    padding: 8px 6px 8px 6px;
  }
}

/* ================================
   MICRO-INTERACTIONS & EFFECTS
=================================== */
.card, .features-grid > div, .services-grid > div, .feature-item, .testimonial-card, .cta-btn {
  will-change: transform, box-shadow, background, border;
}
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* ================================
   MISC - ACCESSIBLE FOCUS STYLE
=================================== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ================================
   CUSTOM SCROLLBAR (DESKTOP)
=================================== */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 10px;
    background: var(--body-bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 12px;
    border: 2px solid var(--accent);
  }
}

/* ================================
   PRINT OPTIMIZATION
=================================== */
@media print {
  header, footer, .mobile-menu-toggle, .cta-btn, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
