* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f0ea;
  --surface: #fcf7f3;
  --surface-strong: #f0e2d8;
  --text: #3c2826;
  --text-muted: #6e4b47;
  --accent: #9c5c4d;
  --accent-dark: #7d4639;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #111;
  background-color: var(--bg);
  padding-top: clamp(30px, 5vw, 54px);
}

/* Prevent accidental horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

.site-title-link {
  color: inherit;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: none;
  color: #111;
  cursor: pointer;
  margin-right: 16px;
  flex-shrink: 0;
}

.menu-toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.menu-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Containers */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header layout */
.site-header {
  padding: clamp(3px, 0.7vw, 8px) 0;
}

.site-header > .brand,
.site-header > .navbar {
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand .site-title {
  flex: 1 1 auto;
}

.site-title {
  font-size: clamp(24px, 3.5vw, 40px);
  margin: 2px 12px;
  line-height: 1.2;
}

/* The bar that contains menu + lang */

.navbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0 10px;
}

.nav-lists {
  display: none;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 6px;
  flex: 1 1 auto;
}

.lang-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  padding-left: 0;
}

.navbar.is-collapsible .nav-lists {
  display: none;
}

.navbar.is-collapsible.is-open .nav-lists {
  display: flex;
}

/* Menu link sizing tuned for single-line fit */
.primary-nav a,
.lang-nav a {
  text-decoration: none;
  color: #111;
  padding: 3px 7px;
  border-radius: 6px;
}

.primary-nav a {
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
}

.lang-nav a {
  font-size: clamp(0.72rem, 1.9vw, 0.9rem);
}

.primary-nav a:hover,
.lang-nav a:hover {
  background: #f0f0f0;
}

.lang-nav a[aria-current="page"] {
  font-weight: 600;
  pointer-events: none;
}

/* Make images and media responsive site-wide */
img,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- MOBILE NAVIGATION FIX ---------- */
@media (max-width: 640px) {
  body {
    padding-top: clamp(30px, 10vw, 60px);
  }

  .site-header {
    padding: 3px 0;
  }

  .brand {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 10px;
  }

  .menu-toggle {
    margin-left: auto;
    margin-right: 0;
  }

  .navbar.is-collapsible .nav-lists {
    display: none;
  }

  .navbar.is-collapsible.is-open .nav-lists {
    display: flex;
  }

  .navbar.is-collapsible.is-open .primary-nav {
    margin-top: 0;
  }

  .primary-nav a {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
  }

  .lang-nav {
    margin-left: auto;
    justify-content: flex-end;
    margin-top: 0;
  }
}

.site-header {
  background-color: var(--bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__start,
.nav__end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__start {
  flex: 1 1 auto;
}

.nav__end {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle__icon {
  width: 1.4rem;
  height: 1rem;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after,
.nav-toggle__icon {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.nav-toggle__icon { top: 50%; transform: translateY(-50%); }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { bottom: -6px; }

.nav__start .logo {
  flex-shrink: 0;
}

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.nav-links.nav-links--inline {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.nav-links.is-open {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
  margin-top: 0.75rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-languages {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  justify-content: flex-end;
  width: 100%;
}

.nav-languages span {
  color: rgba(60, 40, 38, 0.35);
}

.nav-languages a {
  font-weight: 600;
  color: var(--text-muted);
}

.nav-languages a[aria-current="page"] {
  color: var(--accent);
  pointer-events: none;
  cursor: default;
}

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(120deg, rgba(60, 35, 33, 0.7), rgba(124, 74, 63, 0.6)),
    url('photos/photo-03.jpg');
  background-size: cover;
  background-position: center 8%;
  scroll-margin-top: clamp(90px, 12vw, 150px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 21, 20, 0.35) 0%, rgba(34, 21, 20, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-subtitle {
  font-family: "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-copy {
  font-size: 1.1rem;
  color: #fbeee8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background-color: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(124, 70, 58, 0.24);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(251, 238, 232, 0.6);
  color: #fbeee8;
}

.btn--ghost:hover,
.btn--ghost:focus {
  background-color: rgba(251, 238, 232, 0.15);
}

.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  scroll-margin-top: clamp(90px, 12vw, 150px);
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-intro h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--text-muted);
}

.bio-layout {
  display: grid;
  gap: 2.5rem;
}

.bio-primary {
  display: grid;
  gap: 1.5rem;
}

.bio-primary em {
  font-style: italic;
}

.bio-secondary {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(71, 41, 38, 0.08);
  align-self: start;
}

.bio-secondary h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.press-grid {
  display: grid;
  gap: 1.5rem;
}

.press-card {
  background: var(--surface);
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(156, 92, 77, 0.1);
  box-shadow: 0 12px 28px rgba(71, 41, 38, 0.07);
}

.press-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.press-source {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

.career-grid {
  display: grid;
  gap: 2rem;
}

.career-card {
  background-color: var(--surface);
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(156, 92, 77, 0.12);
  box-shadow: 0 12px 28px rgba(71, 41, 38, 0.07);
}

.career-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.career-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.career-card em {
  font-style: italic;
}

.link {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.link:hover,
.link:focus {
  color: var(--accent-dark);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(71, 41, 38, 0.12);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-item img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  background-color: var(--surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(71, 41, 38, 0.08);
}

.contact-grid h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.hp-field-wrapper {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hp-field {
  opacity: 0;
  height: 0;
  width: 0;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(60, 40, 38, 0.18);
  background-color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 92, 77, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-submit {
  justify-self: start;
}

.form-feedback {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-feedback.is-success {
  color: #2e7d32;
}

.form-feedback.is-error {
  color: #b91c1c;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
}

.lightbox.is-open {
  display: flex;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 14, 12, 0.65);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  margin: 1.5rem;
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  display: grid;
  gap: 1rem;
  background: rgba(252, 247, 243, 0.94);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(27, 17, 15, 0.45);
  padding: 1.5rem;
}

.lightbox__image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.lightbox__caption {
  font-size: 0.95rem;
  color: #3c2826;
}

.lightbox__caption[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 10px 25px rgba(27, 17, 15, 0.25);
  transition: transform 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus {
  transform: translateY(-2px);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox__dialog {
    margin: 1rem;
    padding: 1.2rem;
  }

  .lightbox__image {
    max-height: 55vh;
  }
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: rgba(60, 40, 38, 0.75);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .nav-links {
    background: none;
    padding: 0;
  }

  .nav-links.is-open {
    background: none;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav__end {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    width: auto;
  }

  .nav-links.is-open {
    margin-top: 0;
    width: auto;
    flex-wrap: nowrap;
  }

  .nav-languages {
    width: auto;
    margin-top: 0;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(60, 40, 38, 0.18);
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .hero {
    text-align: left;
    padding: 7rem 1.5rem;
  }

  .hero-content {
    margin-left: 7%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .bio-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .career-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-grid {
    gap: 2.5rem;
  }

  .contact-grid {
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-copy {
    font-size: 1.2rem;
    max-width: 540px;
  }

  .career-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
