/* ================================================================
   IEPC India — style.css  v4.9 (Mobile Responsive Update)
================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES
================================================================ */
:root {
  --blue:         #1e4fa0;
  --blue-mid:     #2a5fb8;
  --blue-dark:    #163a7a;
  --blue-light:   #e8f0fb;
  --orange:       #e86c2c;
  --orange-light: #f5873f;
  --amber:        #f9c578;

  --white:        #ffffff;
  --grey-light:   #f5f6f8;
  --grey-mid:     #e2e6ee;
  --grey-text:    #444444;
  --charcoal:     #1e2535;
  --footer-bg:    #17243d;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --header-h:      72px;
  --section-pad:   60px 0;
  --container:     1240px;

  --t-fast: 0.22s ease;
  --t-mid:  0.38s ease;
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 12px rgba(30,79,160,0.08);
  --shadow-md: 0 8px 30px rgba(30,79,160,0.13);
  --shadow-lg: 0 18px 48px rgba(30,79,160,0.18);
}

/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  padding-top: var(--header-h);
}

img  { max-width: 100%; display: block; object-fit: cover; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ================================================================
   3. UTILITIES
================================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
}

.section-header.light .section-label { color: rgba(255,255,255,0.65); }
.section-header.light h2               { color: var(--white); }
.section-header.light h2 em            { color: var(--amber); }
.section-header.light .section-desc    { color: rgba(255,255,255,0.65); }

.section-label {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
  position: relative;
  padding: 0 22px;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px; height: 1px;
  background: var(--orange);
}
.section-label::before { right: 0; }
.section-label::after  { left: 0; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 5px 0 !important;
}

.section-header h2 em { font-style: normal; color: var(--charcoal); }

#presence-title,
#gallery-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 4px;
  background: linear-gradient(100deg, #1e4fa0 0%, #e86c2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#presence-title em { font-style: normal; -webkit-text-fill-color: transparent; }

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  padding: 0;
}

/* ================================================================
   4. HEADER
================================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: var(--blue-dark);
  box-shadow: 0 2px 16px rgba(22,58,122,0.22);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}

#site-header.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 3px 20px rgba(22,58,122,0.28);
}

.logo { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.logo img { height: 48px; width: auto; display: block; object-fit: contain; }
.logo-mark { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; line-height: 1; transition: opacity var(--t-fast); }
.logo-sub { font-size: 0.68rem; font-weight: 600; color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase; }
.logo:hover .logo-mark { opacity: 0.82; }

.header-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: 5px;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform var(--t-fast); }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

.header-social { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(-transparent);
  border: 0px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
  overflow: hidden;
}
.social-icon:hover {
 background: var(--white);
  border-color: var(--white);
  transform: translateY(-4px)
}
.social-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  transition: all var(--t-fast);
}

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 5px; margin-left: auto; }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.32s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--blue-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 999;
}
.mobile-menu.open { max-height: 100vh; padding: 8px 0 20px; overflow-y: auto; }

.mobile-menu a {
  padding: 14px 28px;
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  min-height: 48px;
  display: flex; align-items: center;
  transition: all var(--t-fast);
}

.mobile-menu a:hover { color: var(--white); border-left-color: var(--orange); background: rgba(255,255,255,0.05); }
.mobile-social { display: flex; gap: 10px; padding: 14px 28px 0; flex-wrap: wrap; }
.mobile-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); padding: 0; transition: all var(--t-fast); background: transparent; }
.mobile-social a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.mobile-social a img { width: 18px; height: 18px; object-fit: contain; }

/* ================================================================
   5. HERO
================================================================ */
.hero {
  position: relative;
  width: 100%;
  background: var(--white);
  overflow: hidden;
  padding: 0;
  scroll-margin-top: var(--header-h);
}

.hero-bg-layer { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(42,95,184,0.55) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 80% 30%, rgba(22,58,122,0.6) 0%, transparent 55%), radial-gradient(ellipse 40% 50% at 60% 80%, rgba(232,108,44,0.12) 0%, transparent 50%), linear-gradient(135deg, #0f1f40 0%, #163a7a 40%, #1a2e5e 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; animation: gridDrift 20s linear infinite; }
@keyframes gridDrift { 0% { background-position: 0 0; } 100% { background-position: 60px 60px; } }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 1; animation: orbPulse 8s ease-in-out infinite; }
.hero-orb-1 { width: 400px; height: 400px; background: rgba(42,95,184,0.25); top: -100px; left: -80px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(232,108,44,0.12); bottom: -60px; right: 10%; animation-delay: -3s; }
.hero-orb-3 { width: 200px; height: 200px; background: rgba(249,197,120,0.08); top: 40%; right: 30%; animation-delay: -5s; }
@keyframes orbPulse { 0%, 100% { transform: scale(1) translate(0,0); opacity: 0.7; } 33% { transform: scale(1.12) translate(20px,-15px); opacity: 1; } 66% { transform: scale(0.92) translate(-10px,20px); opacity: 0.6; } }

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 32px 0px !important;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  animation: stageReveal 1s 0.3s both;
}

@keyframes stageReveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-stage::before, .hero-stage::after { display: none !important; }

.hero-stage-ring { position: absolute; inset: 20px; border-radius: 16px; border: 1px solid rgba(42,95,184,0.3); box-shadow: 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 60px rgba(22,58,122,0.2); pointer-events: none; z-index: 0; }

/* ================================================================
   CAROUSEL
================================================================ */
.carousel-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: box-shadow 0.38s ease, transform 0.5s ease;
}

.carousel-container:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.carousel-track { position: absolute; inset: 0; }

.carousel-slide {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  overflow: hidden;
  pointer-events: none;
  cursor: pointer;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}

.carousel-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(22,58,122,0.08) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.carousel-slide-label {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(22,58,122,0.85); backdrop-filter: blur(8px);
  color: var(--white); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0; transform: translateY(6px);
  transition: all var(--t-mid) 0.3s;
  pointer-events: none;
}
.carousel-slide.active .carousel-slide-label { opacity: 1; transform: translateY(0); }

/* ================================================================
   6. FORTHCOMING EXHIBITIONS
================================================================ */
.presence, .video-section {
  padding-top: 0 !important;
  padding-bottom: 20px;
  background: var(--grey-light);
}

.forthcoming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  perspective: 1200px;
}

@keyframes cardEntry {
  0%   { opacity: 0; transform: translateY(40px) rotateX(12deg) scale(0.95); }
  100% { opacity: 1; transform: translateY(0)    rotateX(0deg)  scale(1);    }
}

@keyframes shimmerSweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.forthcoming-card {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 18px 14px;
  border: 1px solid var(--grey-mid);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) rotateX(12deg) scale(0.95);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, border-top-color 0.3s ease;
  will-change: transform;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.forthcoming-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s ease,
              border-top-color 0.3s ease;
}

.forthcoming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.forthcoming-card:hover::before {
  opacity: 1;
  animation: shimmerSweep 1.4s linear infinite;
}

.ufi-stamp {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  flex-shrink: 0;
}

.ufi-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fc-icon {
  width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.3rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  transform-style: preserve-3d;
}

.fc-title {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 800;
  color: #0a1628;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.fc-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
  margin: 0 auto;
  flex-shrink: 0;
}

.fc-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.fc-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--grey-text);
  font-weight: 500;
}

.fc-meta-item i {
  color: var(--orange);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.fc-desc {
  font-size: 0.88rem;
  color: #0a0a0a;
  line-height: 1.6;
  flex: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 11px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  align-self: center;
  margin-top: auto;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.fc-btn:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,108,44,0.4);
}

/* ================================================================
   7. GALLERY SECTION
================================================================ */
.gallery-section {
  padding: 0 0 20px 0 !important;
  background: var(--grey-light);
  overflow: hidden;
}

.gallery-section .container {
  padding-top: 0 !important;
}

.gallery-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.gallery-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 10px;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--t-slow), filter var(--t-mid);
  filter: brightness(0.94);
}

.gallery-slide img:hover {
  filter: brightness(1.02);
  transform: scale(1.02);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  color: var(--blue);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
}

.gallery-arrow:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
}

.gallery-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast);
}

.gallery-dots .dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ================================================================
   8. FOOTER
================================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.58);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 40px;
  padding: 20px 32px 20px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo { margin-bottom: 8px; display: block; }

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 350px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.90rem !important;
  color: var(--amber) !important;
  font-style: italic;
  display: block;
  margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.2;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0; }

.footer-links ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.22s;
}

.footer-links ul li:last-child a { border-bottom: none; }

.footer-links ul li a i {
  color: var(--orange);
  font-size: 0.6rem;
  flex-shrink: 0;
  width: 10px;
}

.footer-links ul li a:hover { color: #fff; padding-left: 5px; }

.footer-contact address { font-style: normal; margin: 0; padding: 0; }

.footer-contact ul { display: flex; flex-direction: column; gap: 12px; }

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.58);
}

.footer-contact ul li i {
  color: var(--orange);
  margin-top: 2px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-contact ul li a { color: inherit; transition: color 0.22s; }
.footer-contact ul li a:hover { color: #fff; }

.footer-whatsapp { font-size: 0.95rem; margin-top: 5px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.56);
  transition: all 0.22s;
  background: transparent;
}

.footer-social a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: all var(--t-fast);
}

.footer-social a:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 6px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ================================================================
   9. SCROLL ANIMATIONS
================================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px) rotateX(12deg) scale(0.95);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

/* ================================================================
   10. RESPONSIVE — COMPREHENSIVE MOBILE
================================================================ */

/* ── TABLET: 1100px ── */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; text-align: left; align-items: flex-start; }
  .forthcoming-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ── TABLET: 992px ── */
@media (max-width: 992px) {
  :root { --header-h: 60px; }

  .nav-links,
  .header-social,
  .header-divider { display: none !important; }

  .hamburger { display: flex !important; }
  .header-inner { padding: 0 20px; }

  .hero-layout { padding: 16px 20px 0 !important; }
  .hero-stage-ring { display: none; }

  .gallery-slide { flex: 0 0 50%; max-width: 50%; }

  .presence { padding: 0 0 30px 0 !important; }
  .gallery-section { padding: 0 0 20px 0 !important; }

  .forthcoming-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .section-desc { font-size: 1rem; }

  /* jimex / interbuild sectors */
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }

  .flip-card {
    --card-height: 160px;
    --icon-size: 70px;
    --icon-font-size: 1.5rem;
  }

  /* contact form */
  .form-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
  .contact-form-section { padding: 28px 0 !important; }
}

/* ── MOBILE LARGE: 768px ── */
@media (max-width: 768px) {
  :root { --header-h: 58px; }

  .container { padding: 0 16px; }

  /* Hero */
  .hero-layout { padding: 12px 12px 0 !important; }
  .carousel-container { border-radius: 10px; }
  .carousel-container:hover { transform: none; box-shadow: var(--shadow-md); }

  /* Forthcoming */
  .forthcoming-grid { grid-template-columns: 1fr; gap: 14px; }
  .forthcoming-card { padding: 14px 16px 16px; gap: 8px; }
  .fc-title { font-size: 1.1rem; }
  .fc-desc { font-size: 0.86rem; }
  .fc-btn { min-height: 44px; }

  /* Gallery */
  .gallery-slide { flex: 0 0 100%; max-width: 100%; }
  .gallery-slide img { height: 200px; }
  .gallery-arrow { min-width: 44px; min-height: 44px; }

  /* Section headers */
  .section-header h2 { font-size: 1.6rem; }
  .section-desc { font-size: 0.95rem; }

  /* jimex / interbuild */
  .hero-box { padding: 0 12px; }
  .frame { border-radius: 12px; }
  .frame:hover { transform: none; box-shadow: var(--shadow-md); }
  .ib-hero { padding: 12px 0 0; }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .flip-card {
    --card-height: 150px;
    --icon-size: 64px;
    --icon-font-size: 1.4rem;
    --title-font-size: 0.82rem;
  }

  .content-cols { grid-template-columns: 1fr !important; gap: 16px !important; }
  .content-block { padding: 20px 16px; border-radius: 14px; }
  .content-block h2, .content-block h3 { font-size: 1.3rem; }

  .video-section .video-wrap { border-radius: 12px; }

  /* venue map */
  .map-address-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
  }
  .map-wrapper iframe { height: 300px !important; min-height: 300px !important; }
  .map-section { padding: 0 0 16px 0 !important; margin-top: 16px !important; }

  /* contact */
  .contact-form-section { padding: 20px 0 !important; }
  .form-card { padding: 24px 18px; border-radius: 12px; }
  .form-card h3 { font-size: 1.25rem; }
  .form-row { grid-template-columns: 1fr !important; gap: 12px !important; margin-bottom: 12px !important; }
  .form-group input, .form-group textarea { padding: 11px 14px; font-size: 0.88rem; }
  .form-group textarea { min-height: 100px; }
  .btn-submit { width: 100%; justify-content: center; padding: 14px 20px; }
  .form-submit-row { flex-direction: column; gap: 10px; }
  .form-note { text-align: center; }
  .form-intro h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .form-social-row { justify-content: center; }
  .form-social-btn { font-size: 0.75rem; padding: 6px 12px; }
  .contact-details-text { padding: 12px 0 4px; }
  .contact-line { font-size: 0.88rem; gap: 10px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; padding: 28px 20px 18px; gap: 24px; }
  .footer-brand { grid-column: auto; text-align: left !important; align-items: flex-start !important; }
  .footer-brand p { max-width: 100%; text-align: left !important; }
  .footer-tagline { text-align: left !important; display: block !important; }
  .footer-social { justify-content: flex-start; }
  .footer-links ul li a { padding: 6px 0; min-height: 36px; }
  .footer-contact ul li { gap: 8px; }
  .footer-bottom-inner { flex-direction: column; text-align: left; align-items: flex-start; gap: 6px; padding: 0 20px; }
}

/* ── MOBILE SMALL: 480px ── */
@media (max-width: 480px) {
  :root { --header-h: 56px; }

  .container { padding: 0 12px; }

  .hero-layout { padding: 10px 10px 0 !important; }

  .section-label { font-size: 0.75rem; letter-spacing: 0.16em; }
  .section-header h2 { font-size: 1.45rem; }
  .section-desc { font-size: 0.88rem; }

  .gallery-arrow { width: 38px; height: 38px; font-size: 0.8rem; }
  .gallery-slide img { height: 180px; }

  .ufi-stamp { width: 38px; height: 38px; }

  .forthcoming-grid { gap: 12px; }
  .forthcoming-card { padding: 12px 14px 14px; }
  .fc-btn { padding: 10px 18px; font-size: 0.75rem; }
  .fc-title { font-size: 1rem; }

  /* jimex / interbuild */
  .hero-box { padding: 0 8px; }
  .frame { border-radius: 10px; }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .flip-card {
    --card-height: 140px;
    --icon-size: 56px;
    --icon-font-size: 1.25rem;
    --title-font-size: 0.78rem;
    --divider-width: 18px;
  }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .section-desc { padding: 0 4px !important; }

  /* venue */
  .map-wrapper iframe { height: 250px !important; min-height: 250px !important; }
  .map-address-card { padding: 14px 14px; gap: 10px; }
  .mac-icon { width: 34px; height: 34px; font-size: 0.85rem; }
  .mac-text span { font-size: 0.78rem; }

  /* contact */
  .form-card { padding: 20px 14px; }
  .contact-line { flex-wrap: wrap; gap: 6px; }
  .contact-line strong { min-width: auto; }

  /* footer */
  .footer-main { padding: 22px 14px 16px; gap: 20px; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-links ul li a { font-size: 0.85rem; }
  .footer-contact ul li { font-size: 0.85rem; }
  .footer-bottom-inner { padding: 0 14px; }
}

/* ── TOUCH DEVICE OPTIMIZATIONS ── */
@media (hover: none) {
  .carousel-container:hover { transform: none !important; box-shadow: var(--shadow-md) !important; }
  .frame:hover { transform: none !important; box-shadow: var(--shadow-md) !important; }
  .fc-btn:hover { transform: none !important; }
  .footer-social a:hover { transform: none !important; }
  .social-icon:hover { transform: none !important; }
  .gallery-slide img:hover { transform: none !important; filter: brightness(0.94) !important; }
}

/* ── MINIMUM TAP TARGETS ── */
@media (max-width: 992px) {
  .fc-btn { min-height: 44px; }
  .gallery-arrow { min-width: 44px; min-height: 44px; }
  .mobile-menu a { min-height: 48px; }
  .mobile-social a { min-width: 44px; min-height: 44px; }
  .hamburger { min-width: 44px; min-height: 44px; }
  .gallery-track { -webkit-overflow-scrolling: touch; }
}

/* ── FORCE FOOTER LEFT ALIGNMENT ON MOBILE - BULLETPROOF OVERRIDE ── */
@media (max-width: 768px) {
  .site-footer .footer-brand {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .site-footer .footer-brand p,
  .site-footer .footer-brand .footer-tagline {
    text-align: left !important;
    max-width: 100% !important;
    display: block !important;
  }
}