/* ==========================================================================
   Somangaye IT & Internet Services — Design System
   Palette + type driven from Settings (CSS custom properties, printed
   server-side into :root by includes/header.php so Admin > Settings can
   change them live without touching this file). Fonts are loaded dynamically
   by includes/header.php based on Admin > Settings > Branding & Appearance.
   ========================================================================== */

:root {
  /* overridden inline by PHP from the settings table — these are fallbacks */
  --ink: #0A1F33;
  --secondary: #2E8FFF;
  --accent: #00D9B5;
  --cta: #FF8A3D;
  --bg: #F6F8FA;

  --text: #16233A;
  --text-muted: #5B6B82;
  --white: #FFFFFF;
  --border: #E4E9F0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 30px rgba(10, 31, 51, 0.08);
  --shadow-lift: 0 20px 45px rgba(10, 31, 51, 0.16);
  --container: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 24px rgba(255,138,61,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,138,61,.45); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Status strip ---------- */
.status-strip { background: var(--ink); color: rgba(255,255,255,.8); font-size: 13px; padding: 9px 0; }
.status-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-strip .status-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.status-strip a { color: rgba(255,255,255,.8); transition: color .2s; }
.status-strip a:hover { color: var(--accent); }
.online-dot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--accent); }
.online-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,217,181,.6); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0,217,181,.55); }
  70% { box-shadow: 0 0 0 8px rgba(0,217,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,217,181,0); }
}

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--text); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(46,143,255,.1); color: var(--secondary); }
.nav-links .has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); border: 1px solid var(--border);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.dropdown-menu a:hover { background: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 18px; gap: 4px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 10px; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .nav-actions .btn-outline-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--ink) 0%, #0d2a47 55%, #0a3a52 100%); overflow: hidden; padding: 90px 0 110px; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: rgba(0,217,181,.12); border: 1px solid rgba(0,217,181,.3); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: #fff; max-width: 620px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { color: rgba(255,255,255,.75); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-mono); font-size: 26px; color: #fff; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.6); }

/* Signature element: animated signal/connection visual */
.signal-visual { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; }
.signal-ring { position: absolute; inset: 0; border: 1px solid rgba(0,217,181,.35); border-radius: 50%; animation: ring-pulse 3.6s ease-out infinite; }
.signal-ring:nth-child(2) { animation-delay: 1.2s; }
.signal-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring-pulse { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.signal-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent), #069c85 75%); box-shadow: 0 0 60px rgba(0,217,181,.55); display: flex; align-items: center; justify-content: center; }
.signal-core svg { width: 40px; height: 40px; }
.signal-node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 16px rgba(46,143,255,.8); animation: orbit-fade 4s ease-in-out infinite; }
.signal-node.n1 { top: 8%; left: 50%; animation-delay: 0s; }
.signal-node.n2 { top: 50%; left: 92%; animation-delay: 1s; }
.signal-node.n3 { top: 88%; left: 60%; animation-delay: 2s; }
.signal-node.n4 { top: 60%; left: 6%; animation-delay: 3s; }
@keyframes orbit-fade { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 1; }
.hero-blob.b1 { width: 380px; height: 380px; background: var(--secondary); top: -120px; right: -80px; }
.hero-blob.b2 { width: 300px; height: 300px; background: var(--accent); bottom: -140px; left: -60px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signal-visual { max-width: 280px; margin-top: 30px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--secondary); background: rgba(46,143,255,.1); border-color: rgba(46,143,255,.25); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card .icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--secondary), var(--accent)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #fff; }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 16px; }
.service-card .card-link { font-weight: 600; font-size: 14px; color: var(--secondary); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.service-card:hover .card-link svg { transform: translateX(4px); }

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing / product cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card .badge { position: absolute; top: -13px; right: 20px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.price-card .p-name { font-size: 18px; margin-bottom: 4px; }
.price-card .p-speed { font-family: var(--font-mono); font-size: 12.5px; color: var(--secondary); margin-bottom: 14px; }
.price-card .p-amount { font-family: var(--font-mono); font-size: 34px; color: var(--ink); font-weight: 600; }
.price-card .p-amount span { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.price-card ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.price-card ul li svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }

/* ---------- About Us section ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: center; }
.about-images { position: relative; }
.about-img-1 { width: 62%; border-radius: 20px; object-fit: cover; aspect-ratio: 4/5; box-shadow: var(--shadow-soft); }
.about-img-2 { width: 46%; border-radius: 20px; object-fit: cover; aspect-ratio: 4/5; position: absolute; right: 0; bottom: -30px; box-shadow: var(--shadow-lift); border: 4px solid #fff; }
.about-img-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: 20px; background: linear-gradient(135deg, var(--ink), #0d2a47); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.about-img-placeholder svg { width: 64px; height: 64px; opacity: .5; }
.about-stat-badge { position: absolute; left: -16px; bottom: -16px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lift); text-align: center; min-width: 120px; }
.about-stat-badge b { display: block; font-family: var(--font-mono); font-size: 28px; color: var(--secondary); }
.about-stat-badge span { font-size: 12px; color: var(--text-muted); line-height: 1.3; display: block; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-images { margin-bottom: 40px; }
}

/* ---------- Trust / stats band ---------- */
.trust-band { background: var(--ink); color: #fff; padding: 56px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid b { display: block; font-family: var(--font-mono); font-size: 30px; color: var(--accent); }
.trust-grid span { font-size: 13.5px; color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2,1fr); row-gap: 32px; } }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonial-card .stars { color: var(--cta); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { color: var(--text); font-size: 15px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--ink); }
.testimonial-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 14px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; gap: 20px; background: none; border: none; width: 100%; text-align: left; }
.faq-question svg { flex-shrink: 0; transition: transform .25s ease; color: var(--secondary); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 20px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--secondary), #1668d1); border-radius: 24px; padding: 56px; text-align: center; color: #fff; margin: 0 24px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1/-1; }
label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14.5px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46,143,255,.15); }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.form-error { background: #FEECEC; border: 1px solid #F5B5B5; color: #9C1F1F; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.form-success { background: #E9FBF5; border: 1px solid #9DE9CE; color: #106B4C; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }

/* ---------- Payment method selector (order modal) ---------- */
.payment-method-row { display: flex; flex-direction: column; gap: 8px; }
.payment-method-option { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.payment-method-option.selected, .payment-method-option:has(input:checked) { border-color: var(--secondary); background: rgba(46,143,255,.06); }
.payment-method-option input { width: auto; margin: 0; }
.payment-method-option .pm-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.payment-method-option .pm-sub { font-size: 12.5px; color: var(--text-muted); width: 100%; margin-left: 24px; }

/* ---------- Modal (order form) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,31,51,.55); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 18px; right: 18px; background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: #fff; font-size: 14.5px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb / page header (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--ink), #0d2a47); color: #fff; padding: 64px 0 54px; }
.page-hero .crumb { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.page-hero .crumb a { color: rgba(255,255,255,.75); }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Utility ---------- */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag-pill { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--text); transition: all .2s; }
.tag-pill:hover, .tag-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
