/* ============================== */
/* RESET & NORMALIZE               */
/* ============================== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
html, body { height: 100%; font-family: 'Open Sans', Arial, Helvetica, sans-serif; background: #F2F6F9; color: #151C24; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; transition: color 0.18s; }

/* ============================== */
/* COLOR VARIABLES                 */
/* ============================== */
:root {
  --primary: #17506B;
  --secondary: #F2F6F9;
  --accent: #F28D35;
  --accent-dark: #C86800;
  --danger: #FF2654;
  --success: #33D17A;
  --gray: #E0E7EC;
  --white: #fff;
  --text: #151C24;
  --text-light: #fafbfc;
  --shadow: 0 4px 24px rgba(23,80,107,0.10);
  --radius: 16px;
}

/* ============================== */
/* TYPOGRAPHY      (vibrant_energetic) */
/* ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: 0.5px;
}
h1 { font-size: 2.6rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.26rem; margin-bottom: 8px; color: var(--accent); }
h4 { font-size: 1.1rem; }

p, li, blockquote {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}
strong { color: var(--primary); font-weight: bold; }
blockquote {
  border-left: 5px solid var(--accent);
  background: var(--secondary);
  padding: 18px 24px;
  font-style: italic;
  color: var(--accent);
  margin: 20px 0;
  border-radius: var(--radius);
}

.text-center { text-align: center; }

/* ============================== */
/* GENERAL LAYOUT                 */
/* ============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.content-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 36px;
  margin: 0 auto;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .container { padding: 0 8px; }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 340px;
  min-width: 250px;
  transition: transform 0.18s, box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(23,80,107,0.16);
  transform: translateY(-3px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
  }
  .card {
    flex-basis: 100%;
  }
}

.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;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--secondary);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--accent);
  color: var(--text);
}
.testimonial-card p {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card { padding: 15px; gap: 12px; }
}

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

.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin: 24px 0 0 0;
}

.feature-grid > div, .service-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 26px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.17s, transform 0.19s;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 8px 32px rgba(242, 141, 53,0.11);
  transform: scale(1.06) translateY(-2px);
}
.feature-grid img, .service-list img {
  width: 48px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .feature-grid, .service-list { flex-direction: column; gap: 18px; }
  .feature-grid > div, .service-list > div { align-items: flex-start; }
}

/* ============================== */
/* NAVIGATION                     */
/* ============================== */
header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(23,80,107,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.logo-link { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav li { list-style: none; }
.main-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.17s, color 0.15s;
}
.main-nav a:hover,.main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  border-radius: 8px;
  padding: 12px 24px;
  margin-left: 24px;
  box-shadow: 0 2px 10px rgba(242,141,53,0.13);
  transition: background 0.16s, transform 0.17s;
  border: 2px solid var(--accent);
  cursor: pointer;
  letter-spacing: 0.3px;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
}
.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(242,141,53,0.08);
  transition: background 0.16s, color 0.15s, border 0.14s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 900px) {
  .main-nav ul { gap: 10px; }
  .btn-primary { margin-left: 10px; }
}

.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  font-size: 2rem;
  padding: 6px 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 31;
}
@media (max-width: 980px) {
  .main-nav ul, .main-nav .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav { gap: 0; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  height: 100vh;
  background: var(--secondary);
  box-shadow: -4px 0 18px rgba(23,80,107,0.14);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1003;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 20px 0 20px;
  gap: 16px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 1.75rem;
  position: absolute;
  top: 20px;
  right: 18px;
  cursor: pointer;
  z-index: 1010;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 52px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: transparent;
  padding: 12px 0 12px 10px;
  border-radius: 6px;
  transition: background 0.11s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* MOBILE BACKDROP */
.mobile-menu-backdrop {
  content: "";
  position: fixed;
  inset: 0 0 0 0;
  z-index: 1002;
  background: rgba(23,80,107,0.50);
  transition: opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open ~ .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ============================== */
/* HERO SECTION                   */
/* ============================== */
.hero {
  background: linear-gradient(90deg, var(--primary), #1396c5 87%);
  color: var(--text);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 0 38px 0;
}
.hero .text-section {
  max-width: 610px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--text);
  font-size: 2.8rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
.hero p {
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 500;
}
@media (max-width: 700px) {
  .hero { min-height: 230px; padding: 24px 0 12px 0; }
  .hero h1 { font-size: 1.65rem; }
}

/* ============================== */
/* GENERAL SECTIONS/CARDS         */
/* ============================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Service Overview */
.service-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  list-style: none;
  margin-bottom: 24px;
}
.service-overview li {
  background: var(--gray);
  padding: 9px 17px;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Project list & FAQ lists */
.project-list ul, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.project-list ul li, .faq-list > div {
  padding: 16px 18px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(23,80,107,0.05);
  margin-bottom: 8px;
  border-left: 4px solid var(--accent);
  color: var(--primary);
}
.faq-list h2 {
  font-size: 1.18rem;
  color: var(--accent);
  margin-bottom: 5px;
}
.faq-list p {
  color: var(--text);
  font-size: 1.02rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  margin: 20px 0 8px 0;
  color: var(--primary);
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact-info img { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .contact-info { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================== */
/* FOOTER                         */
/* ============================== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 16px 0;
  margin-top: 36px;
  min-height: 150px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 30px;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--accent);
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.15s, color 0.13s;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
footer .contact-info span { color: var(--white) }
footer p {
  color: var(--secondary);
  opacity: .86;
  font-size: .98rem;
}

@media (max-width: 800px) {
  footer nav { flex-direction: column; gap: 11px; align-items: flex-start; }
  footer .container { align-items: flex-start; }
}

/* ============================== */
/* COOKIES BANNER & MODAL         */
/* ============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 14px rgba(23,80,107,0.11);
  padding: 24px 36px;
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  transition: transform 0.26s;
  transform: translateY(0);
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner__text {
  flex: 2 1 auto;
  font-size: 1rem;
  line-height: 1.4;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--accent);
  transition: background 0.14s, color 0.14s, border 0.13s;
  min-width: 130px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.cookie-btn.cookie-reject {
  background: var(--gray);
  color: var(--primary);
  border-color: var(--gray);
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.cookie-btn.cookie-settings {
  background: var(--white);
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent-dark);
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; padding: 16px 10px; gap: 16px; border-radius: 12px 12px 0 0; }
  .cookie-banner__actions { width: 100%; gap: 8px; justify-content: flex-start; }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1225;
  background: rgba(23,80,107,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
/* Cookie Modal */
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  max-width: 400px;
  width: 92vw;
  padding: 30px 26px 24px 26px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(23,80,107,0.21);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1227;
  position: relative;
  animation: cookiePop 0.27s cubic-bezier(.86,-0.11,.27,1.29);
}
@keyframes cookiePop {
  from { transform: scale(.8) translateY(46px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 { color: var(--accent); font-size: 1.25rem; margin-bottom: 2px; }
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .99rem;
}
.cookie-modal li label {
  font-weight: 700;
}
.cookie-modal-switch {
  width: 42px;
  height: 22px;
  border-radius: 14px;
  background: var(--gray);
  position: relative;
  cursor: pointer;
  transition: background 0.11s;
  margin-right: 4px;
  flex-shrink: 0;
}
.cookie-modal-switch input[type="checkbox"] {
  position: absolute; opacity: 0; width: 42px; height: 22px;
}
.cookie-modal-switch input[type="checkbox"]:checked ~ .cookie-modal-slider {
  background: var(--accent);
}
.cookie-modal-slider {
  position: absolute; left: 0; top: 0;
  width: 42px; height: 22px;
  border-radius: 14px;
  background: var(--gray);
  transition: background 0.13s;
}
.cookie-modal-switch .cookie-modal-slider:before {
  content: "";
  display: block;
  width: 19px; height: 19px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1.5px;
  transition: left 0.11s;
}
.cookie-modal-switch input[type="checkbox"]:checked ~ .cookie-modal-slider:before {
  left: 21px;
  background: var(--accent);
}

.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn { min-width: 100px; font-size: .98rem; padding: 9px 18px; }
.cookie-modal .btn-close-modal {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.1s;
  z-index: 1234;
}
.cookie-modal .btn-close-modal:hover {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 520px) {
  .cookie-modal { padding: 17px 9px 10px 10px; }
}

/* ============================== */
/* ACCESSIBILITY :focus            */
/* ============================== */
a:focus,
.btn-primary:focus,
.btn-secondary:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================== */
/* ANIMATIONS & MICRO-INTERACTIONS */
/* ============================== */
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.13s, transform 0.17s, box-shadow 0.16s;
}
div[role="dialog"], .cookie-modal, .mobile-menu {
  transition: transform 0.19s cubic-bezier(.51,.02,.44,1.06);
}

/* ============================== */
/* UTILITIES                      */
/* ============================== */
.w-100 { width: 100%; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
/* No position absolute for cards; only for overlay/deco */

/* ============================== */
/* VIBRANT, ENERGETIC DETAILS     */
/* ============================== */
hr {
  border: none; height: 3px;
  background: var(--accent);
  border-radius: 2px; margin: 30px 0;
}
a, .highlight {
  color: var(--accent);
  font-weight: 700;
  transition: color 0.17s;
}
a:hover, .highlight:hover {
  color: var(--primary);
}
input, textarea, select {
  padding: 10px 16px;
  border: 2px solid var(--gray);
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(23,80,107,0.04);
  font-size: 1rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* ============================== */
/* RESPONSIVE HEADINGS            */
/* ============================== */
@media (max-width: 500px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 1rem; }
}

/* ============================== */
/* OVERRIDE BRAND ICONS           */
/* ============================== */
.feature-grid img, .service-list img, .contact-info img {
  filter: drop-shadow(0 1px 0 var(--accent)) drop-shadow(0 0px 2px var(--gray));
}

/* ============================== */
/* ENSURE NON-OVERLAPPING CONTENT */
/* ============================== */
section, .section, .content-wrapper {
  margin-bottom: 60px !important;
}
.card, .feature-grid > div, .service-list > div, .testimonial-card, .faq-list > div {
  margin-bottom: 20px !important;
}

/* END */
