/*
Theme Name: Mechatronix Fire Alarm Theme Lite v3
Theme URI: https://micind.co.in/
Author: Mechatronix Industrial Corporation
Author URI: https://micind.co.in/
Description: Customizable one-page theme for Mechatronix Industrial Corporation fire alarm systems, with editable typography and header imagery.
Version: 3.0
Text Domain: mechatronix-fire-lite
*/

:root {
  --bg-body: #f5f5f7;
  --bg-section: #ffffff;
  --bg-hero: linear-gradient(135deg, #ffffff 0%, #f3f4f7 60%);
  --text-main: #191b22;
  --text-muted: #5b5f6b;
  --text-soft: #7a7f8b;
  --accent: #e62129;
  --accent-soft: rgba(230, 33, 41, 0.08);
  --border-soft: #e3e4ea;
  --card-border: #e2e4ec;
  --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent);
}

.logo-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-badge {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  display: inline-block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-soft);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-soft);
}

.hero.has-header-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero.has-header-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9,11,17,0.6), rgba(9,11,17,0.1));
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 1;
}

.tagline {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  cursor: pointer;
  background: transparent;
  color: var(--accent);
  transition: 0.18s ease-in-out;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(230, 33, 41, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(230, 33, 41, 0.35);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-stats strong {
  font-size: 1.3rem;
  display: block;
  color: var(--text-main);
}

/* Panel card */
.hero-panel {
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(230, 33, 41, 0.09), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(33, 53, 110, 0.07), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.panel-header span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.panel-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-soft);
  background: #f9fafb;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  font-size: 0.8rem;
}

.panel-item {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

.panel-item label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.panel-item strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.indicator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.indicator-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #d4d4d8;
}

.dot.red {
  background: #f97373;
  border-color: #f97373;
}

.dot.amber {
  background: #facc6b;
  border-color: #facc6b;
}

.dot.green {
  background: #4ade80;
  border-color: #4ade80;
}

/* Generic sections */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-section);
}

section:nth-of-type(even) {
  background: #f8fafc;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

section p.section-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  padding: 1.4rem 1.3rem;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);

  /* pop-up animation base */
  transition: transform 0.2s ease-out,
              box-shadow 0.2s ease-out,
              border-color 0.2s ease-out;
}

/* POP-UP EFFECT ON HOVER FOR CARDS & PANEL */
.hero-panel,
.contact-grid .card {
  transition: transform 0.2s ease-out,
              box-shadow 0.2s ease-out,
              border-color 0.2s ease-out;
}

.card:hover,
.hero-panel:hover,
.contact-grid .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(230, 33, 41, 0.45);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
  background: #f9fafb;
}

ul {
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

ul li {
  margin-bottom: 0.3rem;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

form {
  display: grid;
  gap: 0.8rem;
  font-size: 0.85rem;
}

input, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(230, 33, 41, 0.28);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: #f3f4f6;
  border-top: 1px solid var(--border-soft);
}

footer span {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none; /* simple: hide menu on small screens, can add burger later */
  }
}
