*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #04111f;
  --deep: #061929;
  --mid: #0a2a42;
  --surface: #0d3456;
  --accent: #00b4d8;
  --glow: #48cae4;
  --mist: #90e0ef;
  --foam: #caf0f8;
  --text: #d0eaf5;
  --subtle: #6ba8c4;
  --white: #f0f8ff;
  --safe-x: max(18px, env(safe-area-inset-left));
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

button, input, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, #0a2a4280 0%, transparent 70%),
    radial-gradient(ellipse 70% 40% at 15% 55%, #00b4d818 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 20%, #023e581c 0%, transparent 60%),
    linear-gradient(180deg, #04111f 0%, #061929 52%, #0a1f30 100%);
}

.wave-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 150px;
  overflow: hidden;
  opacity: .28;
  pointer-events: none;
}
.wave { position: absolute; bottom: 0; width: 200%; height: 100%; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave-1 { animation: wave-move 12s linear infinite; opacity: .6; }
.wave-2 { animation: wave-move 18s linear infinite reverse; opacity: .4; bottom: -14px; }
.wave-3 { animation: wave-move 24s linear infinite; opacity: .25; bottom: -28px; }
@keyframes wave-move { to { transform: translateX(-50%); } }

.particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: float-up var(--dur) ease-in infinite;
  animation-delay: var(--delay);
}
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: .35; }
  90% { opacity: .08; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Mobile-first header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  padding: max(12px, env(safe-area-inset-top)) var(--safe-x) 0;
  pointer-events: none;
}
.language-switcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #164661;
  border-radius: 999px;
  background: #04111fd9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.language-switcher a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--subtle);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
}
.language-switcher a:hover,
.language-switcher a:focus-visible { color: var(--white); outline: 2px solid var(--accent); outline-offset: 1px; }
.language-switcher a[aria-current="page"] { background: #0d3456; color: var(--white); }

/* Main layout */
.page {
  position: relative;
  z-index: 10;
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 92px max(20px, env(safe-area-inset-right)) 110px max(20px, env(safe-area-inset-left));
}

.brand {
  width: 100%;
  text-align: center;
  margin: 8px 0 34px;
  animation: fade-down .8s ease both;
}
.brand-mark { display: inline-flex; align-items: center; margin-bottom: 12px; }
.brand-drop { width: 38px; height: 48px; }
.brand-drop svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px #00b4d880); }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.55rem, 12vw, 4rem);
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}
.brand-name span { color: var(--glow); font-style: italic; }
.brand-tagline {
  margin-top: 10px;
  color: var(--subtle);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero {
  width: 100%;
  max-width: 680px;
  margin: 0 0 40px;
  text-align: center;
  animation: fade-up .8s .15s ease both;
}
.hero-headline {
  margin: 0;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 10vw, 3.6rem);
  line-height: 1.08;
  text-wrap: balance;
}
.hero-headline em { color: var(--glow); font-style: italic; }

.contact-section {
  width: 100%;
  max-width: 560px;
  animation: fade-up .8s .3s ease both;
}
.contact-label {
  margin-bottom: 12px;
  text-align: center;
  color: #4c87a5;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.contact-heading {
  margin: 0 0 24px;
  text-align: center;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 7vw, 2rem);
  font-weight: 300;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #155070;
  border-radius: 12px;
  outline: none;
  background: #0a2236e8;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px; /* avoids unwanted iOS zoom */
  font-weight: 300;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #527c93; opacity: 1; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #0b2940;
  box-shadow: 0 0 0 3px #00b4d81d;
}
.form-group textarea { min-height: 132px; resize: vertical; }

.submit-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #006b96, #00b4d8);
  color: #fff;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 5px 28px #00b4d82e;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  touch-action: manipulation;
}
.submit-btn:hover { opacity: .94; box-shadow: 0 8px 36px #00b4d844; }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:focus-visible { outline: 3px solid var(--mist); outline-offset: 3px; }

.success, .error {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  text-align: center;
  font-size: .9rem;
}
.success { background: #0a3a2a; border: 1px solid #0d6b4a; color: #7de3ad; }
.error { background: #3a0a0a; border: 1px solid #6b1a1a; color: #f29a9a; }

.footer {
  position: relative;
  z-index: 10;
  padding: 20px max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  text-align: center;
  color: #3f7089;
  font-size: .72rem;
  letter-spacing: .08em;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (min-width: 640px) {
  .page { justify-content: center; padding-top: 96px; padding-bottom: 120px; }
  .brand { margin-bottom: 46px; }
  .brand-drop { width: 44px; height: 56px; }
  .brand-tagline { font-size: .75rem; letter-spacing: .3em; }
  .hero { margin-bottom: 58px; }
  .contact-heading { margin-bottom: 30px; }
  .wave-container { height: 220px; opacity: .32; }
}

/* Desktop */
@media (min-width: 960px) {
  .site-header { padding: 18px 28px 0; }
  .page { width: min(100%, 900px); padding-top: 88px; }
  .brand { margin-bottom: 54px; }
  .hero { margin-bottom: 66px; }
  .contact-section { max-width: 520px; }
  .wave-container { height: 260px; opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .particles { display: none; }
}
