/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ==== ROOT VARIABLES ==== */
:root {
  --color-primary: #205375;
  --color-secondary: #27C6A9;
  --color-accent: #F3F6FB;
  --color-white: #fff;
  --color-bg: #FDF7F1;
  --color-warm1: #FFE5D4;
  --color-warm2: #FFBC80;
  --color-warm3: #FF8474;
  --color-gray: #6C737C;
  --color-shadow: rgba(32, 83, 117, 0.08);
  --text-title: #24323F;
  --text-body: #374151;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 24px var(--color-shadow);
  --transition: all 0.25s cubic-bezier(.4,.08,.33,1);
  --font-regular: 400;
  --font-semibold: 600;
  --max-width: 1200px;
}

html, body {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: var(--font-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==== BASE TYPOGRAPHY ==== */
body {
  font-size: 1rem;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  color: var(--text-title);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong, b {
  font-weight: var(--font-semibold);
}

/* ==== CONTAINER & LAYOUTS ==== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==== SECTION SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(32, 83, 117, 0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 14px;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-warm1);
  color: var(--color-secondary);
  outline: none;
}
/* CTA header button */
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  padding: 10px 28px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  margin-left: 8px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 32px rgba(32, 83, 117, 0.13);
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 2rem;
  border-radius: var(--radius-md);
  border: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 201;
}
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  outline: 2px solid var(--color-warm2);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.44,0,.56,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  padding: 10px 18px;
  margin-bottom: 12px;
  background: transparent;
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  outline: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  font-size: 1.1rem;
  padding: 12px 4px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  width: fit-content;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

/* ==== HERO SECTIONS ==== */
.hero {
  padding: 52px 0 44px 0;
  background: var(--color-warm1);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 28px var(--color-shadow);
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 16px;
}
.hero p {
  color: var(--color-gray);
  margin-bottom: 26px;
  font-size: 1.18rem;
}
.hero .cta-btn {
  margin-top: 8px;
}

/* ==== FLEXBOX LAYOUTS ==== */
.feature-grid, .service-cards, .tool-grid, .team-list, .rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.feature-grid > div, .service-cards > div, .tool-grid > div, .team-list > div {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px 20px;
  flex: 1 1 240px;
  box-shadow: var(--shadow-soft);
  min-width: 225px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 0;
}
.feature-grid > div:hover, .service-cards > div:hover, .tool-grid > div:hover, .team-list > div:hover {
  box-shadow: 0 10px 32px rgba(255,184,128,0.07), var(--shadow-soft);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img, .tool-grid img {
  height: 52px;
  width: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--color-warm2);
  box-shadow: 0 2px 8px rgba(255, 184, 128, 0.08);
  padding: 8px;
}
.service-cards > div h3, .tool-grid > div h3 {
  margin-top: 0;
}
.service-cards > div a {
  color: var(--color-secondary);
  font-weight: var(--font-semibold);
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-top: 8px;
  display: inline-block;
  transition: color 0.16s;
}
.service-cards > div a:hover,
.service-cards > div a:focus {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}

.quick-links {
  margin-top: 8px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.quick-links a {
  color: var(--color-primary);
  font-size: 1.1rem;
  background: var(--color-warm2);
  border-radius: var(--radius-md);
  padding: 8px 22px;
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  margin-left: 10px;
  transition: background 0.18s, color 0.18s;
}
.quick-links a:hover,
.quick-links a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  outline: none;
}

/* ==== TESTIMONIALS ==== */
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(255,132,116,0.10), var(--shadow-soft);
  transform: translateY(-2px) scale(1.017);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--color-primary);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--color-gray);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-warm1);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: 0;
  box-shadow: 0 1px 7px var(--color-shadow);
}

/* ==== FLEX SPACING PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 28px 18px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== GENERAL TEXT CONTENT ==== */
.text-section {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  font-size: 1.08rem;
}
.text-section ul, .text-section ol {
  margin-left: 14px;
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 7px;
  padding-left: 16px;
  position: relative;
}
.text-section li:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0.55em;
}

/* ==== CTA SECTIONS ==== */
.cta {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta h2, .cta p {
  color: var(--color-white);
}
.cta .cta-btn {
  margin-top: 14px;
  background: var(--color-white);
  color: var(--color-secondary);
}
.cta .cta-btn:hover {
  background: var(--color-warm2);
  color: var(--color-primary);
}

/* ==== TABLES ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
thead th {
  background: var(--color-warm1);
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  padding: 14px 10px;
}
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f2eee9;
  font-size: 1rem;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 24px 0;
  border-radius: 32px 32px 0 0;
  font-size: 1rem;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: var(--font-semibold);
  margin-bottom: 10px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-white);
  font-size: 0.98rem;
  opacity: 0.86;
  transition: opacity 0.15s, color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.96rem;
  opacity: 0.92;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}

/* ==== BUTTONS & LINKS ==== */
button, .cta-btn, .footer-nav a, .service-cards > div a, .quick-links a, .mobile-menu-close, .mobile-nav a {
  outline: none;
  transition: var(--transition);
}

/* ==== FORM ELEMENTS (where present) ==== */
input, textarea, select {
  background: var(--color-accent);
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-md);
  font-size: 1rem;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--color-primary);
  width: 100%;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* ==== ANIMATIONS, HOVERS, MICRO-INTERACTIONS ==== */
.card, .feature-grid > div, .service-cards > div, .tool-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover,
.feature-grid > div:hover,
.service-cards > div:hover,
.tool-grid > div:hover,
.testimonial-card:hover {
  box-shadow: 0 9px 24px rgba(255,184,128,0.10), var(--shadow-soft);
  transform: translateY(-1px) scale(1.012);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-warm1);
  color: var(--color-primary);
  z-index: 500;
  box-shadow: 0 -4px 32px var(--color-shadow);
  border-radius: 16px 16px 0 0;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: slideUp 0.5s cubic-bezier(.32,.72,.48,.98) 1;
}
@keyframes slideUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.08rem;
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  font-size: 1rem;
  border: none;
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.cookie-btn.accept {
  background: var(--color-secondary);
}
.cookie-btn.reject {
  background: var(--color-warm3);
}
.cookie-btn.settings {
  background: var(--color-warm2);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
  outline: none;
}

/* ==== COOKIE CONSENT MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 550;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,83,117,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 42px rgba(32,83,117,0.19);
  padding: 34px 24px 24px 24px;
  min-width: 322px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popIn 0.25s cubic-bezier(.44,0,.56,1);
}
@keyframes popIn {
  from {transform: scale(0.97) translateY(28px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 1.08rem;
}
.cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-secondary);
  margin-right: 9px;
}
.cookie-category .always-on {
  color: var(--color-secondary);
  font-size: 0.97rem;
  font-style: italic;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .main-nav {
    gap: 10px;
  }
  .feature-grid, .service-cards, .tool-grid, .team-list, .testimonial-slider {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .footer-brand, .footer-nav, .footer-contact {
    min-width: 160px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 8px;
  }
  .feature-grid, .service-cards, .tool-grid, .team-list, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cta {
    padding: 32px 8px;
  }
  .hero {
    padding: 30px 0 28px 0;
    border-radius: 0 0 20px 20px;
  }
  section, .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .footer-brand img {
    height: 31px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .footer-brand img {
    height: 23px;
  }
  .cookie-banner {
    padding: 12px 4px 12px 4px;
  }
  .cookie-modal {
    padding: 16px 6px 10px 6px;
    min-width: 90vw;
  }
}

/* ==== MISC ==== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-warm1);
  border-radius: 12px;
}

::selection {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Utility (for enforced spacing between cards/sections) */
.card + .card, .feature-grid > div + div, .service-cards > div + div, .tool-grid > div + div, .team-list > div + div {
  margin-left: 0; /* Prevent old float/generic margins */
}
.section + .section, section + section {
  margin-top: 60px;
}

/* End Styles */
