/* 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,
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, body {
  height: 100%;
  background: #E5EFF7;
  color: #1C3A50;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* GEOMETRIC STRUCTURED THEME ============================== */
:root {
  --primary: #39587D;
  --primary-hover: #2d4466;
  --secondary: #E5EFF7;
  --accent: #1C3A50;
  --white: #fff;
  --section-radius: 24px;
  --card-radius: 16px;
  --shadow: 0 4px 16px 0 rgba(53, 76, 121, 0.08);
  --font-display: 'Montserrat', 'Arial', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-family: var(--font-body);
}
p {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  padding-left: 20px;
  border-left: 6px solid var(--primary);
  background: var(--secondary);
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1.7;
}
strong { font-weight: 700; }

/* GLOBAL & CONTAINER STYLES ============================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: auto;
  padding: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--section-radius);
  box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .section, section {
    padding: 32px 10px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 20px 5px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
}

/* MAIN NAVIGATION ======================================== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(57,88,125,0.08);
  position: sticky;
  top: 0;
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 18px;
}
.main-nav a {
  font-family: var(--font-display);
  letter-spacing: 0.025em;
  font-size: 1rem;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  font-weight: 600;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav img {
  height: 38px;
  margin-right: 20px;
  vertical-align: middle;
}
.cta-btn {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 100px;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 10px;
  border: none;
  outline: none;
  box-shadow: 0 2px 16px 0 rgba(57, 88, 125, 0.09);
  transition: background 0.2s, transform 0.18s;
  border-bottom: 3px solid var(--accent);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 950px) {
  .main-nav {
    gap: 10px;
    padding: 14px 8px;
  }
  .main-nav img {
    margin-right: 12px;
    height: 28px;
  }
  .cta-btn {
    padding: 8px 16px;
    font-size: 0.98rem;
    margin-left: 5px;
  }
}

/* MOBILE MENU ============================ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 1011;
  transition: background 0.16s, transform 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  transform: scale(1.04);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1200;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 32px 28px 32px;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  transform: translateX(-100vw);
  box-shadow: 4px 0 42px 0 rgba(57, 88, 125, 0.15);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--accent);
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  z-index: 1900;
  transition: color 0.18s, transform 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 44px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 11px 8px;
  border-radius: 9px;
  color: var(--primary);
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu-close,
  .mobile-menu-toggle { display: none !important; }
}

/* HERO, SECTIONS ======================================== */
.hero {
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 3px 24px 0 rgba(28, 58, 80, 0.08);
  padding: 52px 0 52px 0;
  margin-bottom: 0;
}
.hero h1, .hero h2, .hero h3 {
  color: var(--white);
}
.hero .cta-btn {
  background: var(--white);
  color: var(--primary) !important;
  border-bottom: 3px solid var(--accent);
  margin-top: 22px;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 0 32px 0;
    border-radius: 0 0 20px 20px;
  }
}

/* FLEXBOX + GEOMETRIC LAYOUTS ============================ */
.card-container, .feature-grid, .service-list, .project-briefs, .testimonial-slider, .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.card {
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 26px;
  min-width: 250px;
  flex: 1 1 320px;
  transition: transform 0.18s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 36px 0 rgba(57, 88, 125, 0.10);
}
.feature-grid > div {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px 18px 22px 18px;
  box-shadow: var(--shadow);
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(28, 58, 80, 0.12);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}
.service-list {
  gap: 24px;
  margin-bottom: 24px;
}
.service-list > div {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 18px 18px;
  min-width: 250px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.service-list > div:hover {
  box-shadow: 0 8px 26px 0 rgba(57, 88, 125, 0.15);
  transform: translateY(-2px) scale(1.01);
}
.price {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-top: 8px;
}

.project-brief {
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 16px 20px;
  margin-bottom: 20px;
  flex: 1 1 320px;
}

.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) {
  .feature-grid, .service-list, .card-container, .content-grid, .footer-menu {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section, .testimonial-slider {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* TESTIMONIALS ========================================== */
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  min-width: 250px;
  max-width: 510px;
  flex: 1 1 310px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border-left: 8px solid var(--primary);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  color: var(--accent);
  margin-bottom: 0;
  font-size: 1.08rem;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px 0 rgba(57,88,125,0.13);
  transform: scale(1.025);
}
@media (max-width: 768px) {
  .testimonials .testimonial-slider, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* FAQ ACCORDION ========================================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.faq-accordion > div {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.faq-accordion > div h3 {
  margin-bottom: 8px;
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 24px 0 rgba(28,58,80,0.11);
  transform: translateY(-2px);
}

/* CONTACT & FOOTER ====================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 18px;
  font-family: var(--font-body);
}
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 18px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 20px 0 rgba(28,58,80,0.07);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  justify-content: center;
}
.footer-menu a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.17s, color 0.16s;
  font-weight: 500;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer .cta-btn {
  margin-left: 0;
  background: var(--secondary);
  color: var(--primary) !important;
  border-bottom: 3px solid var(--primary);
}
footer .cta-btn:hover {
  background: var(--primary);
  color: var(--white) !important;
}
.copyright {
  font-size: 0.92rem;
  color: var(--secondary);
  text-align: center;
  margin-top: 8px;
}
@media (max-width: 768px) {
  footer {
    padding: 20px 0 8px 0;
    border-radius: 18px 18px 0 0;
  }
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* BUTTONS & INTERACTIONS ================================ */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* COOKIE CONSENT ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 -2px 18px 0 rgba(57,88,125,0.14);
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px 20px 16px;
  font-size: 1rem;
  transition: transform 0.5s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  background: var(--primary);
  color: var(--white);
  border-radius: 100px;
  padding: 8px 24px;
  margin: 0 7px;
  border: none;
  transition: background 0.17s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 10px 0 rgba(57, 88, 125, 0.09);
  font-size: 1rem;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #d9d9d9;
  color: var(--accent);
  border-bottom: 2px solid var(--primary);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--accent);
  color: var(--white);
}

/* COOKIE MODAL OVERLAY STYLES ============================ */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(28,58,80,0.12);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  color: var(--accent);
  border-radius: 24px;
  box-shadow: 0 10px 60px 0 rgba(57,88,125,0.21);
  padding: 43px 36px 28px 36px;
  max-width: 350px;
  min-width: 270px;
  min-height: 220px;
  animation: cookieModalIn 0.35s cubic-bezier(.44,0,.2,1) 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 22px;
  background: #dfe7f0;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background-color 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background-color: var(--primary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle:checked:before {
  transform: translateX(22px);
}
.cookie-modal .cookie-btn {
  margin: 12px 6px 0 0;
  font-size: 1rem;
  padding: 8px 20px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.16s, transform 0.16s;
  z-index: 3030;
}
.cookie-modal .close-modal:hover {
  color: var(--primary);
  transform: scale(1.07);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.93); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 86vw;
    padding: 28px 7vw 24px 7vw;
    border-radius: 18px;
  }
}
  
/* LISTS & BULLETS ======================================== */
ul {
  margin-bottom: 20px;
}
ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent);
  font-family: var(--font-body);
}
ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  /* geometric square bullet */
}

ol li {
  font-size: 1rem;
  font-family: var(--font-body);
}

/* SECTION-SPECIFIC OVERRIDES ============================ */
.about, .legal, .thanks, .cta { background: var(--white); }

.legal h1, .legal h2 { color: var(--primary); }

.thanks .cta-btn {
  margin-top: 24px;
  font-size: 1.08rem;
}

/* MISC/HELPERS =========================================== */
::-webkit-input-placeholder { color: #9db1c3; }
::-moz-placeholder { color: #9db1c3; }
:-ms-input-placeholder { color: #9db1c3; }
::placeholder { color: #9db1c3; }

img, svg { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .container {
    padding: 0 5px;
  }
}

/* MICRO-INTERACTIONS & UTILITY =========================== */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background 0.18s, color 0.17s, box-shadow 0.18s, transform 0.15s;
}

/* STRUCTURED SPACING FOR CARDS AND SECTIONS ============== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}
.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;
}

/* OVERRIDE SPACING ON MOBILE ======================= */
@media (max-width: 768px) {
  .card-container,
  .content-grid,
  .feature-grid,
  .service-list,
  .footer-menu {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    margin-bottom: 28px;
    padding: 20px 5px;
  }
}
