/*
Theme Name: Kei Island LP
Theme URI: https://lp-vercel-lp-next-js-app.vercel.app
Author: Codex
Description: Portfolio landing page theme for the fictional real estate investment company Kei Island Inc.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: kei-island
*/

:root {
  --navy: #0a1e3f;
  --gold: #c9a961;
  --ivory: #f8f6f0;
  --ink: #172033;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(10, 30, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.font-serif,
h1,
h2,
h3 {
  font-family: "Noto Serif JP", Georgia, serif;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 30, 63, 0.92);
  color: var(--white);
  box-shadow: 0 10px 40px rgba(10, 30, 63, 0.18);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.container {
  width: min(100% - 2.5rem, 80rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(201, 169, 97, 0.7);
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.brand__name {
  display: block;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__tagline {
  display: block;
  margin-top: 0.125rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle__line {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transition: background 0.2s ease;
}

.menu-toggle__line::before,
.menu-toggle__line::after {
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease;
}

.menu-toggle__line::before {
  top: -0.5rem;
}

.menu-toggle__line::after {
  top: 0.5rem;
}

.menu-open .menu-toggle__line {
  background: transparent;
}

.menu-open .menu-toggle__line::before {
  transform: translateY(0.5rem) rotate(45deg);
}

.menu-open .menu-toggle__line::after {
  transform: translateY(-0.5rem) rotate(-45deg);
}

.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy);
  transition: grid-template-rows 0.25s ease;
}

.menu-open .mobile-panel {
  grid-template-rows: 1fr;
}

.mobile-panel__inner {
  min-height: 0;
  padding: 1.25rem;
}

.mobile-panel a {
  display: block;
  border-radius: 0.375rem;
  padding: 0.875rem 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #d7ba73;
  box-shadow: 0 18px 48px rgba(201, 169, 97, 0.28);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button--secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.button--ghost {
  border-color: rgba(10, 30, 63, 0.15);
  background: var(--white);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding-top: 4.5rem;
  background: var(--navy);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 30, 63, 0.94), rgba(10, 30, 63, 0.78) 48%, rgba(10, 30, 63, 0.36)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85") center / cover;
  content: "";
}

.hero__inner {
  position: relative;
  display: grid;
  min-height: calc(92vh - 4.5rem);
  align-items: center;
  gap: 3rem;
  padding-block: 3.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero h1 span {
  display: block;
}

.text-gold {
  color: var(--gold);
}

.hero__lead {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__actions .button {
  width: 100%;
}

.portfolio-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.portfolio-panel__grid,
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 30, 63, 0.42);
  padding: 1rem;
}

.metric__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.metric__value {
  margin: 0.5rem 0 0;
  color: var(--white);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.section {
  padding-block: 5rem;
  scroll-margin-top: 4.5rem;
}

.section--ivory {
  background: var(--ivory);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.section--navy h2 {
  color: var(--white);
}

.section__description {
  margin: 1.25rem 0 0;
  color: rgba(23, 32, 51, 0.72);
  font-size: 1rem;
  line-height: 2;
}

.section--navy .section__description {
  color: rgba(255, 255, 255, 0.72);
}

.card-grid,
.service-grid,
.voice-grid,
.flow-grid {
  display: grid;
  gap: 1.25rem;
}

.card,
.service-card,
.voice-card,
.result-card,
.company-table {
  border: 1px solid rgba(10, 30, 63, 0.1);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card,
.service-card,
.voice-card {
  height: 100%;
  padding: 1.5rem;
}

.card__number,
.flow-card__step {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.card p,
.service-card p,
.voice-card p,
.flow-card p {
  margin: 0;
  color: rgba(23, 32, 51, 0.76);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.service-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.5);
}

.service-card__label {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
}

.service-card h3,
.flow-card h3 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.5rem;
}

.ai-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.ai-image {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 30, 63, 0.08), rgba(10, 30, 63, 0.72)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1600&q=85") center / cover;
}

.ai-score {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem;
}

.ai-score__value {
  margin: 0.5rem 0;
  color: var(--white);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
}

.ai-copy,
.factor {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.ai-copy {
  padding: 1.75rem;
}

.ai-copy h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.5rem;
}

.ai-copy p,
.ai-score p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.factor {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 700;
}

.result-card {
  padding: 1.5rem;
  text-align: center;
}

.result-card__label {
  margin: 0;
  color: rgba(23, 32, 51, 0.56);
  font-size: 0.875rem;
  font-weight: 700;
}

.result-card__value {
  margin: 1rem 0 0;
  color: var(--navy);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
}

.result-card__unit {
  margin-left: 0.25rem;
  color: var(--gold);
  font-size: 1.25rem;
}

.quote-mark {
  color: var(--gold);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 4rem;
  line-height: 0.8;
}

.voice-card__person {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(10, 30, 63, 0.1);
  padding-top: 1.25rem;
}

.voice-card__person strong {
  display: block;
  color: var(--navy);
}

.voice-card__person span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(23, 32, 51, 0.54);
  font-size: 0.875rem;
}

.flow-card {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
}

.flow-card h3,
.flow-card p {
  color: var(--white);
}

.flow-card p {
  color: rgba(255, 255, 255, 0.68);
}

.faq-list {
  width: min(100%, 56rem);
  margin-inline: auto;
  border-block: 1px solid rgba(10, 30, 63, 0.1);
}

.faq-list details {
  border-bottom: 1px solid rgba(10, 30, 63, 0.1);
  padding-block: 1.25rem;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 999px;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 1rem 0 0;
  color: rgba(23, 32, 51, 0.7);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.company-table {
  overflow: hidden;
}

.company-row {
  display: grid;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(10, 30, 63, 0.1);
  padding: 1.25rem;
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row dt {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 800;
}

.company-row dd {
  margin: 0;
  color: rgba(23, 32, 51, 0.72);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.final-cta {
  background: var(--white);
  padding-block: 5rem;
}

.final-cta__box {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem;
  box-shadow: 0 30px 90px rgba(10, 30, 63, 0.2);
}

.final-cta__grid {
  display: grid;
  gap: 2rem;
}

.final-cta h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.final-cta p {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 2;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.final-cta__actions .button {
  width: 100%;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.site-footer__inner {
  padding-block: 3.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2.5rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.8;
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  line-height: 1.7;
}

.fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (min-width: 420px) {
  .portfolio-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .site-header__inner,
  .container {
    width: min(100% - 4rem, 80rem);
  }

  .hero__actions,
  .final-cta__actions {
    flex-direction: row;
  }

  .hero__actions .button,
  .final-cta__actions .button {
    width: auto;
  }

  .results-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-row {
    grid-template-columns: 11.25rem 1fr;
    padding-inline: 2rem;
  }

  .final-cta__box {
    padding: 4rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .card-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-panel {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .service-grid,
  .results-grid,
  .flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid,
  .voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .final-cta__box {
    padding-inline: 3.5rem;
  }

  .final-cta__grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .final-cta__actions {
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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