/* --- CSS RESET & NORMALIZE --- */
html, body, div, section, article, aside, header, footer, nav, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}
body {
  min-height: 100vh;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1C2C3C;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1C2C3C;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; }
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #2C3C4C;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #B03A1F;
  margin-bottom: 18px;
  font-weight: 500;
}
strong {
  color: #B03A1F;
  font-weight: 600;
}

/* --- COLORS & THEME VARS --- */
:root {
  --primary: #1C2C3C;
  --secondary: #F8C572;
  --accent: #B03A1F;
  --gray-100: #f8f9fa;
  --gray-200: #ececec;
  --gray-300: #e3e3e3;
  --gray-800: #2C3C4C;
  --white: #fff;
  --shadow: 0 2px 24px 0 rgba(28,44,60,0.08);
  --radius: 18px;
  --transition: all 0.14s cubic-bezier(.64,.17,.56,.92);
}

/* --- CONTAINER & GRID --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- MAIN LAYOUT SPACING REQUIREMENTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 768px) {
  section {
    padding: 32px 0 0 0;
    margin-bottom: 36px;
  }
}

.card-container, .category-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(44,60,76,0.15);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2.5px solid var(--secondary);
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(44,60,76,0.08);
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
  position: relative;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  margin-left: auto;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 4px 40px 0 rgba(44,60,76,0.15);
  border-color: var(--accent);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-list, .service-list, .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-list li, .service-list li, .category-grid li {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 28px 24px;
  min-width: 220px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  transition: box-shadow .19s, border-color .19s;
}
.features-list li:hover, .service-list li:hover, .category-grid li:hover {
  box-shadow: 0 4px 36px 0 rgba(44,60,76,0.13);
  border-left: 5px solid var(--secondary);
}
.features-list img, .features-list svg {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  background: var(--secondary);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 1px 8px rgba(240,166,38,0.10);
}

/* --- BUTTONS & CTA --- */
.cta-primary, .btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 34px;
  box-shadow: 0 2px 16px 0 rgba(176,58,31,0.12);
  padding: 13px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .10s;
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .btn-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 26px 0 rgba(28,44,60,0.15);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 28px;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .14s, color .14s;
  margin-top: 6px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff8ed;
  color: var(--accent);
}
.btn-tertiary {
  background: #fff;
  color: var(--accent);
  border-radius: 24px;
  padding: 9px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 2px solid var(--secondary);
  transition: border-color .13s, color .13s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  border-color: var(--accent);
  color: var(--primary);
}

/* --- HEADER & NAV --- */
header {
  background: var(--primary);
  width: 100%;
  box-shadow: 0 1px 12px 0 rgba(28,44,60,0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
}
header a img {
  height: 36px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 34px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color .14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.cta-primary {
  margin-left: auto;
  margin-right: 14px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  margin-left: 18px;
  cursor: pointer;
  transition: color .13s;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--accent);
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
    margin-left: 18px;
  }
  header .container {
    padding: 12px 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-right: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE SLIDE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,44,60,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.86,-0.01,.4,.99);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  margin: 30px 32px 16px 0;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: color .13s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 44px 0 44px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.24rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .14s, background .15s;
  border-radius: 5px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(184,104,26,0.08);
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN CONTENT GENERAL --- */
main {
  padding-top: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  background: #fff;
}

/* --- FOOTER --- */
footer {
  background: #F8C572;
  color: #1C2C3C;
  padding: 0;
  width: 100%;
  box-shadow: 0 -2px 16px 0 rgba(28,44,60,0.06);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 20px;
  gap: 20px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-right: 35px;
}
.footer-menu a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color .13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.99rem;
  color: #393939;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.footer-social a img {
  width: 34px;
  height: 34px;
  filter: grayscale(0.25) contrast(1.1);
  transition: filter .18s;
}
.footer-social a:hover img {
  filter: none;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 12px 18px 12px;
  }
  .footer-menu {
    flex-direction: row;
    gap: 14px;
    margin-right: 0;
  }
}

/* --- MISC GEOMETRIC/STRUCTURED DESIGN ELEMENTS --- */
.features-list li, .service-list li {
  /* triangle shape as accent, geometric */
  position: relative;
}
.features-list li:before, .service-list li:before {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  background: var(--secondary);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
  opacity: 0.30;
}
.features-list li:after, .service-list li:after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 18px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  z-index: 1;
  opacity: 0.18;
}

.card:before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.23;
  z-index: 0;
}

/* --- RESPONSIVE FLEX DIRECTION --- */
@media (max-width: 900px) {
  .features-list, .service-list, .category-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- FORMS (if any future forms) --- */
input, textarea, select {
  background: #fff;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.98rem;
  color: var(--primary);
  margin-bottom: 12px;
  transition: border-color .13s;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 3px;
  display: block;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #ececec;
  padding: 10px 14px;
  text-align: left;
}
th {
  background: var(--secondary);
  color: var(--primary);
}

/* --- BREADCRUMBS (future) --- */
.breadcrumbs {
  display: flex;
  flex-direction: row;
  gap: 12px;
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.breadcrumbs a {
  color: var(--primary);
  opacity: 0.75;
}
.breadcrumbs span {
  color: var(--accent);
  font-size: 1em;
}

/* --- SMOOTH TRANSITIONS --- */
a, button, .cta-primary, .btn-primary, .btn-secondary, .btn-tertiary {
  transition: var(--transition);
}

/* --- HOVER ANIMATIONS --- */
a:hover, a:focus {
  color: var(--accent);
}
.features-list li:hover, .service-list li:hover, .category-grid li:hover, .card:hover {
  transform: translateY(-3px) scale(1.02);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 3.5px solid var(--secondary);
  box-shadow: 0 -2px 22px 0 rgba(44,60,76,0.13);
  width: 100vw;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 16px 18px 16px;
  gap: 38px;
  flex-wrap: wrap;
  animation: cookie-banner-fade 0.6s cubic-bezier(.71,-0.17,.37,1.19) 1;
}
@keyframes cookie-banner-fade {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  max-width: 520px;
  color: var(--primary);
  font-size: 1.01rem;
  margin-right: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner .btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s;
  border: none;
}
.cookie-banner .btn-cookie-accept:hover, .cookie-banner .btn-cookie-accept:focus {
  background: var(--primary);
}
.cookie-banner .btn-cookie-reject {
  background: var(--gray-200);
  color: var(--primary);
  border-radius: 22px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.7px solid var(--secondary);
  cursor: pointer;
}
.cookie-banner .btn-cookie-reject:hover, .cookie-banner .btn-cookie-reject:focus {
  background: #fff8ed;
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner .btn-cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
  border-radius: 20px;
  font-size: 0.95rem;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .14s, color .14s;
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 8px 8px;
    gap: 16px;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
    font-size: 0.98rem;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 13000;
  background: rgba(44,60,76,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s ease;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 34px 26px 26px 26px;
  max-width: 380px;
  width: 90vw;
  box-shadow: 0 6px 40px 0 rgba(44,60,76,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookie-modal-in 0.24s cubic-bezier(.79,-0.15,.27,1.16) 1;
}
@keyframes cookie-modal-in {
  from { transform: translateY(-34px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  margin-top: 7px;
}
.cookie-modal-content .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-modal-content .cookie-switch {
  position: relative;
  width: 38px;
  height: 22px;
}
.cookie-modal-content .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal-content .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ececec;
  border-radius: 15px;
  transition: background .18s;
}
.cookie-modal-content .cookie-switch input:checked + .slider {
  background-color: var(--accent);
}
.cookie-modal-content .slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 4px rgba(44,60,76,0.11);
}
.cookie-modal-content .cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal-content .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.34rem;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* --- ACCESSIBILITY UTILS --- */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- GEOMETRIC HEADING DECORATION --- */
h2::after {
  content: '';
  display: block;
  width: 42px;
  height: 5px;
  margin-top: 10px;
  background: var(--secondary);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  border-radius: 1.5px;
}

/* --- SPACING UTILITIES --- */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* --- IMAGE ASPECT RATIOS (future) --- */
.aspect-ratio-4-3 { aspect-ratio: 4 / 3; width: 100%; }
.aspect-ratio-1-1 { aspect-ratio: 1 / 1; width: 100%; }

/* --- MEDIA QUERIES RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.07rem; }
  .card, .features-list li, .service-list li, .category-grid li {
    padding: 20px 14px 18px 14px;
    min-width: 0;
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  html { font-size: 14px; }
  .card, .features-list li, .service-list li, .category-grid li { padding: 12px 6px 11px 10px; }
}

/* --- PRINT (future) --- */
@media print {
  header, footer, nav, .cta-primary, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main, section, .container, .content-wrapper { box-shadow: none !important; background: #fff !important; }
}
