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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2D2D2D;
  background-color: #F4EFE8;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0E756F;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background-color .2s, transform .15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #0E756F;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0a5e59;
}

.btn-outline {
  background: transparent;
  border: 2px solid #0E756F;
  color: #0E756F;
}

.btn-outline:hover {
  background-color: #0E756F;
  color: #fff;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(244, 239, 232, .95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0E756F;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: #0E756F;
}

.nav-cta {
  margin-left: 8px;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #2D2D2D;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== Hero ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #2D2D2D;
}

.hero h1 span {
  color: #0E756F;
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0E756F;
}

.hero-stats .stat-label {
  font-size: .9rem;
  color: #777;
}

/* ===== Services ===== */
.services {
  background: #fff;
}

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

.service-card {
  background: #F4EFE8;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0E756F;
}

.service-card p {
  font-size: .9rem;
  color: #666;
}

/* ===== Psychologists ===== */
.psychologists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.psychologist-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.psychologist-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.psychologist-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.psychologist-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.psychologist-header h3 {
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  background: #e0f2f1;
  color: #0E756F;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.psychologist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background: #F4EFE8;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  color: #555;
}

.psychologist-exp {
  font-size: .85rem;
  color: #888;
  margin-bottom: 8px;
}

.psychologist-bio {
  font-size: .9rem;
  color: #555;
  margin-bottom: 20px;
  flex: 1;
}

.psychologist-info .btn {
  align-self: flex-start;
}

/* ===== Pricing ===== */
.pricing {
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #F4EFE8;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.pricing-card.featured {
  background: #0E756F;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(14,117,111,.25);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card.featured .pricing-price {
  color: #fff;
}

.pricing-card.featured .pricing-features li {
  color: rgba(255,255,255,.9);
}

.pricing-card.featured .btn {
  background: #fff;
  color: #0E756F;
}

.pricing-card.featured .btn:hover {
  background: #e0f2f1;
}

.pricing-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #888;
}

.pricing-card.featured .pricing-label {
  color: rgba(255,255,255,.7);
}

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #F4A261;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0E756F;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: .85rem;
  color: #888;
  margin-bottom: 24px;
}

.pricing-card.featured .pricing-period {
  color: rgba(255,255,255,.6);
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: .9rem;
  color: #555;
}

.pricing-features li::before {
  content: '✓';
  color: #0E756F;
  font-weight: 700;
  margin-right: 8px;
}

.pricing-card.featured .pricing-features li::before {
  color: #a7f3d0;
}

/* ===== FAQ ===== */
.faq {
  background: #fff;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #F4EFE8;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #0E756F;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: #0E756F;
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: .95rem;
  color: #555;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
  background: #fafaf8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0E756F;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success .checkmark {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success h3 {
  color: #0E756F;
  margin-bottom: 8px;
}

.form-success p {
  color: #666;
}

.form-error {
  color: #d32f2f;
  font-size: .8rem;
  margin-top: 4px;
  display: none;
}

/* ===== Footer ===== */
.footer {
  background: #2D2D2D;
  color: #ccc;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: .9rem;
  color: #999;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: #999;
  font-size: .9rem;
  padding: 4px 0;
  transition: color .2s;
}

.footer-links a:hover {
  color: #0E756F;
}

.footer-contact p {
  font-size: .9rem;
  color: #999;
  padding: 4px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #3a3a3a;
  border-radius: 50%;
  color: #ccc;
  font-size: .85rem;
  transition: background .2s, color .2s;
}

.footer-social a svg {
  flex-shrink: 0;
}

.footer-social a:hover {
  background: #0E756F;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: #666;
}

/* ===== Mobile Nav Overlay ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(244,239,232,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
}

.mobile-nav a:hover {
  color: #0E756F;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2D2D2D;
}

/* ===== Responsive ===== */

/* Prevent horizontal overflow on all devices */
html, body {
  overflow-x: hidden;
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
  }

  .footer-links a {
    padding: 8px 0;
  }
}

/* ---- Large tablets / small laptops (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .psychologists-grid {
    gap: 24px;
  }

  .psychologist-card img {
    height: 240px;
  }
}

/* ---- Tablets (max-width: 960px) ---- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 32px;
  }

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

  .psychologists-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .psychologist-card img {
    height: 300px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-price {
    font-size: 1.8rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Small tablets / large phones landscape (max-width: 768px) ---- */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .psychologist-header {
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ---- Phones (max-width: 600px) ---- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero h1 br {
    display: none;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .hero-stats .stat {
    flex: 0 0 auto;
    min-width: 90px;
  }

  .hero-stats .stat-number {
    font-size: 1.6rem;
  }

  .hero-stats .stat-label {
    font-size: .8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: .9rem;
    margin-bottom: 32px;
  }

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

  .service-card {
    padding: 20px 14px;
  }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: .82rem;
  }

  .psychologists-grid {
    max-width: 100%;
  }

  .psychologist-card img {
    height: 220px;
  }

  .psychologist-info {
    padding: 18px;
  }

  .psychologist-header h3 {
    font-size: 1.05rem;
  }

  .psychologist-bio {
    font-size: .85rem;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .contact-wrapper {
    padding: 20px;
    border-radius: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 11px 12px;
    font-size: .9rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: .9rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 24px;
    margin-bottom: 24px;
  }
}

/* ---- Small phones (max-width: 400px) ---- */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }

  .header .container {
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: 88px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: .9rem;
  }

  .hero-stats .stat-number {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .psychologist-card img {
    height: 200px;
  }

  .psychologist-header {
    gap: 8px;
  }

  .psychologist-header h3 {
    font-size: 1rem;
  }

  .badge {
    font-size: .7rem;
    padding: 3px 8px;
  }

  .tag {
    font-size: .75rem;
    padding: 3px 10px;
  }

  .pricing-price {
    font-size: 1.8rem;
  }

  .pricing-name {
    font-size: 1.2rem;
  }

  .contact-wrapper {
    padding: 16px;
  }

  .mobile-nav a {
    font-size: 1.2rem;
  }

  .mobile-nav {
    gap: 24px;
  }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 88px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .hero p {
    margin-bottom: 20px;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .mobile-nav {
    gap: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 60px 24px 24px;
  }

  .mobile-nav a {
    font-size: 1.1rem;
  }

  section {
    padding: 40px 0;
  }
}

/* ---- Ultra-wide / 4K (min-width: 1440px) ---- */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .psychologist-card img {
    height: 320px;
  }
}
