/* ── JENETICDRIFT SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=DM+Sans:ital,wght@0,200;0,300;0,400;1,200;1,300&display=swap');

:root {
  --c-mist: #E8F5F5;
  --c-aqua: #A8D8D4;
  --c-pool: #4FBFB8;
  --c-teal: #2A9B8C;
  --c-ocean: #1B7A8A;
  --c-deep: #0B6E7A;
  --c-abyss: #084E58;
  --c-gold: #C4973A;
  --c-parchment: #F5EDD8;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--c-mist);
  color: var(--c-abyss);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 15px;
}

a { text-decoration: none; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: var(--c-mist);
  border-bottom: 1px solid rgba(27, 122, 138, 0.15);
}

.nav-left a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.04em;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 42px);
  color: var(--c-abyss);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.9;
  white-space: nowrap;
}

.nav-logo-core {
  display: inline-block;
  font-size: 0.8em;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-logo-drift {
  display: inline-flex;
  align-items: baseline;
  gap: 0.01em;
  line-height: 1;
}

.nav-logo-core .letter,
.nav-logo-drift .drift-letter {
  display: inline-block;
  line-height: 1;
  margin-left: 0;
}

.nav-logo-core .j1 { color: var(--c-abyss); font-size: 0.90em; }
.nav-logo-core .j2 { color: var(--c-ocean); font-size: 0.94em; margin-left: 0.01em; }
.nav-logo-core .j3 { color: var(--c-teal); font-size: 0.98em; margin-left: 0.02em; }
.nav-logo-core .j4 { color: var(--c-pool); font-size: 1.02em; margin-left: 0.02em; }
.nav-logo-core .j5 { color: var(--c-aqua); font-size: 1.04em; margin-left: 0.03em; }
.nav-logo-core .j6 { color: var(--c-gold); font-size: 1.00em; margin-left: 0.03em; }
.nav-logo-core .j7 { color: var(--c-abyss); font-size: 0.94em; margin-left: 0.04em; }

.nav-logo-drift .d1 { color: var(--c-abyss); font-size: 0.92em; margin-left: 0.12em; }
.nav-logo-drift .d2 { color: var(--c-ocean); font-size: 0.86em; margin-left: 0.18em; }
.nav-logo-drift .d3 { color: var(--c-teal); font-size: 0.80em; margin-left: 0.26em; }
.nav-logo-drift .d4 { color: var(--c-pool); font-size: 0.74em; margin-left: 0.34em; }
.nav-logo-drift .d5 { color: var(--c-gold); font-size: 0.68em; margin-left: 0.46em; }

.nav-logo-core .j1,
.nav-logo-core .j2,
.nav-logo-core .j3,
.nav-logo-core .j4,
.nav-logo-core .j5,
.nav-logo-core .j6,
.nav-logo-core .j7,
.nav-logo-drift .d1,
.nav-logo-drift .d2,
.nav-logo-drift .d3,
.nav-logo-drift .d4,
.nav-logo-drift .d5 {
  text-shadow: 0 0 0 transparent;
}

.nav-tagline {
  display: block;
  max-width: 12ch;
  padding-top: 0.3rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(196, 151, 58, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-ocean);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 20px;
  color: var(--c-ocean);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--c-gold); }
.nav-links a.active { color: var(--c-gold); }

@media (max-width: 900px) {
  .nav {
    padding: 0.9rem 1.1rem 0.8rem;
    gap: 1rem;
  }

  .nav-logo {
    font-size: clamp(24px, 5vw, 34px);
  }

  .nav-tagline {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .nav-links {
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ── SUBNAV ── */
.subnav {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 0.8rem 2.5rem 0.95rem;
  background: var(--c-mist);
  border-bottom: 1px solid rgba(27, 122, 138, 0.1);
  position: relative;
  overflow: hidden;
}

.subnav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 24'%3E%3Cpath d='M0 5 Q80 2 160 5 T320 5 T480 7 T640 5' fill='none' stroke='%23A8D8D4' stroke-width='0.8'/%3E%3Cpath d='M0 10 Q95 7 190 10 T380 10 T570 11 T640 10' fill='none' stroke='%234FBFB8' stroke-width='0.95'/%3E%3Cpath d='M0 15 Q88 12 176 15 T352 15 T528 17 T640 15' fill='none' stroke='%23C4973A' stroke-width='0.8'/%3E%3Cpath d='M0 19 Q80 16 160 19 T320 19 T480 20 T640 19' fill='none' stroke='%231B7A8A' stroke-width='1.05'/%3E%3Cpath d='M0 23 Q80 20 160 23 T320 23 T480 24 T640 23' fill='none' stroke='%230B6E7A' stroke-width='1.2'/%3E%3C/svg%3E")
    left bottom / 420px 18px repeat-x;
  opacity: 0.38;
  pointer-events: none;
}

.subnav a {
  font-size: 13px;
  font-weight: 300;
  color: var(--c-teal);
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.subnav a:hover { color: var(--c-gold); }
.subnav a.active { color: var(--c-gold); border-bottom: 1px solid var(--c-gold); padding-bottom: 2px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  background: var(--c-mist);
  padding: 3rem 2.5rem;
  overflow: hidden;
}

.page-hero-waves {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero .eyebrow {
  font-weight: 200;
  font-style: italic;
  font-size: 11px;
  color: var(--c-teal);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 52px;
  color: var(--c-abyss);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero h1 .gold { color: var(--c-gold); }

.page-hero .gold-rule {
  width: 44px;
  height: 2px;
  background: var(--c-gold);
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Ghost glyph watermark in hero */
.page-hero-ghost {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.page-hero-ghost svg {
  width: 100%;
  height: 100%;
}

/* ── WAVE DIVIDER ── */
.wave-divider {
  width: 100%;
  height: 32px;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* ── GLYPH-CHARACTER INVITATIONS ── */
.glyph-invitation {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: gap 0.3s ease;
  margin-top: 1.5rem;
}

.glyph-invitation:hover {
  gap: 1rem;
}

.glyph-invitation .gi-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--c-gold);
}

.glyph-invitation .gi-svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.glyph-invitation:hover .gi-svg {
  transform: translateX(4px);
}

/* On dark backgrounds */
.bg-ocean .glyph-invitation .gi-label,
.page-hero .glyph-invitation .gi-label { color: var(--c-gold); }

.page-hero .subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--c-ocean);
  line-height: 1.75;
  max-width: 560px;
}

/* ── REUSABLE SECTION MARKER LAYOUT (INNER PAGES) ── */
.section-marker-shell {
  display: grid;
  grid-template-columns: clamp(280px, 25vw, 360px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  padding: 1rem 0.8rem 2rem;
}

.section-marker {
  position: relative;
  top: auto;
  align-self: start;
  min-height: auto;
  background: linear-gradient(180deg, rgba(248, 252, 252, 0.98), rgba(232, 245, 245, 0.94));
  border: 1px solid rgba(11, 110, 122, 0.1);
  box-shadow: 0 16px 40px rgba(11, 78, 88, 0.05);
  padding: 1.25rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.section-marker-glyph {
  width: auto;
  height: clamp(88px, 9vw, 118px);
  opacity: 0.92;
  margin-bottom: 0.35rem;
  display: block;
}

.section-marker .eyebrow {
  font-size: 11px;
  margin-bottom: 0.45rem;
}

.section-marker-title {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: var(--c-abyss);
  text-transform: uppercase;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.section-marker-title .gold {
  color: var(--c-gold);
}

.section-marker .gold-rule {
  width: 44px;
  height: 2px;
  background: var(--c-gold);
  margin: 0.4rem 0 0.6rem;
}

.section-marker-blurb {
  max-width: 20ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ocean);
  margin: 0;
}

.section-marker-main {
  min-width: 0;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 3.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 40px;
  color: var(--c-deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.content-section p {
  margin-bottom: 1.2rem;
  color: var(--c-abyss);
}

.content-section .gold-rule {
  width: 44px;
  height: 2px;
  background: var(--c-gold);
  opacity: 0.85;
  margin: 2rem 0;
}

/* ── SECTION WITH BG COLOURS ── */
.bg-aqua { background: var(--c-aqua); }
.bg-mist { background: var(--c-mist); }
.bg-parchment { background: var(--c-parchment); }
.bg-ocean { background: var(--c-ocean); color: var(--c-mist); }
.bg-ocean h2, .bg-ocean p { color: var(--c-mist); }
.bg-ocean .gold-rule { background: var(--c-gold); }

/* ── GOLD ACCENT ── */
.gold-accent-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-gold) 30%, var(--c-gold) 70%, transparent 100%);
  opacity: 0.4;
}

/* ── CONTACT FORM ── */
.form-wrap {
  max-width: 520px;
}

.form-wrap label {
  display: block;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--c-deep);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  margin-top: 1.5rem;
}

.form-wrap label:first-child { margin-top: 0; }

.form-wrap input,
.form-wrap textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--c-abyss);
  background: white;
  border: 1px solid rgba(27, 122, 138, 0.25);
  outline: none;
  transition: border-color 0.2s;
}

.form-wrap input:focus,
.form-wrap textarea:focus {
  border-color: var(--c-teal);
}

.form-wrap textarea { min-height: 120px; resize: vertical; }

.form-wrap .optional {
  font-size: 11px;
  font-weight: 200;
  font-style: italic;
  color: var(--c-teal);
  margin-left: 0.5rem;
}

.form-btn {
  margin-top: 1.8rem;
  padding: 0.6rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--c-mist);
  background: var(--c-abyss);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.form-btn:hover { background: var(--c-deep); }

/* ── CTA LINK ── */
.cta-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 300;
  color: var(--c-gold);
  margin-top: 1.5rem;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 17px; }
  .subnav { padding: 0.6rem 1.5rem; gap: 1.5rem; }
  .page-hero { padding: 2.5rem 1.5rem; }
  .page-hero h1 { font-size: 42px; }
  .content-section { padding: 2.5rem 1.5rem; }

  .section-marker-shell {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem 0;
  }

  .section-marker {
    position: static;
    min-height: auto;
    padding: 1rem 0.95rem 0.9rem;
  }

  .section-marker-title {
    font-size: 42px;
  }

}

@media (max-width: 480px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 15px; }
  .page-hero h1 { font-size: 36px; }
}
