/* ─────────────────────────────────────────────────────────────
   GREECE DAILY — greecedaily.gr
   Fonts: DM Serif Display (display) + Inter (UI)
   ───────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:        #F8F4EE;
  --blue:      #1560A0;
  --blue-dk:   #0D4A7D;
  --dark:      #1A1A2E;
  --grey:      #6B7280;
  --beige:     #E8E3DA;
  --terra:     #D4622A;
  --olive:     #4A9B6F;
  --white:     #FFFFFF;

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-ui:      'Inter', system-ui, sans-serif;

  --max:       1080px;
  --pad:       clamp(20px, 5vw, 40px);
  --radius:    12px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-ui);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  /* Subtle paper texture via SVG noise */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
blockquote { font-style: normal; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-label {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terra);
  margin-bottom: 1.25rem;
}
.section-label--light { color: rgba(248,244,238,0.55); }
.section-label--muted { color: rgba(248,244,238,0.45); }

.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: block; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.8em 1.6em;
  border-radius: 6px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Fill-from-left animation for primary */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  z-index: 0;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-dk);
  transform: translateX(-101%);
  transition: transform 0.32s var(--ease-out);
  z-index: -1;
  border-radius: 4px;
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translateX(0);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1em 2em;
}

/* Nav button */
.btn-nav {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
  font-size: 0.875rem;
  padding: 0.6em 1.2em;
}
.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.28s var(--ease-out);
  z-index: -1;
}
.btn-nav:hover { color: var(--white); }
.btn-nav:hover::before,
.btn-nav:focus-visible::before {
  transform: translateX(0);
}

/* Ghost */
.btn-ghost {
  color: var(--grey);
  border-color: transparent;
  background: transparent;
  padding-left: 0.4em;
  padding-right: 0.4em;
}
.btn-ghost:hover { color: var(--dark); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--beige);
  padding: 0.875rem 0;
  transition: backdrop-filter 0.3s, box-shadow 0.3s, background 0.3s;
}
.nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(248,244,238,0.88);
  box-shadow: 0 1px 0 var(--beige), 0 4px 24px rgba(26,26,46,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* "Greece Daily" wordmark — "Greece" in blue, "Daily" in dark */
.logo-gd {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
  font-style: normal;
}
.logo-gd em {
  color: var(--blue);
  font-style: normal;
}
.logo-gd--light        { color: rgba(248,244,238,0.55); }
.logo-gd--light em     { color: rgba(248,244,238,0.75); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 55fr 45fr;
    gap: 6rem;
  }
}

.hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--terra);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.375rem, 6vw, 4.25rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-weight: 400; /* DM Serif Display looks best at regular weight */
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--grey);
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Phone Mockup ────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-wrap {
  transform: rotate(6deg);
  transition: transform 0.6s var(--ease-out);
  transform-origin: center center;
}
.phone-wrap:hover { transform: rotate(3deg) scale(1.02); }

@media (max-width: 860px) {
  .phone-wrap { transform: none; }
  .phone-wrap:hover { transform: none; }
}

.phone-frame {
  width: 272px;
  background: var(--dark);
  border-radius: 40px;
  padding: 12px 10px 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 32px 80px rgba(26,26,46,0.30),
    0 8px 20px rgba(26,26,46,0.15);
  position: relative;
}
.phone-notch {
  width: 80px;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  margin: 0 auto 10px;
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  /* aspect-ratio ≈ 9:16 for the slides */
  height: 480px;
}
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(248,244,238,0.25);
  transition: background 0.3s, width 0.3s;
}
.pdot.active {
  background: var(--white);
  width: 14px;
  border-radius: 3px;
}

/* ── Phone Slides ────────────────────────────────────────── */
.pslide {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}
.pslide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.pslide.exit {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.28s ease-in, transform 0.28s ease-in;
}

/* Top accent bar (cover only) */
.pslide-top-bar {
  width: 100%;
  height: 3px;
  background: var(--blue);
  flex-shrink: 0;
}

/* Nav bar shared across slides */
.pslide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.pslide-nav--story {
  padding-top: 14px;
  border-bottom: 1px solid var(--beige);
  margin-bottom: 12px;
}
.pslide-nav-handle {
  font-size: 7.5px;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.pslide-counter {
  font-size: 8.5px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* Slide "GD" mark */
.pslide-gd {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
}
.pslide-gd em  { color: var(--blue); font-style: normal; }
.pslide-gd--sm { font-size: 11px; }
.pslide-gd--olive      { color: rgba(255,255,255,0.7); font-size: 12px; }
.pslide-gd--olive em   { color: var(--white); }

/* ── Cover slide ─────────────────────── */
.pslide-cover-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 16px 0;
  flex: 1;
}
.pslide-cover-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terra);
  margin-bottom: 10px;
}
.pslide-cover-rule {
  width: 28px;
  height: 1.5px;
  background: var(--terra);
  margin-bottom: 12px;
}
.pslide-cover-date {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}
.pslide-cover-tagline {
  font-size: 8.5px;
  color: var(--grey);
  line-height: 1.5;
}
.pslide-swipe {
  font-size: 8px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  padding: 12px 16px 14px;
}

/* ── Topic slide ─────────────────────── */
.pslide-cat {
  display: inline-flex;
  align-items: center;
  margin: 0 16px 10px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c, var(--blue));
  border-left: 2px solid var(--c, var(--blue));
  padding-left: 7px;
}
.pslide-rule {
  height: 1.5px;
  background: var(--blue);
  margin: 0 16px 12px;
}
.pslide-bullets {
  list-style: none;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pslide-bullets li {
  font-size: 10px;
  color: var(--dark);
  line-height: 1.45;
  display: flex;
  gap: 6px;
}
.pslide-arrow {
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.5px;
}

/* ── Fact slide ──────────────────────── */
.pslide--fact { background: var(--bg); }
.pslide-fact-band {
  background: var(--olive);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  padding: 24px 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pslide-fact-body {
  font-size: 10px;
  color: var(--dark);
  padding: 16px 16px 0;
  line-height: 1.65;
  flex: 1;
}
.pslide-fact-cta {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.06em;
  padding: 12px 16px 16px;
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--dark);
  overflow: hidden;
  padding: 0;
  height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(248,244,238,0.45);
  padding-right: 0; /* spacing already in content */
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Format ──────────────────────────────────────────────── */
.format {
  padding: clamp(64px, 9vw, 112px) 0;
}
.format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 860px) {
  .format-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
  }
}

.format-title {
  font-family: var(--f-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 2rem;
}

/* 40px terracotta rule */
.format-rule {
  width: 40px;
  height: 2px;
  background: var(--terra);
  margin-bottom: 2.5rem;
}

.format-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.benefit-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terra);
  margin-top: 0.3em;
  flex-shrink: 0;
  width: 1.5rem;
}
.benefit-quote {
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--dark);
  line-height: 1.45;
}

/* ── Sample Slide (CSS-rendered) ─────────────────────────── */
.sample-slide {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(26,26,46,0.12), 0 4px 16px rgba(26,26,46,0.06);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  min-height: 380px;
}

/* 5px top colour bar */
.ss-topbar {
  width: 100%;
  height: 5px;
  background: var(--blue);
  flex-shrink: 0;
}
.ss-bottombar {
  width: 100%;
  height: 5px;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: auto;
}

/* brand name + counter row */
.ss-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 12px;
  border-bottom: 1px solid var(--beige);
}
.ss-brand-name {
  font-family: var(--f-ui);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--grey);
}
.ss-counter {
  font-size: 0.6875rem;
  color: var(--grey);
  letter-spacing: 0.06em;
}

/* topic area: category as the headline */
.ss-topic-area {
  padding: 24px 28px 0;
}
.ss-topic-label {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 16px;
}
.ss-topic-rule {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 20px;
  border-radius: 2px;
}

/* bullets */
.ss-bullets {
  list-style: none;
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ss-bullets li {
  font-size: 0.9375rem;
  color: var(--dark);
  line-height: 1.45;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.ss-arrow {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* ── Stories ─────────────────────────────────────────────── */
.stories {
  background: var(--white);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
}
.stories-header {
  margin-bottom: 4rem;
}
.stories-header h2 {
  font-family: var(--f-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-top: 0.5rem;
}
.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
}

.story-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--beige);
}
.story-cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c, var(--blue));
  border-left: 3px solid var(--c, var(--blue));
  padding-left: 8px;
  margin-bottom: 1rem;
}
.story-headline {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.875rem;

  /* Clip-path reveal */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease-out);
}
.story-card.revealed .story-headline {
  clip-path: inset(0 0% 0 0);
}
.story-summary {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.story-source {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* ── Fact Section ────────────────────────────────────────── */
.fact-section {
  background: var(--olive);
  padding: clamp(64px, 9vw, 112px) 0;
}
.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 760px) {
  .fact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.fact-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.fact-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.fact-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 24px 64px rgba(26,46,26,0.18);
}
.fact-card-label {
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 400;
  font-style: italic;
  color: var(--olive);
  margin-bottom: 1.25rem;
}
.fact-card-body {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.fact-card-footer {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* ── Final CTA ───────────────────────────────────────────── */
.cta-final {
  background: var(--dark);
  padding: clamp(80px, 11vw, 140px) 0;
}
.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--bg);
  margin-bottom: 1.25rem;
}
.cta-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(248,244,238,0.62);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(248,244,238,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--bg); }
.footer-sep { color: rgba(248,244,238,0.2); }

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(248,244,238,0.28);
  line-height: 1.7;
}
.footer-note {
  font-size: 0.75rem;
  color: rgba(248,244,238,0.2);
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pslide {
    opacity: 0;
    transform: none;
  }
  .pslide.active {
    opacity: 1;
  }
  .pslide.exit {
    opacity: 0;
    transform: none;
  }
  .story-headline {
    clip-path: none;
  }
}
