/*
 * ============================================================
 *   MindCare — Global Stylesheet
 *   styles.css
 *
 *   Table of Contents
 *   -----------------
 *   01. CSS Variables & Root
 *   02. Reset & Base
 *   03. Keyframe Animations
 *   04. Typography
 *   05. Layout Utilities
 *   06. Section Headings
 *   07. Scroll Reveal
 *   08. Navbar
 *   09. Mobile Menu
 *   10. Page Hero
 *   11. Breadcrumb
 *   12. Buttons
 *   13. CTA Banner
 *   14. FAQ Accordion
 *   15. Footer
 *   16. Responsive — 1024px
 *   17. Responsive — 900px
 *   18. Responsive — 768px
 *   19. Responsive — 600px
 *   20. Responsive — 480px
 * ============================================================
 */


/* ============================================================
   01. CSS Variables & Root
   ============================================================ */
:root {
  /* Brand Blues */
  --bd:  #0b3d6e;   /* dark blue     */
  --bm:  #1565c0;   /* mid blue      */
  --bb:  #1e88e5;   /* bright blue   */
  --bl:  #daeeff;   /* light blue    */
  --bp:  #f0f8ff;   /* pale blue bg  */

  /* Teal accent */
  --tl:  #00acc1;

  /* Text scale */
  --td:  #0d1f3c;   /* dark text     */
  --tm:  #3a5275;   /* mid text      */
  --tlt: #6b87a8;   /* light text    */

  /* Shadows */
  --ss:  0 4px 18px  rgba(21, 101, 192, .10);
  --sm:  0 8px 36px  rgba(21, 101, 192, .16);
  --sl:  0 20px 64px rgba(21, 101, 192, .20);

  /* Radii */
  --r:   18px;
  --rl:  30px;

  /* Navbar height — used by page-hero margin */
  --nav-h: 72px;
}


/* ============================================================
   02. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--td);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ============================================================
   03. Keyframe Animations
   ============================================================ */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes floatY2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse2 {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0, 172, 193, .50); }
  70%       { box-shadow: 0 0 0 9px rgba(0, 172, 193, .00); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   04. Typography
   ============================================================ */

/* Playfair Display is loaded per-page via Google Fonts link */

h1, h2, h3 {
  line-height: 1.2;
}

p {
  line-height: 1.75;
}


/* ============================================================
   05. Layout Utilities
   ============================================================ */
.max-w {
  max-width: 1280px;
  margin: 0 auto;
}

section {
  padding: 90px 5%;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two-col split used by About, Services, etc. */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-grid.reverse {
  direction: rtl;
}

.split-grid.reverse > * {
  direction: ltr;
}


/* ============================================================
   06. Section Headings
   ============================================================ */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bb);
  margin-bottom: 12px;
}

.sec-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bb);
  flex-shrink: 0;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--td);
  line-height: 1.25;
  max-width: 600px;
}

.sec-title span {
  color: var(--bm);
}

.sec-title.wide {
  max-width: 780px;
}

.sec-desc {
  font-size: 1rem;
  color: var(--tlt);
  line-height: 1.75;
  max-width: 520px;
  margin-top: 14px;
}

/* Centered heading block */
.sec-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.sec-head-center .sec-title {
  max-width: 700px;
}

.sec-head-center .sec-desc {
  margin: 12px auto 0;
}


/* ============================================================
   07. Scroll Reveal
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .7s ease, transform .7s ease;
}

.rv-l {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity .7s ease, transform .7s ease;
}

.rv-r {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity .7s ease, transform .7s ease;
}

.rv.on,
.rv-l.on,
.rv-r.on {
  opacity: 1;
  transform: none;
}

/* Staggered delay helpers */
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
.rv-d4 { transition-delay: .32s; }


/* ============================================================
   08. Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(21, 101, 192, .09);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(21, 101, 192, .16);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bd);
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bm), var(--tl));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--tm);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bm);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bm);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* CTA pill */
.nav-cta {
  background: linear-gradient(135deg, var(--bm), var(--bb)) !important;
  color: #fff !important;
  padding: 10px 26px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(21, 101, 192, .28);
  transition: transform .2s, box-shadow .2s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21, 101, 192, .38) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--bd);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}


/* ============================================================
   09. Mobile Menu
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 5% 24px;
  box-shadow: 0 10px 30px rgba(21, 101, 192, .12);
  z-index: 999;
  flex-direction: column;
  animation: slideDown .25s ease;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--bl);
  font-size: .95rem;
  font-weight: 500;
  color: var(--tm);
  transition: color .2s;
}

.mobile-menu a:last-child {
  border: none;
}

.mobile-menu a:hover {
  color: var(--bm);
}

.mobile-menu a.nav-cta {
  margin-top: 10px;
  text-align: center;
  padding: 13px 0 !important;
  border-radius: 12px;
  border: none;
}


/* ============================================================
   10. Page Hero
   ============================================================ */
.page-hero {
  margin-top: var(--nav-h);
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image layer — set per-page with inline style or page-specific class */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay */
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(5,  25, 55,  .90) 0%,
    rgba(10, 52, 100, .72) 45%,
    rgba(15, 75, 150, .35) 100%
  );
}

/* Content container */
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 5% 90px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  animation: fadeUp .9s ease forwards;
}

/* Label above heading */
.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, .70);
  margin-bottom: 14px;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tl);
  flex-shrink: 0;
}

/* Heading */
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 740px;
}

.page-hero h1 span {
  color: var(--tl);
}

/* Subtext */
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .78);
  margin-top: 16px;
  max-width: 520px;
  line-height: 1.75;
}

/* Decorative floating blob — add to hero markup as a sibling of .page-hero-bg */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .20;
  z-index: 0;
  pointer-events: none;
  animation: floatY 7s ease-in-out infinite;
}


/* ============================================================
   11. Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, .30);
}

.breadcrumb .current {
  color: var(--tl);
  font-weight: 600;
}


/* ============================================================
   12. Buttons
   ============================================================ */

/* Primary — gradient fill */
.btn-hp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bm), var(--bb));
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .97rem;
  box-shadow: 0 6px 24px rgba(21, 101, 192, .28);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn-hp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(21, 101, 192, .38);
}

/* White fill — used on dark backgrounds */
.btn-wh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--bm);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .97rem;
  box-shadow: 0 4px 18px rgba(21, 101, 192, .12);
  border: 2px solid var(--bl);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn-wh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21, 101, 192, .18);
}

/* Ghost — transparent border, white text, for dark bg */
.btn-bwh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .97rem;
  border: 2px solid rgba(255, 255, 255, .45);
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}

.btn-bwh:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .10);
}

/* Outline — for light backgrounds */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--bm);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .93rem;
  border: 2px solid var(--bl);
  transition: border-color .2s, transform .2s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--bm);
  transform: translateY(-2px);
}

/* Small size modifier */
.btn-sm {
  padding: 9px 22px;
  font-size: .85rem;
}

/* Button group */
.btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================================
   13. CTA Banner
   ============================================================ */

/* Full-bleed gradient strip version (contact, team, careers, etc.) */
.cta-wrap {
  padding: 64px 5%;
  background: linear-gradient(135deg, var(--bd) 0%, var(--bm) 60%, var(--tl) 100%);
}

.cta-box {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 8px;
  max-width: 480px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Rounded card version — used by project-details, pricing */
.cta-card {
  background: linear-gradient(120deg, var(--bd), var(--bm));
  border-radius: var(--rl);
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
  pointer-events: none;
}


/* ============================================================
   14. FAQ Accordion
   ============================================================ */
.faq-item {
  background: var(--bp);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item:hover {
  border-color: var(--bl);
  box-shadow: var(--ss);
}

.faq-item.open {
  border-color: var(--bl);
  box-shadow: var(--ss);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: .97rem;
  font-weight: 600;
  color: var(--td);
  gap: 12px;
  user-select: none;
}

.faq-icon {
  color: var(--bm);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .3s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--tlt);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  display: block;
}


/* ============================================================
   15. Footer
   ============================================================ */
footer {
  background: var(--td);
  padding: 70px 5% 0;
  color: rgba(255, 255, 255, .70);
}

.ft-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ft-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.ft-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--bm), var(--tl));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}

.ft-desc {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .55);
  max-width: 280px;
}

.ft-soc {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ft-soc a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .60);
  transition: background .2s, color .2s;
}

.ft-soc a:hover {
  background: var(--bm);
  color: #fff;
}

.ft-col-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 18px;
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-links a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}

.ft-links a:hover {
  color: #fff;
}

.ft-ci {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ft-ci-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.ft-ci-text {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.55;
}

.ft-bot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-copy {
  font-size: .83rem;
  color: rgba(255, 255, 255, .35);
}

.ft-bot-links {
  display: flex;
  gap: 22px;
}

.ft-bot-links a {
  font-size: .83rem;
  color: rgba(255, 255, 255, .40);
  transition: color .2s;
}

.ft-bot-links a:hover {
  color: #fff;
}


/* ============================================================
   16. Responsive — 1024px  (large tablets / small laptops)
   ============================================================ */
@media (max-width: 1024px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .split-grid {
    gap: 44px;
  }
}


/* ============================================================
   17. Responsive — 900px  (tablets portrait / nav collapse)
   ============================================================ */
@media (max-width: 900px) {
  /* Nav collapses to hamburger */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Section padding reduced */
  section {
    padding: 76px 5%;
  }
}


/* ============================================================
   18. Responsive — 768px  (tablets)
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 64px 5%;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero-content {
    padding: 60px 5% 70px;
  }

  /* Split grid stacks */
  .split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-grid.reverse {
    direction: ltr;
  }

  /* CTA banner stacks */
  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-btns {
    justify-content: center;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-card .cta-btns {
    justify-content: center;
  }

  /* Footer stays 2-col */
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}


/* ============================================================
   19. Responsive — 600px  (large phones)
   ============================================================ */
@media (max-width: 600px) {
  section {
    padding: 56px 4%;
  }

  .page-hero {
    min-height: 320px;
  }

  /* Footer full stack */
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ft-bot {
    flex-direction: column;
    text-align: center;
  }

  .ft-bot-links {
    justify-content: center;
  }

  .ft-desc {
    max-width: 100%;
  }

  /* Buttons stack in group */
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn-hp,
  .btn-group .btn-wh,
  .btn-group .btn-bwh {
    justify-content: center;
  }
}


/* ============================================================
   20. Responsive — 480px  (small phones)
   ============================================================ */
@media (max-width: 480px) {
  section {
    padding: 50px 4%;
  }

  .page-hero {
    min-height: 290px;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .page-hero-desc {
    font-size: .92rem;
  }

  .page-hero-content {
    padding: 48px 4% 56px;
  }

  .sec-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .navbar {
    padding: 0 4%;
  }

  .mobile-menu {
    padding: 12px 4% 20px;
  }

  .cta-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  /* Buttons full width on tiny screens */
  .btn-hp,
  .btn-wh,
  .btn-bwh,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .cta-btns {
    flex-direction: column;
    width: 100%;
  }
}
