/*
Theme Name: Paulissen Law v1.7
Description: Custom theme for the Law Office of Walter L. Paulissen, LLC. v1.7 includes the EN/ES toggle, practice-area pages, and the consultation pop-up form. Not a child theme of any parent theme.
Author: Bud Paulissen (migrated by Claude)
Version: 1.7
Text Domain: paulissen-law
*/

/* ==========================================================================
   Everything below is copied verbatim from the original site's <style> block.
   No values have been changed, removed, or "improved."
   ========================================================================== */

  :root {
    --navy: #0f1c34;
    --navy-light: #16294a;
    --gold: #c9a04a;
    --gold-dark: #b3892f;
    --cream: #f4efe6;
    --text-light: #e9e6df;
    --text-muted: #9aa3b5;
    --body-text: #4a4a4a;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--body-text);
    line-height: 1.6;
    background: #fff;
  }
  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--navy);
  }
  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
  }
  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  /* Top bar */
  .topbar {
    background: var(--navy);
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.75rem 0;
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .topbar a { color: var(--text-muted); text-decoration: none; }
  .topbar-links { display: flex; gap: 1.5rem; }

  /* Hero */
  .hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--text-light);
    padding: 4rem 0 5rem;
    text-align: center;
  }
  .hero h1.name {
    font-size: 1.5rem;
    text-align: left;
    color: #fff;
    margin-bottom: 3rem;
  }
  .hero .eyebrow { text-align: center; }
  .hero h2 {
    color: #fff;
    font-size: 2.6rem;
    line-height: 1.25;
    margin: 0 auto 1.5rem;
    max-width: 720px;
  }
  .hero p.sub {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
  }
  .btn-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: opacity 0.15s ease;
  }
  .btn:hover { opacity: 0.85; }
  .btn-gold {
    background: var(--gold);
    color: var(--navy);
  }
  .btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--gold);
  }
  .btn-navy {
    background: var(--navy);
    color: #fff;
  }
  .divider-gold {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 2.5rem auto 0;
  }

  /* Hero variant with a portrait beside the headline (standing portrait, right of text) */
  .hero .container.with-portrait {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    align-items: center;
    text-align: left;
  }
  .hero .container.with-portrait .hero-portrait {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--gold);
  }
  .hero .container.with-portrait h1.name,
  .hero .container.with-portrait .eyebrow,
  .hero .container.with-portrait h2,
  .hero .container.with-portrait p.sub {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .hero .container.with-portrait .btn-row {
    justify-content: flex-start;
  }
  @media (max-width: 800px) {
    .hero .container.with-portrait {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .hero .container.with-portrait h1.name,
    .hero .container.with-portrait .eyebrow,
    .hero .container.with-portrait h2,
    .hero .container.with-portrait p.sub {
      text-align: center;
    }
    .hero .container.with-portrait .btn-row {
      justify-content: center;
    }
  }

  /* Stats */
  .stats {
    background: var(--cream);
    padding: 3.5rem 0;
    border-bottom: 1px solid #e3dbc9;
  }
  .stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
  }
  .stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--navy);
    font-weight: 700;
  }
  .stat .label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-top: 0.3rem;
  }

  /* Practice Areas */
  .practice {
    background: var(--cream);
    padding: 4.5rem 0;
    text-align: center;
  }
  .practice h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }
  .practice > .container > p {
    max-width: 560px;
    margin: 0 auto 3rem;
    color: #6b6b6b;
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
  }
  @media (max-width: 800px) {
    .cards { grid-template-columns: 1fr; }
  }
  .card {
    background: #fff;
    border-top: 4px solid var(--gold);
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 10px rgba(15,28,52,0.06);
  }
  .card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
  .card p { font-size: 0.95rem; color: #666; }

  /* Career history */
  .career {
    background: var(--navy);
    color: var(--text-light);
    padding: 4.5rem 0;
    text-align: center;
  }
  .career h2 { color: #fff; font-size: 2.2rem; margin-bottom: 0.75rem; }
  .career > .container > p.sub {
    color: var(--text-muted);
    margin-bottom: 3rem;
  }
  .timeline {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
  }
  .timeline-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
  }
  .timeline-item:last-child { border-bottom: none; }
  .timeline-item .years {
    color: var(--gold);
    font-weight: 600;
    min-width: 130px;
    flex-shrink: 0;
  }
  .timeline-item .role { color: #fff; font-weight: 600; }
  .timeline-item .place { color: var(--text-muted); font-size: 0.9rem; }

  /* About */
  .about {
    padding: 4.5rem 0;
    background: #fff;
  }
  .about .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
  }
  /* Reversed variant: portrait on the right of the text instead of the left */
  .about .container.portrait-right {
    grid-template-columns: 1fr 320px;
  }
  @media (max-width: 800px) {
    .about .container { grid-template-columns: 1fr; }
  }
  .portrait {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: var(--navy);
  }
  .portrait-placeholder {
    background: var(--navy);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .credentials-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
  @media (max-width: 800px) {
    .credentials-row { grid-template-columns: 1fr; }
  }
  .credentials-box {
    background: var(--cream);
    border-top: 4px solid var(--gold);
    padding: 1.75rem 1.5rem;
  }
  .credentials-box h4 {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    margin-bottom: 0.6rem;
  }
  .credentials-box h4:not(:first-child) {
    margin-top: 1.5rem;
  }
  .credentials-box ul {
    list-style: none;
    padding: 0;
  }
  .credentials-box li {
    font-size: 0.9rem;
    color: var(--body-text);
    padding: 0.35rem 0;
    border-bottom: 1px solid #e3dbc9;
  }
  .credentials-box li:last-child {
    border-bottom: none;
  }
  .about h2 { font-size: 2rem; margin-bottom: 1.25rem; }
  .about p { margin-bottom: 1.25rem; }

  /* CTA band */
  .cta {
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 3.5rem 0;
  }
  .cta h2 { color: var(--navy); font-size: 2rem; margin-bottom: 1rem; }
  .cta p { max-width: 560px; margin: 0 auto 2rem; }

  /* Contact */
  .contact {
    background: var(--cream);
    text-align: center;
    padding: 4rem 0;
  }
  .contact h2 { font-size: 2rem; margin-bottom: 0.75rem; }
  .contact p.sub { color: #6b6b6b; margin-bottom: 1.5rem; }
  .contact a.email {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
  }
  .contact .phone {
    margin-top: 0.5rem;
  }
  .contact .phone a {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
  }

  /* Footer */
  footer {
    background: var(--navy);
    color: var(--text-muted);
    padding: 2.5rem 0;
    font-size: 0.85rem;
  }
  footer .firm-line {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  footer hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 1.5rem 0;
  }
  footer .disclaimer {
    font-size: 0.78rem;
    color: #7c8399;
    max-width: 900px;
  }

/* ==========================================================================
   Minor additions needed only for WordPress plumbing (do not affect the
   visual design). These make room for the admin toolbar when logged in
   and keep default WP image/gallery markup from looking broken if anyone
   adds it later via the block editor.
   ========================================================================== */
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ==========================================================================
   v1.5 additions: language toggle, practice-area pages, consultation pop-up.
   ========================================================================== */

/* ----- Language toggle ----- */
html:not(.is-es) .lang-es { display: none; }
html.is-es .lang-en { display: none; }

.topbar-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lang-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang-btn {
  background: none;
  border: 0;
  padding: 0.15rem 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-sep { color: var(--text-muted); opacity: 0.6; }

/* ----- Practice cards: link, and a lone last card spans the row ----- */
/* A lone last card stays the same size as the others and is centered
   under the two columns (desktop); on phones it is simply full width. */
@media (min-width: 801px) {
  .cards .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.75rem);
    justify-self: center;
  }
}
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.card-link:hover { color: var(--navy); }

/* ----- Practice-area pages ----- */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--text-light);
  padding: 3rem 0 4rem;
}
.page-hero .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.page-hero .back-link:hover { color: var(--gold); }
.page-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 1.25rem;
}
.page-hero p.sub {
  max-width: 680px;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.practice-body { background: #fff; padding: 4rem 0 3rem; }
.practice-body .container { max-width: 760px; }
.practice-section { margin-bottom: 2.75rem; }
.practice-section h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.practice-section p { margin-bottom: 1.1rem; }
.practice-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.practice-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid #e3dbc9;
}
.practice-list li:last-child { border-bottom: none; }
.practice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
}
@media (max-width: 800px) {
  .page-hero h1 { font-size: 1.9rem; }
}

/* ----- Consultation pop-up ----- */
body.modal-open { overflow: hidden; }
.consult-dialog {
  border: 0;
  padding: 0;
  width: min(640px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  background: var(--cream);
  color: var(--body-text);
  border-top: 5px solid var(--gold);
  box-shadow: 0 20px 60px rgba(15, 28, 52, 0.45);
  overflow: auto;
}
.consult-dialog::backdrop { background: rgba(15, 28, 52, 0.72); }
.consult-dialog [hidden] { display: none !important; }
.consult-inner { position: relative; padding: 2.25rem 2rem 2rem; }
.consult-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.consult-close:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.consult-dialog h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.consult-intro { font-size: 0.95rem; color: #5b5b5b; margin-bottom: 1.5rem; }

.consult-dialog form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.consult-dialog .req { color: var(--gold-dark); }
.consult-dialog input[type="text"],
.consult-dialog input[type="tel"],
.consult-dialog input[type="email"],
.consult-dialog select,
.consult-dialog textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfc6b0;
  border-radius: 2px;
  background: #fff;
  color: var(--body-text);
}
.consult-dialog input:focus,
.consult-dialog select:focus,
.consult-dialog textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold-dark);
}
.consult-dialog textarea { resize: vertical; }
.form-row { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .consult-inner { padding: 2rem 1.25rem 1.5rem; }
}
.form-hint { font-size: 0.8rem; color: #7a7a7a; margin: -0.4rem 0 1rem; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }
.form-consent label { font-weight: 400; letter-spacing: 0; font-size: 0.85rem; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consult-status { min-height: 1.4rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.consult-status.is-error { color: #9b1c1c; font-weight: 600; }
.consult-status.is-info { color: var(--navy); }
.form-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; }
.form-urgent { font-size: 0.9rem; }
.form-urgent a { color: var(--navy); font-weight: 600; }
.consult-done { text-align: center; padding: 1rem 0; }
.consult-done p { margin: 0.75rem 0 1.5rem; }

.page-hero .btn-row { justify-content: flex-start; }
