/* =========================================================
   ATAL Import & Export Traders (Private) Limited
   Simple, clean UI stylesheet
   ========================================================= */

:root {
  --navy: #132a44;
  --navy-soft: #1d3a5f;
  --gold: #c8992f;
  --gold-soft: #f6edd8;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #647083;
  --border: #e4e8ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.05);
  --container: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Header / Navigation
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  height: 54px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-text span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  transition: background 0.18s, color 0.18s, font-size 0.18s, transform 0.18s,
    box-shadow 0.18s;
}

/* Hover only — no click needed: fonts zoom, link lifts up raised */
.nav-links a:hover {
  background: #f1f5f9;
  color: var(--navy);
  font-size: 16px; /* fonts zoom in a bit */
  transform: translateY(-2px); /* ubhra hua / raised look */
  box-shadow: 0 6px 12px rgba(16, 24, 40, 0.15);
}

/* Selected page tab: raised + zoomed design stays until another tab is selected */
.nav-links a.active {
  background: #f1f5f9;
  color: var(--navy);
  font-size: 16px; /* zoomed font, persists on selected tab */
  transform: translateY(-2px); /* ubhra hua look, persists */
  box-shadow: 0 6px 12px rgba(16, 24, 40, 0.15);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary {
  background: var(--gold);
  color: #1c2230;
}

.btn-primary:hover {
  background: #d9a93c;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--navy);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--navy-soft);
}

.btn-block {
  width: 100%;
}

/* =========================
   Hero (home)
   ========================= */

.hero {
  position: relative;
  color: #ffffff;
  background-color: var(--navy);
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 52, 0.75);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0;
}

.hero-note {
  display: inline-block;
  max-width: 100%;
  margin-top: 26px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: #ffffff;
}

.hero-note strong {
  color: var(--gold);
  font-weight: 600;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-notes .hero-note {
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.9px;
  text-shadow: 0 1px 3px rgba(6, 16, 28, 0.35);
}

.hero p {
  color: #cfdeef;
  margin-top: 18px;
  max-width: 54ch;
  font-size: 16.5px;
  text-shadow: 0 1px 2px rgba(6, 16, 28, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-modes {
  display: grid;
  gap: 14px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.mode-icon {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: rgba(255, 255, 255, 0.1);
}

.mode-card h3 {
  font-size: 17px;
  color: #ffffff;
}

.mode-card p {
  margin-top: 2px;
  font-size: 14px;
  color: #cfdaea;
  line-height: 1.5;
}

/* =========================
   Page hero (sub pages)
   ========================= */

.page-hero {
  background: var(--navy);
  color: #ffffff;
  padding: 54px 0;
}

.page-hero h1 {
  font-size: 34px;
  letter-spacing: -0.3px;
}

.page-hero p {
  color: #c7d5e6;
  margin-top: 8px;
  max-width: 62ch;
}

.breadcrumb {
  font-size: 13px;
  color: #93a4b8;
  margin-bottom: 10px;
}

.breadcrumb span {
  color: var(--gold);
}

/* =========================
   Sections
   ========================= */

.section {
  padding: 64px 0;
}

.section-alt {
  background: #eef2f7;
}

.section-head {
  max-width: 660px;
  margin-bottom: 34px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section h2 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.lead {
  color: var(--muted);
  margin-top: 10px;
  font-size: 16px;
}

/* =========================
   Cards
   ========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

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

.card .icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--gold-soft);
  font-size: 22px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 17.5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.card ul {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.card ul li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   Inline icons (script.js swaps the page symbols for these)
   ========================================================= */

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex: none;
}

.icon .ico {
  width: 23px;
  height: 23px;
  vertical-align: middle;
}

.mode-icon .ico {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

.tab-btn .ico {
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.18em;
  margin-right: 3px;
}

.gallery-thumb .ico {
  width: 62px;
  height: 62px;
  color: var(--navy);
  opacity: 0.9;
}

.lightbox-thumb .ico {
  width: 74px;
  height: 74px;
  color: var(--navy);
  opacity: 0.9;
}

/* =========================
   Tabs
   ========================= */

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

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.tab-btn:hover {
  color: var(--navy);
  background: #eef2f7;
}

.tab-btn.active {
  background: var(--navy);
  color: #ffffff;
}

.tab-panels {
  padding: 28px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
}

.tab-panel > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.tab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =========================
   Process steps
   ========================= */

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.step-num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.step h3 {
  font-size: 17px;
  color: var(--navy);
}

.step p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 3px;
}

/* =========================
   Split layout & info panel
   ========================= */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

.facts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facts span:first-child {
  color: var(--muted);
}

.facts span:last-child {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

/* =========================
   Contact
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-item .icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  font-size: 19px;
}

.contact-item h4 {
  font-size: 14px;
  color: var(--navy);
}

.contact-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.contact-item p a {
  color: var(--navy);
  text-decoration: underline;
}

.contact-item p a:hover {
  color: var(--gold);
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   Map
   ========================= */

.map-embed {
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9eef5;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 560px) {
  .map-embed iframe {
    height: 240px;
  }
}

/* =========================
   Footer
   ========================= */

.site-footer {
  background: var(--navy);
  color: #cbd7e6;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.site-footer p {
  font-size: 14.5px;
  color: #aebdd0;
  max-width: 34ch;
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold);
  max-width: 36ch;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-links li {
  font-size: 14.5px;
  color: #aebdd0;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 13.5px;
  color: #8fa2b8;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 58px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .brand-text strong {
    font-size: 13.5px;
    white-space: normal;
  }

  .brand-text span {
    font-size: 9.5px;
    white-space: normal;
  }

  .brand img {
    height: 46px;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 25px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .tab-split {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tab-panels {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0;
  }

  .step {
    gap: 14px;
    padding: 18px;
  }
}

/* =========================================================
   Motion & small interactions
   ========================================================= */

.btn {
  transition: background 0.18s, color 0.18s, border-color 0.18s,
    transform 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(19, 42, 68, 0.14);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.card,
.gallery-item,
.leader-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.leader-card:hover {
  transform: translateY(-3px);
  border-color: #d6dee8;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

/* Scroll reveal (only active when JavaScript is available) */
html.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Tab panel change */
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel.active {
  animation: panelIn 0.3s ease both;
}

/* =========================================================
   Leadership
   ========================================================= */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.leader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.leader-card h3 {
  font-size: 18px;
  color: var(--navy);
}

.leader-card .role {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  margin: 3px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.leader-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Leader cards with photo (CEO and Administrative Manager) */
.leader-card--ceo,
.leader-card--admin {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
}

.ceo-photo-col {
  flex: 0 0 auto;
  text-align: center;
}

.ceo-info {
  flex: 1;
}

.leader-card--ceo h3,
.leader-card--admin h3 {
  font-size: 23px;
}

.photo-box {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed #d9c48a;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9c7f36;
  font-size: 11.5px;
  text-align: center;
  line-height: 1.35;
  padding: 8px;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-box:has(img) {
  padding: 0;
  border: 2px solid #e8d9b0;
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.gallery-item {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.gallery-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  font-size: 54px;
  background: #e9eef5;
  transition: transform 0.35s ease;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:nth-child(4n + 2) .gallery-thumb {
  background: var(--gold-soft);
}

.gallery-item:nth-child(4n + 3) .gallery-thumb {
  background: #e3ecf5;
}

.gallery-item:nth-child(4n + 4) .gallery-thumb {
  background: #eef1e6;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-caption {
  display: block;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 25, 42, 0.74);
}

.lightbox.open {
  display: flex;
}

.lightbox-body {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: panelIn 0.25s ease both;
}

.lightbox-thumb {
  display: grid;
  place-items: center;
  font-size: 64px;
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 42px 20px;
  margin-bottom: 16px;
}

.lightbox-thumb img {
  max-height: 320px;
  max-width: 100%;
  width: auto;
  border-radius: 8px;
}

.lightbox-body h3 {
  font-size: 20px;
  color: var(--navy);
}

.lightbox-body p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #f1f5f9;
  color: var(--navy);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .tab-panel.active,
  .lightbox-body {
    animation: none;
  }

  .btn,
  .card,
  .gallery-item,
  .leader-card,
  .gallery-thumb,
  .mode-card {
    transition: none;
  }
}

@media (max-width: 720px) {
  .leader-card--ceo,
  .leader-card--admin {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 26px;
  }
}

/* =========================================================
   Registered-with badges (home hero)
   ========================================================= */

.hero-reg {
  margin-top: 26px;
  max-width: 560px;
}

.hero-reg-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.reg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 250px;
}

.reg-badge img {
  height: 30px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex: none;
}

/* =========================================================
   Registration logos strip (footer, every page)
   ========================================================= */

.footer-reg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-reg-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 4px;
}

.footer-reg .reg-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.footer-reg .reg-item img {
  height: 28px;
  width: auto;
  max-width: 46px;
  object-fit: contain;
  flex: none;
}

.footer-reg .reg-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  max-width: 160px;
}

@media (max-width: 520px) {
  .footer-reg .reg-item img,
  .reg-badge img {
    height: 24px;
  }
}

/* =========================================================
   "Registered with" box (About page)
   ========================================================= */

.reg-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
}

.reg-box .section-head {
  max-width: none;
  text-align: center;
  margin-bottom: 26px;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.reg-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
  padding: 24px 18px;
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.reg-card img {
  height: 64px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.reg-card h3 {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.35;
}

.reg-card p {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .reg-box {
    padding: 26px 18px;
  }
}

/* =========================================================
   Mobile refinements
   Every rule below is scoped to phone/tablet widths, so the
   desktop layout stays exactly as it is.
   ========================================================= */

/* --- Base guards (no visual change on desktop) --- */

html {
  overflow-x: hidden; /* older browsers */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@supports (overflow-x: clip) {
  html {
    overflow-x: clip; /* never creates a scroll container, sticky header keeps working */
  }
}

a,
button,
input,
select,
textarea,
.gallery-item,
.lightbox-close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* removes double-tap zoom delay */
}

/* Clear focus ring for keyboard users */
.btn:focus-visible,
.nav-toggle:focus-visible,
.tab-btn:focus-visible,
.gallery-item:focus-visible,
.lightbox-close:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Tablets and below (≤1000px) --- */

@media (max-width: 1000px) {
  /* Bigger tap-friendly hamburger (about 44px target) */
  .nav-toggle {
    padding: 11px 14px;
    font-size: 22px;
  }

  .nav-links a {
    padding: 13px 14px; /* taller rows, easier to tap */
    font-size: 15px;
  }

  /* Stop iOS Safari auto-zooming form fields on focus (needs 16px+) */
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
}

@media (max-width: 1000px) {
  .nav-links.open {
    animation: navIn 0.22s ease both;
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Phones (≤720px) --- */

@media (max-width: 720px) {
  /* Slimmer header */
  .nav {
    height: 64px;
  }

  .nav-links {
    top: 64px;
  }

  .brand img {
    height: 40px;
  }

  .section {
    padding: 44px 0;
  }

  .page-hero {
    padding: 42px 0;
  }

  .panel {
    padding: 22px;
  }
}

/* --- Lightbox on phones (≤600px) --- */

@media (max-width: 600px) {
  .lightbox {
    padding: 14px;
  }

  .lightbox-body {
    padding: 18px 14px 22px;
  }

  .lightbox-thumb {
    padding: 26px 14px;
  }

  .lightbox-thumb img {
    max-height: 58vh;
  }

  .lightbox-close {
    padding: 10px 12px; /* comfortable touch target */
    top: 4px;
    right: 6px;
  }
}

/* --- Small phones (≤520px) --- */

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero-inner {
    padding: 44px 0;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero p {
    font-size: 15.5px;
  }

  .mode-card {
    padding: 16px;
  }

  /* Typography */
  .section h2 {
    font-size: 23px;
  }

  .page-hero h1 {
    font-size: 25px;
  }

  .lead {
    font-size: 15px;
  }

  /* Tabs: stack full-width so labels don't squeeze */
  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
  }

  .tab-panels {
    padding: 18px 16px;
  }

  /* Cards & panels */
  .card {
    padding: 20px;
  }

  /* Inline "padding: 40px" on the CTA panels is too wide on phones
     (!important is needed to beat the inline style) */
  .panel {
    padding: 26px 18px !important;
  }

  /* Forms */
  .form {
    padding: 20px 16px;
  }

  .field textarea {
    min-height: 110px;
  }

  /* Contact & facts rows */
  .contact-item {
    padding: 14px;
  }

  .facts li {
    flex-wrap: wrap;
  }

  /* Gallery */
  .gallery-grid {
    gap: 12px;
  }

  .gallery-caption {
    padding: 11px 13px;
    font-size: 13.5px;
  }

  /* Registration badges */
  .reg-badge {
    max-width: none;
  }

  /* Footer */
  .footer-bottom {
    font-size: 12.5px;
    padding: 15px 0;
  }
}

/* --- Touch screen only: replace hover effects with press feedback --- */

@media (hover: none) {
  /* No sticky hover transform while scrolling/tapping */
  .btn:hover,
  .card:hover,
  .gallery-item:hover,
  .leader-card:hover,
  .mode-card:hover {
    transform: none;
  }

  .gallery-item:hover .gallery-thumb {
    transform: none;
  }

  /* Visual press feedback instead */
  .btn:active,
  .nav-toggle:active,
  .tab-btn:active,
  .gallery-item:active,
  .lightbox-close:active {
    transform: scale(0.98);
  }

  .nav-links a:active {
    color: var(--navy);
  }
}

/* --- Very narrow phones (≤360px) --- */

@media (max-width: 360px) {
  .brand-text strong {
    font-size: 12.5px;
  }

  .brand-text span {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 24px;
  }
}

/* --- Landscape phones (short height) --- */

@media (orientation: landscape) and (max-height: 480px) {
  .hero-inner {
    padding: 30px 0;
  }

  .hero h1 {
    font-size: 26px;
  }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  .nav-links.open {
    animation: none;
  }
}
