/* ══════════════════════════════════════
   MG POWER GROUP — Design System
   Color: Dark Navy + Gold, Elegant
   ══════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --navy:          #0B1A2D;
  --navy-mid:      #142A45;
  --navy-light:    #1C3A5E;
  --gold:          #C5A255;
  --gold-light:    #D4B76A;
  --gold-dark:     #A8873E;
  --gold-bg:       rgba(197,162,85,0.08);

  --bg:            #FFFFFF;
  --bg-alt:        #F7F6F3;
  --bg-dark:       #0B1A2D;
  --bg-cream:      #FAF8F5;
  --border:        #E0D8CC;
  --border-light:  #EDE8E0;

  --text-primary:  #0B1A2D;
  --text-body:     #3A3A3A;
  --text-sub:      #5C5C5C;
  --text-muted:    #8A8A8A;
  --text-white:    #FFFFFF;
  --text-white-dim:rgba(255,255,255,0.75);
  --text-gold:     #C5A255;

  --heading-xl:    clamp(42px, 6vw, 72px);
  --heading-lg:    clamp(32px, 4vw, 52px);
  --heading-md:    clamp(24px, 3vw, 36px);
  --heading-sm:    clamp(18px, 2vw, 24px);
  --body-lg:       18px;
  --body-md:       16px;
  --body-sm:       14px;

  --section-y:     clamp(48px, 8vw, 120px);
  --content-gap:   clamp(40px, 5vw, 80px);
  --max-width:     1200px;
  --radius:        8px;
  --transition:    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--body-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Serif JP', Georgia, serif;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

.heading-xl { font-size: var(--heading-xl); }
.heading-lg { font-size: var(--heading-lg); }
.heading-md { font-size: var(--heading-md); }
.heading-sm { font-size: var(--heading-sm); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.accent-bar {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

.text-gold { color: var(--gold); }
.text-white { color: var(--text-white); }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,162,85,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11,26,45,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197,162,85,0.15);
  transition: all var(--transition);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo img {
  height: 44px;
  width: auto;
}
.navbar-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--text-white-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(197,162,85,0.15);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  border: 1px solid rgba(197,162,85,0.3);
  border-radius: 20px;
  padding: 4px;
}
.lang-switch a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  color: var(--text-white-dim);
  transition: all var(--transition);
}
.lang-switch a.active {
  background: var(--gold);
  color: var(--navy);
}
.lang-switch a:hover:not(.active) {
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
}

/* ══════════════════════════════════════
   HERO — Split: left text / right image
   ══════════════════════════════════════ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
  background: var(--navy);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 4vw, 60px) 80px clamp(24px, 5vw, 80px);
  order: -1;
}

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Subtle gradient fade from image into the text area */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--navy) 0%,
    rgba(11,26,45,0.6) 12%,
    rgba(11,26,45,0.15) 30%,
    rgba(11,26,45,0) 50%
  );
  pointer-events: none;
}
/* Slight top/bottom edge softening */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(11,26,45,0.3) 0%, transparent 15%),
    linear-gradient(to top, rgba(11,26,45,0.3) 0%, transparent 15%);
  pointer-events: none;
}

.hero h1 {
  color: var(--text-white);
  font-size: var(--heading-xl);
  margin-bottom: 24px;
}

.hero p {
  color: var(--text-white-dim);
  font-size: var(--body-lg);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

/* Legacy: hide .hero-bg if still in markup */
.hero-bg { display: none; }

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.section {
  padding: var(--section-y) 0;
}
.section-dark {
  background: var(--navy);
  color: var(--text-white);
}
.section-alt {
  background: var(--bg-alt);
}
.section-cream {
  background: var(--bg-cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--content-gap);
}
.section-header .eyebrow {
  margin-bottom: 16px;
  display: block;
}
.section-header h2 {
  margin-bottom: 20px;
}
.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-sub);
  font-size: var(--body-lg);
  line-height: 1.8;
}
.section-dark .section-header p {
  color: var(--text-white-dim);
}

/* ── Split Section ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197,162,85,0.15);
  border-radius: 12px;
  pointer-events: none;
}

.split-text .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.split-text h2 {
  margin-bottom: 20px;
}
.split-text p {
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(197,162,85,0.12);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .btn {
  margin-top: 24px;
  align-self: center;
}
.card-body h3 {
  font-size: var(--heading-sm);
  margin-bottom: 12px;
  text-align: center;
}
.card-body p {
  color: var(--text-sub);
  font-size: var(--body-sm);
  line-height: 1.7;
}

/* ── Team Cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}
.team-card-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  padding: 3px;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-card h3 {
  font-size: var(--heading-sm);
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--gold);
  font-size: var(--body-sm);
  font-weight: 500;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 0;
}

.stat {
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: var(--body-sm);
  color: var(--text-sub);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-dark .stat-label {
  color: var(--text-white-dim);
}

/* ── Gallery Row ── */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(197,162,85,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--text-white-dim);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: #070F1A;
  color: var(--text-white-dim);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: var(--body-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: var(--body-sm);
  color: var(--text-white-dim);
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ══════════════════════════════════════
   PAGE HERO (sub pages) — Split layout
   ══════════════════════════════════════ */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
  background: var(--navy);
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 4vw, 40px) 60px clamp(24px, 5vw, 80px);
}
.page-hero h1 {
  color: var(--text-white);
  font-size: var(--heading-lg);
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--text-white-dim);
  max-width: 500px;
  font-size: var(--body-lg);
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-hero-image {
  position: relative;
  overflow: hidden;
}
.page-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.page-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--navy) 0%,
    rgba(11,26,45,0.55) 15%,
    rgba(11,26,45,0.1) 35%,
    rgba(11,26,45,0) 55%
  );
  pointer-events: none;
}
.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(11,26,45,0.25) 0%, transparent 12%),
    linear-gradient(to top, rgba(11,26,45,0.25) 0%, transparent 12%);
  pointer-events: none;
}

/* Remove gradient for PC on specific pages */
.no-overlap .page-hero-image::before,
.no-overlap .page-hero-image::after {
  display: none !important;
}

/* Legacy: hide old bg div */
.page-hero-bg { display: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-white-dim);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--gold);
  transition: opacity var(--transition);
}
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: var(--body-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--body-md);
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,162,85,0.1);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-in { animation: fade-up 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.25s; }
.anim-d3 { animation-delay: 0.4s; }

/* ── Gold line decoration ── */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto 24px;
}

/* ══════════════════════════════════════
   MOBILE FULL-SCREEN MENU OVERLAY
   body直下に生成される独立要素
   ══════════════════════════════════════ */
/* ── Mobile menu backdrop ── */
#mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile menu panel (right slide) ── */
#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 360px;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
#mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 32px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
#mobile-menu-close:hover {
  color: var(--gold);
}

#mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 40px;
}

#mobile-menu-body a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 28px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-white-dim);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
  min-height: 60px;
}
#mobile-menu-body a:hover,
#mobile-menu-body a.active {
  color: var(--gold);
}

/* Dropdown group */
.mm-dropdown-trigger {
  cursor: pointer;
  position: relative;
}
.mm-dropdown-trigger::after {
  content: '▾';
  font-size: 16px;
  color: var(--gold);
  transition: transform var(--transition);
  margin-left: 8px;
}
.mm-dropdown-trigger.open::after {
  transform: rotate(180deg);
}

.mm-sub {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mm-sub.open {
  max-height: 1000px;
}
.mm-sub a {
  padding-left: 40px;
  font-size: 15px;
  min-height: 52px;
  border-bottom-color: rgba(255,255,255,0.04);
  color: var(--text-white-dim);
}

/* Language switch in mobile menu */
#mobile-menu-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 28px 0;
}
#mobile-menu-lang a {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(197,162,85,0.4);
  color: var(--text-white-dim);
  min-height: unset;
  transition: all var(--transition);
  justify-content: center;
}
#mobile-menu-lang a.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
#mobile-menu-lang a:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 968px) {
  :root { --section-y: 32px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .lang-switch { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
    padding-top: 62px;
    padding-bottom: 16px;
  }
  .hero-image {
    height: 240px;
    order: 1;
    margin-top: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .hero-image::before,
  .hero-image::after,
  .page-hero-image::before,
  .page-hero-image::after {
    background: none !important;
  }
  /* Restore gradient ONLY for specific pages with .gradient-hero class */
  .gradient-hero .hero-image::before,
  .gradient-hero .page-hero-image::before {
    background: linear-gradient(
      to top,
      var(--navy) 10%,
      rgba(11,26,45,0.7) 45%,
      rgba(11,26,45,0.2) 75%,
      transparent 100%
    ) !important;
    display: block !important;
    z-index: 2;
  }
  .hero-content {
    position: relative;
    z-index: 5;
    order: 2;
    margin-top: -40px;
    padding: 0 24px 60px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .page-hero-image {
    height: 200px;
    order: -1;
    margin-top: 72px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .page-hero-content {
    position: relative;
    z-index: 5;
    margin-top: -30px;
    padding: 0 24px 48px;
  }
  /* Remove overlap for specific pages */
  .no-overlap .page-hero-content {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-reverse { direction: ltr; }
  .split-text p {
    font-size: 13px;
  }

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

  .hero h1 { max-width: 100%; }
  .hero p { max-width: 100%; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Tighter section spacing on small screens */
  .section-header h2 {
    font-size: clamp(22px, 7vw, 32px);
  }
  .card-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-logo span {
    font-size: 17px;
  }
  .navbar-logo img {
    height: 40px;
  }
  .hero-image {
    height: 220px;
  }
  .page-hero-image {
    height: 180px;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .stat-number {
    font-size: clamp(28px, 8vw, 48px);
  }
  .gallery-row {
    grid-template-columns: 1fr;
  }
  .commodity-list {
    grid-template-columns: 1fr;
  }
  .btn {
    padding: 13px 24px;
    font-size: 14px;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Commodity icon list ── */
.commodity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.commodity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.commodity-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.commodity-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.commodity-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(197,162,85,0.08);
}
.commodity-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.commodity-item p {
  text-align: center;
}
.commodity-item p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: var(--section-y) 0;
}

/* ── Table (for disclaimer etc.) ── */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h3 {
  margin: 32px 0 12px;
  font-size: var(--heading-sm);
}
.content-block p {
  margin-bottom: 16px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ── Photo with caption ── */
.photo-caption {
  text-align: center;
}
.photo-caption img {
  border-radius: 8px;
  margin: 0 auto 12px;
}
.photo-caption figcaption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
