/* styles.css – Flash Security & Intelligence Service, Mumbai */

/* ------- Reset ------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.6;
}

/* ------- Brand palette from logo ------- */
:root {
  /* main eagle / ribbon red */
  --brand-primary: #d0495f;
  /* logo blue text / circle */
  --brand-secondary: #5256bb;
  /* softer red accent from logo */
  --brand-accent: #de7286;

  --brand-dark: #0f172a;
  --brand-light: #f9fafb;
}

/* ------- Layout helpers ------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section--muted {
  background: #e0f2fe; /* soft blue background */
}

/* ------- Header & navigation ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 70px;   /* show full logo nicely */
  width: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  color: #111827;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: #e5e7eb;
  color: #111827;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.nav-link.is-active {
  background: #fff1f4; /* light red tint */
  color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(208, 73, 95, 0.2);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ------- Hero ------- */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(
      circle at top left,
      #fbe9ee 0,
      #eff6ff 45%,
      #fef3c7 100%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-secondary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(208, 73, 95, 0.25);
}

.hero-text {
  font-size: 0.95rem;
  color: #374151;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ------- Buttons ------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: linear-gradient(
    to right,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.3);
}

.button-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #111827;
}

.button-outline:hover {
  border-color: var(--brand-secondary);
  background: #e5e7eb;
}

/* ------- Hero side card ------- */
.hero-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-card-inner {
  border-radius: 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: radial-gradient(circle at bottom right, #fbe9ee 0, #ffffff 60%);
  padding: 1rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stat {
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.hero-photo {
  margin-top: 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ------- Home cards row ------- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  border-top: 3px solid transparent;
}

/* 3 cards tuned to logo palette: red / blue / soft red */
.home-cards .card:nth-child(1) {
  border-top-color: var(--brand-primary);
}
.home-cards .card:nth-child(2) {
  border-top-color: var(--brand-secondary);
}
.home-cards .card:nth-child(3) {
  border-top-color: var(--brand-accent);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.card-text {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.card-list {
  margin-top: 0.4rem;
  margin-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  list-style: disc;
  color: #4b5563;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--brand-secondary);
}

.card-link:hover {
  color: var(--brand-primary);
}

/* ------- Section headers ------- */
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ------- Generic content cards (inner pages) ------- */
.content-grid {
  display: grid;
  gap: 1.5rem;
}

.content-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  border-top: 3px solid var(--brand-primary);
}

.content-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.content-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.content-card p,
.content-card li {
  font-size: 0.95rem;
  color: #4b5563;
}

.content-card ol,
.content-card ul {
  margin-top: 0.4rem;
  margin-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

/* ------- Page headers (inner pages) ------- */
.page-header {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(
    to right,
    #fff5f7,
    #eff6ff,
    #fef3c7
  );
}

.page-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.8rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-dark);
}

.page-intro {
  margin-top: 0.65rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: #4b5563;
}

/* ------- Contact page ------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.contact-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.contact-value {
  font-size: 0.95rem;
  color: #111827;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.field-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 0.55rem 0.7rem;
  color: #111827;
  font-size: 0.9rem;
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 1px rgba(82, 86, 187, 0.3);
}

/* ------- Footer ------- */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.18);
  padding: 1.25rem 0 1.5rem;
  background: linear-gradient(
    to right,
    #0f172a,
    #111827,
    #1f2937
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-text {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* ------- Responsive tweaks ------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .home-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
