/* RMEC Fire & Security — Professional redesign
   Red + Greys | Clean corporate life-safety aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #B91C1C;
  --red-dark: #991B1B;
  --red-soft: rgba(185, 28, 28, 0.08);
  --dark: #111827;
  --mid: #374151;
  --grey: #6B7280;
  --muted: #9CA3AF;
  --light: #F3F4F6;
  --lighter: #F9FAFB;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--dark);
}

/* ========== HEADER ========== */
.site-header {
  background: var(--dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo span { color: var(--red); }

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor; color: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav a.active { color: var(--white); }

.nav .btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: 0.5rem;
}

.nav .btn-nav:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
}

/* ========== HERO ========== */
.hero {
  background-color: var(--dark);
  background-image:
    linear-gradient(135deg, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.85) 45%, rgba(120,20,30,0.75) 100%),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5.5rem 1.5rem 5rem;
  position: relative;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FCA5A5;
  background: rgba(185,28,28,0.25);
  border: 1px solid rgba(185,28,28,0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.15rem;
  max-width: 640px;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.1rem;
  color: #D1D5DB;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(185,28,28,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #1F2937;
  color: var(--white);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4.75rem 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--grey);
  font-size: 1.05rem;
}

.bg-light { background: var(--lighter); }
.bg-dark { background: var(--dark); color: var(--white); }

/* ========== SERVICE CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0 0 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin: 0;
}

.card-body {
  padding: 1.35rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--grey);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.card ul {
  margin-bottom: 1.15rem;
}

.card ul li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--mid);
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.card-link {
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--red);
}

.card-link:hover { gap: 0.5rem; }
.card-link::after { content: '→'; transition: transform 0.15s; }
.card-link:hover::after { transform: translateX(2px); }

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.feature {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto 1rem;
  font-weight: 600;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ========== PAGE HERO ========== */
.page-hero {
  background-color: var(--dark);
  background-image:
    linear-gradient(135deg, rgba(17,24,39,0.94), rgba(40,20,25,0.9)),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 3.25rem 1.5rem 2.75rem;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin-bottom: 0.6rem;
  color: var(--white);
}

.page-hero p {
  color: #D1D5DB;
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.65;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.breadcrumb a { color: #D1D5DB; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.35rem; color: #6B7280; }

/* ========== CONTENT ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.content-block p {
  color: var(--mid);
  margin-bottom: 0.9rem;
  font-size: 0.975rem;
}

.content-block ul {
  margin: 1.1rem 0;
}

.content-block ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--mid);
  font-size: 0.95rem;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.highlight-box {
  background: var(--lighter);
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.925rem;
  color: var(--mid);
  line-height: 1.6;
}

.highlight-box strong {
  color: var(--red);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.content-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 340px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.cta-banner p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.75rem;
}

.contact-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
}

.contact-item {
  display: flex;
  gap: 0.95rem;
  margin-bottom: 1.35rem;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.contact-item p,
.contact-item a {
  color: var(--grey);
  font-size: 0.9rem;
}

.form-card {
  background: var(--white);
  padding: 1.85rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: var(--muted);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 260px;
  color: var(--muted);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6B7280;
}

/* ========== UTILS ========== */
.text-center { text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.15rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: stretch;
  }

  .nav.open { display: flex; }

  .nav a { padding: 0.7rem 0.85rem; }
  .nav .btn-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  .menu-toggle { display: block; }

  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3.75rem 1.25rem 3.25rem; }
  .section { padding: 3.25rem 1.25rem; }
  .header-inner { padding: 0 1.15rem; }
}
