/* CSS RESET & FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

:root {
  --primary: #1F2937;
  --secondary: #8993A4;
  --accent: #F5F5F5;
  /* Creative Artistic Palette */
  --vibrant1: #FF5A36;
  --vibrant2: #FECC09;
  --vibrant3: #52C8D9;
  --vibrant4: #A23F96;
  --vibrant5: #00A779;
  --danger: #E53E3E;
  --success: #37b24d;
  --radius-card: 22px;
  --radius-btn: 28px;
  --shadow-med: 0 8px 32px 0 rgba(31,41,55,0.08), 0 1.5px 10px 0 rgba(162,63,150,0.055);
  --shadow-soft: 0 2px 8px 0 rgba(31,41,55,0.07), 0 0.5px 3px 0 rgba(0,167,121,0.07);
  --transition: 0.2s cubic-bezier(.46,.03,.52,.96);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

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, body {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--primary);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--vibrant4); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; outline: none; background: none; border: none; }

/* TYPOGRAPHY (creative_artistic) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 { font-size: 2.8rem; line-height: 1.13; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 18px; position: relative; }
h3 { font-size: 1.22rem; font-weight: 800;letter-spacing: 0; color: var(--vibrant4); margin-bottom: 9px; position: relative;}
h4, h5, h6 { margin-bottom: 8px; }
.section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  margin: 10px 0 0 0;
  background: linear-gradient(90deg, var(--vibrant2) 0 47%, var(--vibrant4) 100%);
  border-radius: 2px;
}
p, span, ul, li, label {
  font-size: 1.08rem;
  font-family: var(--font-body);
}
strong { color: var(--vibrant3); font-weight: 800; }

/* CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* FLEX LAYOUTS - ARTISTIC */
.features-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 6px;
}
.feature-card, .service-card {
  background: #fff;
  box-shadow: var(--shadow-med);
  border-radius: var(--radius-card);
  padding: 30px 24px;
  flex: 1 0 260px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 3px solid transparent;
  position: relative;
  transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
  z-index: 1;
}
.feature-card:hover, .service-card:hover {
  box-shadow: 0 10px 40px rgba(162,63,150,0.14);
  border: 3px solid var(--vibrant4);
  transform: translateY(-2px) scale(1.011);
}
.feature-card img, .service-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 8px var(--vibrant1));
}

.features-grid .feature-card:nth-child(1) { border-left: 7px solid var(--vibrant2); }
.features-grid .feature-card:nth-child(2) { border-left: 7px solid var(--vibrant3); }
.features-grid .feature-card:nth-child(3) { border-left: 7px solid var(--vibrant4); }
.features-grid .feature-card:nth-child(4) { border-left: 7px solid var(--vibrant1); }
.features-grid .feature-card:nth-child(5) { border-left: 7px solid var(--vibrant5); }

.service-list .service-card:nth-child(1) { border-left: 7px solid var(--vibrant2); }
.service-list .service-card:nth-child(2) { border-left: 7px solid var(--vibrant4); }
.service-list .service-card:nth-child(3) { border-left: 7px solid var(--vibrant5); }
.service-list .service-card:nth-child(4) { border-left: 7px solid var(--vibrant3); }
.service-list .service-card:nth-child(5) { border-left: 7px solid var(--vibrant1); }

.text-section {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.07rem;
}
.text-section ul {
  margin: 0 0 0 20px;
  list-style: disc outside;
  padding-left: 10px;
}
.text-section ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* TESTIMONIALS */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-med);
  border: 3px solid var(--vibrant3);
  max-width: 410px;
  min-width: 250px;
  color: #21252b;
  word-break: break-word;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #222c37;
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  font-style: italic;
}
.testimonial-card strong {
  color: var(--vibrant4);
}

.project-highlights {
  margin-top: 20px;
  background: var(--vibrant3, #e4f6fb);
  padding: 20px;
  border-radius: 9px;
}
.project-highlights h3 {
  margin-bottom: 9px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
}
.faq-item {
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: 19px;
  padding: 21px 20px 17px 22px;
  margin-bottom: 20px;
  flex: 1 0 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.faq-item h3 {
  color: var(--vibrant1);
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.guide-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.guide-articles .text-section {
  min-width: 230px;
  max-width: 350px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
}
.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;
}

/* CALL TO ACTION BUTTONS */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: linear-gradient(90deg, var(--vibrant1) 0%, var(--vibrant4) 70%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.13rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 9px rgba(255,90,54,0.12);
  border: none;
  outline: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 6px;
  margin-bottom: 3px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(92deg, var(--vibrant4) 0%, var(--vibrant1) 100%);
  color: #fff;
  box-shadow: 0 6px 28px rgba(162,63,150,0.19);
  transform: translateY(-1px) scale(1.04);
}

/* NAVIGATION */
header {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(31,41,55,0.07);
  z-index: 100;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--font-display);
  background: none;
}
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  padding: 7px 13px;
  transition: background var(--transition), color var(--transition);
  border-radius: 6px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.main-nav a.cta-button {
  margin-left: 14px;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--vibrant2);
  color: var(--vibrant4);
}
.main-nav img {
  height: 40px;
  margin: 0 10px 0 0;
}
.mobile-menu-toggle {
  position: absolute;
  right: 22px;
  top: 21px;
  font-size: 2.1rem;
  padding: 5px 13px 5px 10px;
  background: var(--vibrant2);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  z-index: 205;
  display: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vibrant4);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 44px rgba(31,41,55,0.20);
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  transition: transform 0.28s cubic-bezier(.4,0,.25,1);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.35rem;
  padding: 6px 20px 6px 6px;
  margin: 12px 0 0 20px;
  color: var(--vibrant4);
  background: var(--accent);
  border-radius: 50%;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vibrant4);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin: 46px 0 0 0;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.32rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 20px 40px;
  border-bottom: 1px solid var(--accent);
  width: 100%;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--vibrant4);
  color: #fff;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  width: 100%;
  margin-top: 40px;
  padding: 35px 0 24px 0;
  font-family: var(--font-body);
  box-shadow: 0 -2px 12px 0 rgba(59,15,56,0.03);
  font-size: 1.04rem;
}
.footer-nav {
  text-align: center;
  margin-bottom: 15px;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  opacity: 0.82;
  margin: 0 3px;
  transition: color var(--transition), border-bottom var(--transition);
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  color: var(--vibrant2);
  border-bottom: 1.5px solid var(--vibrant2);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  align-items: center;
  margin-top: 13px;
  color: #f8f8f8;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  vertical-align: middle;
  margin-right: 7px;
  opacity: 0.95;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SPACING RULES (always at least 20px between blocks) */
section + section,.section+.section, .card-container > *, .features-grid > *, .testimonials-slider > *, .service-list > *, .faq-list > * {
  margin-top: 20px;
}

/* Responsive (Mobile-First) */
@media (max-width: 990px) {
  .container { max-width: 98vw; }
  .features-grid, .service-list, .testimonials-slider, .card-container, .faq-list, .guide-articles {justify-content: flex-start;}
  .main-nav {gap:7px;}
}
@media (max-width: 768px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.32rem; }
  .section, section { padding: 28px 7px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .footer-contact { gap: 17px; flex-direction: column; align-items: flex-start; font-size: 0.99rem; }
  .testimonials-slider, .features-grid, .service-list, .faq-list, .guide-articles, .content-grid, .card-container { flex-direction: column; gap: 18px; }
  .feature-card, .service-card, .card, .project-highlights, .faq-item, .guide-articles .text-section { min-width: unset; max-width: 97vw; }
  .text-image-section { flex-direction: column; gap: 17px; }
  .content-wrapper { gap: 21px; }
}
@media (max-width: 540px) {
  .footer-contact { font-size:0.91rem; }
  .footer-nav { font-size:0.91rem; }
  .main-nav {font-size: 1rem;}
}

/* List Styling (artistic bullets) */
ul {
  padding-left: 28px;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 10px;
}
ul li::marker, ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: -12px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--vibrant1), var(--vibrant2), var(--vibrant4));
  opacity: 0.92;
}

/* Cookie Banner & Modal (creative artistic) */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2222;
  background: #fff;
  border-top: 4px solid var(--vibrant4);
  box-shadow: 0 -3px 36px 0 rgba(31,41,55,0.13);
  padding: 26px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  min-width: 229px;
  margin: 10px;
  border-radius: 19px 19px 0 0;
  animation: cb-slide-in 0.4s cubic-bezier(.59,.14,.56,.91);
}
@keyframes cb-slide-in {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #21252b;
  margin-bottom: 6px;
  font-size: 1.09rem;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 17px;
  margin-top: 5px;
  width: 100%;
}
.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  padding: 7px 22px;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin-right: 6px;
}
.cookie-btn-primary {
  background: linear-gradient(92deg, var(--vibrant1), var(--vibrant2));
  color: #fff;
}
.cookie-btn-primary:hover { background: var(--vibrant4); color: #fff; }
.cookie-btn-secondary {
  background: #fff;
  color: var(--vibrant4);
  border: 2px solid var(--vibrant4);
}
.cookie-btn-secondary:hover { background: var(--vibrant4); color: #fff; }
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--vibrant3);
}
.cookie-btn:hover { background: var(--vibrant3); color: #fff; }

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top: 0;left: 0;right:0;bottom:0;
  background: rgba(31,41,55,0.52);
  z-index: 3030;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.42s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 64px 0 rgba(31,41,55,0.23);
  max-width: 470px;
  width: 95vw;
  padding: 38px 32px 31px 32px;
  z-index: 3040;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cb-slide-in 0.44s cubic-bezier(.48,.02,.63,1.01);
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.34rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin: 14px 0;
  padding: 9px 0 4px 0;
  border-bottom: 1.2px solid var(--accent);
}
.cookie-category label {
  font-size: 1.09rem;
  color: var(--primary);
  font-family: var(--font-body);
}
.cookie-category .toggle-switch {
  width: 42px; height: 24px; margin-left: 15px; position: relative;
}
.toggle-checkbox {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.toggle-switch .toggle-slider {
  position: absolute;
  cursor: pointer;
  height: 24px; width: 42px;
  border-radius: 14px;
  background: var(--vibrant1);
  transition: background 0.21s;
}
.toggle-checkbox:checked + .toggle-slider {
  background: var(--vibrant5);
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
}
.toggle-checkbox:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-btns {
  margin-top: 13px;
  display: flex;
  gap: 17px;
  width: 100%;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 2rem;
  color: var(--vibrant4);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

/* Animations for micro-interactions */
.cta-button, .cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}
.feature-card, .service-card, .faq-item {
  transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.feature-card:hover, .service-card:hover, .faq-item:hover {
  box-shadow: 0 16px 56px 0 rgba(31,41,55,0.13);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--vibrant5);
}

/* FORMS (if any added) */
input, textarea, select {
  font-family: var(--font-body);
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  background: #fdfdfd;
  font-size: 1.08rem;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vibrant4);
}
label { display: block; margin-bottom: 7px; font-family: var(--font-display); font-weight: 600; }

/* HELPER CLASSES */
.mb-3 { margin-bottom: 24px; }
.mt-3 { margin-top: 24px; }
.hide { display: none !important; }

/* Prevent overflow overlaps */
* { box-sizing: border-box !important; }

/* Z-INDEX CORRECTION */
.header, header { z-index:100; position:relative; }

/* Remove tap highlight color on mobile */
a, button, .cta-button, .cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Selection color */
::selection {
  background: var(--vibrant2);
  color: #fff;
}

/* Ensure no unintended gaps for justified flex */
.features-grid, .service-list, .card-container {align-items: stretch;}

/* Accessibility: focus styles */
a:focus, button:focus, .cta-button:focus {
  outline: 2px dashed var(--vibrant4);
  outline-offset: 2px;
}

/* Hide visually (for cookie, mobile menu JS, etc.) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* END CSS */
