/* =========================================================
   Antonia Estrada College Counseling — site styles
   v1 — neutral professional palette, typography-led design
   ========================================================= */

/* -------- Tokens -------- */
:root {
  --bg:           #FAF8F4;     /* warm cream */
  --bg-alt:       #F2EEE6;     /* deeper cream for section variation */
  --bg-dark:      #1B2638;     /* deep navy for closing CTA section */
  --text:         #1F2937;     /* charcoal body */
  --text-muted:   #6B7280;     /* secondary text */
  --heading:      #111827;     /* near-black headings */
  --accent:       #1E3A5F;     /* deep navy accent */
  --accent-hover: #2C4E7E;
  --accent-soft:  #E8EEF5;     /* soft tint of accent */
  --border:       #E5E0D7;     /* warm light border */
  --on-dark:      #F5F1EA;     /* text on dark backgrounds */
  --max-w:        1120px;
  --max-w-text:   680px;
  --radius:       6px;
  --space-1:      0.5rem;
  --space-2:      1rem;
  --space-3:      1.5rem;
  --space-4:      2rem;
  --space-5:      3rem;
  --space-6:      4.5rem;
  --space-7:      6rem;
}

/* -------- Reset + base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  color: var(--heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; color: var(--heading); }

p { margin: 0 0 var(--space-3); }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
a:hover { color: var(--accent-hover); border-bottom-color: currentColor; }

ul { margin: 0 0 var(--space-3); padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* -------- Layout helpers -------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3); }
.container-text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark a { color: var(--on-dark); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.lead { font-size: 1.2rem; color: var(--text); line-height: 1.55; }
.post-date { font-size: 0.85rem; color: var(--text-muted); margin-top: -0.75rem; }

/* -------- Header / nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-3);
}
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--heading);
  border: 0;
  letter-spacing: 0;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.brand:hover { color: var(--heading); border: 0; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav a {
  font-size: 0.95rem;
  color: var(--text);
  border: 0;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 600; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-left: var(--space-2);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-toggle:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--heading);
}
.nav-toggle svg { display: block; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-of-type { border-bottom: 0; }
  .lang-toggle { margin: var(--space-2) 0 0; align-self: flex-start; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); border-color: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent); }
.section-dark .btn-primary { background: var(--on-dark); color: var(--bg-dark); border-color: var(--on-dark); }
.section-dark .btn-primary:hover { background: #fff; color: var(--bg-dark); }
.section-dark .btn-secondary { color: var(--on-dark); border-color: var(--on-dark); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* -------- Hero -------- */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
}
.hero h1 { margin-bottom: var(--space-3); max-width: 18ch; }
.hero .lead { max-width: 56ch; }

/* -------- Three pillars -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.pillar h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--heading);
  margin-bottom: var(--space-2);
}
.pillar p { color: var(--text); margin-bottom: 0; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* -------- Credentials panel -------- */
.credentials-panel {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.credentials-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.credentials-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.credentials-panel ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.credentials-panel li {
  font-size: 0.95rem;
  color: var(--heading);
  padding: 0.45em 0;
  border-bottom: 1px solid var(--border);
}
.credentials-panel li:last-child { border-bottom: none; }
.credentials-panel em { color: var(--text-muted); font-style: normal; }
@media (max-width: 700px) {
  .credentials-cols { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* -------- Cards (services teaser) -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: #fff; }
.card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  color: var(--heading);
}
.card p { color: var(--text); flex-grow: 1; }
.card .card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  border: 0;
}
.card .card-link:hover { color: var(--accent-hover); }
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}

/* -------- About teaser (two col) -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  align-items: center;
}
.two-col .portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-alt), #E0D6C4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-3); }
  .two-col .portrait-placeholder { aspect-ratio: 3 / 2; }
}

/* -------- About page layout -------- */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.about-grid .portrait-placeholder { aspect-ratio: 4 / 5; }
.about-grid .credentials-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.about-grid .credentials-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.about-grid .credentials-card ul { padding-left: 1em; margin-bottom: 0; }
.about-grid .credentials-card li { font-size: 0.92rem; }
.about-grid .credentials-card li.credential-highlight {
  list-style: none;
  margin-left: -1em;
  padding: 0.3em 0.5em;
  margin-bottom: 0.6em;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* -------- Services page layout -------- */
.service-block {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { margin-bottom: var(--space-2); }
.service-block .service-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
  font-size: 0.97rem;
}
.service-block .service-meta dt {
  font-weight: 600;
  color: var(--heading);
}
.service-block .service-meta dd { margin: 0; color: var(--text); }
.service-block .service-meta dd ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 600px) {
  .service-block .service-meta { grid-template-columns: 1fr; gap: 0.25rem; }
  .service-block .service-meta dt { margin-top: var(--space-2); }
}

/* -------- Process timeline -------- */
.timeline { margin-top: var(--space-4); }
.timeline-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.timeline-step:first-of-type { border-top: 0; padding-top: var(--space-3); }
.timeline-step .step-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
}
.timeline-step .step-when {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.timeline-step h3 { margin-bottom: var(--space-2); }
@media (max-width: 600px) {
  .timeline-step { grid-template-columns: 1fr; gap: var(--space-2); }
  .timeline-step .step-num { font-size: 1.8rem; }
}

/* -------- Contact form -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.contact-form { display: grid; gap: var(--space-3); }
.contact-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.contact-form button { justify-self: start; margin-top: var(--space-1); }

.contact-side {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.contact-side h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; }
.contact-side ol { padding-left: 1.2em; }
.contact-side ol li { margin-bottom: 0.6em; }

.form-confirmation {
  display: none;
  padding: var(--space-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 500;
}
.form-confirmation.visible { display: block; }

/* -------- Closing CTA section -------- */
.closing-cta {
  text-align: center;
  padding: var(--space-7) var(--space-3);
}
.closing-cta h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.closing-cta p { color: var(--on-dark); max-width: 46ch; margin: 0 auto var(--space-3); }

/* -------- Footer -------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-4);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}
.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.site-footer a { color: var(--text); border: 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.4em; }
.site-footer .legal {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
}

/* -------- Page hero (interior pages) -------- */
.page-hero { padding: var(--space-6) 0 var(--space-5); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 56ch; }

/* -------- Utilities -------- */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* -------- Blog index -------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.section-alt .blog-card { background: #fff; }
.blog-card .blog-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.blog-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}
.blog-card p { font-size: 0.95rem; color: var(--text); margin: 0; flex-grow: 1; }
.blog-card .card-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  border: 0;
  margin-top: auto;
  padding-top: var(--space-2);
}
.blog-card .card-link:hover { color: var(--accent-hover); }

/* -------- Blog post page -------- */
.post-body {
  padding: var(--space-5) 0 var(--space-7);
}
.post-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.post-body h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.post-body p { max-width: 66ch; }
.post-body ul { max-width: 64ch; }
.post-body strong { color: var(--heading); }

/* -------- FAQ page -------- */
.faq-group { margin-bottom: var(--space-5); }
.faq-group h2 { margin-bottom: var(--space-3); }
details.faq-item { border-bottom: 1px solid var(--border); }
details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--text-muted);
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer { padding-bottom: var(--space-3); color: var(--text-secondary); }
details.faq-item .faq-answer p { margin-bottom: 0.5rem; }
