/* SK Glass & Aluminium Works — shared styles
   Design language: cut-glass panels, aluminium greys, deep teal accent.
   Sharp edges (this is a fabrication business, not a SaaS app) with one
   angled "cut corner" motif reused across cards, hero and CTAs. */

:root {
  --ink: #12181c;
  --ink-soft: #2a343a;
  --surface: #f3f5f6;
  --surface-2: #e8ecee;
  --surface-3: #dfe4e6;
  --line: #c9d1d4;
  --steel: #5b6770;
  --teal: #146b79;
  --teal-bright: #1fa6bc;
  --teal-deep: #0e4c56;
  --amber: #b5791f;
  --amber-bg: #fbeed9;
  --green: #2f7d52;
  --green-bg: #e1f2e7;
  --blue: #2f5f9e;
  --blue-bg: #e3ebf7;
  --danger: #a3372f;
  --danger-bg: #f8e3e1;
  --white: #ffffff;
  --radius-sm: 2px;
  --shadow: 0 10px 30px rgba(18, 24, 28, 0.10);
  --cut: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.bg-ink { background: var(--ink); color: var(--surface); }
.bg-ink p { color: #c7d0d4; }
.bg-ink h2 { color: var(--white); }
.bg-panel { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-accent { background: var(--teal-bright); color: var(--ink); }
.btn-accent:hover { background: #189cb0; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #862a24; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--ink); color: #cfe0e3; font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe0e3; text-decoration: none; }
.topbar .call { color: var(--teal-bright); font-weight: 600; }

.navbar {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; background: var(--teal); flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-family: 'Space Grotesk'; font-weight: 700;
}
.brand-text { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-family: 'Inter'; font-weight: 400; font-size: 0.68rem; color: var(--steel); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--white); position: relative; overflow: hidden;
  padding: 84px 0 96px;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: linear-gradient(135deg, rgba(31,166,188,.18), rgba(31,166,188,0) 60%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { color: var(--teal-bright); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #c7d0d4; font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Space Grotesk'; font-size: 1.6rem; color: var(--teal-bright); }
.hero-stats div span { font-size: 0.82rem; color: #a9b6ba; }
.hero-panel {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  padding: 30px; position: relative;
}
.hero-panel h3 { color: var(--white); }
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.14); color: #d7dee0; font-size: 0.95rem; }
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li::before { content: "▸"; color: var(--teal-bright); }

/* ---------- Cut-corner panel motif (cards, forms) ---------- */
.panel {
  background: var(--white); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  padding: 26px;
}
.panel-plain { background: var(--white); border: 1px solid var(--line); padding: 26px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Service / product cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); padding: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--teal); }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--teal); background: var(--surface-2); padding: 4px 9px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card .price { font-family: 'Space Grotesk'; font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-top: 10px; }
.card .price span { font-family: 'Inter'; font-weight: 400; font-size: 0.78rem; color: var(--steel); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.qty-input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-hint { font-size: 0.8rem; color: var(--steel); margin-top: -10px; margin-bottom: 16px; }
.form-error { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; font-size: 0.88rem; margin-bottom: 16px; display: none; }
.form-success { background: var(--green-bg); color: var(--green); padding: 10px 14px; font-size: 0.88rem; margin-bottom: 16px; display: none; }
.auth-shell { max-width: 460px; margin: 0 auto; }

/* ---------- Status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; text-transform: none; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge-new { background: var(--blue-bg); color: var(--blue); }
.badge-new::before { background: var(--blue); }
.badge-working { background: var(--amber-bg); color: var(--amber); }
.badge-working::before { background: var(--amber); }
.badge-dispatched { background: var(--green-bg); color: var(--green); }
.badge-dispatched::before { background: var(--green); }
.badge-paid { background: var(--green-bg); color: var(--green); }
.badge-pending { background: var(--amber-bg); color: var(--amber); }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-2); font-family: 'Space Grotesk'; font-weight: 600; font-size: 0.82rem; }
tr:last-child td { border-bottom: none; }
td.wrap { white-space: normal; }

/* ---------- Admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--surface); padding: 24px 0; }
.admin-side .brand { color: var(--white); padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.admin-side nav a { display: block; padding: 12px 24px; color: #c7d0d4; text-decoration: none; font-size: 0.92rem; border-left: 3px solid transparent; }
.admin-side nav a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.admin-side nav a.active { border-left-color: var(--teal-bright); color: var(--white); background: rgba(255,255,255,.06); }
.admin-main { padding: 32px; max-width: 1240px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(2,1fr); } .admin-shell { grid-template-columns: 1fr; } .admin-side { display: none; } }
.stat-card { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.stat-card strong { display: block; font-family: 'Space Grotesk'; font-size: 1.6rem; }
.stat-card span { font-size: 0.8rem; color: var(--steel); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #c7d0d4; padding: 56px 0 24px; }
footer h4 { color: var(--white); font-size: 0.95rem; }
footer a { color: #c7d0d4; text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--teal-bright); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #93a1a5; }

/* ---------- Floating call/WhatsApp helper ---------- */
.float-support {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--white); text-decoration: none; font-size: 1.3rem; box-shadow: var(--shadow);
}
.float-call { background: var(--teal); }
.float-whatsapp { background: #2f9e5c; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--steel); }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
.spacer-32 { height: 32px; }
.loader { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.2); border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--steel); }
