/* Safety Tips page stylesheet
   Location: public/assets/css/safety-tips.css
   Full styles for header, pastel hero (solid gradient), tips, documents checklist,
   CTA and footer. Responsive and accessible.
*/

/* ---------------------------
   Variables
   --------------------------- */
:root{
  --container-max: 1180px;

  --bg-page: #f6fbfd;
  --hero-start: #fff2fb; /* pastel pink */
  --hero-end:   #e8fbff; /* pastel aqua */
  --hero-accent: rgba(255,214,234,0.95);

  --text: #0f172a;
  --muted: #6b7280;
  --accent-1: #06b6d4;
  --accent-2: #0ea5a6;

  --card-bg: #ffffff;
  --radius: 14px;
  --shadow-lg: 0 18px 40px rgba(2,6,23,0.08);
  --shadow-sm: 0 8px 20px rgba(2,6,23,0.06);
}

/* ---------------------------
   Reset & base
   --------------------------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: var(--bg-page);
  color:var(--text);
  line-height:1.45;
  -webkit-font-variant-ligatures: none;
}

/* Container helper */
.container{
  width:92%;
  max-width:var(--container-max);
  margin:0 auto;
  padding:0 12px;
}

/* small utilities */
.text-center{text-align:center}
.muted{color:var(--muted)}

/* ---------------------------
   Top header (minimal)
   --------------------------- */
.safety-header{
  padding:12px 0;
  background: transparent;
}
.safety-header .container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand-logo{width:44px;height:auto;display:block}
.brand-text{font-weight:700;font-size:18px}
.top-nav{display:flex;gap:12px;align-items:center}
.top-nav .nav-link{color:var(--muted);font-weight:600;padding:8px 10px;border-radius:8px}
.top-nav .nav-link.btn-cta{background:linear-gradient(90deg,var(--accent-1),var(--accent-2));color:#fff;padding:8px 12px}

/* ---------------------------
   HERO (pastel solid gradient background)
   --------------------------- */
.hero-standalone{
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  padding:72px 0;
  min-height:64vh;
  display:flex;
  align-items:center;
  border-bottom: 1px solid rgba(15,23,42,0.03);
  overflow:hidden;
  position:relative;
}

/* Layout */
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:center;
  width:100%;
}

/* Left column */
.hero-left{padding:12px 6px;max-width:780px}
.hero-left h1{
  margin:0 0 14px;
  font-size: clamp(24px, 3.8vw, 44px);
  line-height:1.02;
  color:var(--text);
  font-weight:700;
  letter-spacing:-0.02em;
}
.hero-sub{
  margin:0 0 22px;
  color:var(--muted);
  font-size:16px;
  max-width:56ch;
}

/* Buttons */
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 18px;border-radius:12px;font-weight:700;text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  cursor:pointer;
}
.btn-primary{
  background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
  color:#0b2540;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{transform:translateY(-3px)}
.btn-ghost{
  background:transparent;
  border:2px solid rgba(11,37,64,0.06);
  color:var(--text);
}
.btn-ghost:hover{background:rgba(11,37,64,0.02)}

/* Right decorative card */
.hero-right{display:flex;align-items:center;justify-content:center}
.hero-card{
  width:380px;height:220px;border-radius:var(--radius);
  background: linear-gradient(135deg, rgba(255,214,234,0.95), rgba(214,245,255,0.95));
  box-shadow:var(--shadow-lg);
  position:relative;overflow:hidden;border:1px solid rgba(255,255,255,0.45);
}
.hero-card .card-lines{
  position:absolute;left:22px;top:22px;right:22px;display:flex;flex-direction:column;gap:12px;opacity:.92
}
.hero-card .card-lines span{
  display:block;height:10px;background:rgba(255,255,255,.7);border-radius:6px;width:80%;
}
.hero-card .card-lines span:nth-child(2){width:58%}
.hero-card .card-lines span:nth-child(3){width:40%}
.hero-card .card-badge{
  position:absolute;right:18px;top:18px;width:64px;height:64px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff7ff, rgba(255,255,255,0.5));
  box-shadow: inset 0 4px 10px rgba(255,255,255,0.6);
}

/* ---------------------------
   Main content (tips + docs)
   --------------------------- */
.main-content{margin:28px auto 64px;padding-bottom:18px}

/* Card section base */
.card-section{padding:18px 0 28px}
.card-section h2{margin:0 0 8px;font-size:20px;color:var(--text)}
.card-section .muted{color:var(--muted);margin-bottom:16px}

/* Tips grid */
.tips-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:18px;
  margin-top:12px;
}
.tip{
  background:var(--card-bg);
  border-radius:12px;padding:18px;box-shadow:var(--shadow-sm);
  display:flex;gap:14px;align-items:flex-start;transition:transform .12s ease,box-shadow .12s ease;
}
.tip:hover{transform:translateY(-6px);box-shadow:0 18px 46px rgba(2,6,23,0.08)}
.tip-icon{
  width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:22px;color:#fff;background:linear-gradient(180deg,var(--accent-1),var(--accent-2));flex-shrink:0;
}
.tip-body h3{margin:0 0 6px;font-size:16px}
.tip-body p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}

/* Documents grid */
.docs-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}
.docs-list{
  background:var(--card-bg);border-radius:12px;padding:14px 18px;box-shadow:var(--shadow-sm);
  list-style:none;margin:0;
}
.docs-list li{
  display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px dashed rgba(15,23,42,0.04);
  font-size:15px;color:var(--text);
}
.docs-list li:last-child{border-bottom:none}
.docs-list li i{color:var(--accent-1);margin-top:3px}

/* Note box */
.note-box{
  margin-top:14px;background:linear-gradient(90deg, rgba(6,182,212,0.06), rgba(14,165,166,0.03));
  border-left:4px solid var(--accent-1);padding:12px 14px;border-radius:10px;color:var(--muted);font-size:14px;
}

/* CTA card */
.contact-cta .cta-card{
  display:flex;gap:18px;align-items:center;justify-content:space-between;
  background:linear-gradient(180deg,#ffffff,#fbfeff);border-radius:14px;padding:18px;box-shadow:var(--shadow-sm);margin-top:18px;
}
.cta-actions{display:flex;gap:12px}
@media (max-width:860px){ .cta-card{flex-direction:column;align-items:flex-start} .cta-actions{width:100%;justify-content:flex-start} }

/* Footer mini */
.site-footer{background:transparent;padding:18px 0 48px;color:var(--muted);text-align:center}
.footer-mini p{margin:6px 0}

/* ---------------------------
   Accessibility & focus
   --------------------------- */
a.btn:focus-visible, .nav-link:focus-visible, .docs-list li:focus-visible{
  outline:3px solid rgba(6,182,212,0.14);outline-offset:3px;border-radius:8px;
}

/* ---------------------------
   Responsive
   --------------------------- */
@media (max-width:1050px){
  .hero-inner{gap:18px}
  .hero-content{max-width:60%}
  .hero-right{display:none}
}
@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr;gap:18px;padding:12px 0}
  .hero-card{width:88%;max-width:420px;height:200px}
  .hero-left{text-align:center}
  .hero-left h1{font-size:clamp(20px,6vw,34px)}
  .hero-sub{margin-left:auto;margin-right:auto}
  .hero-actions{justify-content:center}
  .tips-grid{grid-template-columns:repeat(2,1fr)}
  .docs-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .tips-grid{grid-template-columns:1fr}
  .btn{width:100%;justify-content:center}
  .hero-standalone{padding:36px 0}
  .brand-text{display:none}
}

/* reduce motion */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}