/* ── Port Elysium Portal — Shared Styles ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0a1628;
  --navy-light: #12233d;
  --navy-mid: #0e1d33;
  --sand: #f5f0e8;
  --sand-dark: #e8e0d0;
  --gold: #c9a96e;
  --gold-light: #d4ba88;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --text-body: #3a3a3a;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--white); background: var(--navy); -webkit-font-smoothing: antialiased; }

/* ── Login Gate ── */
#login-gate { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 2rem; }
#portal-content { display: none; }
#login-gate .login-inner { max-width: 420px; }
#login-gate img { height: 80px; margin-bottom: 2rem; filter: brightness(0) invert(1); opacity: 0.8; }
#login-gate h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 300; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
#login-gate .login-sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; margin-bottom: 2.5rem; line-height: 1.7; }
.btn-login { display: inline-block; padding: 0.9rem 3rem; background: transparent; border: 1px solid var(--gold); color: var(--gold); font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; border-radius: 2px; }
.btn-login:hover { background: var(--gold); color: var(--navy); }
#login-gate .back-link { display: block; margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); text-decoration: none; letter-spacing: 0.1em; }
#login-gate .back-link:hover { color: var(--gold); }
#login-gate .login-form { width: 100%; max-width: 320px; margin: 0 auto 1rem; }
#login-gate .login-form input { display: block; width: 100%; padding: 0.75rem 1rem; margin-bottom: 0.8rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 300; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
#login-gate .login-form input::placeholder { color: rgba(255,255,255,0.35); }
#login-gate .login-form input:focus { border-color: var(--gold); }
#login-gate .login-error { color: #e74c3c; font-size: 0.75rem; margin-bottom: 0.8rem; display: none; }
#login-gate .login-forgot { display: inline-block; font-size: 0.68rem; color: var(--text-muted); text-decoration: none; margin-top: 0.6rem; letter-spacing: 0.05em; cursor: pointer; border: none; background: none; font-family: 'Inter', sans-serif; padding: 0; }
#login-gate .login-forgot:hover { color: var(--gold); }
#login-gate .login-reset-msg { color: var(--gold); font-size: 0.72rem; margin-top: 0.5rem; display: none; line-height: 1.6; }
#portal-content { display: block; }

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.2rem 3rem; display: flex; justify-content: space-between; align-items: center; transition: background 0.4s, padding 0.4s; background: rgba(10,22,40,0.7); backdrop-filter: blur(10px); }
nav.scrolled { background: rgba(10,22,40,0.95); backdrop-filter: blur(12px); padding: 0.8rem 3rem; }
nav .logo img { height: 36px; opacity: 0.95; }
nav .nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
nav .nav-links a { color: var(--white); text-decoration: none; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; transition: opacity 0.3s, color 0.3s; }
nav .nav-links a:hover, nav .nav-links a.active { opacity: 1; color: var(--gold); }
nav .account-trigger { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; cursor: pointer; border: 1px solid rgba(201,169,110,0.3); padding: 0.3rem 0.8rem; border-radius: 2px; transition: all 0.3s; text-decoration: none; }
nav .account-trigger:hover { border-color: var(--gold); color: #fff; }

/* ── Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; margin-left: 5px; vertical-align: middle; opacity: 0.5; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -0.5rem; min-width: 180px; background: rgba(10,22,40,0.97); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 0.8rem 0 0.5rem; margin-top: 0; }
.dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; background: transparent; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.active .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 1.2rem; font-size: 0.7rem; letter-spacing: 0.08em; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(201,169,110,0.08); }
#user-nav-dropdown .dropdown-menu, #user-nav-dropdown-account .dropdown-menu { left: auto; right: 0; }

/* ── Hero ── */
.hero { height: 75vh; min-height: 500px; display: flex; align-items: flex-end; justify-content: flex-start; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0.25) 0%, rgba(10,22,40,0.1) 40%, rgba(10,22,40,0.7) 100%); }
.hero-content { position: relative; z-index: 2; padding: 4rem; max-width: 700px; }
.hero-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 500; }
.hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3rem; font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 0.92rem; font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 520px; }

/* ── Shared ── */
section { padding: 6rem 3rem; }
.section-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.section-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; font-weight: 300; line-height: 1.25; margin-bottom: 1.2rem; }
.section-subheading { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 300; line-height: 1.3; margin-bottom: 1rem; color: var(--gold-light); }
.divider { width: 50px; height: 1px; background: var(--gold); margin: 1.5rem 0; opacity: 0.4; }
.container { max-width: 1200px; margin: 0 auto; }
.text-muted { color: rgba(255,255,255,0.6); }
.text-gold { color: var(--gold); }

/* ── Body Text ── */
.body-text { font-size: 0.92rem; line-height: 1.85; font-weight: 300; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.body-text-dark { font-size: 0.92rem; line-height: 1.85; font-weight: 300; color: #555; margin-bottom: 1rem; }

/* ── Two-Column Layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col-center { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* ── Stats Banner ── */
.stats-banner { background: var(--navy-light); padding: 3.5rem 3rem; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 1.5rem; text-align: center; }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stats-grid-6 { grid-template-columns: repeat(6, 1fr); }
.stat-number { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; font-weight: 300; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); line-height: 1.5; }

/* ── Cards ── */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Image Card */
.img-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.img-card:hover { transform: translateY(-3px); border-color: rgba(201,169,110,0.2); }
.img-card .card-img { height: 220px; overflow: hidden; }
.img-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.img-card:hover .card-img img { transform: scale(1.04); }
.img-card .card-body { padding: 1.5rem; }
.img-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
.img-card p { font-size: 0.8rem; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.6); }
.img-card .card-stat { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.8rem; font-weight: 500; }

/* Light Card (sand bg) */
.img-card-light { background: var(--white); border: none; }
.img-card-light h3 { color: var(--navy); }
.img-card-light p { color: #666; }

/* Info Card */
.info-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 2rem; }
.info-card h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 400; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.82rem; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.6); }
.info-card-light { background: var(--white); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.04); border-radius: 3px; padding: 2rem; }
.info-card-light h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 400; color: var(--navy); margin-bottom: 0.5rem; }
.info-card-light p { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 0.82rem; line-height: 1.7; font-weight: 300; color: #666; }

/* Metric Card */
.metric-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 1.8rem; text-align: center; }
.metric-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.2rem; font-weight: 300; color: var(--gold); margin-bottom: 0.3rem; }
.metric-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }

/* ── Feature Section (image + text side by side) ── */
.feature { padding: 0; }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; }
.feature-img { overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-text { display: flex; align-items: center; padding: 4rem; }
.feature-text-inner { max-width: 480px; }
.feature-dark { background: var(--navy); }
.feature-dark .body-text { color: rgba(255,255,255,0.7); }
.feature-light { background: var(--sand); }
.feature-light .section-heading { color: var(--navy); }
.feature-light .body-text { color: #555; }
.feature-light .section-label { color: var(--gold); }

/* ── Full-Width Image ── */
.full-image { height: 45vh; min-height: 300px; overflow: hidden; }
.full-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sand Section ── */
.sand-section { background: var(--sand); color: var(--text-body); }
.sand-section .section-heading { color: var(--navy); }
.sand-section .section-label { color: var(--gold); }

/* ── Amenities Section (sand background) ── */
.amenities { background: var(--sand); color: var(--text-body); }
.amenities .section-heading { color: var(--navy); }
.amenities .section-label { color: var(--gold); }
.amenities-intro { font-size: 0.92rem; line-height: 1.85; font-weight: 300; color: #555; max-width: 700px; margin-bottom: 2.5rem; }
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.amenity-card { background: var(--white); border-radius: 3px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.amenity-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.amenity-card .card-img { height: 220px; overflow: hidden; }
.amenity-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.amenity-card:hover .card-img img { transform: scale(1.05); }
.amenity-card .card-body { padding: 1.5rem; }
.amenity-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 400; color: var(--navy); margin-bottom: 0.5rem; }
.amenity-card p { font-size: 0.8rem; line-height: 1.7; font-weight: 300; color: #666; }
.amenity-card .card-stat { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.8rem; font-weight: 500; }

/* ── Investment Section (for connectivity) ── */
.investment { background: var(--navy-mid); }
.invest-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.invest-detail h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 1rem; }
.invest-detail p { font-size: 0.88rem; line-height: 1.8; font-weight: 300; color: rgba(255,255,255,0.65); margin-bottom: 0.8rem; }

/* ── Team ── */
.team-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 1.5rem; }
.team-card h4 { font-size: 0.92rem; font-weight: 500; margin-bottom: 0.2rem; }
.team-card .team-role { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; font-weight: 500; }
.team-card p { font-size: 0.76rem; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.5); }

/* ── Data Room ── */
.doc-card { display: flex; align-items: center; gap: 1.2rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 1.2rem 1.5rem; transition: border-color 0.3s; cursor: pointer; text-decoration: none; color: var(--white); }
.doc-card:hover { border-color: var(--gold); }
.doc-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(201,169,110,0.1); border-radius: 3px; flex-shrink: 0; }
.doc-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.doc-info h4 { font-size: 0.85rem; font-weight: 400; margin-bottom: 0.15rem; }
.doc-info p { font-size: 0.68rem; color: var(--text-muted); font-weight: 300; }

/* ── Footer ── */
footer, .site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem; text-align: center; }
footer img, .site-footer img { height: 28px; opacity: 0.35; margin-bottom: 1.2rem; }
footer p, .site-footer p { font-size: 0.62rem; color: rgba(255,255,255,0.22); line-height: 1.8; max-width: 700px; margin: 0 auto; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-brand p { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.footer-links a { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 0.68rem; color: var(--gold); text-decoration: none; letter-spacing: 0.05em; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-legal p { font-size: 0.6rem; color: rgba(255,255,255,0.2); }

/* ── Mobile Menu Toggle ── */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; position: relative; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; border-radius: 1px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5, .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .invest-detail { grid-template-columns: 1fr; }
  .programmes-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  /* Nav — hamburger menu */
  .menu-toggle { display: block; position: fixed; top: 1rem; right: 1.5rem; z-index: 9999; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  nav { padding: 0.8rem 1.5rem; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,22,40,0.95); }
  nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  nav .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98);
    padding: 5rem 2rem 2rem;
    gap: 0.3rem;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 9990;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links li { width: 100%; }
  nav .nav-links a { font-size: 0.85rem; display: block; padding: 0.7rem 0; opacity: 0.8; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav .nav-links a:hover { opacity: 1; }
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown:hover .dropdown-menu,
  .dropdown-menu { display: none; position: static; background: none; border: none; backdrop-filter: none; padding: 0 0 0 1rem; margin: 0; }
  .nav-dropdown.active .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 0.5rem 0; font-size: 0.78rem; border-bottom: none; }
  nav .btn-logout { margin-top: 1rem; }

  /* User dropdown — auto-expand on mobile so admin/introducer links are visible */
  #user-nav-dropdown { border-top: 1px solid rgba(201,169,110,0.25); margin-top: 0.5rem; padding-top: 0.5rem; }
  #user-nav-dropdown .dropdown-menu { display: block; padding: 0; }
  #user-nav-dropdown .dropdown-menu a { padding: 0.7rem 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav .account-trigger { font-size: 0.85rem; border: none; padding: 0.7rem 0; color: var(--gold); font-weight: 500; letter-spacing: 0.12em; }

  /* Sections */
  section { padding: 4rem 1.5rem; }
  .hero { height: 55vh; min-height: 350px; }
  .hero-content { padding: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.85rem; }
  .section-heading { font-size: 1.7rem; }
  .section-subheading { font-size: 1.3rem; }
  .container { padding: 0; }

  /* Grids → single column */
  .two-col, .two-col-center { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5, .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-text { padding: 2.5rem 1.5rem; }
  .amenity-grid { grid-template-columns: 1fr; }
  .programmes-grid { grid-template-columns: 1fr !important; }

  /* Force inline grids to single column on mobile */
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Inline padding overrides */
  [style*="padding: 6rem 3rem"] { padding: 4rem 1.5rem !important; }
  [style*="padding: 7rem 3rem"] { padding: 4rem 1.5rem !important; }
  [style*="padding: 5rem 3rem"] { padding: 3.5rem 1.5rem !important; }

  /* Stats */
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.58rem; }
  .stats-banner { padding: 2.5rem 1.5rem; }

  /* Cards */
  .info-card, .info-card-light { padding: 1.5rem; }

  /* Footer */
  footer { padding: 2.5rem 1.5rem; }

  /* Route grid (getting-there) */
  .route-grid { grid-template-columns: 1fr !important; }
  .journey-grid { grid-template-columns: 1fr !important; }
  .journey-map iframe { height: 300px; }

  /* Body text sizing */
  .body-text, .body-text-dark { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .hero { height: 50vh; min-height: 300px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.82rem; }
  .section-heading { font-size: 1.4rem; }
  .stats-grid-4, .stats-grid-5, .stats-grid-6 { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.5rem; }
}
