:root {
  --ink: #172235;
  --muted: #5f6876;
  --paper: #fbf7ef;
  --panel: #fffdf8;
  --navy: #12264b;
  --gold: #c7982f;
  --gold-soft: #efe2c5;
  --line: #e8dfd0;
  --shadow: 0 24px 70px rgba(18, 38, 75, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 152, 47, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 38%, #f7f0e4 100%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

a { color: var(--navy); font-weight: 700; text-decoration: none; }
a:hover { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(232, 223, 208, 0.9);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 38, 75, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.94rem;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; margin: 0; }

h1 {
  max-width: 800px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  letter-spacing: -0.065em;
}

h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.045em; }
h3 { font-size: 1.25rem; }

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}

.button.primary { background: var(--navy); color: white; box-shadow: 0 16px 34px rgba(18, 38, 75, 0.24); }
.button.secondary { background: var(--gold-soft); color: var(--ink); }

.hero-card, .card, .panel, .notice, .legal-card {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 38px;
  padding: 34px;
  transform: rotate(1deg);
}

.hero-card img {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  display: block;
  margin-bottom: 24px;
}

.hero-card p, .card p, .panel p, .notice p, .support p, .legal-card p {
  color: var(--muted);
}

.hero-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.hero-card li::before {
  content: '✓';
  margin-right: 9px;
  color: var(--gold);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 210px;
  border-radius: 28px;
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.panel, .notice {
  border-radius: 32px;
  padding: 30px;
}

.notice {
  background: linear-gradient(135deg, var(--navy), #25436f);
  color: white;
}

.notice p { color: rgba(255, 255, 255, 0.82); max-width: 760px; }

.support {
  text-align: center;
}

.small { font-size: 0.94rem; }

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-card {
  border-radius: 34px;
  padding: clamp(24px, 5vw, 48px);
}

.legal-card h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 28px;
}

.legal-card section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

@media (max-width: 820px) {
  .nav { align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .nav-links { justify-content: flex-start; gap: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .hero-card { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}

@keyframes floatInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes softPulse {
  0%, 100% { transform: translateY(0) rotate(1deg); box-shadow: var(--shadow); }
  50% { transform: translateY(-8px) rotate(1deg); box-shadow: 0 32px 86px rgba(18, 38, 75, 0.18); }
}

@keyframes goldGlow {
  0%, 100% { opacity: 0.48; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(1.08); }
}

.site-header {
  animation: floatInDown 700ms ease both;
}

.hero-copy > *, .section-heading, .support > *, .legal-card > * {
  animation: floatInUp 740ms ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 90ms; }
.hero-copy > *:nth-child(3) { animation-delay: 170ms; }
.hero-copy > *:nth-child(4) { animation-delay: 250ms; }

.hero-card {
  animation: floatInUp 820ms ease 220ms both, softPulse 6s ease-in-out 1.1s infinite;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -30%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 152, 47, 0.35), transparent 68%);
  animation: goldGlow 5s ease-in-out infinite;
  pointer-events: none;
}

.card {
  animation: floatInUp 680ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 160ms; }
.card:nth-child(4) { animation-delay: 240ms; }
.card:nth-child(5) { animation-delay: 320ms; }
.card:nth-child(6) { animation-delay: 400ms; }

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 152, 47, 0.52);
  box-shadow: 0 26px 80px rgba(18, 38, 75, 0.16);
}

.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  font-family: Arial, sans-serif;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 152, 47, 0.16);
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
}

.form-alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 18px;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.form-alert.success {
  background: #e7f7ec;
  color: #1f6b35;
  border: 1px solid #b8e1c2;
}

.form-alert.error {
  background: #fff0ed;
  color: #a03424;
  border: 1px solid #efc1b8;
}

.form-intro {
  max-width: 720px;
}

.reveal-now {
  animation: floatInUp 740ms ease both;
}

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

@media (max-width: 820px) {
  .hero-card {
    animation: floatInUp 820ms ease 220ms both;
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 28px rgba(18, 38, 75, 0.1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(18, 34, 53, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.mobile-menu {
  position: fixed;
  z-index: 31;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(199, 152, 47, 0.2), transparent 18rem),
    rgba(255, 253, 248, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(18, 38, 75, 0.22);
  transform: translateX(105%);
  transition: transform 280ms cubic-bezier(.22,.8,.2,1);
}

.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-open .mobile-menu {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-links {
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(239, 226, 197, 0.55);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.mobile-menu-links a:hover {
  background: var(--navy);
  color: white;
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 1.04rem;
  }
}


.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(199, 152, 47, 0.42);
  border-radius: 18px;
  background: var(--navy);
  color: white;
  box-shadow: 0 18px 46px rgba(18, 38, 75, 0.26);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.94);
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

.captcha-wrap {
  display: flex;
  align-items: center;
  min-height: 78px;
  overflow: visible;
  padding: 0;
}

.g-recaptcha {
  flex: 0 0 auto;
}

@media (max-width: 360px) {
  .captcha-wrap {
    transform: scale(0.92);
    transform-origin: left top;
    min-height: 72px;
  }
}



.contact-card {
  overflow: hidden;
}

.contact-form,
.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
  max-width: 100%;
  min-width: 0;
}

.contact-form .button {
  width: 100%;
}

@media (max-width: 520px) {
  .legal-page {
    width: min(100% - 20px, 900px);
    padding: 28px 0 58px;
  }

  .legal-card {
    border-radius: 24px;
    padding: 20px 14px;
  }

  .legal-card h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
    overflow-wrap: anywhere;
  }

  .contact-form {
    gap: 14px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    border-radius: 15px;
    padding: 13px 12px;
  }

  .captcha-wrap {
    width: 100%;
    min-height: 72px;
    overflow: hidden;
  }

  .captcha-wrap .g-recaptcha {
    transform: scale(min(1, calc((100vw - 48px) / 304)));
    transform-origin: left top;
  }
}

@media (max-width: 340px) {
  .legal-page {
    width: min(100% - 12px, 900px);
  }

  .legal-card {
    padding: 18px 10px;
  }

  .captcha-wrap .g-recaptcha {
    transform: scale(0.82);
  }
}
