/*
 * shared/homepage.css
 * Extracted from index.html inline <style> block (v3.3 refactor, 2026-05-26).
 * Contains all page-specific styles for the marketing homepage.
 * Loaded via: <link rel="stylesheet" href="shared/homepage.css">
 */

/* Greek typography overrides.
   Headings: 'Playfair Display' is declared with GFS Didot woff2 files covering the Greek
   unicode ranges (U+0370-03FF / U+1F00-1FFF) in fonts.css — so the token stays
   'Playfair Display' and the browser automatically serves the GFS Didot Greek glyphs.
   No token swap needed for headings; EB Garamond stays as deeper fallback only.
   Body/UI: 'Open Sans' is already self-hosted with full Greek subsets (weights 300–600). */
html[lang="el"] {
  --serif:        'Playfair Display', 'EB Garamond', Georgia, serif;
  --display-font: 'Playfair Display', 'EB Garamond', Georgia, serif;
}
html[lang="el"] body,
html[lang="el"] .lead,
html[lang="el"] p,
html[lang="el"] li,
html[lang="el"] .btn,
html[lang="el"] .form-input,
html[lang="el"] .form-textarea,
html[lang="el"] .form-label,
html[lang="el"] .nav-links a,
html[lang="el"] .eyebrow {
  font-family: 'Open Sans', 'Jost', Helvetica, sans-serif;
}

/* Filled nav CTA (Build My Invitation) */
.nav-cta-fill {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}
.nav-cta-fill:hover { background: var(--accent-dk) !important; border-color: var(--accent-dk) !important; opacity: 1 !important; }

/* Stats dark strip */
#stats {
  background: var(--brand-charcoal);
  padding-block: 3.5rem;
}
.stats-dark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1rem;
}
.stat-dark-item {
  text-align: center;
  padding: 1.25rem 1rem;
  position: relative;
}
.stat-dark-item + .stat-dark-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 1px;
  background: rgba(253,252,249,0.1);
}
.stat-dark-num {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--brand-cream);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-dark-num em { font-style: normal; color: var(--brand-gold); }
.stat-dark-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,252,249,0.4);
}

/* Hero brand title — script/calligraphic treatment */
.hero-brand-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 400;
  color: var(--accent-dk);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
/* Hero sub — tighten default <p> margins so it hugs the title; override site.css muted color */
.hero-sub {
  margin: 0 0 6px;
  color: var(--brand-ink);
}
/* Hero tagline — small caps label */
.hero-tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   HERO TWO-COLUMN LAYOUT (desktop ≥960px: copy left, devices right)
   ══════════════════════════════════════════════════════════════ */

/* On mobile/tablet: hero-content stays as a column (inherited from site.css).
   On desktop: switch to a two-column row, vertically centred. */
@media (min-width: 960px) {
  .hero-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4rem;
    text-align: left;
    max-width: 1200px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-copy {
    flex: 0 1 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .hero-copy .hero-main-h1 {
    margin-inline: 0;
    text-align: left;
  }
  .hero-copy .hero-actions {
    justify-content: flex-start;
  }
  .hero-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* On mobile/tablet: copy column is just a transparent wrapper */
.hero-copy {
  display: contents; /* collapses to nothing on mobile — children flow normally */
}
@media (min-width: 960px) {
  .hero-copy { display: flex; }
}

/* Tablet (600–959px): stack devices below copy, centred, scaled down */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}
@media (min-width: 960px) {
  .hero-right { margin-top: 0; }
}

/* Below 600px: hide the device mockup entirely — clean mobile copy-only hero */
@media (max-width: 599px) {
  .hero-right { display: none; }
}

/* ── Hero device mockup illustration (desktop + phone pair) ── */

/* Outer wrapper — shrink-wraps the monitor + overlapping phone */
.hero-devices {
  position: relative;
  display: inline-flex;
  align-items: flex-end;     /* phone base aligns with monitor base */
  margin: 0 auto;
  --hd-scale: 1;
  transform: scale(var(--hd-scale));
  transform-origin: top center;
  /* Extra right padding so the overlapping phone doesn't clip */
  padding-right: 40px;
}

/* ── Shared screen skin ──────────────────────────────────── */
.hd-screen {
  position: relative;
  overflow: hidden;
  background: #F0EEE9;   /* warm white fallback */
  background-size: cover;
  background-position: center top;
}
/* No overlay needed — the screens show the real invitation screenshot */

/* ── Desktop / monitor frame — refined DARK ───────────────── */
.hd-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.hd-monitor-bezel {
  /* Near-black body — dark bezels frame light invitation screens and lift off cream */
  background: #1C1C1E;
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 0;
  border: 1.5px solid #2C2C2E;
  border-bottom: none;
  box-shadow:
    0 18px 40px rgba(59,47,47,0.18),
    0 6px 16px rgba(59,47,47,0.10);
  width: 360px;
}
/* macOS-style browser bar — dark chrome to match dark bezel */
.hd-browser-bar {
  height: 26px;
  background: linear-gradient(to bottom, #2C2C2E 0%, #252527 100%);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid #3A3A3C;
}
.hd-traffic {
  display: flex;
  gap: 5px;
  align-items: center;
}
.hd-traffic span {
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.30);
}
.hd-r { background: #FF5F57; }
.hd-y { background: #FEBC2E; }
.hd-g { background: #28C840; }
.hd-url-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #3A3A3C;
  border: 1px solid #48484A;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #AEAEB2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  white-space: nowrap;
}
/* Desktop screen (16:10 landscape) — shows actual demo_gamos_2 hero, desktop viewport */
.hd-screen-desktop {
  width: 340px;
  height: 213px;  /* 340 × 10/16 ≈ 213 */
  border-radius: 0;
  background-image: url('https://res.cloudinary.com/drgdpex2r/image/upload/f_auto,q_auto,w_680,h_426,c_fill/live/demo_gamos_2/hero_desktop');
  background-position: center top;
}
/* Dark chin — thin strip below bezel */
.hd-chin {
  width: 360px;
  height: 16px;
  background: #1C1C1E;
  border: 1.5px solid #2C2C2E;
  border-top: none;
  border-radius: 0 0 6px 6px;
}
/* Tapered dark neck */
.hd-neck {
  width: 68px;
  height: 24px;
  background: linear-gradient(to bottom, #1C1C1E 0%, #2C2C2E 100%);
  border-left: 1.5px solid #2C2C2E;
  border-right: 1.5px solid #2C2C2E;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
/* Dark foot / base */
.hd-foot {
  width: 120px;
  height: 8px;
  background: #1C1C1E;
  border: 1.5px solid #2C2C2E;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  margin-top: -2px;
  box-shadow: 0 3px 8px rgba(59,47,47,0.12);
}

/* ── Phone frame — refined DARK ──────────────────────────── */
/* Phone overlaps the bottom-right of the monitor */
.hd-phone {
  position: absolute;
  right: 0;
  bottom: -12px;
  z-index: 2;
  /* Near-black body — consistent with the dark monitor frame */
  background: #1C1C1E;
  border-radius: 22px;
  padding: 5px;
  border: 1.5px solid #3A3A3C;
  box-shadow:
    0 18px 40px rgba(59,47,47,0.18),
    0 4px 12px rgba(59,47,47,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  width: 88px;
}
.hd-phone-inner {
  position: relative;
}
/* Dynamic island notch hint — slightly lighter pill on dark body for readability */
.hd-island {
  width: 32px;
  height: 8px;
  background: #0A0A0C;
  border-radius: 8px;
  margin: 4px auto 0;
  position: relative;
  z-index: 2;
}
/* Phone screen — portrait 9:19.5 — shows actual demo_gamos_2 hero, mobile viewport */
.hd-screen-phone {
  width: 78px;
  height: 166px;   /* 78 × 19.5/9 ≈ 169 → 166 accounting for island */
  border-radius: 16px;
  margin-top: -8px; /* overlap with island slightly */
  background-image: url('https://res.cloudinary.com/drgdpex2r/image/upload/f_auto,q_auto,w_390,h_844,c_fill/live/demo_gamos_2/hero_mobile');
  background-position: center top;
}

/* ── Responsive scaling ─────────────────────────────────── */
/* Tablet (600–959px) — scale down to fit below the copy */
@media (max-width: 959px) and (min-width: 600px) {
  .hero-devices { --hd-scale: 0.76; margin-bottom: 0; }
}
/* Below 600px: hero-right is hidden entirely (see above), so no scaling needed */

/* ── Legacy envelope classes (kept so cached pages don't break) ──────────── */
.hero-envelope {
  position: relative;
  width: 180px;
  height: 126px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hero-envelope { width: 140px; height: 98px; }
}
.hero-envelope svg { width: 100%; height: 100%; overflow: visible; }
.env-flap {
  transform-origin: top center;
  animation: envOpen 1.4s cubic-bezier(.4,0,.2,1) 0.4s forwards;
}
@keyframes envOpen {
  0%   { transform: rotateX(0deg); }
  40%  { transform: rotateX(-160deg); }
  100% { transform: rotateX(-160deg); }
}
.env-card { animation: cardRise 0.7s cubic-bezier(.4,0,.2,1) 1.2s both; }
@keyframes cardRise {
  from { transform: translateY(0);     opacity: 0; }
  to   { transform: translateY(-36px); opacity: 1; }
}

/* Confetti */
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-confetti span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: confettiFloat linear infinite;
}
@keyframes confettiFloat {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Sound toggle */
.sound-toggle {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 18px;
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(59,47,47,0.15);
  transition: transform 0.2s, background 0.2s;
}
.sound-toggle:hover { transform: scale(1.06); background: var(--brand-white); }
.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle.muted .icon-on { display: none; }
.sound-toggle:not(.muted) .icon-off { display: none; }
.sound-hint {
  position: fixed;
  top: calc(var(--nav-h) + 66px);
  right: 18px;
  z-index: 200;
  background: var(--brand-ink);
  color: var(--brand-cream);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.sound-hint.show { opacity: 1; transform: translateY(0); }

/* ── Hero headline (redesign v1) ── */
.hero-main-h1 {
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-gold-deep);
  margin-bottom: 1rem;
  max-width: 720px;
  margin-inline: auto;
}
html[lang="el"] .hero-main-h1 {
  font-family: 'Playfair Display', 'EB Garamond', Georgia, serif;
  /* GFS Didot (mapped to 'Playfair Display' for Greek ranges in fonts.css) has no italic cut;
     Greek hero text renders upright — this is standard and elegant for Greek typography. */
  font-style: normal;
}

/* ── Guarantee chip (hero + contact) ── */
.hero-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}
.hero-guarantee::before {
  content: '✓';
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand-gold-deep);
}
.contact-guarantee {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}

/* ── How it works: 2-card layout ── */
.steps--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin-inline: auto;
  margin-top: 3rem;
}
@media (max-width: 640px) {
  .steps--two { grid-template-columns: 1fr; gap: 1.5rem; }
}
.step--large {
  background: var(--brand-white);
  border: 1px solid var(--brand-cream-3);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(59,47,47,0.06);
}
/* Suppress the site.css auto-counter inside the 2-step layout; .step-num provides the visible number */
.steps--two .step::before { content: none; }
.step-num {
  font-family: var(--display-font);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--brand-cream-2);
  line-height: 1;
  margin-bottom: 0.75rem;
  user-select: none;
}

/* ── Portfolio section ── */
#portfolio { background: var(--brand-white); }

/* Portfolio section-level CTA */
.portfolio-cta-row {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
}

/* Card CTA row is now 1fr (single column) since Pick this button was removed */

/* Pricing */
.pricing-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}
.price-card {
  border: 1px solid var(--brand-cream-2);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--brand-cream);
}
.price-card.price-featured {
  border-color: var(--accent-dk);
}
.price-tag {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}
.price-amount {
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}
.price-amount sup { font-size: 1.3rem; vertical-align: super; }
.price-desc {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--brand-ink-soft);
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}
.price-features li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  column-gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-ui);
  line-height: 1.5;
  color: var(--brand-ink-soft);
}
.price-features li::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08878' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Contact section */
.contact-cta-block {
  text-align: center;
  padding-block: 1.5rem;
  max-width: 560px;
  margin-inline: auto;
}
.contact-or-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-block: 3rem;
  max-width: 560px;
  margin-inline: auto;
}
.contact-or-divider::before,
.contact-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-line);
}
.contact-or-divider span {
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink-faint);
}
.contact-q-block {
  max-width: 560px;
  margin-inline: auto;
}
.contact-q-header {
  margin-bottom: 2rem;
}
.contact-q-header h3 {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.contact-q-header p {
  color: var(--brand-ink-soft);
  font-size: var(--fs-body);
}
.form-success {
  padding: 2rem;
  border: 1px solid var(--brand-gold-light);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--brand-cream-2);
}
.form-success p {
  font-family: var(--display-font);
  font-size: var(--fs-h3);
  font-style: italic;
  color: var(--brand-ink-soft);
}

/* ── Language toggle ── */
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand-ink-soft);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: inherit;
}
.lang-toggle .lang-sep { color: var(--brand-line); }
.lang-toggle[data-lang="en"] .lang-en { color: var(--brand-ink); font-weight: 600; }
.lang-toggle[data-lang="en"] .lang-el { color: var(--brand-ink-faint); }
.lang-toggle[data-lang="el"] .lang-el { color: var(--brand-ink); font-weight: 600; }
.lang-toggle[data-lang="el"] .lang-en { color: var(--brand-ink-faint); }

/* Sample card wrapper — unified card container (mirrors .template-tile in brief.css) */
.sample-card-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--brand-cream-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sample-card-wrap:hover {
  border-color: var(--brand-gold-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59,47,47,0.10);
}


.sample-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0 14px 16px;
}
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 0.65rem;
  font-family: var(--body-font, var(--sans));
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-sm-outline {
  background: transparent;
  color: var(--brand-ink);
  border-color: var(--brand-cream-2);
}
.btn-sm-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold-deep);
}
.btn-sm-pick {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-sm-pick:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}


/* Hero button sizing — slightly smaller than global .btn to avoid scroll-hint overlap */
.hero-actions .btn {
  padding: 11px 28px;
  font-size: 0.72rem;
}

/* Responsive overrides */
@media (max-width: 640px) {
  .pricing-grid-2col { grid-template-columns: 1fr; }
  .sample-cta-row { gap: 0.35rem; padding: 0 10px 12px; }
  .btn-sm { padding: 0.5rem 0.4rem; font-size: 0.62rem; letter-spacing: 0.06em; }
}
