/* ================================
   BUPA UK EXCHANGE PAGE
================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #1a2e3b; --teal: #2a7f9e; --teal-light: #5ba3c9;
  --sky: #dff0f7; --green: #4caf7d; --gold: #c9a84c; --gold-light: #fdf6e3;
  --white: #ffffff; --off-white: #f7fbfd; --grey: #8fa8b5; --text: #1a2e3b; --text-muted: #5a7080; --border: #d0e8f2;
  --font-display: 'Cormorant Garamond', Georgia, serif; --font-body: 'DM Sans', sans-serif;
  --radius: 16px; --shadow: 0 4px 24px rgba(26,46,59,0.08); --shadow-md: 0 8px 40px rgba(26,46,59,0.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); }
h2 em { color: var(--teal); font-style: italic; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.ex-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ex-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* BTN */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 50px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; cursor: pointer; border: 2px solid transparent; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(42,127,158,0.35); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

/* NAV */
.ex-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,46,59,0.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 0; }
.ex-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.back-btn { color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.back-btn:hover { color: var(--white); transform: translateX(-4px); }
.ex-nav-title { color: rgba(255,255,255,0.5); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.ex-logo { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.ex-logo em { color: var(--teal-light); font-style: italic; }

/* HERO */
.ex-hero { min-height: 85vh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding: 80px 24px 80px; }
.ex-hero-bg { position: absolute; inset: -40px; }
.ex-hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.45) saturate(0.8); transform-origin: center; transition: transform 8s ease; }
.ex-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,46,59,0.95) 0%, rgba(26,46,59,0.5) 50%, rgba(26,46,59,0.3) 100%); }
.ex-hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.ex-flag { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); padding: 7px 20px; border-radius: 50px; font-size: 0.85rem; margin-bottom: 24px; backdrop-filter: blur(8px); }
.ex-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 300; color: var(--white); letter-spacing: -0.02em; margin-bottom: 16px; }
.ex-hero h1 em { color: var(--teal-light); font-style: italic; display: block; }
.ex-hero-sub { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 40px; letter-spacing: 0.04em; }
.ex-hero-stats { display: inline-flex; align-items: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 0; backdrop-filter: blur(10px); }
.ex-stat { text-align: center; padding: 0 28px; }
.ex-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--white); font-weight: 600; }
.ex-stat span { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.ex-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.12); }
.ex-hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.35); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; z-index: 2; }
.ex-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.4;} 50%{opacity:1;} }

/* INTRO */
.ex-intro { padding: 100px 0; background: var(--white); }
.ex-intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.ex-intro-text h2 { margin-bottom: 20px; }
.ex-intro-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.ex-intro-highlights { display: flex; flex-direction: column; gap: 20px; }
.ex-highlight { display: flex; gap: 16px; align-items: flex-start; background: var(--off-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: all 0.3s; }
.ex-highlight:hover { border-color: var(--teal-light); box-shadow: var(--shadow); transform: translateX(4px); }
.ex-highlight > span { font-size: 1.5rem; flex-shrink: 0; }
.ex-highlight strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.ex-highlight p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* GALLERY */
.ex-gallery { padding: 80px 0 100px; background: #0f1e27; }
.ex-gallery .ex-label { color: var(--teal-light); }
.ex-gallery h2 { color: var(--white); }
.ex-gallery h2 em { color: var(--teal-light); }
.ex-section-header { text-align: center; margin-bottom: 56px; }

.gallery-feature { margin-bottom: 40px; }
.gallery-feature-img { position: relative; overflow: hidden; border-radius: 20px; max-height: 600px; cursor: pointer; }
.gallery-feature-img img { width: 100%; height: 600px; object-fit: cover; object-position: center top; transition: transform 8s cubic-bezier(0.25,0.46,0.45,0.94); }
.gallery-feature-img:hover img { transform: scale(1.08) translateY(-10px); }
.gallery-feature-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 32px 32px; background: linear-gradient(to top, rgba(15,30,39,0.95) 0%, transparent 100%); }
.gallery-feature-caption.right { text-align: right; }
.gallery-feature-caption p { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.6; max-width: 580px; margin-top: 8px; }
.gallery-feature-caption.right p { margin-left: auto; }
.caption-tag { display: inline-block; background: var(--teal); color: var(--white); padding: 4px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.gallery-feature-reverse .gallery-feature-img img { object-position: center 20%; }

.gallery-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.gallery-duo-item { }
.gallery-img-wrap { overflow: hidden; border-radius: 16px; margin-bottom: 16px; cursor: pointer; }
.gallery-img-wrap img { width: 100%; height: 420px; object-fit: cover; object-position: center top; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.gallery-img-wrap:hover img { transform: scale(1.06) rotate(0.5deg); }
.gallery-caption .caption-tag { margin-bottom: 8px; }
.gallery-caption p { color: rgba(255,255,255,0.6); font-size: 0.87rem; line-height: 1.6; }

/* Tilt effect */
.tilt-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tilt-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* LEARNINGS */
.ex-learnings { padding: 100px 0; background: var(--off-white); }
.ex-section-header { text-align: center; margin-bottom: 56px; }
.learnings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.learning-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.3s; }
.learning-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.lc-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--teal-light); opacity: 0.3; line-height: 1; margin-bottom: 12px; }
.learning-card h3 { margin-bottom: 10px; }
.learning-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* CTA */
.ex-cta { padding: 100px 0; background: var(--navy); }
.ex-cta-content { text-align: center; max-width: 680px; margin: 0 auto; }
.ex-cta h2 { color: var(--white); margin-bottom: 20px; }
.ex-cta h2 em { color: var(--teal-light); }
.ex-cta p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.8; margin-bottom: 36px; }
.ex-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: #0d1820; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); display: block; margin-bottom: 4px; }
.footer-logo em { color: var(--teal-light); font-style: italic; }
.footer-inner > div > p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 0.76rem; text-align: center; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(10,18,24,0.96); align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 24px; right: 28px; color: rgba(255,255,255,0.7); font-size: 1.8rem; cursor: pointer; background: none; border: none; transition: all 0.2s; line-height: 1; }
.lightbox-close:hover { color: var(--white); transform: scale(1.2); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.55); font-size: 0.85rem; text-align: center; }

@media (max-width: 760px) {
  .ex-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-duo { grid-template-columns: 1fr; }
  .gallery-feature-img img, .gallery-img-wrap img { height: 300px; }
  .ex-nav-title { display: none; }
}
