/* ============================================
   KnightPay - Common Styles
   Color Palette: Light Navy × Gold
   ============================================ */

:root {
  /* === Navy Palette (lighter & trustworthy) === */
  --navy-darkest: #1e3a5f;   /* darkest accent / footer */
  --navy-dark: #2c4f7c;      /* dark sections */
  --navy: #3a5f8f;           /* primary navy */
  --navy-mid: #5b7da6;       /* mid accent */
  --navy-light: #8aa5c4;     /* light blue */
  --navy-pale: #d6e0ed;      /* very pale blue */

  /* === Gold Palette === */
  --gold: #c9a961;
  --gold-bright: #d4b870;
  --gold-deep: #a88a42;
  --gold-pale: #ede0bb;

  /* === Neutrals === */
  --bg-cream: #f5f8fc;       /* slightly blue-tinted background */
  --bg-light: #ffffff;
  --white: #ffffff;
  --gray-border: #d8dde5;
  --text-primary: #2a3a4f;
  --text-secondary: #5a6b7f;
  --text-muted: #8898a8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Noto Serif JP', 'Cormorant Garamond', serif; }
.display { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
header {
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  position: relative;
  z-index: 100;
}
header.fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(58, 95, 143, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logo span { color: var(--gold-bright); }
.logo-mark {
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 8px;
  vertical-align: -3px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
nav a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
nav a:hover { color: var(--gold-bright); }
.btn-header {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--navy-darkest) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
}
.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
  color: var(--navy-darkest) !important;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--gold-bright);
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--navy-darkest);
  padding: 18px 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: all 0.4s;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.5);
  color: var(--navy-darkest);
}
.btn-primary .arrow {
  width: 18px; height: 1px;
  background: var(--navy-darkest);
  position: relative;
  transition: width 0.3s;
}
.btn-primary .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--navy-darkest);
  border-top: 1px solid var(--navy-darkest);
  transform: rotate(45deg);
}
.btn-primary:hover .arrow { width: 26px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* ============ COMMON SECTION ELEMENTS ============ */
section {
  padding: 120px 0;
  position: relative;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.section-label::before {
  display: none;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.section-title.light { color: var(--white); }
.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 700px;
  margin-bottom: 64px;
}
.section-lead.light { color: rgba(255, 255, 255, 0.85); }
.section-head { margin-bottom: 72px; }
.section-head.centered { text-align: center; }
.section-label.centered { justify-content: center; }
.section-lead.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ PAGE HERO (sub pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 50%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 24px;
}
.page-hero p { color: rgba(255,255,255,0.85); font-size: 15px; }

/* ============ FOOTER ============ */
footer {
  background: var(--navy-darkest);
  color: var(--white);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
footer.simple {
  padding: 40px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
footer.simple a { color: var(--gold-bright); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .logo {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 20px;
}
.footer-col h5 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  nav ul { display: none; }
  .menu-toggle { display: flex; }
  nav.open ul {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-dark);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
