/* ---------------------------------------------------------------------------
   Dr. Carolina Posada — Bilingual Forensic Neuropsychology LLC
   Static site styles
--------------------------------------------------------------------------- */

:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --teal: #2c7a7b;
  --teal-dark: #225e5f;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: var(--teal-dark);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.brand-name {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--teal-dark);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--teal-dark) 140%);
  color: #fff;
  padding: 5.5rem 0 5rem;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #bcd3e6;
  margin: 0 0 1rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  margin-bottom: 0.5rem;
}

.hero-principal {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 500;
  color: #eaf2f9;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.hero .lede {
  color: #e6eef5;
  max-width: 38em;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.center .section-intro,
.center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* --- Credentials -------------------------------------------------------- */

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.cred-block h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.cred-block ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.cred-block li {
  margin-bottom: 0.6rem;
}

/* --- Service cards ------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.1);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* --- Conditions tag list ------------------------------------------------ */

.conditions {
  margin-top: 3rem;
}

.conditions h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.92rem;
  color: var(--navy);
}

.section-alt .tag-list li {
  background: #fff;
}

/* --- Languages ---------------------------------------------------------- */

#languages .lede {
  margin-bottom: 1.2rem;
}

#languages .lede[lang="es"] {
  color: var(--muted);
  font-size: 1.08rem;
}

/* --- Contact ------------------------------------------------------------ */

.contact-line {
  margin: 1.5rem 0 0.75rem;
}

.contact-email {
  font-size: 1.05rem;
}

.contact-email a {
  color: var(--teal-dark);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  color: #c8d4e0;
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.footer-fine {
  color: #8ea3b8;
  font-size: 0.82rem;
  text-align: center;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .site-nav {
    display: none;
  }

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

  .hero {
    padding: 4rem 0 3.5rem;
  }

  /* The company name is long; shrink it and let it wrap cleanly on phones. */
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    overflow-wrap: break-word;
  }

  .hero-principal {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  /* Keep the header brand from being clipped at the right edge. */
  .brand-name {
    font-size: 0.98rem;
    overflow-wrap: break-word;
  }

  .header-inner {
    gap: 0.5rem;
  }
}
