/* ============================================================
   JNS Safety Nets — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy: #0d2b45;
  --navy-light: #1a3c5e;
  --orange: #f5a623;
  --orange-dark: #e0941a;
  --green: #27ae60;
  --green-dark: #1e8449;
  --bg: #f4f7fb;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #e8edf3;
  --text: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,43,69,.10);
  --shadow-lg: 0 8px 40px rgba(13,43,69,.18);
  --transition: .25s ease;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin-bottom: 1rem; color: var(--text); }

.section-title { text-align: center; margin-bottom: 16px; }
.section-sub  { text-align: center; color: var(--gray); font-size: 1.05rem; max-width: 620px; margin: 0 auto 52px; }
.badge { display: inline-block; background: var(--orange); color: var(--white); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 14px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,166,35,.4); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ---- HEADER ---- */
.header { background: var(--white); box-shadow: 0 2px 16px rgba(13,43,69,.09); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--navy); padding: 8px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-top a { color: var(--white); font-size: .85rem; display: flex; align-items: center; gap: 6px; opacity: .9; transition: opacity .2s; }
.header-top a:hover { opacity: 1; }
.header-main { padding: 0 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon img {
  width: 90px;
  height: 95px;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; color: var(--navy); line-height: 1; }
.logo-sub  { font-size: .68rem; color: var(--orange); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* NAV */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); padding: 8px 12px; border-radius: 6px; transition: var(--transition); }
.nav a:hover, .nav a.active { color: var(--orange); background: rgba(245,166,35,.1); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 9px 18px !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 100; }
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a { font-size: .84rem; padding: 8px 12px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.dropdown-menu a:hover { background: var(--light-gray); color: var(--orange); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--light-gray); padding: 16px 20px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 10px 0; border-bottom: 1px solid var(--light-gray); color: var(--navy); }
.mobile-nav a:hover { color: var(--orange); }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1a3c5e 50%, #0a4072 100%); color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,.2); border: 1px solid rgba(245,166,35,.4); color: var(--orange); font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 20px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 32px; width: 100%; }
.hero-card h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.hero-services-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hsm-item { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 12px; text-align: center; transition: var(--transition); }
.hsm-item:hover { background: rgba(245,166,35,.2); border-color: var(--orange); }
.hsm-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
.hsm-item p { color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600; margin: 0; }

/* ---- WHY CHOOSE ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); border-bottom: 3px solid transparent; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--orange); }
.why-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #fff7e6, #ffe4a0); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 16px; }
.why-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { color: var(--gray); font-size: .9rem; margin: 0; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; align-items: flex-start; border-left: 3px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-left-color: var(--orange); }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1rem; margin-bottom: 6px; }
.service-card p { color: var(--gray); font-size: .85rem; margin: 0 0 16px; flex: 1; }
.service-card a { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--orange); display: flex; align-items: center; gap: 4px; }
.service-card a:hover { color: var(--navy); }

/* ---- CTA BANNER ---- */
.cta-banner { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); padding: 60px 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.1rem; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---- TESTIMONIALS ---- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 12px; }
.testi-card p { font-style: italic; color: var(--text); margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.testi-name { font-weight: 700; font-size: .95rem; color: var(--navy); }
.testi-loc { font-size: .8rem; color: var(--gray); }

/* ---- CITIES ---- */
.cities-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.city-tag { background: var(--white); border: 1px solid var(--light-gray); border-radius: 50px; padding: 7px 18px; font-size: .85rem; font-weight: 600; color: var(--navy); transition: var(--transition); }
.city-tag:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 22px; height: 22px; stroke: var(--white); fill: none; }
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: .95rem; color: var(--gray); margin: 0; }
.contact-item a:hover { color: var(--orange); }
.contact-form { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--light-gray); border-radius: 8px; font-family: var(--font-body); font-size: .95rem; color: var(--text); transition: var(--transition); background: var(--bg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form-group textarea { height: 110px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: .9rem; margin: 16px 0 24px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--orange); }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .87rem; margin-bottom: 8px; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,.1); 
  padding: 20px 0; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 10px; 
  font-size: .83rem; 
  color: rgba(255,255,255,.5); 
}

.footer-bottom a{
  color:#f5a623;
  text-decoration:none;
  font-weight:500;
}

.footer-bottom a:hover{
  text-decoration:underline;
}

/* ---- SERVICE PAGE ---- */
.service-hero { background: linear-gradient(135deg, var(--navy), #1a3c5e); color: var(--white); padding: 70px 0; }
.service-hero h1 { color: var(--white); margin-bottom: 16px; }
.service-hero p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 640px; margin-bottom: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.service-detail { padding: 70px 0; }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.service-content h2 { margin-bottom: 16px; }
.service-content p { color: #374151; margin-bottom: 16px; }
.service-benefits { margin: 28px 0; }
.service-benefits li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--light-gray); font-size: .95rem; }
.service-benefits li:last-child { border-bottom: none; }
.service-benefits li::before { content: '✅'; flex-shrink: 0; }
.service-sidebar { position: sticky; top: 90px; }
.quote-card { background: var(--white); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange); }
.quote-card h3 { margin-bottom: 20px; }

/* ---- PROCESS ---- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.process-card { background: var(--white); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); text-align: center; position: relative; }
.process-num { width: 44px; height: 44px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin: 0 auto 16px; }
.process-card h3 { margin-bottom: 8px; font-size: 1rem; }
.process-card p { color: var(--gray); font-size: .88rem; margin: 0; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-q:hover { background: var(--light-gray); }
.faq-q .arrow { transition: transform .3s; font-size: .8rem; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; color: var(--gray); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid { gap: 36px; }
}
@media (max-width: 768px) {
  .nav, .desktop-only { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
