/*
Theme Name: Better Life – Hayat Afdal (Bilingual)
Theme URI: https://hayat-afdal.com/
Author: Hayat Afdal
Description: Elegant, calm bilingual theme for Better Life (Hayat Afdal) family counseling. English & Arabic, responsive, animated.
Version: 2.0
Text Domain: better-life-hayat-afdal
*/


:root {
  --color-bg: #F7F1E7;
  --color-bg-alt: #FFFFFF;
  --color-accent: #4F8076;
  --color-accent-soft: #E1EFEB;
  --color-beige: #E5D5C2;
  --color-text: #33373A;
  --color-text-soft: #55595C;
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-soft);
  background-color: var(--color-bg);
  line-height: 1.6;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.lang-en { direction: ltr; }
.lang-ar { direction: rtl; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma", sans-serif; }
body.lang-en .lang-ar { display: none; }
body.lang-ar .lang-en { display: none; }
/* header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img { height: 80px; width: auto; display: block; border-radius: 6px; }
.site-title-block { display: flex; flex-direction: column; gap: 2px; }
.site-title { font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-text); }
.site-tagline { font-size: .8rem; color: var(--color-text-soft); }
.main-navigation { display: flex; align-items: center; gap: 24px; position: relative; }
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.main-navigation li { font-size: .95rem; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  font-size: .9rem;
}
.lang-switch button.active { font-weight: 600; color: var(--color-accent); }
.button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.button { background: transparent; color: var(--color-accent); }
.button-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.button-primary:hover {
  background-color: #416a63;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}
.site-main { min-height: 60vh; }
.section { padding: 70px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-light { background-color: var(--color-bg-alt); }
.section-soft { background-color: var(--color-accent-soft); }
.section-beige { background-color: var(--color-beige); }
.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-top: 0;
  color: var(--color-text);
}
.hero { padding-top: 110px; padding-bottom: 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin: 0 0 14px;
  color: var(--color-text);
}
.hero-text { font-size: 1rem; margin-bottom: 22px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #E1EFEB, #E5D5C2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: .95rem;
  text-align: center;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,.09);
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 24px;
  margin-top: 30px;
}
.card {
  background-color: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,128,118,.08), transparent);
  opacity: 0;
  transition: opacity .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.15rem; color: var(--color-text); }
.card p { margin: 0 0 10px; font-size: .92rem; }
.page-header { text-align: left; margin-bottom: 22px; }
.page-header-eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px 60px;
  margin-top: 20px;
}
.why-item { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.why-dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 7px; background-color: var(--color-accent); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 25px;
}
.testimonial {
  background-color: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: -5px;
  font-size: 5rem;
  color: rgba(79,128,118,.16);
}
.testimonial-quote { font-style: italic; margin-bottom: 10px; }
.testimonial-name { font-weight: 600; color: var(--color-text); }
.cta { text-align: center; }
.faq { margin-top: 24px; }
.faq-item {
  border-radius: 12px;
  background-color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  overflow: hidden;
}
.faq-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question { font-weight: 500; }
.faq-toggle { font-size: 1.3rem; line-height: 1; }
.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.open .faq-body { max-height: 220px; padding: 0 16px 14px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 36px;
}
.contact-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px 18px;
}
.contact-form-grid .full { grid-column: 1 / -1; }
.contact-form-grid label {
  display: block;
  font-size: .85rem;
  margin-bottom: 4px;
}
.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: .9rem;
}
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.site-footer {
  background-color: var(--color-beige);
  padding: 40px 20px 24px;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
  font-size: .8rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .contact-grid { grid-template-columns: minmax(0,1fr); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .testimonial-grid { grid-template-columns: minmax(0,1fr); }
  .main-navigation ul {
    position: absolute;
    top: 52px;
    right: 0;
    background-color: #fff;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    flex-direction: column;
    align-items: flex-start;
    min-width: 190px;
    display: none;
    z-index: 60;
  }
  .main-navigation.open ul { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-right { display: none; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .hero { padding-top: 80px; padding-bottom: 60px; }
}


/* Booking pages & schedule form */
.schedule-section {
  padding: 4rem 1.5rem;
  background: var(--color-bg-alt);
}
.schedule-section .section-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.schedule-section .section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
}
.blha-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 22px 45px rgba(0,0,0,0.05);
}
.blha-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .blha-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.blha-field {
  margin-bottom: 1.2rem;
}
.blha-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
}
.blha-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(79,128,118,0.25);
  font-size: 0.95rem;
  background: #fff;
}
.blha-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-soft);
}
.blha-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .blha-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.blha-slot {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(79,128,118,0.25);
  padding: 0.75rem 0.9rem;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease, opacity 0.2s ease;
}
.blha-slot:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.blha-slot-booked {
  opacity: 0.5;
  cursor: not-allowed;
}
.blha-slot-booked:hover {
  box-shadow: none;
  transform: none;
}
.blha-time-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.blha-slot-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.blha-slot-time {
  font-weight: 600;
  color: var(--color-text-strong);
  font-size: 0.95rem;
}
.blha-slot-sub {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}
.blha-slot .booked-label {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #b91c1c;
}
.blha-error {
  display: block;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}
.blha-error.hidden {
  display: none;
}
.blha-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.blha-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--color-accent), #6DC6A4);
  color: #fff;
  box-shadow: 0 16px 35px rgba(79,128,118,0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}
.blha-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(79,128,118,0.45);
  opacity: 0.97;
}
.blha-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(79,128,118,0.35);
}
.blha-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.blha-info-text {
  color: var(--color-text-soft);
}
.blha-error-text {
  color: #b91c1c;
}

/* Booking success/cancel pages */
.booking-page {
  padding: 5rem 1.5rem;
  background: var(--color-bg-alt);
}
.booking-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 22px 45px rgba(0,0,0,0.06);
}
.booking-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--color-text-strong);
}
.booking-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.booking-subtitle.booking-error {
  color: #b91c1c;
}
.booking-details {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.booking-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.booking-details li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.booking-info {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.booking-back {
  margin-top: 1.5rem;
}
.booking-ar {
  margin-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.25rem;
}
.booking-title-ar {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.booking-text-ar {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}


/* Calendar styling for booking */
.blha-calendar {
  margin-top: 0.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(79,128,118,0.25);
  padding: 0.9rem 1rem 1rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.04);
}
.blha-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.blha-cal-month {
  font-weight: 600;
  font-size: 0.95rem;
}
.blha-cal-nav {
  border: none;
  background: rgba(79,128,118,0.1);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.blha-cal-nav:hover {
  background: rgba(79,128,118,0.18);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.blha-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-soft);
}
.blha-cal-weekdays span {
  padding: 0.15rem 0;
}
.blha-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 0.35rem;
}
.blha-cal-cell {
  min-height: 32px;
}
.blha-cal-cell--empty {
  background: transparent;
}
.blha-cal-day {
  width: 100%;
  height: 32px;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: rgba(249,250,251,1);
  font-size: 0.8rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  padding: 0;
}
.blha-cal-day span {
  position: relative;
  z-index: 2;
}
.blha-cal-day--available {
  cursor: pointer;
  color: var(--color-text);
  background: #fff;
  border-color: rgba(79,128,118,0.15);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.blha-cal-day--available:hover {
  background: linear-gradient(135deg, rgba(79,128,118,0.08), rgba(109,198,164,0.08));
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.blha-cal-day--selected {
  background: linear-gradient(135deg, var(--color-accent), #6DC6A4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(79,128,118,0.4);
}
.blha-cal-day--today {
  box-shadow: 0 0 0 1px rgba(79,128,118,0.4) inset;
}
.blha-cal-day--disabled {
  background: #f3f4f6;
  color: #9ca3af;
}
.blha-cal-day-strike {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(148,163,184,0.9);
  transform: rotate(-18deg);
  z-index: 1;
}

