/* ============================================================
   FLOW OSTEO — styles.css
   Mobile-first, responsive landing page
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colours */
  --clr-primary: #2a9d8f;
  --clr-primary-dark: #21867a;
  --clr-primary-light: #e6f5f3;
  --clr-accent: #e76f51;
  --clr-accent-dark: #d4583a;

  --clr-dark: #1a1a2e;
  --clr-text: #3a3a4a;
  --clr-text-light: #6b6b7b;
  --clr-bg: #f8f5f2;
  --clr-bg-alt: #f2edea;
  --clr-border: #e2e6ea;

  --clr-white: #ffffff;
  --clr-star: #f4b942;

  /* Typography */
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-dark);
}

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

ul {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--clr-bg-alt);
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

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

.section__subtitle {
  color: var(--clr-text-light);
  font-size: var(--fs-lg);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn:hover {
  background: var(--clr-primary-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-lg);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-sm);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--clr-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--clr-primary);
}

.logo:hover {
  color: var(--clr-dark);
}

.logo--light {
  color: var(--clr-white);
}

.logo--light:hover {
  color: var(--clr-white);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--clr-text-light);
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--clr-primary);
}

.lang-toggle__option {
  transition: color var(--transition), font-weight var(--transition);
}

.lang-toggle__option--active {
  color: var(--clr-primary);
  font-weight: 700;
}

.lang-toggle__separator {
  color: var(--clr-border);
}

/* Nav */
.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  color: var(--clr-text);
  font-weight: 500;
  font-size: var(--fs-sm);
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--clr-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eaf1ef 0%, #f8f5f2 50%, #f3edea 100%);
  padding-top: var(--header-h);
  overflow: hidden;
}

@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  border-radius: 50%;
  background: rgba(42, 157, 143, 0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  border-radius: 50%;
  background: rgba(231, 111, 81, 0.05);
  pointer-events: none;
}

.hero__inner {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image {
  display: flex;
  justify-content: center;
}

.about__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  color: var(--clr-text-light);
  border: 2px dashed var(--clr-border);
}

.about__content p {
  margin-bottom: var(--space-sm);
  color: var(--clr-text);
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__languages {
  background: var(--clr-primary-light);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}

/* ============================================================
   SERVICE CARD GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-md);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--clr-text);
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--clr-text);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ============================================================
   SERVICE DETAIL BLOCKS
   ============================================================ */
.service-detail {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Icon + title on the same line */
.service-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.service-detail__header .service-detail__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-detail__header .service-detail__title {
  margin-bottom: 0;
}

.service-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.service-detail__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.service-detail p {
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.service-detail p:last-child {
  margin-bottom: 0;
}

.service-detail__list {
  list-style: none;
  margin: var(--space-sm) 0 var(--space-md);
  padding: 0;
}

.service-detail__list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--clr-text);
  line-height: 1.7;
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
}

.service-detail__list li strong {
  color: var(--clr-dark);
}

/* Service detail with image layout */
.service-detail--with-image {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.service-detail__image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.service-detail__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--clr-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-dark);
  cursor: pointer;
  text-align: left;
  gap: var(--space-sm);
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--clr-primary);
}

.faq-item__icon {
  font-size: var(--fs-xl);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding-bottom: var(--space-md);
  color: var(--clr-text-light);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: var(--space-xl);
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  color: var(--clr-text);
  font-size: var(--fs-base);
  transition: color var(--transition);
}

.contact__item:hover {
  color: var(--clr-primary);
}

.contact__item svg {
  color: var(--clr-primary);
  flex-shrink: 0;
}

.contact__item--whatsapp {
  margin-top: var(--space-xs);
  display: inline-flex;
  justify-content: center;
  background: #25d366;
  color: var(--clr-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  align-self: center;
  transition: all var(--transition);
}

.contact__item--whatsapp svg {
  color: var(--clr-white);
}

.contact__item--whatsapp:hover {
  background: #1ebe5d;
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  color: var(--clr-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-3xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__brand p {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 320px;
}

.footer__links h4,
.footer__contact h4 {
  color: var(--clr-white);
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
}

.footer__links ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a,
.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--clr-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--fs-sm);
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .section__title {
    font-size: var(--fs-3xl);
  }

  .hero__title {
    font-size: var(--fs-4xl);
  }

  .about__inner {
    grid-template-columns: 1fr 1.2fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--fs-4xl);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — Mobile nav (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section__subtitle {
    margin-bottom: var(--space-xl);
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, var(--fs-3xl));
  }

  .hero__subtitle {
    font-size: var(--fs-base);
  }

  .hero__inner {
    padding: var(--space-xl) var(--space-sm);
  }

  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--clr-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    padding: calc(var(--header-h) + var(--space-lg)) var(--space-lg) var(--space-lg);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--fs-lg);
    border-bottom: 1px solid var(--clr-bg-alt);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__link::after {
    display: none;
  }

  .footer__inner {
    gap: var(--space-lg);
  }

  .footer {
    padding-top: var(--space-2xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .service-card {
    padding: var(--space-lg) var(--space-md);
  }

  .service-detail {
    padding: var(--space-lg);
  }

  .service-detail--with-image {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-detail__photo {
    height: 220px;
    width: 100%;
  }

  .contact__card {
    padding: var(--space-xl) var(--space-md);
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
}
