/* SG Enterprises — redesign stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0b1733;
  --ink-soft: #3d4a6b;
  --muted: #5d6b8a;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --line: #e3e8f2;
  --blue: #2d6bff;
  --blue-dark: #1f4fd1;
  --blue-tint: #eaf1ff;
  --gold: #f0a500;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11,23,51,0.07);
  --shadow-lg: 0 18px 50px rgba(11,23,51,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--ink-soft); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(45,107,255,0.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: 'Syne', sans-serif; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.logo-text span { font-size: 0.66rem; color: #b07a00; letter-spacing: 0.08em; font-weight: 600; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.88rem; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links li a { display: block; padding: 16px 20px; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 84px 0 72px; background:
  radial-gradient(900px 480px at 85% -10%, rgba(45,107,255,0.14), transparent 70%),
  radial-gradient(600px 380px at -10% 110%, rgba(240,165,0,0.12), transparent 70%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; color: var(--ink-soft);
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero p.lead { font-size: 1.12rem; margin: 20px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 1.7rem; color: var(--ink); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card .mini { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-card .mini:first-of-type { border-top: none; }
.mini-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mini strong { display: block; font-family: 'Syne', sans-serif; font-size: 0.98rem; color: var(--ink); }
.mini span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfdaf2; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.97rem; flex: 1; }
.learn-more {
  margin-top: 20px; align-self: flex-start;
  background: none; border: none; cursor: pointer; padding: 6px 0;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--blue);
}
.learn-more:hover { color: var(--blue-dark); }
.learn-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid p { margin-bottom: 16px; }
.company-card {
  background: linear-gradient(145deg, #0b1733, #1b2f66); color: #fff;
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg);
}
.company-card h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 12px; }
.company-card p { color: #c7d2ee; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #e7edff; border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; font-family: 'Syne', sans-serif; }
.gst-pill { display: inline-flex; margin-top: 22px; background: rgba(240,165,0,0.16); color: #ffd36b; border-radius: 999px; padding: 8px 16px; font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; box-shadow: var(--shadow); }
.why-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.why-card h3 { margin-bottom: 6px; }
.why-card p { font-size: 0.96rem; }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* Process */
.process-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(45,107,255,0.28);
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.93rem; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff; }
.t1 { background: linear-gradient(135deg, #2d6bff, #0c2461); }
.t2 { background: linear-gradient(135deg, #27ae60, #1a3a2a); }
.t3 { background: linear-gradient(135deg, #e74c3c, #4a0e0e); }
.t4 { background: linear-gradient(135deg, #9b59b6, #2c1654); }
.t5 { background: linear-gradient(135deg, #2980b9, #0b3d59); }
.t6 { background: linear-gradient(135deg, #f39c12, #4a3000); }
.project-info { padding: 22px; }
.project-tag { display: inline-block; background: var(--blue-tint); color: var(--blue); border-radius: 6px; padding: 3px 10px; font-size: 0.75rem; font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 10px; }
.project-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-info p { font-size: 0.92rem; }
.portfolio-cta { text-align: center; margin-top: 36px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info p { margin-bottom: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-item .mini-icon { width: 46px; height: 46px; }
.contact-item strong { display: block; font-family: 'Syne', sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-item a, .contact-item span { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--blue); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); }
.form-card h3 { margin-bottom: 22px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-group label .required { color: #d97706; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,107,255,0.12); background: #fff; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; }
.form-checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.form-checkbox label { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.form-success { display: none; margin-top: 16px; background: #e8f8ef; border: 1px solid #b7e8c9; color: #1d7a45; border-radius: 10px; padding: 14px; text-align: center; font-weight: 500; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px; } }

/* Footer */
footer { background: var(--ink); color: #c7d2ee; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid p { color: #9aa8c9; font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: #c7d2ee; text-decoration: none; font-size: 0.93rem; }
footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #9aa8c9; }
.gst-chip { background: rgba(240,165,0,0.14); color: #ffd36b; border-radius: 999px; padding: 5px 12px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.75rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
#back-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue); color: #fff; border: none; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(45,107,255,0.35); opacity: 0; pointer-events: none; transition: opacity .3s;
  z-index: 90;
}
#back-top.show { opacity: 1; pointer-events: auto; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(11,23,51,0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal-box { background: #fff; border-radius: 18px; max-width: 540px; width: 100%; padding: 36px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal-box .eyebrow { margin-bottom: 8px; }
.modal-box h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-box p { margin-bottom: 4px; }
.modal-box ul { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.modal-box li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.modal-box li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }

/* Simple policy pages */
.page-hero { padding: 72px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.page-hero .updated { color: var(--muted); font-size: 0.92rem; }
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); max-width: 860px; margin: 0 auto 80px; }
.policy h2 { font-size: 1.4rem; margin: 30px 0 12px; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin-bottom: 14px; }
.policy ul { margin: 0 0 16px 22px; color: var(--ink-soft); }
.policy li { margin-bottom: 6px; }
.policy .contact-box { background: var(--blue-tint); border-radius: 12px; padding: 20px; margin-top: 12px; }
