/* ===== Arata Immigration — home page only =====
   Loaded by index.html on top of style.css + editorial.css. Animations live
   in js/home.js; without JS every section here renders in its final state. */

/* ---- Home-only spacing ---- */
.h-destinations { padding: 130px 0 110px; }

/* ---- Intro loader ---- */
.intro-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  align-items: center;
  justify-content: center;
}
.show-intro .intro-loader {
  display: flex;
  /* Safety net: hide even if the animation script never runs. */
  animation: intro-failsafe 0.01s linear 4s forwards;
}
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }
.intro-mark { position: relative; width: 92px; height: 92px; }
.intro-mark img { width: 100%; height: 100%; object-fit: contain; }
.intro-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--orange);
}
.intro-corner.tl { top: -18px; left: -18px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.intro-corner.tr { top: -18px; right: -18px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.intro-corner.bl { bottom: -18px; left: -18px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.intro-corner.br { bottom: -18px; right: -18px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* ---- Hero ---- */
.h-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.h-hero .hero-globe-layer { left: 32%; }
.h-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(43, 36, 32, 0.7) 0%, rgba(43, 36, 32, 0) 18%),
    linear-gradient(90deg, rgba(43, 36, 32, 0.92) 0%, rgba(43, 36, 32, 0.55) 45%, rgba(43, 36, 32, 0) 75%),
    linear-gradient(0deg, rgba(43, 36, 32, 0.9) 0%, rgba(43, 36, 32, 0) 35%);
}
.h-hero-content,
.h-hero-tabs { position: relative; z-index: 2; width: 100%; }
.h-hero-content { padding-bottom: 56px; }
.h-hero-rating { display: inline-block; color: var(--orange); margin-bottom: 26px; }

.h-hero-slides { display: grid; }
.h-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.22, .9, .36, 1), visibility 0.7s;
}
.h-hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.h-hero-slide .mono-label { color: rgba(255, 255, 255, 0.75); }
.h-hero-title {
  font-weight: 300;
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-top: 14px;
}

/* Numbered tabs with a progress line (hero + testimonials). */
.h-tabs {
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 4), 1fr);
  gap: 20px;
}
.h-hero-tabs { padding-bottom: 34px; }
.h-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.h-tab:hover, .h-tab.is-active { opacity: 1; }
.h-tab-bar { display: block; height: 2px; background: currentColor; opacity: 0.25; position: relative; }
.h-tab.is-active .h-tab-bar { opacity: 1; background: rgba(127, 127, 127, 0.35); }
.h-tab-bar i {
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.h-tab.is-active .h-tab-bar i { animation: h-tab-fill var(--tab-duration, 6s) linear forwards; }
@keyframes h-tab-fill { to { transform: scaleX(1); } }

/* ---- Intro statement ---- */
.h-intro { padding: 130px 0 120px; }
.h-intro-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.h-statement {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.h-statement .w { display: inline-block; }
.h-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 48px 0 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-light);
}
.h-stats > div { display: flex; flex-direction: column; gap: 6px; }
.h-stats .mono-label { color: var(--ink-soft); }
.h-stat-num { font-weight: 300; font-size: 2.6rem; line-height: 1; }

/* ---- Services: horizontal card row ---- */
.h-services { padding: 120px 0 90px; overflow: hidden; }
.h-hscroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  scrollbar-width: none;
}
.h-hscroll::-webkit-scrollbar { display: none; }
.h-track {
  display: flex;
  gap: 20px;
  padding: 0 32px;
  width: max-content;
}
.h-card {
  position: relative;
  flex: 0 0 auto;
  width: min(420px, 80vw);
  height: min(540px, 58vh);
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--white);
  scroll-snap-align: start;
  background: var(--dark);
}
.h-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.22, .9, .36, 1);
}
.h-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 36, 32, 0.15) 0%, rgba(43, 36, 32, 0.35) 45%, rgba(43, 36, 32, 0.9) 100%);
}
.h-card:hover img { transform: scale(1.06); }
.h-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 28px;
}
.h-card-body .mono-label { color: var(--orange); }
.h-card h3 {
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 12px 0 10px;
}
.h-card p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 22px; }
.h-card:hover .pill { background: var(--orange); color: var(--white); }

/* ---- Full-screen moment with corner brackets ---- */
.h-moment { height: 100vh; height: 100svh; min-height: 560px; position: relative; overflow: hidden; }
.h-moment-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.h-moment-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.h-moment-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(198, 84, 15, 0.45) 0%, rgba(43, 36, 32, 0.7) 70%);
}
.h-corner {
  position: absolute;
  z-index: 2;
  width: 34px; height: 34px;
  border: 2px solid var(--white);
}
.h-corner.tl { top: 8%; left: 6%; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.h-corner.tr { top: 8%; right: 6%; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.h-corner.bl { bottom: 8%; left: 6%; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.h-corner.br { bottom: 8%; right: 6%; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.h-moment-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.h-moment-text p {
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 16px 0 32px;
}

/* ---- Investor programme advert (Greece Golden Visa) ---- */
.h-promo {
  background: #EFE9E3;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.h-promo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.h-promo-media {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.h-promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.22, .9, .36, 1); }
.h-promo-media:hover img { transform: scale(1.05); }
.h-promo-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
}
.h-promo-body p { color: var(--gray); max-width: 480px; margin-top: 20px; }
.h-promo-points { margin-top: 28px; border-top: 1px solid rgba(43, 36, 32, 0.12); }
.h-promo-points li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(43, 36, 32, 0.12);
  font-size: 0.98rem;
}
.h-promo-points li::before {
  content: counter(promo, decimal-leading-zero);
  counter-increment: promo;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--orange);
  padding-top: 3px;
}
.h-promo-points { counter-reset: promo; }
.h-promo .pill:not(.pill-accent) { background: var(--white); }
.h-promo .pill:not(.pill-accent):hover { background: var(--dark); color: var(--white); }

/* ---- Client stories ---- */
.h-stories { padding: 40px 0 130px; }
.h-stories-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--dark);
}
.h-stories-photo img { width: 100%; height: 100%; object-fit: cover; }
.h-stories-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 56px;
}
.h-stories-note { color: var(--ink-soft); margin-top: 18px; }
.h-quote-stack { display: grid; }
.h-quote {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.22, .9, .36, 1), visibility 0.6s;
}
.h-quote.is-active { opacity: 1; visibility: visible; transform: none; }
.h-quote blockquote {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.35;
  font-weight: 400;
}
.h-quote figcaption { color: var(--ink-soft); margin-top: 20px; }
.h-quote-tabs { --tab-count: 3; margin-top: 40px; max-width: 420px; color: var(--dark); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .h-hero .hero-globe-layer { left: 0; top: -22%; opacity: 0.75; }
  .h-hero-shade {
    background:
      linear-gradient(180deg, rgba(43, 36, 32, 0.75) 0%, rgba(43, 36, 32, 0) 22%),
      linear-gradient(0deg, rgba(43, 36, 32, 0.97) 0%, rgba(43, 36, 32, 0.7) 45%, rgba(43, 36, 32, 0.2) 100%);
  }
  .h-intro-grid, .h-stories-grid, .h-promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .h-track { padding: 0 18px; }
  .h-hscroll { scroll-padding-left: 18px; }
  .h-hero-content { padding-bottom: 40px; }
  .h-hero-content .pill-ghost { display: none; }
  .h-hero-tabs { gap: 10px; }
  .h-hero-tabs .h-tab > .mono-label:last-child { font-size: 0.62rem; }
  .h-intro { padding: 90px 0 80px; }
  .h-stats { gap: 28px; }
  .h-destinations { padding: 90px 0 80px; }
  .h-stories-photo { aspect-ratio: 4 / 3; }
  .h-promo { padding: 84px 0; }
  .h-promo-grid { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-hero-slide, .h-quote { transition: none; }
  .h-tab.is-active .h-tab-bar i { animation: none; transform: scaleX(1); }
}
