/* ===================================================
   Melanie Puzio Psychological Services — Shared Styles
   Color Palette: Light blues, warm neutrals
   =================================================== */

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

:root {
  --navy: #1B3A5C;
  --blue: #2E5984;
  --sky: #7EB6D9;
  --light-blue: #D6EAF5;
  --pale-blue: #EDF5FA;
  --warm-white: #FAFCFE;
  --cream: #F8F6F3;
  --text: #2C3E50;
  --text-light: #5A6C7D;
  --accent: #C9956B;
  --white: #FFFFFF;
  --shadow: 0 2px 20px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 58, 92, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.3;
}

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }

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

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(126, 182, 217, 0.15);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.nav-logo-text span {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-cta {
  background: var(--sky) !important;
  color: var(--navy) !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 89, 132, 0.3);
}

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

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 140px 2rem 80px;
  background: linear-gradient(135deg, var(--pale-blue) 0%, var(--warm-white) 50%, var(--cream) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-content h1 em {
  color: var(--blue);
  font-style: italic;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 420px;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 89, 132, 0.3);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--pale-blue);
}

.section-cream {
  background: var(--cream);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--sky);
  margin: 1rem auto;
  border-radius: 2px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--sky);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Quote/Testimonial Block --- */
.quote-block {
  background: var(--white);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.quote-block p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
  font-size: 0.95rem;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table th,
.info-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--light-blue);
}

.info-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.info-table tr:nth-child(even) {
  background: var(--pale-blue);
}

.info-table tr:hover {
  background: var(--light-blue);
}

/* --- Tags / Badges --- */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: var(--light-blue);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: var(--sky);
  color: var(--white);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--light-blue);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  background: var(--pale-blue);
}

.faq-question .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--sky);
}

.faq-item.open .faq-question {
  background: var(--pale-blue);
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-blue);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(126, 182, 217, 0.2);
}

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

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 140px 2rem 70px;
  background: var(--pale-blue);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Content Blocks --- */
.content-block {
  margin-bottom: 3rem;
}

.content-block:last-child { margin-bottom: 0; }

.content-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.content-block p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* --- About Image --- */
.about-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* --- Insurance Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.insurance-item {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.insurance-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-brand .nav-logo-text {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand .nav-logo-text span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 350px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, var(--light-blue), var(--pale-blue));
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}

/* --- Publication List --- */
.publication {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--light-blue);
}

.publication:last-child { border-bottom: none; }

.publication h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.publication p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content p { margin: 0 auto 2rem; }
  .btn-group { justify-content: center; }
  .hero-image img { width: 320px; height: 400px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--light-blue);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero { padding: 110px 1.5rem 50px; min-height: auto; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 3rem 1.5rem; }
  .page-header { padding: 100px 1.5rem 40px; }
  .page-header h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* --- Map Embed --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* --- Psychology Today Badge --- */
.pt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid #0077B5;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 500;
  color: #0077B5;
  transition: var(--transition);
  margin-top: 1rem;
}

.pt-badge:hover {
  background: #0077B5;
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Telehealth Badge --- */
.telehealth-badge {
  background: linear-gradient(135deg, var(--light-blue), var(--sky));
  color: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
}

.telehealth-badge .icon {
  font-size: 2rem;
}

.telehealth-badge h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.telehealth-badge p {
  font-size: 0.9rem;
  color: var(--text);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.cta-banner .btn-primary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
}
