/* International Dialing Guide — Static Page Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Ad Placeholders ── */
.ad-banner-top,
.ad-footer,
.ad-sidebar,
.ad-inline {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 4px;
}
.ad-banner-top { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-footer     { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-sidebar    { width: 100%; max-width: 300px; height: 250px; }
.ad-inline     { width: 100%; height: 100px; }
.ad-dim        { font-size: 0.65rem; opacity: 0.7; }

/* ── Top Ad Bar ── */
.ad-bar-top {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}

/* ── Header / Hero ── */
.site-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #4338ca 100%);
  padding: 3rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 400px; height: 400px;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
}
.site-header .inner { position: relative; z-index: 1; }
.site-header .breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.site-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.site-header h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.site-header .subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Layout ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eff6ff;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e40af;
  margin: 1.25rem 0 0.5rem;
}
.card p { color: #475569; margin-bottom: 0.75rem; font-size: 0.95rem; }

/* ── Dialing Formula Box ── */
.dial-box {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  margin: 1rem 0;
}
.dial-formula {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dial-formula .part {
  background: #fff;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
}
.dial-formula .plus { color: #6366f1; font-weight: 700; }
.dial-labels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Steps ── */
.steps { list-style: none; counter-reset: step-counter; }
.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step-counter);
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
}
.steps li p { color: #475569; font-size: 0.93rem; margin: 0; }
.steps li strong { color: #0f172a; }

/* ── FAQ ── */
.faq-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #f1f5f9; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.faq-item .q { font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; font-size: 0.95rem; }
.faq-item .a { color: #475569; font-size: 0.9rem; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Quick Info Box ── */
.info-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.info-box h3 { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 0.75rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: #64748b; }
.info-row .value { font-weight: 700; color: #1d4ed8; font-family: monospace; font-size: 1rem; }

/* ── Related Links ── */
.related-list { list-style: none; }
.related-list li { padding: 0.4rem 0; border-bottom: 1px solid #f8fafc; font-size: 0.88rem; }
.related-list li:last-child { border-bottom: none; }

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1rem 2rem;
  margin-top: 3rem;
  border-top: 4px solid #2563eb;
}
.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.site-footer .footer-ad-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.site-footer .site-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.site-footer .domain-link { color: #60a5fa; }
.site-footer .disclaimer {
  font-size: 0.82rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}
.site-footer .copyright {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.78rem;
}

button {
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Breakpoints ─────────────────────────────────────────────────── */

/* Mobile phones */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  select, input, button {
    width: 100%;
    font-size: 16px;
  }

  .ad-sidebar {
    display: none;
  }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  .container {
    max-width: 90%;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .container {
    max-width: 900px;
  }
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.back-link:hover { text-decoration: underline; }

/* ── Keyframe Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Page-load entrance */
.site-header   { animation: fadeInUp 0.4s ease-out both; }
.page-layout   { animation: fadeInUp 0.45s 0.06s ease-out both; }
.site-footer   { animation: fadeInUp 0.45s 0.12s ease-out both; }

/* Card hover lift */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.10);
}

/* ── Button improvements ─────────────────────────────────────── */
button {
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
button:active {
  transform: scale(0.97);
}

/* Styled CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ── Input / select focus ── */
input, select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ── Bottom Navigation Bar ── (mobile only) ──────────────────── */
.bnav {
  display: none;
}
@media (max-width: 768px) {
  .bnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.09);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
    align-items: stretch;
  }
  /* Offset body so footer content isn't hidden */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item.active,
.bnav-item:hover {
  color: #2563eb;
}
.bnav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.bnav-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Time Zone Grid ── */
.tz-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.tz-item {
  flex: 1;
  min-width: 110px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
}
.tz-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.tz-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}
.tz-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}
.tz-arrow {
  font-size: 1.4rem;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}
.tz-summary {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0.75rem 0 0.5rem;
}
.tz-best {
  font-size: 0.92rem;
  color: #334155;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: 0.6rem 0.9rem;
  border-radius: 0 6px 6px 0;
  margin: 0.5rem 0;
}
.tz-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* ── Desktop container fix ── */
@media (min-width: 1025px) {
  .container {
    max-width: 1100px;
  }
}
