/* styles.css | Fogo Live (FINAL) */

/* ===== Brand Variables ===== */
:root{
  --primary: #FF2D55;
  --primary-2: #FF4D6D;
  --bg: #FFFFFF;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(2,6,23,.10);
  --shadow: 0 20px 60px rgba(2,6,23,.08);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1100px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-mark{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary);
  display:inline-block;
  box-shadow: 0 10px 30px rgba(255,45,85,.35);
}
.brand-text{ font-size: 18px; }

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  font-weight: 600;
  color: #1f2937;
}
.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  transition: .15s ease;
}
.nav a:hover{
  background: rgba(255,45,85,.08);
  color: var(--primary);
}

.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 40px rgba(255,45,85,.28);
}
.btn-primary:hover{ transform: translateY(-1px); background: var(--primary-2); }

.btn-outline{
  border-color: rgba(255,45,85,.35);
  color: var(--primary);
  background: #fff;
}
.btn-outline:hover{ background: rgba(255,45,85,.08); }

.btn-ghost{
  border-color: var(--border);
  background: #fff;
  color: #111827;
}
.btn-ghost:hover{ background: rgba(2,6,23,.04); }

.burger{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:#fff;
  padding: 10px;
}
.burger span{
  display:block;
  height: 2px;
  background:#111827;
  border-radius: 99px;
  margin: 5px 0;
}

.mobile-nav{
  display:none;
  border-top: 1px solid var(--border);
  padding: 8px 0 14px;
}
.mobile-nav a{
  display:block;
  padding: 12px 20px;
  font-weight: 700;
  color:#111827;
}
.mobile-nav a:hover{
  color: var(--primary);
  background: rgba(255,45,85,.08);
}
.mobile-nav.open{ display:block; }

/* ===== Hero ===== */
.hero{
  padding: 70px 0 40px;
  position: relative;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items:center;
}
.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,45,85,.25);
  color: var(--primary);
  background: rgba(255,45,85,.06);
  font-weight: 800;
  font-size: 13px;
}
.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.6px;
}
.hero p{
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trust-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.trust-item{ display:flex; align-items:center; gap:8px; }
.dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--primary);
  box-shadow: 0 10px 30px rgba(255,45,85,.35);
}

/* ===== Phone mockup ===== */
.hero-visual{ display:flex; justify-content:flex-end; }
.phone{
  width: min(360px, 100%);
  border-radius: 34px;
  border: 1px solid rgba(2,6,23,.10);
  background: #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.phone-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.avatar{
  width: 34px; height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,45,85,.25), rgba(2,6,23,.08));
  border: 1px solid rgba(2,6,23,.08);
}
.user{ display:flex; flex-direction:column; gap:2px; margin-left:10px; flex:1; }
.user .name{ font-weight:900; }
.user .sub{ font-size:12px; color: var(--muted); font-weight:800; }
.icons{ display:flex; gap:8px; }
.icon{
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.08);
  background: #fff;
}
.phone-tabs{
  padding: 10px 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.08);
  background:#fff;
  font-weight: 900;
  color: #0f172a;
  font-size: 12px;
}
.chip-active{
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(255,45,85,.22);
}
.phone-body{
  min-height: 360px;
  background: #fff;
  position:relative;
}
.empty-state{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 20px;
  text-align:center;
}
.bear{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,45,85,.08);
  border: 1px dashed rgba(255,45,85,.35);
  margin-bottom: 10px;
}
.empty-title{ font-weight: 900; margin: 4px 0; }
.empty-sub{ color: var(--muted); font-weight: 700; font-size: 13px; }
.phone-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(2,6,23,.06);
  gap: 10px;
}
.nav-item{
  font-weight: 900;
  font-size: 12px;
  color: #334155;
  width: 52px;
  text-align:center;
}
.nav-active{ color: var(--primary); }
.go-live{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  box-shadow: 0 18px 32px rgba(255,45,85,.32);
  position: relative;
}
.go-live::after{
  content:"";
  width: 16px; height: 16px;
  border-radius: 999px;
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.20);
}

/* ===== Sections ===== */
.section{ padding: 60px 0; }
.section-head{ margin-bottom: 18px; }
.section-head h2{ margin:0 0 6px; font-size: 28px; letter-spacing: -.3px; }
.section-head p{ margin:0; color: var(--muted); font-weight: 650; line-height: 1.6; }

.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2,6,23,.04);
}
.card h3{ margin:10px 0 6px; font-size: 16px; }
.card p{ margin:0; color: var(--muted); line-height: 1.6; font-weight: 650; font-size: 14px; }

.card-icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,45,85,.25);
  background: rgba(255,45,85,.08);
}
.card-icon.video{ background: rgba(2,132,199,.10); border-color: rgba(2,132,199,.25); }
.card-icon.audio{ background: rgba(124,58,237,.10); border-color: rgba(124,58,237,.25); }
.card-icon.pk{ background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); }

.feature-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.feature h3{ margin:0 0 8px; }
.feature p{ margin:0; color: var(--muted); font-weight: 650; line-height: 1.6; }

/* ===== Safety ===== */
.safety{
  background: linear-gradient(180deg, rgba(255,45,85,.06), rgba(255,255,255,1));
}
.safety-box{
  border: 1px solid rgba(255,45,85,.20);
  border-radius: var(--radius-lg);
  padding: 22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.checklist{
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  font-weight: 700;
  line-height: 1.9;
}
.safety-links{
  margin-top: 14px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.link{
  color: var(--primary);
  font-weight: 900;
  border-bottom: 2px solid rgba(255,45,85,.25);
  padding-bottom: 2px;
}
.link:hover{ border-bottom-color: var(--primary); }

.badge{
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,45,85,.35);
  background: rgba(255,45,85,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  padding: 20px;
  min-height: 180px;
}
.badge-ring{
  width: 58px; height: 58px;
  border-radius: 999px;
  border: 8px solid rgba(255,45,85,.25);
  box-shadow: 0 20px 40px rgba(255,45,85,.18);
}
.badge-title{ font-weight: 1000; font-size: 18px; }
.badge-sub{ color: var(--muted); font-weight: 750; margin-top: 4px; }

/* ===== Download ===== */
.download-row{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}
.store-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.store-btn{
  display:inline-flex;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fff;
}
.store-btn:hover{ border-color: rgba(255,45,85,.30); background: rgba(255,45,85,.06); }
.note{ margin-top: 10px; color: var(--muted); font-weight: 650; font-size: 13px; }

.download-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2,6,23,.04);
}
.quick-links{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 10px;
}
.quick-links a{ font-weight: 850; color: #0f172a; }
.quick-links a:hover{ color: var(--primary); }

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 30px 0 16px;
  background: #fff;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.footer-brand{ display:flex; align-items:center; gap:10px; font-weight: 1000; }
.muted{ color: var(--muted); font-weight: 650; line-height: 1.6; }
.small{ font-size: 13px; }

.site-footer h4{ margin: 0 0 10px; }
.site-footer a{
  display:block;
  padding: 6px 0;
  color: #334155;
  font-weight: 750;
}
.site-footer a:hover{ color: var(--primary); }

.footer-bottom{
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
  color: var(--muted);
  font-weight: 750;
  font-size: 13px;
}

/* ===== Shared UI Helpers ===== */
.divider{ height: 1px; background: var(--border); margin: 16px 0; }
.meta{ color: #334155; font-weight: 650; line-height: 1.7; }
.backtotop a{ color: var(--primary); font-weight: 900; }

.toc{
  margin: 12px 0 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.toc h2{ margin:0 0 10px; font-size: 18px; }
.toc ul{ margin:0; padding-left: 18px; line-height: 1.9; }
.toc a{ color: var(--primary); font-weight: 850; }

.note{
  margin: 12px 0;
  padding: 14px;
  border-left: 5px solid var(--primary);
  background: rgba(255,45,85,.06);
  border-radius: 12px;
}

/* ===== Universal Page Layout (Policies + About + Contact + Delete) ===== */
.page-hero{
  margin: 20px 0 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,45,85,.05);
}
.page-hero h1{ margin:0 0 6px; font-size: 34px; }
.last-updated{ margin:0; color: var(--muted); font-weight: 750; }

.page-content{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2,6,23,.04);
}
.page-content p, .page-content li{
  color:#334155;
  line-height: 1.75;
  font-weight: 650;
}
.page-content h2{ margin-top: 18px; }
.page-content h3{ margin-top: 14px; }

.page-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 980px){
  .page-grid{ grid-template-columns: 1fr; }
}

.page-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

/* ===== Universal Form System (fixes your screenshot issue) ===== */
.form{ margin-top: 10px; }
.field{
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label{
  font-weight: 900;
  color: #0f172a;
}
input, select, textarea, button{
  font: inherit;
}
input, select, textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 650;
  outline: none;
}
textarea{ resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,45,85,.75);
  box-shadow: 0 0 0 4px rgba(255,45,85,.12);
}
.hint{ margin:0; font-size: 13px; color: var(--muted); }

.agree{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 10px 0 6px;
}
.agree input{
  width:auto;
  margin-top: 4px;
}
.agree label{
  font-weight: 650;
  color: #334155;
  line-height: 1.6;
}

/* Info box used in contact/delete/policies */
.info-box{
  border: 1px solid rgba(255,45,85,.18);
  background: rgba(255,45,85,.04);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}
.info-box h3{ margin:0 0 6px; font-size: 15px; }
.link-list{ margin:0; padding-left: 18px; line-height: 1.9; }

/* Tables (Child Safety) */
.table-wrap{ overflow:auto; margin-top: 12px; }
.policy-table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
.policy-table th, .policy-table td{
  text-align:left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.policy-table th{
  background: rgba(255,45,85,.06);
  font-weight: 1000;
}

/* ===== Page-specific hooks (keeps your HTML unchanged) ===== */
.privacy-policy, .terms-page, .policy-page, .about-page, .contact-page, .delete-page{
  padding: 30px 0 10px;
}
.privacy-header, .terms-header, .policy-header, .about-hero, .contact-hero, .delete-hero{
  margin: 20px 0 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,45,85,.05);
}
.privacy-header h1, .terms-header h1, .policy-header h1, .about-hero h1, .contact-hero h1, .delete-hero h1{
  margin:0 0 8px;
  font-size: 34px;
}
.about-hero .lead, .contact-hero .lead, .delete-hero .lead{
  margin:0;
  color:#334155;
  line-height:1.75;
  font-weight:650;
}
.privacy-content, .terms-content, .policy-content, .about-content, .contact-content, .delete-content{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2,6,23,.04);
}

/* Fix your contact screenshot: ensure fields stack and full width */
.contact-form, .delete-form{ margin-top: 10px; }
.contact-form .field, .delete-form .field{
  margin-bottom: 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.contact-form label, .delete-form label{ font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea,
.delete-form input, .delete-form select, .delete-form textarea{
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ justify-content: flex-start; }
  .cards{ grid-template-columns: 1fr 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
  .safety-box{ grid-template-columns: 1fr; }
  .download-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .nav, .header-actions{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
}

@media (max-width: 520px){
  .cards{ grid-template-columns: 1fr; }
}

/* ===== FIX CONTACT + DELETE FORMS (PASTE AT VERY END OF styles.css) ===== */

/* Force each field to stack: label on top, input full width */
.contact-form .field,
.delete-form .field{
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}

/* Make label block so it never sits inline with input */
.contact-form label,
.delete-form label{
  display: block !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

/* Force controls to full width */
.contact-form input,
.contact-form select,
.contact-form textarea,
.delete-form input,
.delete-form select,
.delete-form textarea{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-weight: 650 !important;
  outline: none !important;
}

/* Better focus */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.delete-form input:focus,
.delete-form select:focus,
.delete-form textarea:focus{
  border-color: rgba(255,45,85,.75) !important;
  box-shadow: 0 0 0 4px rgba(255,45,85,.12) !important;
}

/* Textarea sizing */
.contact-form textarea,
.delete-form textarea{
  min-height: 140px !important;
  resize: vertical !important;
}
