/* CSS RESET & BASELINE 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, 
main, 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F3F6F9;
  color: #254159;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #ab7b3b;
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #254159;
  text-decoration: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #254159;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p, .subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #406083;
  margin-bottom: 18px;
}
.subheadline {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #879aac;
  margin-bottom: 24px;
  letter-spacing: 0.012em;
}

/* LAYOUT CONTAINERS & FLEX PATTERNS */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper.center {
  align-items: center;
  text-align: center;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 24px 0 rgba(207,209,234, 0.16);
}

@media (max-width: 900px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 6px;
  }
}

/* FLEXBOX LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-item {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(180, 175, 216, 0.10);
  padding: 32px 24px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.26s, transform 0.22s;
  border: 1px solid #ececec;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 10px #e7e0f7);
}
.feature-item:hover {
  box-shadow: 0 8px 28px 0 rgba(180, 175, 216, 0.18);
  transform: translateY(-4px) scale(1.02);
}

/* CARDS & CONTENT SCAFFOLD */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f8fafc;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(150,156,188,0.11);
  padding: 28px 22px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.project-card {
  background: #f1f8f7;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(155,168,157,0.12);
  padding: 30px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.18s;
  border: 1px solid #e1e5f3;
}
.project-card:hover {
  box-shadow: 0 9px 32px 0 rgba(155,168,157,0.22);
  transform: translateY(-4px) scale(1.016);
}

.text-section {
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px;
  margin-bottom: 24px;
  background: #fdf8f4;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(198,156,109,0.10);
  border: 1px solid #f2e8df;
  color: #274055;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #363a3f;
  margin-bottom: 2px;
}
.testimonial-meta {
  font-size: 1rem;
  color: #9a7d54;
  letter-spacing: 0.012em;
}
.testimonial-meta strong {
  color: #274055;
}
.testimonial-meta span {
  color: #d2ac6d;
  font-size: 1.2em;
  margin-left: 2px;
}

/* Buttons/CTAs */
.primary-cta, .secondary-cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 36px;
  border-radius: 28px;
  border: none;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.025em;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s, transform 0.17s;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(198,156,109,0.06);
}
.primary-cta {
  background: #c3d9fc;
  color: #254159;
  border: 1px solid #c3d9fc;
}
.primary-cta:hover, 
.primary-cta:focus {
  background: #254159;
  color: #fff8f3;
  border: 1px solid #254159;
  box-shadow: 0 4px 20px 0 rgba(197,156,109,0.10);
  transform: translateY(-2px) scale(1.03);
}
.secondary-cta {
  background: #fff;
  color: #254159;
  border: 1.3px solid #b6cde2;
  font-weight: 600;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #f3f6f9;
  color: #ab7b3b;
  border-color: #ab7b3b;
  transform: scale(1.04);
}

/* Service Lists */
.service-list, .service-detailed-list {
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}
.service-detailed-list li {
  background: #f8fafc;
  border: 1px solid #e7e7ef;
  border-radius: 13px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px 0 rgba(180, 175, 216, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-detailed-list li h3 {
  margin-bottom: 4px;
}
.service-detailed-list .service-price {
  color: #ab7b3b;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 7px;
}

/* BLOG PREVIEW CARDS */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-post-preview {
  background: #f6f3fb;
  border-radius: 15px;
  box-shadow: 0 2px 12px 0 rgba(198,156,109,0.08);
  padding: 24px 20px 20px 20px;
  flex: 1 1 270px;
  max-width: 360px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border: 1px solid #eae1fa;
  transition: box-shadow 0.18s, transform 0.14s;
}
.blog-post-preview h3 {
  font-size: 1.09rem;
  color: #254159;
}
.blog-post-preview a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ab7b3b;
  margin-top: 8px;
  transition: color 0.15s;
  text-decoration: underline;
}
.blog-post-preview a:hover {
  color: #254159;
  text-decoration: none;
}
.blog-post-preview:hover {
  box-shadow: 0 6px 24px 0 rgba(198,156,109,0.10);
  transform: scale(1.02) translateY(-3px);
}

.popular-topics {
  margin-top: 26px;
  background: #eff5eb;
  border-radius: 13px;
  padding: 18px 20px 11px 20px;
  color: #254159;
  font-size: 0.97rem;
  box-shadow: 0 1px 6px 0 rgba(195,217,252,0.07);
}
.popular-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 0;
}
.popular-topics li {
  background: #d4e7fa;
  color: #254159;
  border-radius: 8px;
  padding: 5px 14px;
  margin-bottom: 0;
  font-size: 0.98em;
}

/* CONTACT INFO */
.contact-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-block .text-section {
  flex: 1 1 220px;
  max-width: 420px;
}
.contact-info-block img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 7px;
}

/* HEADER & MAIN NAVIGATION */
header {
  display: flex;
  align-items: center;
  background: #f6faff;
  padding: 20px 0 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 18px 0 rgba(198,156,109,0.05);
  min-height: 88px;
}
header > a img {
  width: 148px;
  height: auto;
  margin-right: 35px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  margin-left: 12px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #274055;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #c3d9fc;
  color: #254159;
}
.main-nav .primary-cta {
  background: #ab7b3b;
  color: #fff;
  border: none;
  margin-left: 20px;
  font-size: 1.07rem;
  padding: 10px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(171,123,59,0.09);
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.main-nav .primary-cta:hover, .main-nav .primary-cta:focus {
  background: #254159;
  color: #fff8f3;
  transform: scale(1.045);
}

/* HIDE MAIN NAV ON MOBILE */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  header {
    padding: 12px 0 8px 0;
  }
  .content-wrapper {
    gap: 16px;
  }
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #c3d9fc;
  border-radius: 50%;
  font-size: 2.1rem;
  color: #254159;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #d4e7fa;
  color: #ab7b3b;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(243,246,249,0.97);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,0,.175,1);
  box-shadow: -6px 0 30px 0 rgba(42,65,89, 0.07);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  border: 1.5px solid #d4e7fa;
  border-radius: 50%;
  font-size: 2.1rem;
  color: #ab7b3b;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10004;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #c3d9fc;
  color: #254159;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 90px 30px 50px 30px;
}
.mobile-nav a {
  color: #254159;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0 12px 4px;
  border-radius: 12px;
  width: 100%;
  transition: background 0.11s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #d4e7fa;
  color: #ab7b3b;
}

/* FOOTER */
footer {
  background: #f6faff;
  padding: 54px 20px 40px 20px;
  margin-top: 40px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -1px 18px 0 rgba(198,156,109,0.05);
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #254159;
  font-weight: 600;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ab7b3b;
}
.footer-contact {
  text-align: center;
  color: #285071;
  font-size: 1rem;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-brand {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 80px;
  height: auto;
}
.tagline {
  color: #ab7b3b;
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 5px;
}

@media (max-width: 700px) {
  footer {
    padding: 30px 10px 18px 10px;
    gap: 22px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
}


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .feature-grid, .project-grid, .card-container, .blog-post-list {
    gap: 16px;
  }
  .footer-nav {
    gap: 14px;
    font-size: 0.98rem;
  }
}
@media (max-width: 900px) {
  .feature-grid, .project-grid, .card-container, .blog-post-list {
    flex-direction: column;
    gap: 0;
  }
  .feature-item, .project-card, .blog-post-preview, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .contact-info-block {
    flex-direction: column;
    gap: 24px;
  }
  .content-wrapper, .content-wrapper.center {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  section {
    padding: 14px 5px;
    border-radius: 10px;
  }
  .primary-cta, .secondary-cta, .main-nav .primary-cta {
    padding: 11px 20px;
    font-size: 1rem;
    border-radius: 25px;
  }
}

/* FLEX RULES FOR MANDATORY CLASSES */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: #f8fafc;
  box-shadow: 0 -4px 22px 0 rgba(171,123,59,0.10);
  border-top: 2px solid #d4e7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  font-size: 1rem;
  gap: 20px;
  transition: transform 0.30s ease-in;
}
.cookie-banner.hidden {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 auto;
  max-width: 600px;
  color: #254159;
  font-size: 1rem;
}
.cookie-banner-btns {
  display: flex;
  gap: 12px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  padding: 11px 22px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  outline: none;
}
.cookie-btn.accept {
  background: #ab7b3b;
  color: #fff;
  box-shadow: 0 2px 9px 0 rgba(171,123,59,0.08);
}
.cookie-btn.accept:hover {
  background: #254159;
  color: #fff8f3;
}
.cookie-btn.reject {
  background: #deeef8;
  color: #254159;
  border: 1.5px solid #c3d9fc;
}
.cookie-btn.reject:hover {
  background: #ab7b3b;
  color: #fff;
  border-color: #ab7b3b;
}
.cookie-settings-btn {
  background: #f3f6f9;
  color: #ab7b3b;
  border: 1.2px solid #e5d2c0;
}
.cookie-settings-btn:hover {
  background: #254159;
  color: #fff8f3;
  border: 1.2px solid #254159;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 6px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 13000;
  background: rgba(37,65,89,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeInModal 0.25s ease-in;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  min-width: 80vw;
  max-width: 420px;
  padding: 32px 26px 28px 26px;
  box-shadow: 0 8px 32px 0 rgba(37,65,89,0.17);
  position: relative;
}
@media (max-width: 700px) {
  .cookie-modal-content {
    min-width: 96vw;
    padding: 17px 7px 15px 14px;
  }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f6faff;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #ab7b3b;
  cursor: pointer;
  transition: background 0.1s, color 0.11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ddebf7;
  color: #254159;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #254159;
  margin-bottom: 10px;
}
.cookie-modal-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f6f9;
  padding-bottom: 8px;
}
.cookie-modal-category label {
  font-weight: 600;
  color: #294051;
  font-size: 1.01rem;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: #ab7b3b;
  width: 20px;
  height: 20px;
  margin-right: 2px;
}
.cookie-modal-category .cookie-essential {
  color: #6a788a;
  font-size: 0.97rem;
  background: #edede1;
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 8px;
  font-style: italic;
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.primary-cta, .secondary-cta, .main-nav .primary-cta, .cookie-btn, .cookie-settings-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.card, .feature-item, .project-card, .blog-post-preview {
  transition: box-shadow 0.22s cubic-bezier(.77,0,.175,1), transform 0.23s cubic-bezier(.77,0,.175,1);
}

/* SOFT PASTEL EFFECTS & COLORS */
body {
  background: #f3f6f9 url('../assets/bg-pastel.svg') repeat-x top center;
}
section, .card, .feature-item, .project-card, .blog-post-preview, .testimonial-card, .service-detailed-list li {
  /* additional pastel effect */
  background-image: linear-gradient(120deg, #fdf6ed 40%, #f3f6f9 100%);
}

/*  Fallback for backgrounds if images not loaded */
@media (max-width: 650px) {
  body {
    background: #f3f6f9 !important;
  }
}

/* MODERN SCROLLBAR */
body {
  scrollbar-width: thin;
  scrollbar-color: #ab7b3b #f6faff;
}
body::-webkit-scrollbar {
  width: 9px;
  background: #f6faff;
}
body::-webkit-scrollbar-thumb {
  background: #d3e3f6;
  border-radius: 6px;
  border: 2px solid #f6faff;
}
body::-webkit-scrollbar-thumb:hover {
  background: #c69c6d;
}

/* UTILITY CLASSES */
.center {
  text-align: center;
  align-items: center !important;
  justify-content: center;
}

/* VISUAL SPACE TO PREVENT OVERLAPPING & CROWDING */
section, .card, .project-card, .feature-item, .testimonial-card, .blog-post-preview {
  margin-bottom: 20px;
}

/* END OF CSS */
