/* ── JUAN D ARANGO — Responsive Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808; --surface: #111; --border: #222;
  --text: #e8e8e8; --muted: #888; --accent: #c8923a;
  --accent-dim: rgba(200,146,58,0.14);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg); color: var(--text);
  font-family: 'Raleway', sans-serif; min-height: 100vh; line-height: 1.7;
  /* prevent horizontal scroll */
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 1.5rem; height: 52px;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0 0.9rem; height: 100%;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  /* good touch target */
  min-height: 44px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
nav .nav-logo {
  margin-right: auto; padding-left: 0; border: none !important;
  display: flex; align-items: center; gap: 0.55rem;
}
nav .nav-logo img { height: 26px; display: block; flex-shrink: 0; }
nav .nav-logo:hover { border-bottom-color: transparent !important; }
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 300;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff; white-space: nowrap; line-height: 1;
  /* Don't inherit the nav-link border-bottom transition */
  border-bottom: none !important;
}

/* ── PAGE WRAPPER ── */
.page { max-width: 780px; margin: 0 auto; padding: 88px 1.25rem 5rem; }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; margin-bottom: 0.4rem;
}
h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.2rem;
}
h3 {
  font-family: 'Raleway', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem;
}
p { font-size: 0.9rem; color: #bbb; margin-bottom: 1.1rem; line-height: 1.75; }
a { color: #9898cc; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.label {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.4rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 0.7rem 1.8rem;
  font-family: 'Raleway', sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--text); border: 1px solid var(--border); background: transparent;
  cursor: pointer; text-align: center;
  /* good touch target */
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--accent); background: var(--accent-dim); color: #fff; }
.btn-accent { border-color: rgba(200,146,58,0.55); color: var(--accent); }
.btn-sm {
  padding: 0.52rem 1.1rem; font-size: 0.64rem;
  min-height: 40px; letter-spacing: 0.15em;
}

/* ── PROFILE IMAGE ── */
.profile-img {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; object-position: center 10%;
  border: 1px solid var(--border);
  float: right; margin: 0 0 1.5rem 1.5rem;
  flex-shrink: 0;
}

/* ── PAGE HEADER (logo + title) ── */
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-header-logo { height: 44px; opacity: 0.75; flex-shrink: 0; }

/* ── LANG TOGGLE ── */
.lang-toggle { margin-bottom: 2rem; }

/* ── SUBSCRIBE BLOCK ── */
.subscribe-block {
  border-top: 1px solid var(--border);
  padding-top: 2rem; margin-top: 2.5rem;
  /* ensure it clears the floated profile image */
  clear: both;
}
.subscribe-block .label { margin-bottom: 1rem; }
.subscribe-form { display: flex; flex-direction: column; gap: 0.65rem; max-width: 400px; width: 100%; }

/* ── FORM INPUTS ──
   font-size: 1rem (16px) prevents iOS auto-zoom on focus */
.form-input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;           /* ← prevents iOS zoom */
  width: 100%;               /* ← fills container */
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;  /* ← removes iOS default styling */
  border-radius: 0;          /* ← removes iOS rounded corners */
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); font-size: 0.88rem; }
.subscribe-note { font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.5; }

/* ── STORE LINKS ── */
.store-links {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); margin-bottom: 2rem;
}
.store-link-row {
  background: var(--bg); padding: 1.4rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-decoration: none;
  /* touch target */
  min-height: 72px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.store-link-row:hover,
.store-link-row:active { background: var(--surface); }
.store-link-info h4 {
  font-family: 'Raleway', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 0.25rem;
}
.store-link-info p { font-size: 0.76rem; color: var(--muted); margin: 0; line-height: 1.5; }
.store-link-arrow {
  color: var(--accent); font-size: 1.1rem; opacity: 0.6; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.store-link-row:hover .store-link-arrow { opacity: 1; transform: translateX(3px); }

/* ── FOOTER ── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2rem; text-align: center;
}
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo img { height: 56px; display: inline-block; opacity: 0.82; transition: opacity 0.2s; }
.footer-logo img:hover { opacity: 1; }
.social-links {
  display: flex; justify-content: center;
  gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.social-links a {
  color: var(--muted); text-decoration: none; font-size: 0.58rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.2s; display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  /* touch target */
  min-width: 44px; min-height: 44px; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.social-links a:hover { color: var(--accent); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.08em; }


/* ── HERO SOCIAL ICONS ROW (index.html only) ── */
.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(252px, 88vw);
  border: 1px solid var(--border);
  padding: 0.55rem 0;
}
.hero-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;           /* minimum touch target */
  color: var(--muted);
  border-bottom: none !important;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.hero-social-link:hover,
.hero-social-link:active { color: var(--accent); }
.hero-social-link svg {
  width: 18px; height: 18px;
  fill: currentColor; pointer-events: none;
}

/* ════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════ */

/* ── Tablet / large mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .page { padding: 76px 1.25rem 4rem; }
  nav { padding: 0 1rem; }
  nav a { padding: 0 0.7rem; letter-spacing: 0.1em; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  nav { padding: 0 0.75rem; }
  nav a { padding: 0 0.55rem; font-size: 0.62rem; letter-spacing: 0.06em; }
  nav .nav-logo img { height: 22px; }
  /* Hide brand text below 420px so nav links still fit */
  .nav-brand { display: none; }

  .page { padding: 72px 1rem 4rem; }

  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: 0.08em; }

  /* Profile pic stops floating, centers above text */
  .profile-img {
    float: none; display: block;
    margin: 0 auto 1.5rem;
    width: 100px; height: 100px;
  }

  /* Page header stacks vertically */
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .page-header-logo { height: 38px; }

  /* Subscribe form full width */
  .subscribe-form { max-width: 100%; }

  /* Store rows stack */
  .store-link-row {
    flex-direction: column; align-items: flex-start;
    gap: 0.5rem; padding: 1.2rem 1rem;
  }
  .store-link-arrow { display: none; }

  /* Footer social icons: smaller gap, hide text labels */
  .social-links { gap: 1rem; }
  .social-links a { font-size: 0; letter-spacing: 0; }   /* hide text */
  .social-links svg { width: 22px; height: 22px; }       /* bigger icon */

  footer { padding: 2rem 1rem 1.5rem; }
}

/* ── Very small (≤ 360px) ── */
@media (max-width: 360px) {
  nav a:not(.nav-logo) { padding: 0 0.4rem; font-size: 0.58rem; }
}
