/* ============================================================
   KANCELARIA ADWOKACKA DR AGNIESZKA RYBAK-STARCZAK
   Main Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy:        #1a2940;
  --navy-dark:   #111d30;
  --navy-light:  #263a56;
  --gold:        #c9a84c;
  --gold-light:  #d4b86a;
  --gold-dark:   #b8976a;
  --white:       #ffffff;
  --off-white:   #f5f5f5;
  --text:        #333333;
  --text-muted:  #777777;
  --border:      #dddddd;

  --font-head:   'Raleway', 'Raleway Fallback', system-ui, sans-serif;
  --font-body:   'Lato', 'Lato Fallback', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);

  --transition:  .25s ease;
  --container:   1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }
textarea { resize: vertical; }

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* --- Typography helpers --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-label--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: .75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-title { color: var(--white); }
.section-header .divider { margin-inline: auto; }
.section-header .section-desc { margin-inline: auto; color: rgba(255,255,255,.7); }

.divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform var(--transition), opacity var(--transition);
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.4);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm { padding: .55rem 1.25rem; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: .15s; }
.reveal--delay-2 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding-block: 1.25rem;
}
.site-header.is-scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding-block: .75rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fff url(../logo.svg) center / contain no-repeat;
  width: clamp(324px, 32.4vw, 432px);
  aspect-ratio: 318 / 120; /* logo.svg viewBox dimensions */
  text-decoration: none;
  flex-shrink: 0;
  transition: width var(--transition), opacity var(--transition), margin var(--transition);
}
.site-header.is-scrolled .nav-logo {
  display: none;
}
.site-header.is-scrolled .nav-inner {
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: gap var(--transition);
}
.site-header.is-scrolled .nav-links {
  gap: .5rem;
}
.nav-links a {
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-links a:focus-visible { outline: 2px solid var(--gold); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem !important;
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  color: var(--navy-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav__phone { color: var(--gold) !important; }
.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
  padding: .5rem;
  line-height: 1;
}
.mobile-nav__close:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 12rem 4rem;
}

.hero__bg-icon {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 55vw);
  height: auto;
  pointer-events: none;
  opacity: .12;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.hero__title-accent {
  color: var(--gold);
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stat { display: flex; flex-direction: column; gap: .2rem; }
.hero__stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about__text p { color: var(--text-muted); margin-bottom: 1rem; }
.about__text strong { color: var(--text); }

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.about__highlight-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
}
.about__highlight-icon svg { width: 18px; height: 18px; }
.about__highlight > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.about__highlight strong { font-size: .9rem; color: var(--navy); }
.about__highlight span  { font-size: .8rem; color: var(--text-muted); }

/* Profile card */
.profile-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.profile-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 3px solid var(--gold);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
}
.profile-card__avatar svg { width: 56px; height: 56px; }

.profile-card__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .25rem;
}
.profile-card__title {
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}
.profile-card__divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}

.profile-card__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.profile-card__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .87rem;
  color: rgba(255,255,255,.8);
  line-height: 1.4;
}
.profile-card__list li svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: .1rem;
  color: var(--gold);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--navy);
}
.services .section-title { color: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), opacity var(--transition);
  contain: layout style;
}
.service-card:hover {
  transform: translateY(-4px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .65rem;
}
.service-card__desc {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--navy-dark);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.why-us__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
}
.why-us__item svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.why-us__item strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.why-us__item span {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--off-white);
}
.contact .section-title { color: var(--navy); }
.contact .section-header .section-title { color: var(--navy); }
.contact .section-header .section-desc { color: var(--text-muted); }
.contact .section-label { color: var(--gold-dark); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact__detail-icon svg { width: 20px; height: 20px; }
.contact__detail-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.contact__detail-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}
.contact__detail-value a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.contact__detail-value a:hover { color: var(--gold-dark); }

.contact__hours {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  line-height: 1.6;
}
.contact__hours-title {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.contact__hours strong { color: var(--white); }
.contact__hours-table {
  border-collapse: collapse;
  width: 100%;
}
.contact__hours-table td {
  padding: .15rem .75rem .15rem 0;
  vertical-align: top;
  white-space: nowrap;
}
.contact__hours-table td:last-child {
  padding-right: 0;
}

/* Map */
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  height: 380px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(.2) brightness(1.05) contrast(.95);
}

/* Form */
#contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact__form-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.form-group label span { color: var(--gold-dark); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,41,64,.1);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #e53e3e;
}

.field-error {
  font-size: .8rem;
  color: #e53e3e;
  min-height: 1em;
}

.form-check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: .15rem;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-check label {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.form-status.success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}
.form-status.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .15rem;
}
.footer__brand-sub {
  display: block;
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__brand-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .6rem;
}
.footer__contact-item svg { width: 14px; height: 14px; min-width: 14px; margin-top: .15rem; fill: var(--gold); }
.footer__contact-item a { color: inherit; transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--gold); }

.footer__col-title {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
}
.footer__links a:hover { color: var(--gold); padding-left: 4px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.6); }

.footer__bottom nav { display: flex; gap: 1.5rem; }
.footer__bottom nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer__bottom nav a:hover { color: var(--gold); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-top:hover { background: var(--gold-light); transform: translateY(-2px); }
.back-top svg { width: 20px; height: 20px; }

/* ============================================================
   BIOGRAM MODAL
   ============================================================ */
.biogram-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.biogram-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.biogram-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.biogram-modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.biogram-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.biogram-modal__close:hover { color: var(--text); }
.biogram-modal__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .25rem;
}
.biogram-modal__subtitle {
  font-size: .9rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.biogram-modal__divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.biogram-modal__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.biogram-modal__text em {
  font-style: italic;
}
.biogram-modal__text h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.biogram-modal__text ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.biogram-modal__text li {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.profile-card__name-btn {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.profile-card__name-btn:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 480px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-logo {
    width: clamp(216px, 48vw, 324px);
  }

  .hero { padding-block: 10rem 4rem; }

  .hero__bg-icon { display: none; }

  .about__highlights { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.25rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr 1fr; }

  #contact-form { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--navy-dark);
    color: rgba(255,255,255,.85);
  }

  /* Logo uses white background rectangle — no override needed */

  /* Typography helpers */
  .section-title { color: var(--white); }
  .section-desc { color: rgba(255,255,255,.65); }
  .section-label { color: var(--gold); }

  /* About */
  .about {
    background: var(--navy-dark);
  }
  .about__text p { color: rgba(255,255,255,.7); }
  .about__text strong { color: var(--white); }
  .about__highlight {
    background: var(--navy);
    border-left-color: var(--gold);
  }
  .about__highlight strong { color: var(--white); }
  .about__highlight span { color: rgba(255,255,255,.55); }

  /* Contact */
  .contact {
    background: var(--navy-dark);
  }
  .contact .section-title,
  .contact .section-header .section-title { color: var(--white) !important; }
  .contact .section-header .section-desc { color: rgba(255,255,255,.65) !important; }
  .contact .section-label { color: var(--gold); }
  .contact__detail-value { color: rgba(255,255,255,.85); }
  .contact__detail-value a { color: rgba(255,255,255,.85); }
  .contact__detail-value a:hover { color: var(--gold); }
  .contact__detail-label { color: rgba(255,255,255,.45); }
  .contact__detail-icon { background: var(--navy); }
  .contact__hours { background: rgba(255,255,255,.06); }

  /* Contact form */
  #contact-form {
    background: var(--navy);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
  }
  .contact__form-title { color: var(--white); }
  .form-group label { color: rgba(255,255,255,.8); }
  .form-group label span { color: var(--gold); }
  .form-group input,
  .form-group textarea {
    background: var(--navy-dark);
    border-color: var(--navy-light);
    color: rgba(255,255,255,.9);
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: rgba(255,255,255,.35);
  }
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(136,136,136,.15);
  }
  .form-check label { color: rgba(255,255,255,.55); }
  .form-status.success {
    background: rgba(39,103,73,.2);
    color: #9ae6b4;
    border-color: rgba(154,230,180,.3);
  }
  .form-status.error {
    background: rgba(197,48,48,.2);
    color: #feb2b2;
    border-color: rgba(254,178,178,.3);
  }

  /* Biogram modal */
  .biogram-modal__content {
    background: var(--navy);
  }
  .biogram-modal__close { color: rgba(255,255,255,.5); }
  .biogram-modal__close:hover { color: var(--white); }
  .biogram-modal__title { color: var(--white); }
  .biogram-modal__subtitle { color: var(--gold); }
  .biogram-modal__text p { color: rgba(255,255,255,.75); }
  .biogram-modal__text h3 { color: var(--white); }
  .biogram-modal__text li { color: rgba(255,255,255,.75); }
}

/* Light mode is the default — no explicit override needed */
