/* ============================================
   DR. DAGMAR E. NUÑEZ — NEUROPSYCHOLOGY SITE
   Color palette: sky blue / turquoise, white bg
   ============================================ */

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

:root {
  --blue:       #0284C7;
  --blue-light: #0EA5E9;
  --teal:       #0D9488;
  --teal-light: #14B8A6;
  --sky-50:     #F0F9FF;
  --sky-100:    #E0F2FE;
  --white:      #FFFFFF;
  --dark:       #0F172A;
  --slate:      #334155;
  --muted:      #64748B;
  --border:     #E2E8F0;
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --radius:     12px;
  --radius-sm:  8px;
  --pad-x:      clamp(20px, 6vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  border-radius: 100px; cursor: pointer; border: none;
  transition: all 0.2s ease; white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue); color: #fff;
}
.btn--primary:hover { background: #0369a1; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--full { width: 100%; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  background: var(--sky-100); color: var(--blue);
  border: 1px solid rgba(14,165,233,0.2);
}
.badge--lg { padding: 6px 16px; font-size: 0.8rem; }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600; line-height: 1.1;
  color: var(--dark); margin-bottom: 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav--scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; flex-direction: column; gap: 1px;
}
.nav__brand-name {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--dark); line-height: 1.1;
}
.nav__brand-title {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 0.875rem; font-weight: 400; color: var(--slate);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--blue); }
.nav__cta {
  background: var(--blue); color: #fff !important;
  padding: 9px 22px; border-radius: 100px; font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: #0369a1 !important; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px var(--pad-x) 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav__links--open { display: flex; }
  .nav__links a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav__cta { margin-top: 8px; text-align: center; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100dvh; padding-top: 68px;
  display: flex; align-items: stretch;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sky-50) 0%, #fff 60%, #f0fdf4 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(14,165,233,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(13,148,136,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px; align-items: center;
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(40px, 6vh, 80px);
  position: relative; z-index: 1;
}
.hero__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600; line-height: 1.05;
  color: var(--dark); margin-bottom: 20px;
}
.hero__sub {
  font-size: 1rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 32px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__insurance {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hero__insurance > span:first-child {
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
}
.hero__photo { width: 100%; }
.hero__photo-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--sky-100);
  width: 100%; aspect-ratio: 4/5;
  box-shadow: 0 20px 60px rgba(2,132,199,0.15), 0 4px 20px rgba(0,0,0,0.08);
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-frame--empty {
  display: flex; align-items: center; justify-content: center;
}
.hero__photo-frame--empty::after {
  content: 'Photo coming soon';
  font-size: 0.8rem; color: var(--muted); font-style: italic;
}
.hero__photo-badge {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hero__photo-badge-name {
  display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--dark); margin-bottom: 2px;
}
.hero__photo-badge-cred {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__insurance { justify-content: center; }
  .hero__photo { max-width: 320px; margin: 0 auto; }
  .hero__photo-frame { aspect-ratio: 1/1; }
}

/* ===== INTRO ===== */
.intro {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.intro__grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.intro__body { font-size: 1rem; color: var(--slate); line-height: 1.8; margin-bottom: 24px; }
.intro__domains {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.intro__domains span {
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--teal);
  background: rgba(13,148,136,0.07);
  border: 1px solid rgba(13,148,136,0.18);
}
@media (max-width: 768px) {
  .intro__grid { grid-template-columns: 1fr; }
}

/* ===== SERVICES ===== */
.services {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--sky-50);
}
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(2,132,199,0.1);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--sky-100); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--blue);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
  color: var(--dark); margin-bottom: 4px;
}
.service-card__tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 16px;
}
.service-card__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--blue); padding: 0; transition: gap 0.2s;
}
.service-card__toggle:hover { gap: 10px; }
.service-card__toggle svg {
  width: 16px; height: 16px;
  transition: transform 0.2s;
}
.service-card__detail {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.service-card__detail h4 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 8px; margin-top: 16px;
}
.service-card__detail h4:first-child { margin-top: 0; }
.service-card__detail p, .service-card__detail li {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
}
.service-card__detail ul { padding-left: 16px; list-style: disc; }
.service-card__detail li { margin-bottom: 4px; }
.service-card__note {
  font-style: italic; font-size: 0.82rem; color: var(--muted);
  border-left: 2px solid var(--border); padding-left: 12px; margin-top: 12px;
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ===== PROCESS ===== */
.process {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
}
.process__steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px;
}
.process__step {
  position: relative; padding-top: 20px;
}
.process__step::before {
  content: '';
  position: absolute; top: 36px; left: calc(100% - 20px);
  width: calc(100% - 20px); height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}
.process__step:last-child::before { display: none; }
.process__step-num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 600;
  color: var(--sky-100); line-height: 1; margin-bottom: 12px;
  -webkit-text-stroke: 1px var(--blue-light);
}
.process__step h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--dark); margin-bottom: 4px;
}
.process__step-time {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.process__step p {
  font-size: 0.875rem; color: var(--muted); line-height: 1.6;
}
.process__cta {
  margin-top: 48px; padding: 32px;
  background: var(--sky-50); border-radius: var(--radius);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.process__cta p { font-size: 1rem; color: var(--slate); }
@media (max-width: 768px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__step::before { display: none; }
}
@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__cta { flex-direction: column; text-align: center; }
}

/* ===== FAQ ===== */
.faq {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--sky-50);
}
.faq__group {
  margin-top: 48px;
}
.faq__group-title {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 500;
  color: var(--dark); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--dark); text-align: left;
}
.faq__q::after {
  content: '+';
  font-size: 1.4rem; font-weight: 300; color: var(--blue);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq__q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 0 18px;
}
.faq__a p, .faq__a li {
  font-size: 0.9rem; color: var(--muted); line-height: 1.75;
}
.faq__a ul { padding-left: 16px; list-style: disc; }
.faq__a li { margin-bottom: 4px; }
.faq__group + .faq__group { margin-top: 56px; }

/* ===== ABOUT ===== */
.about {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
}
.about__grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.about__photo img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.about__credentials {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.credential {
  background: var(--sky-50); border-radius: var(--radius-sm);
  border: 1px solid rgba(14,165,233,0.15); padding: 12px 14px;
}
.credential__label {
  display: block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 3px;
}
.credential__value {
  font-size: 0.82rem; font-weight: 500; color: var(--dark);
}
.about__content p {
  font-size: 0.95rem; color: var(--slate); line-height: 1.8; margin-bottom: 16px;
}
.about__memberships {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.about__memberships span {
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
  background: var(--sky-100); color: var(--blue);
  border: 1px solid rgba(14,165,233,0.2);
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
}

/* ===== CONTACT ===== */
.contact {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--sky-50);
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact__info p {
  font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px;
}
.contact__details { margin-bottom: 28px; }
.contact__detail {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--slate); margin-bottom: 10px;
}
.contact__detail svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.contact__insurance-label {
  font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-bottom: 10px;
}
.contact__insurance-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__form {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__field label {
  font-size: 0.82rem; font-weight: 500; color: var(--slate);
}
.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--dark);
  background: var(--white); outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: var(--blue); }
.form__field textarea { resize: vertical; min-height: 100px; }
.form__disclaimer {
  margin-top: 12px; font-size: 0.78rem; color: var(--muted);
  text-align: center; line-height: 1.5;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr 1fr 160px;
  gap: 40px; margin-bottom: 40px;
  align-items: start;
}
.footer__name {
  font-family: var(--font-head); font-size: 1.2rem;
  color: #fff; margin-bottom: 4px;
}
.footer__cred, .footer__address {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer__links {
  display: flex; flex-direction: column; gap: 10px; padding-top: 4px;
}
.footer__links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer__links a:hover { color: #fff; }
/* Seal */
.seal {
  width: 120px; height: 120px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.seal__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; text-align: center; padding: 16px;
  position: relative; z-index: 1;
}
.seal__name {
  font-family: var(--font-head); font-size: 0.62rem;
  color: rgba(255,255,255,0.8); line-height: 1.3; font-weight: 500;
}
.seal__line {
  font-size: 0.52rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em; white-space: nowrap;
}
.seal__ring {
  position: absolute; inset: -3px;
  width: calc(100% + 6px); height: calc(100% + 6px);
  color: rgba(255,255,255,0.15);
}
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__seal { display: none; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}
