/* 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: #FFF9F5;
  color: #30475E;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  cursor: pointer;
  background: none;
  appearance: none;
}
input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* CUSTOM PROPERTIES ---------------------------------------------- */
:root {
  --color-primary: #19507D;
  --color-secondary: #248A68;
  --color-accent: #F2F2F2;
  --color-sand: #FFE8D0;
  --color-peach: #FFF2EC;
  --color-warm: #F9C37B;
  --color-light: #FFF9F5;
  --color-soft-shadow: rgba(60, 30, 15, 0.08);

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

/* CONTAINER ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER ---------------------------------------------- */
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 12px var(--color-soft-shadow);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
}
.logo img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 16px;
  transition: background 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-warm);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border-radius: 28px;
  padding: 10px 28px;
  box-shadow: 0 2px 12px var(--color-soft-shadow);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  outline: none;
  border: none;
  margin-left: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 18px var(--color-secondary), 0 2px 12px var(--color-soft-shadow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-peach);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  border-radius: 24px;
  padding: 8px 22px;
  box-shadow: 0 2px 8px var(--color-soft-shadow);
  transition: background 0.2s, color 0.2s;
  border: none;
  margin-top: 16px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-warm);
  color: var(--color-primary);
}

/* MOBILE MENU ------------------------------------------------------ */
.mobile-menu-toggle {
  background: var(--color-warm);
  color: var(--color-primary);
  border: none;
  font-size: 30px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-shadow: 0 2px 6px var(--color-soft-shadow);
  transition: background 0.18s;
  z-index: 1010;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 0 30px 10px var(--color-soft-shadow);
  transform: translateX(-110vw);
  transition: transform 0.34s cubic-bezier(.85,0,.16,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 32px;
  margin-left: 20px;
  font-size: 32px;
  background: var(--color-warm);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--color-soft-shadow);
  transition: background 0.16s, color 0.16s;
  z-index: 2010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px 30px 24px 30px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 20px;
  font-family: var(--font-display);
  padding: 12px 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-peach);
  color: var(--color-secondary);
}

/* Hide burger on desktop, nav on mobile */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .btn-primary {
    margin-left: 0;
  }
}

/* HERO SECTION ---------------------------------------------- */
.hero-section, .hero {
  background: linear-gradient(120deg, var(--color-warm) 0%, var(--color-light) 90%);
  padding: 70px 0 50px 0;
  text-align: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}
.hero-section h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

/* TYPOGRAPHY ---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h1 {
  font-size: 40px;
  line-height: 1.18;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-top: 12px;
}
h3 {
  font-size: 21px;
  line-height: 1.21;
  color: var(--color-secondary);
}
h4, h5, h6 {
  font-size: 18px;
}
p, li, label, span, div {
  font-family: var(--font-body);
  font-size: 16px;
  color: #30475E;
}
p {
  margin-bottom: 10px;
}
strong {
  font-weight: bold;
}
em {
  color: var(--color-secondary);
  font-style: italic;
}
.text-section {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

/* LISTS & GRIDS & CARDS ---------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 18px var(--color-soft-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
}
.feature-grid > div {
  flex: 1 1 230px;
  background: var(--color-peach);
  border-radius: 20px;
  padding: 28px 22px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  min-height: 200px;
  box-shadow: 0 1px 10px var(--color-soft-shadow);
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px var(--color-soft-shadow);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--color-soft-shadow);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.21s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 4px 22px var(--color-soft-shadow);
}

.project-card {
  background: var(--color-peach);
  border-radius: 18px;
  box-shadow: 0 1px 8px var(--color-soft-shadow);
  padding: 24px 18px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  transition: box-shadow 0.13s, transform 0.13s;
}
.project-card:hover {
  box-shadow: 0 6px 18px var(--color-soft-shadow);
  transform: scale(1.015);
}

.blog-preview {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px var(--color-soft-shadow);
  padding: 20px 18px 14px 18px;
  margin-bottom: 22px;
  min-width: 220px;
  transition: box-shadow 0.12s;
}
.blog-preview:hover {
  box-shadow: 0 6px 16px var(--color-soft-shadow);
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 18px 0 14px 0;
  font-size: 15px;
  color: var(--color-secondary);
}
.categories-list span {
  background: var(--color-sand);
  padding: 2px 12px;
  border-radius: 10px;
  margin: 0 2px;
}

.search-bar {
  background: var(--color-peach);
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 1px 7px var(--color-soft-shadow);
  margin: 12px 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar label {
  font-weight: 600;
  font-size: 15px;
}
.search-bar input {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e7e7e7;
  padding: 7px 10px;
  font-size: 15px;
  width: 180px;
}

/* FLEX SPACING LAYOUTS (MANDATORY) ----------------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* TESTIMONIALS ---------------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px 20px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px var(--color-soft-shadow);
  transition: box-shadow 0.24s, transform 0.20s;
  flex-direction: column;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-soft-shadow);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  font-size: 17px;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.7;
}
.testimonial-card div {
  font-size: 15px;
  color: var(--color-secondary);
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* FOOTER ---------------------------------------------- */
footer {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 32px 0 12px 0;
  margin-top: 48px;
  box-shadow: 0 -1px 12px var(--color-soft-shadow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  flex: 1 1 90px;
  min-width: 80px;
  display: flex;
  align-items: center;
}
.footer-brand img {
  height: 44px;
  width: auto;
}
.footer-info {
  flex: 2 1 280px;
  min-width: 180px;
}
.footer-nav {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 120px;
  margin-top: 0;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 15px;
  padding: 3px 5px;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-warm);
  color: var(--color-secondary);
}
footer small {
  color: #a4a4a4;
  font-size: 13px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
} 

/* SECTION SPACING ---------------------------------- */
section {
  margin-bottom: 60px;
}

/* RESPONSIVE -------------------------------------------- */
@media (max-width: 991px) {
  .container {
    padding: 0 12px;
  }
  .footer-brand, .footer-info, .footer-nav {
    min-width: 100px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .hero-section { padding: 38px 0 22px 0; }
  .content-wrapper { padding: 0; }
  .feature-grid { flex-direction: column; align-items: stretch; gap: 16px; }
  .feature-grid > div { min-width: 0; padding: 18px 10px; }
  .card-container { flex-direction: column; }
  .card { padding: 16px 10px; min-width: 0; }
  .section { padding: 24px 6px; }
  .testimonial-card { padding: 16px 10px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .text-image-section { flex-direction: column; gap: 15px; }
  .blog-preview { min-width: 0; padding: 13px 7px 10px 7px; }
  .project-card { min-width: 0; padding: 13px 7px; }
  .footer-brand img { height: 36px; }
  .mobile-nav { padding: 38px 13px 18px 13px; }
}
@media (max-width: 540px) {
  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 9px 18px;
  }
  .search-bar input { width: 100px; font-size: 13px; }
  .footer-info br { display: none; }
  .footer-info strong { display: block; margin-bottom: 3px; }
}

/* MICRO-INTERACTIONS, HOVER, ANIMATION --------------------- */
.btn-primary, .btn-secondary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
}
.card, .feature-grid > div, .project-card, .testimonial-card, .blog-preview {
  transition: box-shadow 0.2s, transform 0.16s;
}
.card:active, .feature-grid > div:active, .project-card:active, .testimonial-card:active, .blog-preview:active {
  transform: scale(0.97);
}

/* CONTACT, TEAM, INFO CARDS -------------------------------- */
.service-list li, .content-wrapper ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 0;
}
.service-list li img, .content-wrapper ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-right: 7px;
}
ol {
  counter-reset: num;
  margin: 14px 0 10px 0;
  padding-left: 0 !important;
}
ol li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 11px;
  font-size: 16px;
  color: var(--color-primary);
}
ol li img {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  margin-right: 7px;
}

/* MISCELLANEOUS ------------------------------------------ */
.text-section a {
  display: inline-block;
  margin-top: 10px;
}

/* COOKIE CONSENT BANNER & MODAL --------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff5e4;
  color: var(--color-primary);
  box-shadow: 0 -4px 24px var(--color-soft-shadow);
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 16px;
  z-index: 3000;
  transition: transform 0.27s;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .cookie-text {
  font-size: 15px;
  color: var(--color-primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 16px;
  padding: 8px 18px;
  margin: 0 3px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: var(--color-warm);
  color: var(--color-primary);
  box-shadow: 0 1px 6px var(--color-soft-shadow);
  transition: background 0.21s, color 0.21s, box-shadow 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 3px 10px var(--color-secondary), 0 1px 6px var(--color-soft-shadow);
}
.cookie-btn.settings {
  background: var(--color-peach);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #ffd4cb;
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  background: rgba(60,26,8,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.16s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff9f5;
  border-radius: 20px;
  box-shadow: 0 8px 34px 0 rgba(157, 107, 50, 0.18);
  padding: 32px 24px;
  min-width: 320px;
  max-width: 92vw;
  color: #30475E;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 21px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 25px;
  background: var(--color-sand);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 7px var(--color-soft-shadow);
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category label {
  font-size: 15px;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 19px;
  height: 19px;
  border-radius: 7px;
}
.cookie-category input[disabled] {
  opacity: 0.7;
}

/* Hide cookie banner/modal on print */
@media print {
  .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

/* UTILITY CLASSES ----------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 18px !important; }
.mb-2 { margin-bottom: 18px !important; }
.text-center { text-align: center; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Prevents accidental overlapping of content */
.section, .feature-grid > div, .card, .testimonial-card, .project-card, .blog-preview {
  margin-bottom: 24px;
}

/* Ensure all interactive elements have clear focus styles */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  box-shadow: 0 0 0 2px var(--color-warm);
}
