/* Ensure padding and borders are included in element width */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --vi-1: #1b3940; /* Deep Teal */
  --vi-2: #132326; /* Midnight */
  --vi-3: #59453e; /* Brown‑Gray */
  --vi-4: #a68d85; /* Taupe */
  --vi-5: #d9c6bf; /* Shell */
  --vi-gold: #bd9e07; /* accent line */
  --vi-nav: #1c1f19; /* navigation bar */
  --vi-gray: #f4f4f4; /* utility gray */
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--vi-2);
  line-height: 1.6;
  background: #fff;
}

a {
  color: var(--vi-1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--vi-2);
}

/* Background helpers */
.bg-white {
  background: #fff;
  color: var(--vi-2);
}
.bg-gray {
  background: var(--vi-gray);
  color: var(--vi-2);
}
.bg-midnight {
  background: var(--vi-2);
  color: #fff;
}

.bg-midnight a {
  color: #fff;
  text-decoration: underline;
}

.bg-midnight a:hover {
  color: var(--vi-5);
}

.styled-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.styled-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--vi-gold);
}

.styled-list li:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--vi-5);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #fff;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.intro-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.intro-text h2 {
  margin-bottom: 0.5rem;
}

.intro-text p {
  margin: 0;
}

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

.form-submit {
  display: block;
  width: 100%;
  margin: 0;
  margin: 0;
  margin: 0;
  margin-top: 1rem;
}

.confidential-note {
  display: block;
  margin-top: 0.5rem;
  color: var(--vi-5);
  font-size: 0.875rem;
}

.map {
  margin-top: 1rem;
}
.map iframe {
  width: 100%;
  margin: 0;
  border: 0;
  height: 250px;
  border-radius: 4px;
}

/* Header */
.site-header {
  background: var(--vi-nav);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--vi-gold);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0;
  margin: 0;
  margin: 0;
}
.site-header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  font-family: "Open Sans", Arial, sans-serif;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.site-header .header-pay-link {
  margin-right: 0.5rem;
}
.site-header nav .dropdown {
  position: relative;
  display: inline-block;
}
.site-header nav .dropdown-content {
  display: none;
  position: absolute;
  background: var(--vi-nav);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1;
}
.site-header nav .dropdown-content a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 0;
  padding: 0.5rem 1rem;
}
.site-header nav .dropdown:hover .dropdown-content {
  display: block;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  width: auto;
}
.logo-text {
  color: #fff;
  margin-left: 0.5rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .logo-link img {
    height: 48px;
  }
}
@media (min-width: 768px) {
  .logo-link img {
    height: 60px;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  background: url("https://imagedelivery.net/MqlML99ManDWvfuYMb9PmQ/7281805b-ff6f-4d66-ade8-d8c4bcc2d500/public")
    center/cover no-repeat;
  background-position: top center;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}
.hero.hero-about::before {
  content: none;
}
.hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  font-weight: 400;
  color: #c8b27f;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: #fff;
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-about {
  background: var(
    --vi-1
  ) !important; /* Deep Teal background, overrides any image */
}
.hero-personal {
  background: var(--vi-2);
}
.hero-business {
  background: var(--vi-3);
}
.hero-testimonials {
  background: var(--vi-1);
}
.hero-faq {
  background: var(--vi-2);
}
.hero-contact {
  background: var(--vi-3);
}
.hero-pay {
  background: var(--vi-1);
}
.hero-ready {
  background: var(--vi-2);
}

.hero.hero-about,
.hero.hero-personal,
.hero.hero-business,
.hero.hero-testimonials,
.hero.hero-faq,
.hero.hero-contact,
.hero.hero-pay,
.hero.hero-ready {
  height: 45vh;
  min-height: 300px;
}

/* Section base */
section {
  padding: 4rem 2rem;
}

section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 0 1.25rem;
}

@media (min-width: 992px) {
  .hero {
    height: 70vh;
    background-position: top center;
  }
}

h2 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  margin-top: 0;
  font-size: 2rem;
  color: var(--vi-1);
  text-align: center;
}

.services {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: var(--vi-2);
}
.service-card h3 {
  margin-top: 0;
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  color: var(--vi-1);
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  color: var(--vi-2);
}

/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  height: auto;
  margin: 0;
  max-width: 240px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.about-text {
  text-align: left;
}
.about-heading {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  color: var(--vi-1);
  margin-top: 0;
}
.name-highlight {
  font-weight: 700;
}
@media (min-width: 768px) {
  .about-wrapper {
    grid-template-columns: 240px 1fr;
  }
}

.personal-statement .more-text {
  display: none;
}
.personal-statement .more-text.open {
  display: block;
}
.read-more {
  background: none;
  border: none;
  color: var(--vi-1);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.pull-quote {
  margin: 1rem 0;
}
.accomplishments {
  margin-top: 1rem;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.fade-in.in-view {
  opacity: 1;
  transform: none;
}
.contact-card {
  background: var(--vi-gray);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--vi-gold);
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.office-details {
  margin: 0.5rem 0;
}

.office-details summary {
  font-family: "Merriweather", serif;
  color: var(--vi-1);
  font-size: 1rem;
  cursor: pointer;
}
.contact-details p {
  margin: 0.5rem 0 0;
}
.contact-details a + a {
  margin-left: 0.5rem;
}
@media (min-width: 600px) {
  .office-details {
    margin: 0.5rem 0;
  }
}

#contact-info .section-title {
  position: relative;
  padding-bottom: 0.5rem;
}

#contact-info .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--vi-gold);
}

.info-section {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 2rem 1.25rem;
}

.cotton-paper {
  background-color: #fdfcf9;
  border: 1px solid #e5e2d6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.summary-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.summary-main {
  flex: 2 1 300px;
}

.summary-sidebar {
  flex: 1 1 200px;
}

.summary-sidebar h3 {
  margin-top: 0;
  font-family: "Merriweather", serif;
  color: var(--vi-1);
}

.accordion {
  margin-top: 1rem;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
}

.request-consult {
  margin-top: 1rem;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--vi-gray);
  max-width: 1100px;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .summary-content {
    flex-direction: column;
  }
}

.experience .job {
  margin-bottom: 1.5rem;
}

.experience .job h4 {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", serif;
  color: var(--vi-1);
}

.experience .job p {
  margin: 0.25rem 0;
}

/* Testimonials */
.testimonials {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.more-link {
  text-align: center;
  grid-column: 1 / -1;
}
.more-link a {
  color: var(--vi-1);
  text-decoration: underline;
}
blockquote {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.75rem 1.5rem 3rem;
  background: var(--vi-1);
  border-left: 4px solid var(--vi-gold);
  font-style: italic;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  font-size: 2rem;
  color: var(--vi-gold);
  font-family: "Merriweather", serif;
}
blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--vi-5);
}

/* CTA */
.cta {
  text-align: center;
}
.btn {
  display: inline-block;
  background: var(--vi-1);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--vi-2);
}

.btn-secondary {
  background: var(--vi-3);
}

.btn-secondary:hover {
  background: var(--vi-2);
}

#menu-toggle {
  display: none;
}

.mobile-only {
  display: none;
}

/* Pay Online link adjustments */
.header-pay-link {
  margin-left: 1rem;
  margin-top: 0;
  padding: 0.5rem 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-grid label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-grid input,
.contact-grid textarea {
  width: 100%;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--vi-4);
  border-radius: 4px;
  font-family: inherit;
}
.contact-grid textarea {
  min-height: 120px;
}

/* Footer */
footer {
  background: #1c2a24;
  color: #fff;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0;
}
footer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-header nav {
    display: none;
  }
  .site-header nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--vi-nav);
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding: 4rem 1rem 1rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .site-header nav a {
    flex: 0 0 calc(50% - 2rem);
    margin: 0.5rem;
    padding: 1rem;
    background: none;
    border: 1px solid var(--vi-gold);
    border-radius: 8px;
    text-align: center;
  }
  .site-header nav a::before {
    content: attr(data-icon);
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .site-header nav.open a {
    flex: 0 0 calc(50% - 1rem);
    margin: 0.25rem;
    padding: 0.5rem;
  }
  .site-header nav.open a::before {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  .site-header nav a.header-pay-link {
    background: var(--vi-gold);
    color: #000;
  }
  .site-header nav .dropdown,
  .site-header nav .dropdown-content {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  #menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list details {
  border-bottom: 1px solid var(--vi-4);
  padding: 1rem 0;
}
.faq-list details:last-of-type {
  border-bottom: none;
}
.faq-list summary {
  font-family: "Merriweather", serif;
  font-weight: 600;
  color: var(--vi-1);
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--vi-gold);
}
.faq-list details[open] summary::after {
  content: "-";
}
.faq-list p {
  margin: 0.5rem 0 0;
}
.testimonial-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* === Enhancements added === */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--vi-gold);
  color: #000;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-links a {
  color: var(--vi-5);
  text-decoration: underline;
  font-weight: 600;
}

.desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .hero-actions.desktop-only,
  .hero-links.desktop-only {
    display: flex;
  }
}

.mobile-hero-links {
  display: none;
  background: var(--vi-nav);
  padding: 1rem;
  color: #fff;
}
.mobile-hero-links .hero-actions,
.mobile-hero-links .hero-links {
  justify-content: center;
}
.mobile-hero-links .hero-links a {
  color: #fff;
  text-decoration: underline;
  width: 100%;
  text-align: center;
  display: block;
}
@media (max-width: 767px) {
  .mobile-hero-links {
    display: block;
  }
  .mobile-hero-links .hero-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.section-title-left {
  text-align: left;
  margin: 0 0 0.5rem 0;
}

.contact-section {
  background: #193740;
  color: #fff;
  margin-top: -1rem;
}
.contact-section a {
  color: #fff;
  text-decoration: underline;
}
.contact-subtitle {
  color: var(--vi-1);
  margin-top: 0;
}

.attorney-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  max-width: 900px;
  margin: 1rem 0;
}
.attorney-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.attorney-card__content h3 {
  margin: 0 0 0.5rem;
}

.compliance-note {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  color: var(--vi-5);
  font-size: 0.875rem;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem;
  background: var(--vi-1);
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}
.mobile-cta a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1rem;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-item {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--vi-gold);
}
.timeline-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.timeline-item summary::-webkit-details-marker {
  display: none;
}
.timeline-item .company {
  color: var(--vi-1);
}
.timeline-item .dates {
  float: right;
  color: var(--vi-5);
  font-size: 0.875rem;
}

.section-divider.full-width {
  width: 100%;
}

#education .styled-list li {
  border-left: none;
  padding-left: 0;
}
#education .styled-list {
  margin-left: 0;
  padding-left: 0;
}

.bg-dark-gray {
  background: #333;
  color: #fff;
}
.bg-dark-gray a {
  color: #fff;
  text-decoration: underline;
}

.admissions-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .admissions-grid {
    grid-template-columns: 1fr 1fr;
  }
}
#admissions .admissions-list {
  column-count: 1;
}

#licenses .license-list {
  border: none;
}
.timeline-item p + p {
  text-indent: 1rem;
}
.timeline-item ul {
  margin-top: 0.5rem;
}

a.back-to-top {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-size: 0.875rem;
}

.section-divider {
  border: 0;
  height: 2px;
  background: var(--vi-gold);
  width: 80%;
  margin: 2rem auto;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.education-grid li {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem;
}
.courses summary {
  cursor: pointer;
  font-weight: 600;
}

.admissions-list {
  column-count: 2;
  column-gap: 1rem;
}
.admissions-list li {
  break-inside: avoid;
  padding: 0.25rem 0;
}

.license-list {
  border: 1px solid var(--vi-4);
  padding: 1rem;
}
.license-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.license-list li {
  padding: 0.5rem;
}
.license-list li:nth-child(even) {
  background: var(--vi-gray);
}
.license-type {
  margin-top: 1rem;
  font-weight: 600;
}

.section-title {
  transition: color 0.3s;
}
.section-title:hover {
  color: var(--vi-gold);
}

.why-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

#back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--vi-gold);
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  display: none;
}
#back-to-top.show {
  display: block;
}

/* ===== Contact band, full-width teal ===== */
.contact-band {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  isolation: isolate;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* full-bleed */
  background: linear-gradient(180deg, #14383d, #102b2f); /* teal */
  background-color: #132326; /* fallback */
  z-index: -1;
}

/* ===== Modern contact card ===== */
.contact-card--modern {
  --ink: #132326;
  --muted: #5b6d72;
  --ring: rgba(19, 35, 38, 0.1);
  --gold: #d4b253;

  position: relative;
  margin: clamp(1.25rem, 3vw, 2.5rem) auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 18px;
  box-shadow:
    0 14px 40px rgba(16, 43, 47, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* header */
.contact-card__head {
  margin-bottom: 0.75rem;
}
.contact-card--modern .contact-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* grid layout */
.contact-card__grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
@media (min-width: 900px) {
  .contact-card__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* sections inside card */
.contact-block {
  background: linear-gradient(
    180deg,
    rgba(16, 43, 47, 0.03),
    rgba(16, 43, 47, 0)
  );
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: clamp(0.75rem, 2vw, 1rem);
}
.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* accordions */
.office-details {
  border-radius: 12px;
  overflow: hidden;
}
.office-details + .office-details {
  margin-top: 0.5rem;
}

.office-details summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 2.25rem 0.75rem 0.9rem;
  background: #f7f8f9;
  border: 1px solid var(--ring);
  border-radius: 12px;
  font-weight: 600;
}
.office-details[open] summary {
  background: #f2f4f5;
}
.office-details summary::-webkit-details-marker {
  display: none;
}
.office-details summary::after {
  content: "+";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}
.office-details[open] summary::after {
  content: "−";
} /* true minus sign */

.office-details p {
  margin: 0;
  padding: 0.75rem 0.9rem 1rem;
  color: var(--muted);
  line-height: 1.45;
  border: 1px solid var(--ring);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

/* contact methods */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(19, 35, 38, 0.12);
}
.contact-list li:last-child {
  border-bottom: 0;
}
.contact-list span {
  color: var(--muted);
}
.contact-list a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* actions */
.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.contact-actions .btn {
  background: var(--gold);
  color: #1a1a1a;
  border: none;
}
.contact-actions .download-vcard {
  align-self: center;
  color: var(--ink);
}

/* bird watermark */
.contact-card__bird {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  width: clamp(140px, 22vw, 260px);
  height: auto;
  opacity: 0.14;
  filter: saturate(95%) contrast(95%);
  pointer-events: none;
  user-select: none;
}

/* small screens */
@media (max-width: 640px) {
  .contact-card__bird {
    display: none;
  }
}

/* tighten the built-in section title here only */
#contact-info .section-title {
  margin-bottom: 0.25rem;
}

/* ===== Mobile quick subnav for About ===== */
#about-subnav {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(19, 35, 38, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(120%) blur(6px);
  /* soft edge fades */
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 12px,
    #000 calc(100% - 12px),
    transparent 100%
  );
}
#about-subnav::-webkit-scrollbar {
  display: none;
}

#about-subnav .subnav-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #132326;
  border: 1px solid rgba(19, 35, 38, 0.18);
}
#about-subnav .subnav-chip:hover {
  background: #f6f8f9;
}
#about-subnav .subnav-chip[aria-current="page"] {
  background: #14383d; /* site teal */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(20, 56, 61, 0.25);
}

/* Show only on mobile */
@media (min-width: 900px) {
  #about-subnav {
    display: none;
  }
}

/* Desktop toolbar layout, with tiny ghosted logo on the left */
.about-toolbar {
  position: sticky;
  top: 0; /* adjust if your site header is sticky with a custom height */
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(19, 35, 38, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.about-toolbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: auto auto 1fr; /* logo, CTA, chips */
  gap: 1rem;
  align-items: center;
}

/* tiny bird */
.toolbar-logo {
  width: clamp(28px, 2.6vw, 44px);
  height: auto;
  opacity: 0.38;
  filter: grayscale(1) contrast(90%) brightness(105%);
  user-select: none;
  pointer-events: none;
}

/* CTA stays compact */
.toolbar-cta {
  white-space: nowrap;
}

/* Chip nav matches mobile pills, tuned for desktop */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.25rem;
}
.subnav-chip {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #f4f6f7;
  color: #132326;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.subnav-chip:hover {
  background: #e8eef0;
}
.subnav-chip[aria-current="page"] {
  background: #1b3b42; /* site teal family */
  color: #fff;
}

/* Single line compression on wide screens */
@media (min-width: 1200px) {
  .chip-nav {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  .subnav-chip {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.92rem;
  }
  .about-toolbar__inner {
    gap: 0.75rem;
  }
}
@media (min-width: 1440px) {
  /* relax spacing again when there is room */
  .chip-nav {
    gap: 0.5rem;
  }
  .subnav-chip {
    height: 2.1rem;
    padding: 0 0.8rem;
    font-size: 0.94rem;
  }
}

/* Keep desktop items off on small screens */
.desktop-only {
  display: none;
}
@media (min-width: 992px) {
  .desktop-only {
    display: block;
  }
}

/* About toolbar, no CTA version */
.about-toolbar__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr; /* logo, chips */
  gap: .75rem 1rem;
  align-items: center;
}

/* Keep chips tidy when very wide */
@media (min-width: 1200px){
  .chip-nav { flex-wrap: nowrap; gap: .45rem; }
  .subnav-chip { height: 2rem; padding: 0 .75rem; font-size: .92rem; }
}

/* Education, premium cards */
.edu-grid{
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .edu-grid{ grid-template-columns: 1fr 1fr; }
}
.edu-card{
  background: #fff;
  border: 1px solid rgba(19,35,38,.12);
  border-radius: 14px;
  padding: clamp(.9rem, 2.2vw, 1.25rem);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.edu-card h3{
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
}

/* Remove the old CV button space if any rules targeted it */
#education .btn[download]{ display: none; }

/* Admissions uses home page card system, tighten the grid a touch on desktop */
.services--tight{
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}
.services--tight .service-card{
  padding: clamp(.9rem, 2.2vw, 1.25rem);
}

/* Desktop breathing room, increase rhythm where things felt cramped */
#about .about-wrapper,
#summary .summary-content,
.experience-wrapper .info-section,
#education,
#admissions,
#licenses,
#approach{
  --pad-y: clamp(2.25rem, 4vw, 4rem);
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}
.info-section,
section.bg-white,
section.bg-gray{ 
  /* ensure consistent max width and center */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Readability tweaks */
.info-section p,
.timeline p{ line-height: 1.65; }
.styled-list li{ margin: .35rem 0; }

/* Timeline spacing */
.timeline{ gap: 1rem; }
.timeline-item summary{
  padding: .65rem .9rem;
  border-radius: 10px;
}
.timeline-item > p{ margin: .5rem 0 0; }

/* Make the hero breathe a bit more under the title */
.hero.hero-about .hero-content p{ max-width: 720px; }

/* If your Admissions old dark box remains elsewhere, neutralize it on this page */
#admissions.bg-dark-gray{ background: transparent; }
#thank-you {
  display: none;
}
