/* 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #22324D;
  background: #F9FAFB;
  min-height: 100vh;
  line-height: 1.6;
  background-color: #F9FAFB;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #E8B047;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22324D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22324D;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.75rem; line-height: 1.11; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 1.3rem; line-height: 1.18; margin-bottom: 16px; }
h4 { font-size: 1.1rem; line-height: 1.2; margin-bottom: 10px; }
h5 { font-size: 1rem; line-height: 1.3; }
h6 { font-size: 0.95rem; line-height: 1.3; }

strong, b { font-weight: 700; }

.container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background: #22324D;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 950;
  box-shadow: 0 4px 24px rgba(34,50,77,0.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 8px 6px;
  transition: color 0.2s;
}
header nav a:hover,
header nav a.active {
  color: #E8B047;
  text-decoration: none;
}
header .cta.primary {
  margin-left: 24px;
}
.mobile-menu-toggle {
  background: #E8B047;
  border: none;
  color: #22324D;
  border-radius: 8px;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 8px rgba(232,176,71,0.10);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ffd471;
}

/* MAIN BUTTONS, CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(.5,1.6,.4,.95);
  box-shadow: 0 4px 18px rgba(34,50,77,0.11);
  margin-top: 10px;
  text-transform: uppercase;
}
.cta.primary {
  background: #E8B047;
  color: #22324D;
  border: 2px solid #E8B047;
}
.cta.primary:hover, .cta.primary:focus {
  background: #fff;
  color: #E8B047;
  border-color: #E8B047;
}
.cta.secondary {
  background: #22324D;
  color: #fff;
  border: 2px solid #22324D;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #fff;
  color: #22324D;
}

/* SECTIONS & LAYOUT */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper {
  margin-bottom: 0; /* ensure spacing relies on sections */
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features-grid,
.service-list,
.project-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.features-grid {
  margin-top: 16px;
}

.feature-card,
.service-card,
.project-card {
  flex: 1 1 310px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(34,50,77,0.07), 0 1.5px 8px rgba(232,176,71,0.10);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.23s;
  position: relative;
  margin-bottom: 20px;
}
.feature-card:hover,
.service-card:hover,
.project-card:hover {
  box-shadow: 0 6px 34px rgba(34,50,77,0.15), 0 4px 24px rgba(232,176,71,0.15);
}
.feature-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}
.service-price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #E8B047;
}

.project-tiles {
  width: 100%;
  gap: 24px;
}
.project-card h2 {
  font-size: 1.35rem;
  color: #22324D;
}

/* CASE STUDY */
.case-study {
  background: #FFF8E8;
  border-left: 6px solid #E8B047;
  border-radius: 10px;
  margin-bottom: 24px;
  padding: 24px 24px;
  margin-top: 8px;
  color: #22324D;
  box-shadow: 0 2px 12px rgba(232,176,71,0.09);
  font-size: 1rem;
  line-height: 1.7;
}
.case-study strong {
  color: #E8B047;
  font-weight: 700;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FFF8E8;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 2px 13px rgba(232,176,71,0.12), 0 2px 10px rgba(34,50,77,0.08);
  color: #22324D;
  font-size: 1.06em;
  min-width: 0;
}
.testimonial-card .testimonial-name {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22324D;
  font-size: 1.08em;
}
.star-rating {
  letter-spacing: 0.08em;
  color: #E8B047;
  font-size: 1.3em;
  font-weight: bold;
}

/* FOOTER */
footer {
  margin-top: 40px;
  background: #22324D;
  color: #FFF;
  font-size: 1rem;
}
footer .container {
  padding: 32px 20px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
footer nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #E8B047;
}
.footer-brand img {
  height: 36px;
  display: block;
}

/* LOCATION MAP PLACEHOLDER  */
.location-map {
  background: #E8B04711;
  border-radius: 10px;
  padding: 32px;
  color: #22324D;
  text-align: center;
  font-style: italic;
  font-size: 1.1em;
  margin-top: 18px;
  margin-bottom: 12px;
}

/* CONTENT FORMATTING */
p {
  margin-bottom: 16px;
}
.text-section ul, .text-section ol {
  margin-bottom: 0;
}

/* Mandatory CSS Patterns */
.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;
}

/* Mobile Menu - Hamburger Navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(34,50,77,0.99);
  color: #FFF;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(.68,-0.6,.32,1.6);
  transform: translateX(0);
  pointer-events: none;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(-100vw);
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  background: #E8B047;
  color: #22324D;
  border: none;
  border-radius: 8px;
  font-size: 2.2rem;
  margin: 24px 0 24px 24px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu .mobile-menu-close:focus, .mobile-menu .mobile-menu-close:hover {
  background: #fff;
  color: #E8B047;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  padding-left: 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.18s;
  padding: 10px 0;
  border-radius: 6px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #E8B047;
  background: #22324d27;
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 900px) {
  .container {
    max-width: 98%;
    padding: 0 14px;
  }
  .features-grid, .service-list, .project-tiles {
    gap: 18px;
  }
  .feature-card, .service-card, .project-card {
    flex: 1 1 330px;
    padding: 26px 14px;
  }
  footer .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .features-grid, .service-list, .project-tiles { flex-direction: column; }
  section, .section { padding: 28px 4vw; }
  .content-wrapper, .text-section { gap: 14px !important; }
  .testimonial-card { padding: 18px 10px; }
  .project-card, .feature-card, .service-card { padding: 18px 8px; }
  .text-image-section { flex-direction: column !important; gap: 18px; }
  body { font-size: 15px; }
}
@media (max-width: 512px) {
  header .container { flex-direction: row; gap: 8px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.07rem; }
  .cta, .cta.primary { width: 100%; padding: 12px 0; }
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF8E8;
  color: #22324D;
  box-shadow: 0 -2px 12px rgba(34,50,77,0.09);
  padding: 26px 28px 18px 28px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpCookie .46s cubic-bezier(.67,1.5,.34,1.06);
}
@keyframes slideUpCookie { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  margin-right: 1.5px;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .accept {
  background: #E8B047;
  color: #22324D;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #ffd471;
}
.cookie-banner .reject {
  background: #22324D;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #B8C1CC;
  color: #22324D;
}
.cookie-banner .settings {
  background: #fff;
  color: #E8B047;
  border: 2px solid #E8B047;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E8B04711;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,50,77,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .25s ease-in;
}
@keyframes fadeInCookieModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal .modal-content {
  background: #fff;
  color: #22324D;
  border-radius: 16px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 4px 32px rgba(34,50,77,0.19);
  padding: 38px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 12px;
  background: #E8B047;
  color: #22324D;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #ffd471;
}
.cookie-modal h3 {
  margin-bottom: 4px;
  font-size: 1.21rem;
  color: #22324D;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-category-row label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 28px;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  background: #B8C1CC;
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  border-radius: 24px;
  transition: background 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #E8B047;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px; bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .save-settings {
  background: #E8B047;
  color: #22324D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 20px;
}
.cookie-modal .save-settings:hover,
.cookie-modal .save-settings:focus {
  background: #ffd471;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
  background: #B8C1CC32;
}
::-webkit-scrollbar-thumb {
  background: #E8B047;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFD471;
}

/* UTILITY */
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0  { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* HIGH ENERGY ANIMATIONS */
.cta, .feature-card, .service-card, .project-card {
  transition: box-shadow 0.22s, transform 0.19s;
}
.cta:active, .feature-card:active, .service-card:active, .project-card:active {
  transform: scale(0.98);
}

/* VISUAL HIERARCHY: accents */
.feature-card h3, .service-card h2, .project-card h2, .case-study h3, .testimonial-card .testimonial-name {
  color: #E8B047;
}

/* ACCESSIBILITY: Focus states */
a, button, .cta {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2.5px solid #E8B047;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #e8b04720;
}

/* OVERRIDE AUTOFILL on inputs (just in case for forms) */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #FFEFD6 inset !important;
  box-shadow: 0 0 0 40px #FFEFD6 inset !important;
}

/* ENERGETIC COLOR SPLASHES: subtle accents */
.feature-card:before, .service-card:before, .project-card:before {
  content: "";
  display: block;
  position: absolute;
  top: -18px; right: -18px;
  width: 50px; height: 50px;
  background: #E8B04722;
  border-radius: 38px 18px 40px 18px;
  z-index: 1;
  pointer-events: none;
}
.feature-card:after, .service-card:after, .project-card:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -16px; left: -10px;
  width: 35px; height: 20px;
  background: #B8C1CC44;
  border-radius: 12px 18px 36px 10px;
  z-index: 1;
  pointer-events: none;
}
/* Remove splashes on mobile for clarity */
@media (max-width: 600px) {
  .feature-card:before, .service-card:before, .project-card:before,
  .feature-card:after, .service-card:after, .project-card:after {
    display: none;
  }
}

/* PRINT OPTIMIZATION */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container, body { background: #fff !important; color: #222 !important; }
}
