/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #FAFBFC;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #1C3557;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  transition: background 0.2s;
}

/* --- BRAND PASTEL COLOR PALETTE --- */
:root {
  --brand-primary: #1C3557;
  --brand-secondary: #23CBAA;
  --brand-accent: #F8F8F6;
  --pastel-blue: #B3CEF6;
  --pastel-green: #B6EFE6;
  --pastel-peach: #FFE8E3;
  --pastel-lavender: #E3DAF9;
  --pastel-yellow: #FAF7C8;
  --pastel-pink: #FADADD;
  --pastel-mint: #CFF7E2;
  --heading1: 48px;
  --heading2: 32px;
  --heading3: 24px;
  --radius: 18px;
  --shadow-soft: 0 4px 24px 0 rgba(85,150,200,0.11);
  --box-shadow-card: 0 4px 32px 0 rgba(44,84,84,0.08);
}

/* Montserrat & Roboto font import */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

h1, h2, h3, .btn-primary, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
h1 { font-size: var(--heading1); font-weight: 700; letter-spacing: -2px; line-height: 1.12; color: var(--brand-primary); margin-bottom: 16px; }
h2 { font-size: var(--heading2); font-weight: 600; line-height: 1.15; margin-bottom: 24px; color: var(--brand-primary); }
h3 { font-size: var(--heading3); font-weight: 500; margin-bottom: 12px; color: #325381; }

p, ul, li {
  font-size: 16px;
}

/* Typography helpers */
.subheadline {
  font-size: 18px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #3b4e6b;
  margin-bottom: 32px;
  line-height: 1.6;
}
strong, b {
  font-weight: bold;
}

/* --- GENERAL LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- MAIN NAVIGATION --- */
header {
  background: linear-gradient(90deg, var(--pastel-blue) 0%, var(--pastel-mint) 100%);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 11;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0;
}
.main-nav > a img {
  height: 42px;
  transition: transform 0.2s;
}
.main-nav > a img:hover {
  transform: scale(1.06) rotate(-2deg);
}
.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}
.main-nav ul li a {
  text-decoration: none;
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
}
.main-nav .btn-primary {
  margin-left: 16px;
}

/* --- PRIMARY BUTTON --- */
.btn-primary {
  background: var(--brand-secondary);
  color: #fff;
  font-size: 18px;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 16px 0 rgba(35,203,170,0.08);
  border: none;
  outline: none;
  text-decoration: none;
  transition: background 0.16s, transform 0.14s, box-shadow 0.22s;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  min-width: 180px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #20b798;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(35,203,170,0.14);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 30px;
  padding: 8px 12px;
  z-index: 22;
  cursor: pointer;
  transition: box-shadow 0.14s, background 0.17s;
  box-shadow: 0 2px 12px rgba(35,203,170,0.10);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-blue), var(--pastel-green));
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.75,-0.23,.37,1.24);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  box-shadow: var(--shadow-soft);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 30px;
  align-self: flex-end;
  margin-top: 22px;
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
  background: transparent;
  padding: 10px 0;
  border-radius: 7px;
  width: 100%;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 14px;
  }
  .main-nav .btn-primary {
    margin-left: 6px;
    font-size: 17px;
  }
}
@media (max-width: 950px) {
  .main-nav{
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav ul{
    display: none;
  }
  .main-nav .btn-primary{
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HEADER HERO SECTION --- */
.hero {
  background: linear-gradient(115deg, var(--pastel-pink) 0%, var(--pastel-blue) 75%, var(--pastel-green) 100%);
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
  padding: 60px 0 44px 0;
  box-shadow: 0 2px 42px 0 rgba(120,180,200,0.13);
  margin-bottom: 42px;
}
@media (max-width: 650px) {
  .hero {
    padding: 32px 0 24px 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    margin-bottom: 18px;
  }
}

/* --- SECTION & SPACING STANDARDIZATION --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section.cta {
  background: linear-gradient(90deg, #F8F8F6 80%, var(--pastel-mint) 100%);
  margin-bottom: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding-bottom: 46px;
}
@media (max-width: 500px) {
  section {
    margin-bottom: 34px;
    padding: 22px 6px;
  }
  section.cta {
    padding-bottom: 24px;
  }
}

/* --- FLEX GROUPS & CARDS --- */
.card-container, .feature-grid, .service-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-card);
  padding: 24px 24px 18px 24px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.14s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(44,84,84,0.13);
  transform: translateY(-4px) scale(1.01);
  background: var(--pastel-mint);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.feature-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--box-shadow-card);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.14s, transform 0.13s;
}
.service-item img, .feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-item:hover, .service-item:hover {
  background: var(--pastel-peach);
  box-shadow: 0 10px 32px 0 rgba(44,84,84,0.12);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 900px) {
  .feature-grid, .service-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .service-item {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-blue);
  border-radius: 16px;
  box-shadow: 0 4px 28px 0 rgba(70,100,150,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
  color: #1C3557;
}
.testimonial-card p {
  flex: 1 1 60%;
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.01em;
  font-family: 'Roboto';
}
.testimonial-card span {
  flex: 0 0 auto;
  font-size: 15px;
  color: #495089;
  font-family: 'Montserrat';
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 650px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
  }
  .testimonial-card p {
    font-size: 16px;
  }
}

.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;
    gap: 14px;
  }
}

.text-section {
  padding: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Article List --- */
.article-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.article-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--box-shadow-card);
  flex: 1 1 320px;
  padding: 20px 18px 14px 18px;
  transition: box-shadow 0.18s, background 0.15s, transform 0.13s;
  margin-bottom: 20px;
}
.article-list li:hover {
  background: var(--pastel-mint);
  box-shadow: 0 14px 36px 0 rgba(52,84,120,0.11);
  transform: scale(1.015);
}
.article-list h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.article-list a {
  color: var(--brand-secondary);
  text-decoration: underline;
  font-weight: 500;
  font-family: 'Montserrat';
  font-size: 15px;
  margin-top: 12px;
  transition: color 0.13s;
}
.article-list a:hover {
  color: #179077;
}
.featured-article-summary {
  background: var(--pastel-peach);
  border-radius: 13px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px 0 rgba(240,180,160,0.07);
  font-size: 16px;
}

/* --- Placeholders (team-photo, logos, forms) --- */
.team-photo-placeholder, .client-logos-placeholder, .newsletter-form-placeholder, .contact-form-placeholder {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.team-photo-placeholder img, .client-logos-placeholder img {
  width: 80px;
  height: auto;
  filter: grayscale(18%);
  opacity: 0.85;
}
.newsletter-form-placeholder img, .contact-form-placeholder img {
  width: 38px;
}

/* --- Service List --- */
.service-list {
  list-style: disc inside;
  margin-left: 5px;
  margin-bottom: 14px;
}
.service-list li {
  margin-bottom: 12px;
  padding-left: 7px;
}

/* --- Features Highlight List --- */
.features-highlight-list {
  list-style: disc inside;
  margin-bottom: 10px;
  padding-left: 0;
}
.features-highlight-list li {
  margin-bottom: 10px;
}

/* --- Thank You Section --- */
.thank-you {
  background: linear-gradient(100deg, var(--pastel-green), #fff 92%);
  border-radius: var(--radius);
  padding: 44px 0 64px 0;
  box-shadow: 0 4px 16px rgba(177,215,177,0.03);
}
@media (max-width: 550px) {
  .thank-you {
    padding: 24px 0 34px 0;
    border-radius: 12px;
  }
}

/* --- LEGAL SECTIONS --- */
.legal {
  background: var(--pastel-lavender);
  border-radius: 17px;
  box-shadow: 0 2px 10px 0 rgba(180,150,210,0.05);
  margin-bottom: 60px;
  padding: 36px 16px 35px 16px;
}
.legal h1 {
  font-size: 36px;
  color: #312e46;
  margin-bottom: 12px;
}
.legal .text-section {
  padding-left: 5px;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(92deg, var(--pastel-mint) 85%, var(--pastel-blue) 100%);
  border-top-left-radius: 42px;
  border-top-right-radius: 42px;
  margin-top: 80px;
  padding: 44px 0 22px 0;
  box-shadow: 0 -2px 36px 0 rgba(120,180,200,0.11);
  color: #496077;
  font-size: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}
.footer-nav a {
  color: #32497c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
  align-items: center;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-copy {
  margin-top: 12px;
  font-size: 14px;
  color: #7c89a4;
  text-align: center;
}
@media (max-width: 750px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    align-items: flex-start;
  }
}

/* --- ANIMATIONS AND INTERACTIONS --- */
a, button {
  transition: color 0.13s, background 0.16s, box-shadow 0.15s, transform 0.13s;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-yellow) 84%, var(--pastel-blue) 100%);
  color: #234064;
  box-shadow: 0 -4px 32px 0 rgba(190,180,60,0.10);
  z-index: 1102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4vw 12px 4vw;
  font-size: 16px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  flex-wrap: wrap;
  animation: cookiepopin 0.66s cubic-bezier(.69,-0.23,.59,1.65);
}
@keyframes cookiepopin {
  0% { transform: translateY(80px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 2 1 220px;
  margin-right: 8px;
  font-size: 15px !important;
}
.cookie-banner .cookie-buttons {
  flex: 1 1 auto;
  display: flex;
  gap: 14px;
}
.cookie-btn {
  border: none;
  outline: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  transition: background 0.17s, color 0.12s, box-shadow 0.15s;
  font-family: 'Montserrat';
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-secondary);
  color: #fff;
  box-shadow: 0 2px 6px 0 rgba(35,203,170,0.11);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--pastel-peach);
}
.cookie-btn.settings {
  background: var(--pastel-mint);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-btn:hover {
  background: #1C3557;
  color: #fff;
}
.cookie-btn.reject:hover {
  background: var(--pastel-peach);
  color: #96645d;
}
.cookie-btn.settings:hover {
  background: var(--pastel-blue);
  color: var(--brand-secondary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60,55,80,0.19);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 42px 0 rgba(44,84,84,0.23);
  max-width: 400px;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalpop 0.33s cubic-bezier(.75,.23,.37,1.24);
}
@keyframes modalpop {
  0% { transform: scale(0.78); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 7px 0 0 0;
}
.cookie-category-label {
  font-weight: 500;
  font-size: 15px;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--pastel-mint);
  position: relative;
  cursor: pointer;
  border: 1.2px solid var(--brand-secondary);
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  transition: background 0.17s, border 0.16s;
}
.cookie-toggle:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2.3px;
  left: 4px;
  transition: left 0.17s, background 0.14s;
  box-shadow: 0 1px 4px rgba(20,80,60,0.1);
}
.cookie-toggle.active {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.cookie-toggle.active:after {
  left: 22px;
  background: var(--pastel-peach);
}
.cookie-modal .cookie-btn {
  padding: 9px 16px;
  font-size: 15px;
  margin-top: 9px;
}
.cookie-modal .close {
  background: none;
  color: var(--brand-primary);
  font-size: 22px;
  position: absolute;
  right: 32px;
  top: 26px;
  cursor: pointer;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 650px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .btn-primary { font-size: 16px; min-width: 145px; padding: 9px 18px; }
  .card, .feature-item, .service-item, .article-list li {
    padding: 14px 10px 12px 10px;
    border-radius: 12px;
  }
  .legal {
    padding-left: 5px; padding-right: 5px;
    border-radius: 10px;
  }
  .testimonial-card {
    border-radius: 11px;
    font-size: 15px;
  }
  .footer-copy { font-size: 12px; }
  .cookie-modal { padding: 18px 8px 14px 8px; max-width: 97vw; border-radius: 11px; }
  .cookie-banner { font-size: 14px; gap: 10px; padding-left: 12px; padding-right: 12px; border-radius: 6px; }
}

/* --- UTILITY CLASSES & MISC --- */
.hide { display: none !important; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-5 { margin-bottom: 20px; }

/***** FOCUS STATES *****/
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* --- PLACEHOLDER STYLES for dummy forms/logos --- */
.newsletter-form-placeholder, .contact-form-placeholder {
  background: var(--pastel-mint);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: #235546;
  gap: 12px;
  margin-top: 18px;
}

/* --- ANIMATED ICONS AND SVGs --- */
.feature-item img, .service-item img, .footer-contact img {
  filter: drop-shadow(0 2px 2px #eee5f5);
}
.testimonial-card img {
  width: 18px!important;
  height: 18px!important;
  vertical-align: middle;
}

/* --- Miscellaneous --- */
::-webkit-input-placeholder { color: #aac2c8; }
::-moz-placeholder { color: #aac2c8; }
:-ms-input-placeholder { color: #aac2c8; }
::placeholder { color: #aac2c8; }

/***************************/
/*   END OF STYLE SHEET    */
/***************************/
