/* ===========================================
   株式会社寛大 — style.css
   Concept: Dynamic Trust
   =========================================== */

/* --- 1. Variables ---------------------------------- */
:root {
  --navy:       #0A1628;
  --navy-mid:   #1A2E4A;
  --gold:       #B8965A;
  --gold-light: #D4AF7A;
  --gold-dim:   #8C7043;
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --gray-100:   #F0EDE8;
  --gray-200:   #DDD9D2;
  --gray-400:   #9E9A92;
  --gray-600:   #6B6760;
  --text:       #1A1713;

  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1.000);

  --container: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-section: clamp(5rem, 10vw, 9rem);
}

/* --- 2. Reset & Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Locomotive Scroll container */
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging { user-select: none; }
.has-scroll-smooth body { overflow: hidden; }
.has-scroll-smooth [data-scroll-container] { min-height: 100vh; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- 3. Typography -------------------------------- */
.t-serif { font-family: var(--font-serif); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.heading-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.heading-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}

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

/* --- 4. Layout ------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: var(--pad-section) 0;
}

/* --- 5. Navigation --------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out),
              padding 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.site-nav.scrolled {
  background: var(--white);
  padding: 1rem var(--pad-x);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.4s;
  line-height: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo span {
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.site-nav.scrolled .nav-logo { color: #000000; }
.site-nav.scrolled .nav-logo img { filter: invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover { color: var(--white); }

.site-nav.scrolled .nav-links a { color: var(--gray-600); }
.site-nav.scrolled .nav-links a:hover { color: var(--navy); }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.6rem 1.5rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.site-nav.scrolled .nav-cta {
  color: var(--navy) !important;
  border-color: var(--navy);
}

.site-nav.scrolled .nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.site-nav.scrolled .nav-hamburger span { background: var(--navy); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

/* --- 6. Hero --------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,22,40,0.72) 0%,
    rgba(10,22,40,0.50) 50%,
    rgba(10,22,40,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
}

.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  max-width: 460px;
  line-height: 2;
  opacity: 0;
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- 7. Buttons ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.btn-navy:hover {
  background: var(--navy-mid);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s;
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- 8. Strengths ---------------------------------- */
.strengths {
  background: var(--off-white);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.strength-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strength-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.5s var(--ease-out);
}

.strength-card:hover::before { width: 100%; }
.strength-card:hover { transform: translateY(-4px); }

.strength-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.strength-card:hover .strength-number { color: var(--gold-light); }

.strength-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.strength-title {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.strength-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.9;
}

/* --- 9. Services Overview -------------------------- */
.services-overview {
  background: var(--white);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-intro {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.1) 60%);
  transition: background 0.4s;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.25) 60%);
}

.service-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-card-body { transform: translateY(0); }

.service-card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.service-card-link {
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-link::after { content: '→'; }
.service-card:hover .service-card-link { opacity: 1; transform: translateY(0); }

/* --- 10. Stats ------------------------------------- */
.stats {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1em;
}

.stat-unit {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
}

/* --- 11. Testimonials ------------------------------ */
.testimonials {
  background: var(--off-white);
  overflow: hidden;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.swiper-testimonials {
  overflow: visible;
  padding-bottom: 3rem !important;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold-light);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 1.8rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.testimonial-company {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.swiper-pagination-bullet {
  background: var(--gray-200) !important;
  opacity: 1 !important;
  width: 6px;
  height: 6px;
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 24px;
  border-radius: 3px;
}

/* --- 12. CTA Banner -------------------------------- */
.cta-banner {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.78);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--pad-x);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.2rem;
}

.cta-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

/* --- 13. Page Hero (Sub pages) -------------------- */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.page-hero-en {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
}

/* Breadcrumb */
.breadcrumb {
  position: relative;
  z-index: 1;
  padding: 0.8rem var(--pad-x);
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  max-width: var(--container);
  margin: 0 auto;
}

.breadcrumb-list a { transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-sep { font-size: 0.65rem; }
.breadcrumb-current { color: var(--navy); font-weight: 500; }

/* --- 14. Service Detail ---------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-block-img:hover img { transform: scale(1.04); }

.service-block-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,150,90,0.2);
}

.service-sub-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-sub-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-sub-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- 15. Flow -------------------------------------- */
.flow-section { background: var(--off-white); }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gray-200);
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.flow-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}

.flow-step:hover .flow-step-num {
  background: var(--gold);
  color: var(--white);
}

.flow-step-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.flow-step-text {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* --- 16. Facilities -------------------------------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  margin-top: 3rem;
}

.facility-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.3s;
}

.facility-item:hover { background: var(--off-white); }

.facility-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.facility-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.facility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-item:hover .facility-photo img {
  transform: scale(1.05);
}

.facility-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

/* --- 17. Company Info ------------------------------ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.company-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.company-table th {
  width: 28%;
  padding: 1.2rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-align: left;
  vertical-align: top;
  background: var(--off-white);
}

.company-table td {
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- 18. Message ----------------------------------- */
.message-section {
  background: var(--off-white);
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.message-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.message-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.message-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,150,90,0.3);
}

.message-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 1.8rem;
  position: relative;
}

.message-quote::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.2rem;
}

.message-body {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 2.2;
  margin-bottom: 2rem;
}

.message-sig {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
}

.message-sig span {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
}

/* --- 19. History ----------------------------------- */
.history-section { background: var(--white); }

.history-timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem auto 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-200);
}

.history-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  position: relative;
}

.history-year {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  padding-right: 2rem;
  padding-top: 0.1rem;
  flex-shrink: 0;
  position: relative;
}

.history-year::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}

.history-content-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.history-content-text {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- 20. Access ------------------------------------ */
.access-section { background: var(--off-white); }

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.access-info dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  margin-top: 1.5rem;
}

.access-info dt:first-child { margin-top: 0; }

.access-info dd {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.map-container {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
}

/* --- 21. Contact Form ------------------------------ */
.contact-form-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}

.contact-info-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-required {
  font-size: 0.65rem;
  color: var(--white);
  background: var(--gold);
  padding: 1px 5px;
  letter-spacing: 0.05em;
}

.form-optional {
  font-size: 0.65rem;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  padding: 1px 5px;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #C0392B;
  background: #FEF9F9;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
  font-size: 0.85rem;
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9A92' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error-msg {
  font-size: 0.72rem;
  color: #C0392B;
  margin-top: 0.4rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}

.form-error-msg.visible { display: flex; }

.form-privacy {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.8;
  padding: 1.2rem;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  margin-bottom: 1.5rem;
}

.form-privacy a {
  color: var(--gold);
  text-decoration: underline;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--gray-200);
  appearance: none;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 4L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.form-submit-wrap { text-align: center; }

/* Confirmation step */
.form-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.form-confirm-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.form-confirm-table th {
  width: 30%;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  background: var(--off-white);
  vertical-align: top;
}

.form-confirm-table td {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.form-step-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Success */
.form-success {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.form-success.active { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
}

/* Step indicator */
.form-steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-dot-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: all 0.3s;
}

.step-dot.active .step-dot-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.step-dot.done .step-dot-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.step-dot-label {
  font-size: 0.68rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.step-dot.active .step-dot-label { color: var(--gold); }
.step-dot.done .step-dot-label { color: var(--navy); }

.step-line {
  width: 60px;
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 1.2rem;
}

/* --- 22. Footer ------------------------------------ */
.site-footer {
  background: var(--navy);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

.footer-policy {
  display: flex;
  gap: 1.5rem;
}

.footer-policy a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-policy a:hover { color: rgba(255,255,255,0.6); }

/* --- 23. Divider accent  -------------------------- */
.gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

/* --- 24. Scroll animation states ------------------ */
.will-animate {
  opacity: 0;
  transform: translateY(30px);
}

.will-animate-left {
  opacity: 0;
  transform: translateX(-30px);
}

.will-animate-right {
  opacity: 0;
  transform: translateX(30px);
}

/* --- 25. Responsive -------------------------------- */
@media (max-width: 1024px) {
  .services-header { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .strengths-grid { grid-template-columns: 1fr; gap: 2px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/9; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-steps::before { display: none; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .message-grid { grid-template-columns: 1fr; }
  .message-img { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .testimonials-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .company-table th { width: 35%; }
}

@media (max-width: 480px) {
  .flow-steps { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
