/* ===== CSS VARIABLES ===== */
:root {
  --swiss-red: #E2001A;
  --swiss-red-dark: #a30014;
  --alpine-white: #F8F6F1;
  --glacier-blue: #1B4D6E;
  --forest-green: #2D5A3D;
  --gold-accent: #C9A84C;
  --gold-light: #F0D98C;
  --deep-navy: #0B1426;
  --midnight: #0D1B2A;
  --warm-stone: #D4C5A9;
  --soft-cream: #FFF9ED;
  --glass: rgba(248, 246, 241, 0.05);
  --glass-border: rgba(248, 246, 241, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep-navy);
  font-family: 'DM Sans', sans-serif;
  color: var(--alpine-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND ===== */
.bg-fixed {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(27, 77, 110, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(45, 90, 61, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(226, 0, 26, 0.08) 0%, transparent 50%),
    var(--deep-navy);
  z-index: 0;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--alpine-white);
}
.nav-cross {
  width: 36px;
  height: 36px;
  background: var(--swiss-red);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(226, 0, 26, 0.4);
}
.nav-cross::before, .nav-cross::after {
  content: '';
  position: absolute;
  background: white;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.nav-cross::before { width: 20px; height: 6px; }
.nav-cross::after { width: 6px; height: 20px; }

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav-brand-text span { color: var(--swiss-red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(248, 246, 241, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--alpine-white); }

.nav-cta {
  background: var(--swiss-red) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.2s !important;
  box-shadow: 0 4px 16px rgba(226, 0, 26, 0.3);
}
.nav-cta:hover {
  background: var(--swiss-red-dark) !important;
  transform: translateY(-1px);
}

.nav-calc {
  background: transparent !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600 !important;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border: 2px solid var(--swiss-red);
  transition: background 0.3s, transform 0.2s !important;
}
.nav-calc:hover {
  background: var(--swiss-red) !important;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--alpine-white);
  transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--swiss-red);
  color: white;
  box-shadow: 0 6px 30px rgba(226, 0, 26, 0.35);
}
.btn-primary:hover {
  background: var(--swiss-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(226, 0, 26, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--alpine-white);
  border: 1.5px solid rgba(248, 246, 241, 0.25);
}
.btn-outline:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent), #B08D3A);
  color: var(--deep-navy);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.45);
}

.btn-calc {
  background: transparent;
  color: white;
  border: 2px solid var(--swiss-red);
  box-shadow: 0 6px 30px rgba(230, 57, 70, 0.2);
}
.btn-calc:hover {
  background: var(--swiss-red);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
}

/* ===== SECTIONS COMMON ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 28px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: rgba(248, 246, 241, 0.6);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 50px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(248, 246, 241, 0.06);
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--swiss-red); }
.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-accent); }

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 246, 241, 0.15);
  color: rgba(248, 246, 241, 0.5);
  transition: all 0.3s ease;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}
.footer-social-link:hover {
  color: white;
  border-color: var(--swiss-red);
  background: rgba(230, 57, 70, 0.15);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(248, 246, 241, 0.2);
  letter-spacing: 1px;
}

/* ===== EMAIL GATE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: linear-gradient(145deg, #1a2a44, var(--deep-navy));
  border: 1px solid rgba(248, 246, 241, 0.12);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  animation: modalIn 0.4s ease-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(248, 246, 241, 0.4);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.modal-close:hover { color: var(--alpine-white); }

.modal .swiss-cross-sm {
  width: 48px;
  height: 48px;
  background: var(--swiss-red);
  border-radius: 4px;
  position: relative;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(226, 0, 26, 0.4);
}
.modal .swiss-cross-sm::before, .modal .swiss-cross-sm::after {
  content: '';
  position: absolute;
  background: white;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.modal .swiss-cross-sm::before { width: 26px; height: 8px; }
.modal .swiss-cross-sm::after { width: 8px; height: 26px; }

.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.modal .modal-sub {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.6);
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal input[type="text"],
.modal input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--alpine-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.modal input:focus {
  border-color: var(--gold-accent);
}
.modal input::placeholder {
  color: rgba(248, 246, 241, 0.35);
}

.modal .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 16px;
}

.modal .privacy-note {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(248, 246, 241, 0.3);
  margin-top: 16px;
}

.modal .success-msg {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.modal .success-msg .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.modal .success-msg h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.modal .success-msg p {
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@keyframes pulse-cross {
  0%, 100% { box-shadow: 0 4px 30px rgba(226, 0, 26, 0.4); }
  50% { box-shadow: 0 4px 50px rgba(226, 0, 26, 0.7); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — SHARED COMPONENTS ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 20, 38, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
  }
  .modal { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; max-width: 320px; }
}
