/* 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, font, 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, 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;
  scroll-behavior: smooth;
  background-color: #F5F7FB;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #25344e;
  background: #F5F7FB;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #29838D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1C2942;
  text-decoration: underline;
}

/* Brand Colors (Soft Pastel Palette) */
:root {
  --primary: #1C2942;
  --secondary: #29838D;
  --accent: #F5F7FB;
  --pastel-blue: #d9eafd;
  --pastel-pink: #ffe1ef;
  --pastel-green: #e6fae8;
  --pastel-yellow: #fff6d9;
  --pastel-purple: #e4e4fc;
  --soft-shadow: 0 4px 24px 0 rgba(60,76,116,0.10);
  --card-radius: 18px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  text-rendering: optimizeLegibility;
  line-height: 1.16;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

p, li, blockquote, address, .service-price {
  font-size: 1rem;
  color: #445167;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.2rem;
  color: #557;
  opacity: 0.87;
  margin-bottom: 24px;
}

/* Section Spacing */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #e4e4fc 0%, #ffe1ef 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 40px;
  padding: 70px 0 60px 0;
  display: flex;
}
.hero h1 {
  color: var(--primary);
}
.hero .cta {
  margin-top: 18px;
}

/* FLEXBOX PATTERNS */
.card-container, .feature-grid, .review-list, .service-list, .analysis-snippets, .portrait-previews, .article-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--soft-shadow);
  border-radius: var(--card-radius);
  padding: 26px 26px 20px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(60,76,116,0.16);
  transform: translateY(-5px) scale(1.018);
}
.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;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  padding: 20px 32px 20px 28px;
  margin-bottom: 24px;
  min-height: 84px;
  transition: box-shadow 0.22s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(60,76,116,0.13);
  transform: translateY(-4px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLEX LAYOUTS & RESPONSIVENESS */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .hero {
    padding: 36px 0 32px 0;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .feature-grid, .review-list, .service-list, .analysis-snippets, .portrait-previews, .article-preview-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .hero {
    border-radius: 0 0 18px 18px;
    padding: 30px 0 21px 0;
  }
}

/* HEADER, NAVBAR, LOGO */
header {
  background: var(--accent);
  border-bottom: 1px solid #e6eafe;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 72px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  min-height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
  transition: opacity 0.18s;
}
.logo img {
  height: 49px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  line-height: 1.13;
}
nav a.cta.primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 11px;
  margin-left: 24px;
  box-shadow: 0 2px 10px 0 rgba(60,76,116,0.10);
  transition: background 0.2s, box-shadow 0.15s, transform 0.09s;
}
nav a.cta.primary:hover,
nav a.cta.primary:focus {
  background: #35647a;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 19px 0 rgba(60,76,116,0.14);
}
nav a.cta.secondary {
  background: #e4e4fc;
  color: var(--primary);
  border-radius: 9px;
  font-weight: 600;
  padding: 8px 18px;
  transition: background 0.15s;
  margin-left: 0;
}
nav a.cta.secondary:hover,
nav a.cta.secondary:focus {
  background: #ffe1ef;
  color: var(--primary);
}
nav a.cta.tertiary {
  background: #fff6d9;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  padding: 7px 14px;
  transition: background 0.12s;
}
nav a.cta.tertiary:hover,
nav a.cta.tertiary:focus {
  background: #ffe1ef;
}
nav a:hover,
nav a:focus {
  background: #e6fae8;
  color: #1C2942;
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  padding: 8px 8px;
  line-height: 1;
  z-index: 104;
  border-radius: 7px;
  transition: background 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #ece8fc;
  outline: none;
}
@media (max-width: 990px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:rgba(245,247,251,0.98);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.79,-0.01,.35,1.06);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin-top: 30px;
  margin-right: 30px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 7px 11px;
  border-radius: 9px;
  transition: background 0.14s;
  box-shadow: 0 2px 6px 0 rgba(80, 90, 100, 0.06);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #ffe1ef;
}
.mobile-nav {
  margin-top: 44px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.34rem;
  color: var(--primary);
  background: none;
  padding: 18px 0;
  width: 90vw;
  display: inline-block;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 0;
  transition: background 0.13s, color 0.11s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e4e4fc;
  color: #1C2942;
}
@media (max-width: 990px) {
  .mobile-menu {
    display: flex;
  }
}

/* Main CTA Buttons */
.cta,
button.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 34px;
  border: none;
  border-radius: 13px;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  transition: background 0.19s, transform 0.14s, box-shadow 0.17s;
  box-shadow: 0 3px 18px 0 rgba(79,97,137,0.08);
  margin: 8px 0;
  text-align: center;
}
.cta.primary {
  background: var(--secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: #1C2942;
  color: #fff;
  transform: translateY(-1.2px) scale(1.03);
}
.cta.secondary {
  background: #e4e4fc;
  color: var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #ffe1ef;
  color: var(--primary);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 13px;
  margin-bottom: 18px;
}
.tab {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  padding: 7px 20px;
  background: #e6fae8;
  border-radius: 8px;
  color: #1C2942;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.tab.active {
  background: #ffe1ef;
  color: var(--secondary);
}
.tab:hover {
  background: #ffe1ef;
}

/* Service List */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 21px;
}
.service-list li {
  background: #fff;
  box-shadow: var(--soft-shadow);
  border-radius: var(--card-radius);
  padding: 27px 26px 21px 26px;
  flex: 1 1 270px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.14s;
}
.service-list li:hover {
  box-shadow: 0 8px 32px 0 rgba(60,76,116,0.14);
  transform: translateY(-3px) scale(1.012);
}
.service-price {
  font-size: 1.02rem;
  font-weight: 600;
  color: #29838D;
  margin-bottom: 7px;
}

/* Feature Grid */
.feature-grid, .consulting-services-list, .values-list, .timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.feature-grid li {
  background: #e6fae8;
  border-radius: var(--card-radius);
  padding: 24px 19px;
  flex: 1 1 250px;
  min-width: 210px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 26px 0 rgba(41,131,141,0.08);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

/* REVIEW LIST */
.review-list,
.analysis-snippets,
.portrait-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.review-list article, .analysis-snippets article, .portrait-previews article, .article-preview-grid article {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px 18px 20px 22px;
  flex: 1 1 280px;
  box-shadow: var(--soft-shadow);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.review-list article:hover, .analysis-snippets article:hover, .portrait-previews article:hover, .article-preview-grid article:hover {
  box-shadow: 0 6px 32px 0 rgba(60,76,116,0.10);
  transform: translateY(-2px) scale(1.01);
}
.tags {
  font-size: 0.98rem;
  color: #6b758e;
  background: #d9eafd;
  padding: 5px 12px;
  border-radius: 17px;
  display: inline-block;
  margin-top: 7px;
  font-weight: 500;
}

/* Timeline Component */
.timeline {
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px 0;
}
.timeline li {
  padding-left: 17px;
  position: relative;
  font-size: 1rem;
  color: #52608b;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  background: var(--secondary);
  border-radius: 50%;
}

/* Values List */
.values-list {
  flex-direction: column;
  gap: 9px 0;
}
.values-list li {
  background: #fff6d9;
  padding: 11px 19px;
  border-radius: 13px;
  font-size: 1.04rem;
  color: #445167;
  box-shadow: 0 2px 10px 0 rgba(190,180,80,0.06);
  margin-bottom: 0;
}

/* Step By Step Process */
.step-by-step-process {
  flex-direction: column;
  gap: 12px 0;
  margin-left: 0;
}
.step-by-step-process li {
  background: #e4e4fc;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1.04rem;
  color: #3a4372;
  margin-bottom: 0;
}

/* TextSection Utility */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.faq-accordion h3 {
  cursor: pointer;
  color: #1C2942;
  background: #d9eafd;
  padding: 13px 17px;
  border-radius: 9px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1.07rem;
  transition: background 0.13s;
}
.faq-accordion h3:hover {
  background: #e6fae8;
}
.faq-accordion p {
  padding-left: 9px;
  color: #445167;
}

/* Blockquotes & Testimonial Styling */
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  color: #1C2942;
  background: none;
  border-left: 4px solid #ffe1ef;
  padding: 7px 0 7px 17px;
  margin-bottom: 7px;
  font-style: italic;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: #557;
  font-weight: 500;
  margin-left: 6px;
}

/* Footer */
footer {
  background: linear-gradient(91deg, #ffe1ef 0%, #e4e4fc 100%);
  border-top: 1px solid #ffe1ef;
  margin-top: 42px;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 34px 0 34px 0;
}
footer .content-wrapper {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 57px;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 46px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 5px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #29838D;
}
.footer-contact address,
.footer-contact a,
.footer-contact span {
  display: block;
  font-size: 0.97rem;
  color: #445167;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    gap: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive Typography Scaling */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.11rem; }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 16px;
  z-index: 2100;
  background: #fff6d9;
  box-shadow: 0 8px 33px 0 rgba(180,136,58,0.11);
  border-radius: 20px;
  padding: 28px 25px 21px 25px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}
.cookie-banner p {
  flex: 1 0 200px;
  font-size: 1.02rem;
  color: #69561a;
  margin-right: 12px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  padding: 9px 21px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #1C2942;
  color: #fff;
}
.cookie-banner .reject {
  background: #ffe1ef;
  color: var(--primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e4e4fc;
  color: #1C2942;
}
.cookie-banner .settings {
  background: #e4e4fc;
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #ffe1ef;
  color: #1C2942;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(46, 57, 86, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 44px 0 rgba(41, 38, 70, 0.19);
  padding: 39px 30px 29px 30px;
  max-width: 420px;
  width: 93vw;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
}
.cookie-category.essential * {
  opacity: 0.7;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 7px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 7px;
  border: none;
  padding: 8px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.99rem;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
}
.cookie-modal .save {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal .save:hover {
  background: #1C2942;
}
.cookie-modal .cancel {
  background: #e4e4fc;
  color: var(--primary);
}
.cookie-modal .cancel:hover {
  background: #ffe1ef;
}

/* Misc Utility Classes */
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-20 { gap: 20px; }
.mt-2 { margin-top: 16px; }
.mb-3 { margin-bottom: 18px; }
.pb-3 { padding-bottom: 18px; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form elements (where present) */
input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid #e4e4fc;
  padding: 10px 14px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.14s;
  margin-bottom: 17px;
}
input:focus, textarea:focus, select:focus {
  border-color: #29838D;
  outline: none;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu,
  .mobile-menu.open,
  .cookie-modal-backdrop,
  .cookie-banner,
  .cta,
  .card {
    transition: all 0.22s cubic-bezier(0.38,0.08,0.44,1.06);
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 9px;
  background: #e4e4fc;
}
::-webkit-scrollbar-thumb {
  background: #ffe1ef;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #d9eafd;
  border-radius: 8px;
}

/* Focus Outline Improvement */
a:focus, button:focus {
  outline: 2px solid #29838D;
  outline-offset: 2px;
}

/* Prevent card/text overlapping (Critical Rule) */
.card, .testimonial-card, .feature-grid li, .values-list li, .review-list article, .service-list li,
.analysis-snippets article, .portrait-previews article, .article-preview-grid article, .timeline li, .step-by-step-process li {
  margin-bottom: 20px;
}

/* Adequate Z-Indexing for overlays */
.mobile-menu,
.cookie-modal-backdrop,
.cookie-banner {
  z-index: 2000 !important;
}

/* Ensure mobile menu/fixed bar cover all screen sizes */
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 10px 18px 12px; }
  .cookie-banner-buttons { flex-direction: column; gap: 8px; width: 100%; }
  .hero { padding: 17px 0 13px 0; }
}
