/* ==========================================================================
   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 {
  font-size: 16px;
  height: 100%;
}
body {
  min-height: 100vh;
  color: #213044;
  background: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FEB100;
  outline-offset: 3px;
}
ul, ol {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #213044;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #213044;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
}


/* ==========================================================================
   LAYOUT CONTAINERS, FLEXBOX SPACING
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* For main wrappers that are not .section (compatibility) */
main > section {
  padding: 40px 0 40px 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(33,48,68,.05);
  padding: 28px 24px;
  transition: box-shadow 0.25s;
}
.card:hover, .service:hover, .feature:hover {
  box-shadow: 0 4px 24px rgba(33,48,68,.12);
}

.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;
}

.testimonials, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px;
  background: #F7F8FC;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(33,48,68,0.07);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 280px;
}
.testimonial-card p {
  color: #213044; /* dark on light for contrast */
  font-size: 1.05rem;
}
.testimonial-meta {
  font-size: .95rem;
  color: #57607a;
  font-style: italic;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature {
  background: #fff;
  border-radius: 10px;
  padding: 28px 20px;
  box-shadow: 0 1px 14px rgba(33,48,68,0.07);
  flex: 1 1 200px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service {
  background: #F7F8FC;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(33,48,68,0.07);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
  position: relative;
}
.service .price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #FEB100;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 3px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  background: #F7F8FC;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(33,48,68,0.055);
  padding: 22px 17px;
}

.project-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-summary {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(33,48,68,0.07);
  padding: 20px 20px 14px 20px;
  min-width: 270px;
  flex: 1 1 320px;
  gap: 18px;
  margin-bottom: 20px;
}
.project-summary img {
  height: 48px;
  width: 48px;
}
.project-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  background: #F7F8FC;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(33,48,68,0.06);
  flex: 1 1 280px;
  min-width: 220px;
  padding: 22px 18px 15px 18px;
  margin-bottom: 20px;
}

.top-guides ul, .expert-tips, .safety-checklist ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.expert-tips {
  margin: 8px 0 12px 0;
}
.safety-checklist {
  margin-top: 18px;
}

.policy-section,.gdpr-section, .user-rights, .cookies-policy-section, .cookie-management, .terms-section, .user-agreement {
  background: #F7F8FC;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(33,48,68,0.04);
  padding: 24px 18px;
  margin-bottom: 22px;
  font-size: 1.05rem;
}

.address-block, .contact-details, .map-block {
  margin-bottom: 20px;
}

/* ==========================================================================
   HEADER/NAVIGATION & BURGER MENU
   ========================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #F7F8FC;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav .cta-btn {
  margin-left: 10px;
}
header img {
  height: 44px;
  width: auto;
}

nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 5px;
  color: #213044;
  transition: color .22s, background .22s;
}
nav a:hover:not(.cta-btn), nav a.active {
  color: #FEB100;
  background: #F7F8FC;
}

.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: #FEB100;
  color: #213044;
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  font-size: 1.05rem;
  box-shadow: 0 1px 5px rgba(33,48,68,0.08);
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.2s, color 0.2s;
  outline: none;
  text-align: center;
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd35e;
  color: #213044;
  box-shadow: 0 2px 14px rgba(254,177,0,0.10);
}

/* -----------------------------
   MOBILE MENU STYLES
------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #213044;
  cursor: pointer;
  padding: 7px 12px 7px 7px;
  border-radius: 5px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F7F8FC;
}
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.91,0,.94,.38);
  box-shadow: 14px 0 32px rgba(33,48,68,0.10);
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #213044;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 22px 24px 8px 0;
  cursor: pointer;
  transition: color .18s;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FEB100;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 20px;
  width: 100vw;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #213044;
  font-size: 1.18rem;
  font-weight: 600;
  text-align: left;
  padding: 11px 0 11px 8px;
  border-radius: 5px;
  width: 100%;
  display: block;
  transition: background .22s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F8FC;
  color: #FEB100;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: #F7F8FC;
  padding: 60px 0 70px 0;
  margin-bottom: 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 660px;
}
.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero-section p {
  color: #57607a;
  font-size: 1.14rem;
  max-width: 550px;
  margin-bottom: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #F7F8FC;
  border-top: 1px solid #eee;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 20px;
}
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-menu img {
  height: 36px;
}
.footer-menu nav {
  display: flex;
  gap: 20px;
}
.footer-menu a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #57607a;
  padding: 4px 8px;
  border-radius: 5px;
  transition: color 0.22s, background 0.22s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #213044;
  background: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: .98rem;
  color: #57607a;
  align-items: flex-start;
}
.footer-contact span {
  font-size: 1rem;
  margin-right: 18px;
}

/* ==========================================================================
   COOKIE BANNER & MODAL (CONSENT)
   ========================================================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #213044;
  color: #fff;
  padding: 22px 20px 18px 20px;
  z-index: 1600;
  box-shadow: 0 -2px 16px rgba(33,48,68,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  transition: transform 0.32s, opacity 0.21s;
  opacity: 1;
  pointer-events: all;
}
#cookie-consent-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 7px;
  padding: 9px 19px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.cookie-btn.accept {
  background: #FEB100;
  color: #213044;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd35e;
}
.cookie-btn.reject {
  background: #F7F8FC;
  color: #213044;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e9edef;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #2c4567;
  border-color: #FEB100;
  color: #FEB100;
}

#cookie-modal-backdrop {
  position: fixed;
  z-index: 1700;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,48,68,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.21s;
}
#cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}

#cookie-modal {
  background: #fff;
  color: #213044;
  border-radius: 15px;
  box-shadow: 0 2px 24px rgba(33,48,68,0.15);
  padding: 32px 24px;
  max-width: 410px;
  width: 96vw;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.27s cubic-bezier(.22,.9,.78,1.12);
  font-size: 1.07rem;
}
@keyframes fadeInModal {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 6px;
}
#cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #213044;
  cursor: pointer;
  margin-left: 10px;
  border-radius: 5px;
  padding: 2px 6px;
  transition: background 0.18s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  background: #F7F8FC;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 0 0;
}
.cookie-category label {
  flex: 1 1 70%;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #FEB100;
  border-radius: 5px;
}
.cookie-category input[disabled] {
  opacity: 0.85;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}

/* ==========================================================================
   UTILITIES & REUSABLES
   ========================================================================== */
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.max-w-600 { max-width: 600px; }
.rounded { border-radius: 10px; }
.bg-brand { background: #213044; color: #fff; }
.bg-accent { background: #F7F8FC; }
.bg-white { background: #fff; }
.shadow-sm { box-shadow: 0 1px 8px rgba(33,48,68,0.07); }
.shadow-md { box-shadow: 0 2px 14px rgba(33,48,68,.10); }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
  }
  .project-summary, .feature, .team-member, .service,
  .testimonial-card, .faq-item {
    min-width: 170px;
    flex-basis: 220px;
  }
}
@media (max-width: 920px) {
  .service-list, .feature-grid, .project-listings, .card-container, .team-list, .testimonials, .faq {
    flex-wrap: wrap;
    gap: 16px;
  }
  header .container { flex-wrap: wrap; gap: 10px; }
  .footer-menu, .footer-menu nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  /* Flex direction switches for responsive */
  .service-list, .feature-grid, .project-listings, .card-container, .team-list, .testimonials, .faq {
    flex-direction: column;
    gap: 20px;
  }
  .project-summary, .feature, .service, .team-member, .testimonial-card, .faq-item {
    min-width: 100%;
    flex-basis: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  .footer-menu nav {
    flex-direction: column;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section, main > section {
    padding: 32px 0 32px 0;
  }
  .hero-section {
    padding: 36px 0 50px 0;
  }
  .hero-section h1 {
    font-size: 1.7rem;
  }
  .hero-section p {
    font-size: 1.03rem;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .section, main > section {
    padding: 19px 0 19px 0;
  }
  .hero-section {
    padding: 19px 0 37px 0;
  }
  .testimonial-card, .feature, .service, .team-member, .project-summary, .faq-item {
    padding: 13px 6px !important;
  }
  .footer-contact {
    font-size: .93rem;
  }
}

/* ==========================================================================
   TRANSITIONS, HOVER EFFECTS, ETC.
   ========================================================================== */
button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, border 0.18s;
}
.card, .service, .feature, .testimonial-card, .policy-section, .gdpr-section, .terms-section, .user-agreement, .faq-item {
  transition: box-shadow 0.22s, border 0.19s;
}
.card:hover, .service:hover, .feature:hover, .team-member:hover {
  box-shadow: 0 8px 32px rgba(33,48,68,0.14);
  z-index: 2;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(.98);
}

/* ==========================================================================
   FORM/INPUT/FOCUS (if needed for modal etc.)
   ========================================================================== */
input[type="text"],input[type="email"],textarea,select {
  border-radius: 6px;
  border: 1px solid #dbe3ea;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  margin-bottom: 10px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FEB100;
  outline: none;
}

/* Hide visually if needed (for a11y) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   END STYLES
   ========================================================================== */
