/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3D66;
  --crimson: #B8283B;
  --crimson-dark: #8E1F2E;
  --gold: #D4A843;
  --cream: #FAF8F5;
  --warm-white: #FDFCFA;
  --text-primary: #1B2A4A;
  --text-secondary: #5A6577;
  --text-light: #8A93A3;
  --border: #E8E4DF;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 228, 223, 0.6);
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(253, 252, 250, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
}

.nav__logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 50%;
}

.nav__logo span {
  color: var(--crimson);
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav__links a:hover { color: var(--crimson); }

.nav__cta {
  padding: 10px 24px;
  background: var(--navy);
  color: white !important;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition);
}

.nav__cta:hover { background: var(--navy-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--crimson);
  color: white;
}
.btn--primary:hover { background: var(--crimson-dark); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--navy);
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 48px;
}

.section--alt {
  background: var(--cream);
  background-image: url('../images/branding/asanoha-pattern-light.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: multiply;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  background-image: url('../images/branding/asanoha-pattern-4.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
  color: rgba(255,255,255,0.7);
  padding: 64px 48px 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__brand-name span { color: var(--gold); }

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer__links a:hover { color: white; }

.footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer__legal-links {
  display: flex;
  gap: 24px;
}

.footer__legal-links a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer__legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE HAMBURGER ===== */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 10px 6px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.nav__hamburger span:nth-child(1) { top: 0; }
.nav__hamburger span:nth-child(2) { top: 11px; }
.nav__hamburger span:nth-child(3) { top: 22px; }

/* ===== SEIGAIHA DIVIDER ===== */
.seigaiha-divider {
  width: 100%;
  height: 40px;
  background: url('../images/branding/seigaiha-divider-1.jpg') center/contain repeat-x;
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section { padding: 72px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .section { padding: 56px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .nav__logo { font-size: 18px; }
}

/* ===== MOBILE NAV DRAWER ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 24px;
    gap: 8px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav__links.mobile-open {
    display: flex;
  }
  .nav__links a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav__links .nav__cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }
  /* Hamburger X animation */
  .nav__hamburger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
}

/* ===== FOCUS STATES (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--crimson);
}

/* ===== SKIP TO MAIN ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
