/* ===== Arata Immigration — editorial design system =====
   Shared by every page (body.v2), on top of style.css. Defines the type,
   buttons, see-through header, photo banners, destination tiles and closing
   call-to-action, and restyles the older section/card markup to match.
   Scroll animations: js/home.js (home) and js/scroll-fx.js (other pages). */

.v2 {
  --paper: #F7F4F1;
  --ink-soft: #8A817B;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper);
}

.v2 main {
  /* Elements sliding in from the sides must not widen the page. */
  overflow-x: hidden;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.h-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Type & buttons ---- */
.mono-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.mono-label.accent { color: var(--orange); }

.h-title {
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 6px;
  background: var(--gray-light);
  color: var(--dark);
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pill:hover { background: var(--dark); color: var(--white); }
.pill-light { background: rgba(255, 255, 255, 0.9); }
.pill-accent { background: var(--orange); color: var(--white); }
.pill-accent:hover { background: var(--orange-dark); }
.pill-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.pill-ghost:hover { background: var(--white); color: var(--dark); }

.h-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---- Header: transparent over the dark hero, solid once scrolled ---- */
.v2 .site-header {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.v2 .site-header.is-solid,
.v2 .site-header.open {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(43, 36, 32, 0.06);
}
.v2 .site-header:not(.is-solid):not(.open) .brand-text .name,
.v2 .site-header:not(.is-solid):not(.open) .main-nav > a,
.v2 .site-header:not(.is-solid):not(.open) .nav-trigger { color: var(--white); }
.v2 .site-header:not(.is-solid):not(.open) .main-nav > a:hover,
.v2 .site-header:not(.is-solid):not(.open) .nav-trigger:hover { color: var(--orange); }
.v2 .site-header:not(.is-solid):not(.open) .nav-toggle span { background: var(--white); }

/* ---- Section heads ---- */
.h-head { text-align: center; margin-bottom: 56px; }
.h-head .mono-label { display: block; }

/* ---- Destinations grid ---- */
.h-dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.h-dest {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}
.h-dest img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.22, .9, .36, 1);
}
.h-dest::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 36, 32, 0.35) 0%, rgba(43, 36, 32, 0) 35%, rgba(43, 36, 32, 0.75) 100%);
}
.h-dest:hover img { transform: scale(1.07); }
.h-dest > span { position: absolute; z-index: 1; }
.h-dest-num { top: 18px; left: 20px; color: var(--orange); }
.h-dest-name {
  left: 20px; right: 20px; bottom: 70px;
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.h-dest .pill { left: 20px; bottom: 20px; padding: 9px 14px; }
.h-dest:hover .pill { background: var(--orange); color: var(--white); }

/* ---- Closing CTA ---- */
.h-cta {
  background: var(--dark);
  color: var(--white);
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.h-cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  width: 900px; height: 900px;
  transform: translate(-50%, -45%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 107, 33, 0.35) 0%, rgba(237, 107, 33, 0) 65%);
  pointer-events: none;
}
.h-cta .h-wrap { position: relative; }
.h-cta-title {
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 18px 0 24px;
}
.h-cta p { max-width: 520px; margin: 0 auto; opacity: 0.8; }
.h-cta .h-hero-actions { justify-content: center; }

/* ---- Page banner (inner pages) ---- */
.p-hero {
  position: relative;
  height: 82vh;
  height: 82svh;
  min-height: 540px;
  max-height: 940px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.p-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.p-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(43, 36, 32, 0.7) 0%, rgba(43, 36, 32, 0) 22%),
    linear-gradient(90deg, rgba(43, 36, 32, 0.85) 0%, rgba(43, 36, 32, 0.35) 55%, rgba(43, 36, 32, 0.1) 100%),
    linear-gradient(0deg, rgba(43, 36, 32, 0.85) 0%, rgba(43, 36, 32, 0) 45%);
}
.p-hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 76px; }
.p-hero-title {
  font-weight: 300;
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  max-width: 1050px;
  margin: 16px 0 24px;
}
.p-hero-lead { max-width: 580px; font-size: 1.08rem; opacity: 0.85; }

/* ---- Older section markup, restyled ---- */
/* Keep in-page link targets (e.g. services.html#study-visa) clear of the fixed header. */
.v2 [id] { scroll-margin-top: 110px; }
.v2 .container { max-width: 1320px; padding: 0 32px; }
.v2 .section { padding: 110px 0; }
.v2 .section-alt { background: #EFE9E3; }
.v2 .section-head { max-width: 780px; margin-bottom: 64px; }
.v2 .eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.v2 .eyebrow::before { display: none; }
.v2 .section-head h2,
.v2 .about-grid h2 {
  font-weight: 300;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.03;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.v2 .section-head p { font-size: 1.05rem; color: var(--ink-soft); margin-top: 20px; }

/* Cards: numbered, flat, lift on hover. */
.v2 .grid-3, .v2 .grid-2 { gap: 18px; }
.v2 .grid-3 { counter-reset: card; }
.v2 .card {
  counter-increment: card;
  background: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 34px 30px 32px;
  box-shadow: none;
}
.v2 .card::after {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 30px; right: 30px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.v2 .card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(43, 36, 32, 0.08); }
.v2 .card h3 {
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 4px 0 12px;
  padding-right: 34px;
}
.v2 .card p { font-size: 0.95rem; }
.v2 .card-list { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-light); }

/* About page */
.v2 .about-grid { gap: 64px; }
.v2 .about-photo { border-radius: 8px; box-shadow: none; aspect-ratio: 4 / 5; }
.v2 .stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-light);
}
.v2 .stat { background: none; padding: 0; text-align: left; border-radius: 0; }
.v2 .stat:hover { transform: none; box-shadow: none; }
.v2 .stat .num { font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--dark); background: none; }
.v2 .stat .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.v2 .value-list { gap: 18px; margin-top: 0; }
.v2 .value-item { background: var(--white); border-radius: 8px; padding: 30px; gap: 22px; }
.v2 .value-item:hover { transform: translateY(-4px); }
.v2 .value-item .num-badge {
  width: auto; height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  align-items: flex-start;
  padding-top: 6px;
}
.v2 .value-item .num-badge::before { content: '0'; }
.v2 .value-item:hover .num-badge { transform: none; }
.v2 .value-item h4 { font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }

/* Gallery page */
.v2 .gallery-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 0; }
.v2 .gallery-card { border: 0; border-radius: 8px; box-shadow: none; background: var(--dark); }
.v2 .gallery-card::before { display: none; }
.v2 .gallery-card:hover { transform: none; box-shadow: none; }
.v2 .gallery-card-media { aspect-ratio: 4 / 3; }
.v2 .gallery-card:first-child { grid-column: 1 / -1; }
.v2 .gallery-card:first-child .gallery-card-media { aspect-ratio: 21 / 9; }

/* Contact page */
.v2 .contact-grid { gap: 40px; }
.v2 .info-card { background: var(--white); border: 0; border-radius: 8px; padding: 24px 26px; box-shadow: none; }
.v2 .info-card h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.v2 .info-card p, .v2 .info-card a { color: var(--dark); font-size: 1rem; }
.v2 .map-wrap { border: 0; border-radius: 8px; }
.v2 .form-card { border: 0; border-radius: 8px; box-shadow: none; padding: 44px; }
.v2 .form-card > h3 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.v2 .visa-section-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.v2 .field label { font-weight: 500; }
.v2 .field input,
.v2 .field select,
.v2 .field textarea { background: var(--paper); border-color: transparent; border-radius: 6px; }
.v2 .field input:focus,
.v2 .field select:focus,
.v2 .field textarea:focus { border-color: var(--orange); background: var(--white); }
.v2 .form-card button[type="submit"],
.v2 .contact-grid .btn-whatsapp {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 16px 20px;
}
.v2 .form-card button[type="submit"] { background: var(--orange); }
.v2 .form-card button[type="submit"]:hover { background: var(--orange-dark); }

/* ---- Investor programme pages (e.g. greece-golden-visa.html) ---- */
.p-hero-content .h-hero-actions { margin-top: 30px; }
.gv-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  margin-bottom: 90px;
  border-bottom: 1px solid var(--gray-light);
}
.v2 .gv-facts .label { text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; line-height: 1.5; }
.gv-overview .about-photo img { object-position: 30% center; }
.gv-note {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--white);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
}
.gv-note p { color: var(--gray); margin-top: 8px; font-size: 0.95rem; }
.gv-brochure {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.gv-brochure-cover {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(43, 36, 32, 0.18);
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(.22, .9, .36, 1);
}
.gv-brochure-cover:hover { transform: rotate(0deg) scale(1.02); }
.gv-brochure-title {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 14px 0 16px;
}
.gv-brochure p { color: var(--gray); max-width: 460px; }
.gv-brochure-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.gv-file { color: var(--ink-soft); }

.v2 .card-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.v2 .card-link:hover { color: var(--orange); }

/* "New" tag in the Services menu */
.nav-new {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .h-dest-grid { grid-template-columns: repeat(2, 1fr); }
  .v2 .about-photo { aspect-ratio: 4 / 3; }
  .gv-facts { grid-template-columns: repeat(2, 1fr); }
  .gv-brochure { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .gv-brochure-cover { max-width: 280px; }
  .gv-brochure p { margin: 0 auto; }
  .gv-brochure-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .h-wrap { padding: 0 18px; }
  .h-dest-grid { gap: 10px; }
  .h-dest-name { left: 14px; bottom: 58px; font-size: 1.1rem; }
  .h-dest .pill { left: 14px; bottom: 14px; }
  .h-dest-num { left: 14px; top: 14px; }
  .h-cta { padding: 100px 0; }
  .v2 .container { padding: 0 18px; }
  .v2 .section { padding: 76px 0; }
  .v2 .section-head { margin-bottom: 44px; }
  .p-hero { height: 76svh; min-height: 500px; }
  .p-hero-shade {
    background:
      linear-gradient(180deg, rgba(43, 36, 32, 0.75) 0%, rgba(43, 36, 32, 0) 25%),
      linear-gradient(0deg, rgba(43, 36, 32, 0.95) 0%, rgba(43, 36, 32, 0.45) 60%, rgba(43, 36, 32, 0.2) 100%);
  }
  .p-hero-content { padding-bottom: 48px; }
  .v2 .stat-row { gap: 28px; }
  .v2 .gallery-cards { grid-template-columns: 1fr; }
  .v2 .gallery-card:first-child .gallery-card-media { aspect-ratio: 4 / 3; }
  .v2 .form-card { padding: 28px 20px; }
  .gv-facts { gap: 28px 18px; margin-bottom: 64px; padding-bottom: 40px; }
}
