:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f3ede3;
  --ink: #1b2a4a;
  --ink-soft: #4c5a74;
  --accent: #c85a32;
  --accent-dark: #a64623;
  --sage: #3a6b5c;
  --border: #e5ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Airmail top border */
.airmail-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #c85a32 0px,
    #c85a32 14px,
    #faf7f2 14px,
    #faf7f2 22px,
    #1b2a4a 22px,
    #1b2a4a 36px,
    #faf7f2 36px,
    #faf7f2 44px
  );
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
}

/* Menu Dropdown */
.menu-dropdown {
  position: relative;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.menu-trigger:hover {
  background: var(--ink);
  color: #fff;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 60;
}

.menu-dropdown.open .dropdown-panel {
  display: flex;
}

.dropdown-item {
  text-align: left;
  background: none;
  border: none;
  padding: 0.72rem 0.9rem;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 90, 50, 0.28);
}

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

.btn-navy {
  background: var(--ink);
  color: #fff;
}

.btn-navy:hover {
  background: #273c68;
}

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

.btn-sage:hover {
  background: #2e564a;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-danger {
  background: #fff5f5;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.88rem;
  border-radius: 8px;
}

.btn-cta-xl {
  padding: 1.05rem 3.2rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(200, 90, 50, 0.35);
}

.btn-full {
  width: 100%;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Main container */
.app-main {
  min-height: calc(100vh - 180px);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero */
.hero-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3rem;
  text-align: center;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-alt);
  margin-bottom: 1.8rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Quick Highlights Strip */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.highlight-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.highlight-card p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Content Cards & Sections */
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.prose p {
  font-size: 1.08rem;
  color: #2f3b52;
  margin-bottom: 1.15rem;
  white-space: pre-line;
}

/* How It Works Steps */
.steps-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.step-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.step-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Directors Grid */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.director-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.director-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-alt);
  display: block;
}

.director-avatar-fallback {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #e9dfd1, #d8e2dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
}

.director-body {
  padding: 1.25rem;
  flex: 1;
}

.director-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.2rem;
}

.director-region {
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.director-bio {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Contact Box */
.contact-box {
  margin-top: 1.75rem;
  background: var(--bg);
  border: 1.5px dashed var(--accent);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-email-display {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

/* Media Gallery (Photos & Videos) */
.section-block {
  margin-top: 3rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.35rem;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card img,
.media-card video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #111;
}

.media-card-body {
  padding: 1.1rem 1.25rem;
}

.media-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.media-card-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.14);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
}

.radio-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: #fff6f2;
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.form-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.25rem;
}

/* Admin Panel */
.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
}

.stat-value {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.25rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
}

.tab-btn {
  background: none;
  border: 1.5px solid transparent;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1;
}

.toolbar-filters input,
.toolbar-filters select {
  padding: 0.52rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-matched {
  background: #d1fae5;
  color: #065f46;
}

.cms-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.cms-card h3 {
  margin-bottom: 1rem;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.modal-sm {
  max-width: 430px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--ink);
}

.modal-header {
  margin-bottom: 1.25rem;
}

.modal-footer-text {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.footer-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  font-weight: 500;
}

@media (max-width: 780px) {
  .highlights-grid,
  .form-grid-2,
  .form-grid-3,
  .radio-cards,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .page-card {
    padding: 1.4rem;
  }

  .brand-name {
    display: none;
  }
}
