/* ============================================================
   THE TANGO BOOK — stylesheet
   Tipografía: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --ink:        #1A1A1A;
  --accent:     #4A8FA8;
  --accent-dark:#3A7590;
  --muted:      #888888;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --nav-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}
.section-pad { padding-block: 7rem; }
.bg-off { background: var(--off-white); }
.mobile-only { display: none; }

/* ── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  transition: box-shadow 0.2s;
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s;
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--accent); background: rgba(74,143,168,0.05); }
.lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { text-transform: uppercase; }
.lang-chevron {
  width: 10px; height: 10px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  width: 100%;
  min-width: unset;
  padding: 0.35rem;
  z-index: 100;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: background 0.15s, opacity 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-menu a:hover { background: var(--off-white); opacity: 1; }
.lang-menu a.current { opacity: 1; color: var(--accent); pointer-events: none; }
.lang-menu .lang-flag { font-size: 1.05rem; }

.nav-link-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link-buy img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* hamburger — mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  padding-top: var(--nav-h);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 5rem;
}
.hero-text { color: var(--ink); }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9F9F9F;
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-heading em {
  font-style: italic;
  color: rgba(15, 110, 232, 0.7);
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
}
.hero-sub {
  font-size: 0.92rem;
  color: #606060;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  margin-bottom: 50px;
}


/* ── Introduction ──────────────────────────────────────────── */
#introduction { background: var(--white); }
.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-image img {
  width: 80%;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.intro-content {}
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--ink);
}
.pain-points {
  margin-bottom: 2rem;
}
.pain-point {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.pain-point::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.65rem;
  flex-shrink: 0;
}
.pain-point p {
  color: #424242;
  opacity: 0.85;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 600;
}
.intro-pitch {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.8;
}
.intro-pitch + .intro-pitch { margin-top: 1rem; }

/* ── All-in-One ────────────────────────────────────────────── */
#all-in-one { background: var(--off-white); }
.aio-heading-wrap {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.aio-heading-wrap .section-heading {
  margin-bottom: 0.5rem;
}
.aio-sub {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: #4D4D4D;
  max-width: 600px;
  margin: auto;
}
.aio-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}
.aio-image img {
  width: 75%;
  max-width: 500px;
}
.aio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
}
.aio-card {
  background: #FFFFFF82;
  border-radius: 4px;
  padding: 1rem 0.8rem;
  border: 1px solid rgb(217, 215, 215);
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}
.aio-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.aio-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: #4D93C0;
}
.aio-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.aio-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.aio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.aio-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.3s;
}
.aio-gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ── Videos ────────────────────────────────────────────── */
#videos { background: var(--white); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.video-item {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.video-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(173, 216, 230, 0.2);
  z-index: 2;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s;
}
.video-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-item:hover .video-play {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-amazon {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #FFBC81;
  border-radius: 8px;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background-color: #ffd06014;
}
.btn-amazon:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}
.btn-about {
  margin-top: 2rem;
}
.amazon-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ── About ─────────────────────────────────────────────────── */
#about { background: var(--white); }
.about-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.about-content {}
.about-intro {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.about-story {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.85;
}
.about-story p + p { margin-top: 1rem; }
.about-signoff {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  margin-top: 1.5rem;
  color: var(--ink);
  opacity: 0.7;
}
.about-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-block: 2rem;
}
.about-bio-wrap {
  max-width: 60%;
  margin: 5rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #7b7b7b;
}
.about-bio-wrap p {
  margin-bottom: 0.75rem;
}

/* ── Contact ───────────────────────────────────────────────── */
#contact { background: #111317; }
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
#contact .section-label { color: rgba(255,255,255,0.4); }
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 2rem;
}
.contact-email {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.contact-email a {
  color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-email a:hover { border-bottom-color: #FFFFFF; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,143,168,0.08);
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.contact-copyright {
  font-size: 0.75rem;
  color: #D0D0D0;
  letter-spacing: 0.08em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 889px) {
  #hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    gap: 1.5rem;
    padding-block: 3rem;
  }

  .hero-text { display: contents; }

  .hero-eyebrow {
    grid-row: 1;
    grid-column: 1;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .hero-heading {
    grid-row: 2;
    grid-column: 1;
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .lang-el .hero-heading {
    font-size: 2.8rem;
  }

  .lang-en .hero-heading {
    font-size: 4rem;
  }

  .hero-image {
    grid-row: 3;
    grid-column: 1;
    order: unset;
    max-height: unset;
  }

  .hero-image img {
    max-height: 240px;
    margin-bottom: 0;
  }

  .hero-sub {
    grid-row: 4;
    grid-column: 1;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-inline: 2.5rem;
  }

  .mobile-only { display: block; }

  .btn {
    grid-row: 5;
    grid-column: 1;
    width: fit-content;
    margin-inline: auto;
  }

  .intro-inner,
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }

  .aio-grid { grid-template-columns: repeat(2, 1fr); }
  .aio-gallery { grid-template-columns: repeat(2, 1fr); }

  .buy-cards { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }

  .about-inner { grid-template-columns: 1fr; }
  .about-photo {
    max-width: 360px;
    margin-inline: auto;
  }
  .about-content {
    text-align: center;
  }

  .about-bio-wrap { max-width: 80%; }

  .section-pad { padding-block: 5rem; }
  .container { padding-inline: 1.25rem; }

  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 1.25rem;
  }
  .nav-links.open a { font-size: 0.95rem; }
  .nav-toggle { display: flex; }
}

/* ── Greek: smaller hero heading in all breakpoints ──────────── */
.lang-el .hero-heading { font-size: 3.6rem; }

/* ── Hero heading smaller at 1000px ────────────────────────── */
@media (max-width: 999px) {
  .hero-heading { font-size: clamp(2.2rem, 5vw, 4.6rem); }
}

/* ── Spanish: even smaller hero heading at 1020px ────────────── */
@media (max-width: 1019px) {
  .lang-es .hero-heading { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
}

/* ── Spanish-specific: navbar burger at 980px ──────────────── */
@media (max-width: 979px) {
  .lang-es .nav-links { display: none; flex-direction: column; }
  .lang-es .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 1.25rem;
  }
  .lang-es .nav-links.open a { font-size: 0.95rem; }
  .lang-es .nav-toggle { display: flex; }
}

/* ── Greek-specific: navbar burger at 980px ────────────────── */
@media (max-width: 979px) {
  .lang-el .nav-links { display: none; flex-direction: column; }
  .lang-el .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 1.25rem;
  }
  .lang-el .nav-links.open a { font-size: 0.95rem; }
  .lang-el .nav-toggle { display: flex; }
}
