/* Maruti Diamond Tools — site stylesheet */

:root {
  --navy: #0b1b2b;
  --navy-light: #12283f;
  --steel-blue: #1f5fa8;
  --steel-blue-light: #3b82c9;
  --accent-red: #d81f2a;
  --off-white: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #cdd5e0;
  --gray-600: #5b6b7c;
  --text: #1a2531;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 27, 43, 0.12);
  --max-width: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel-blue); text-decoration: none; }
a:hover { color: var(--accent-red); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* Top info bar */
.topbar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: #fff; }
.topbar .rating { color: #ffb400; font-weight: 600; }

/* Header / nav */
.site-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .name { font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-text .tag { font-size: 0.78rem; color: var(--gray-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--steel-blue);
  border-bottom-color: var(--steel-blue);
}

.header-cta {
  background: var(--accent-red);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-cta:hover { background: #b5171f; color: #fff !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--steel-blue) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--steel-blue-light);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 12px 0 18px;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--gray-300);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent-red); color: #fff; }
.btn-primary:hover { background: #b5171f; color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

.hero-figure {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-figure svg { width: 100%; max-width: 320px; height: auto; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 68ch; margin-bottom: 36px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-red);
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 8px 0 10px; color: var(--navy); }
.section-head p { color: var(--gray-600); }

/* Grid of cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--gray-300);
}
.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--steel-blue);
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; }
.card p { margin: 0; color: var(--gray-600); font-size: 0.95rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split ul { padding-left: 20px; color: var(--gray-600); }
.split li { margin-bottom: 10px; }
.split-figure {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
}
.split-figure svg { width: 100%; max-width: 260px; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.trust-item { flex: 1 1 200px; }
.trust-item .num { font-size: 1.8rem; font-weight: 800; color: var(--steel-blue-light); }
.trust-item .label { font-size: 0.88rem; color: var(--gray-300); }

/* Table */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-300); text-align: left; font-size: 0.95rem; }
.spec-table th { background: var(--navy); color: #fff; }
.spec-table tr:last-child td { border-bottom: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--gray-600); padding: 14px 0; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--steel-blue); }
.breadcrumbs .sep { margin: 0 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent-red), #8f1218);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.7); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--gray-300); }
.contact-card h3 { margin-top: 0; color: var(--navy); }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.contact-card li:last-child { border-bottom: none; }
.contact-card .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--steel-blue); }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--steel-blue); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--gray-600); }
.form-status { padding: 12px 16px; border-radius: 8px; font-size: 0.92rem; display: none; }
.form-status.success { display: block; background: #e6f6ec; color: #146c34; border: 1px solid #b7e4c7; }
.form-status.error { display: block; background: #fdecea; color: #a3242c; border: 1px solid #f3c2c2; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-300); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy); color: var(--gray-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: var(--gray-300); }
.footer-col a:hover { color: #fff; }
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { color: var(--gray-300); }

/* 404 */
.error-page { text-align: center; padding: 96px 0; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--steel-blue); margin: 0; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 220px; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .header-cta { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; gap: 20px; }
}
