/* Bharat Electrician & Plumber Nawada — shared styles */

:root {
  --blue: #0b3a6e;
  --blue-deep: #072848;
  --blue-mid: #1458a0;
  --amber: #d97706;
  --amber-hover: #b45309;
  --ink: #1a2332;
  --muted: #4a5568;
  --line: #d4dce8;
  --surface: #f0f4f8;
  --white: #ffffff;
  --max: 68rem;
  --radius: 0.35rem;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    linear-gradient(135deg, rgba(11, 58, 110, 0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(11, 58, 110, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(11, 58, 110, 0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(11, 58, 110, 0.04) 25%, transparent 25%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

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

a {
  color: var(--blue-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--amber-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(7, 40, 72, 0.35);
  animation: headerIn 0.45s ease-out;
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--white);
  text-decoration: none;
  max-width: 16rem;
  line-height: 1.25;
}

.brand:hover {
  color: #fcd34d;
}

.brand span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  line-height: 0;
}

.nav-toggle-label span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: #fcd34d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-call {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 2px 0 var(--amber-hover);
}

.btn-call:hover {
  background: var(--amber-hover);
  color: var(--white);
}

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

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

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 48%, var(--blue-mid) 100%);
  color: var(--white);
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(3.5rem, 10vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(217, 119, 6, 0.28), transparent 55%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  animation: heroShift 18s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes heroShift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.05) translate(-1.5%, 1%);
  }
}

.hero .container {
  max-width: 40rem;
}

.hero .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero .lede {
  margin: 0;
  opacity: 0.9;
  max-width: 40rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 38rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Link lists */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.65rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-grid a {
  display: block;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  border-left: 3px solid var(--amber);
  color: var(--blue);
  text-decoration: none;
  font-weight: 550;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.link-grid a:hover {
  background: #fff8ef;
  border-color: var(--blue);
  color: var(--blue-deep);
}

.section-alt .link-grid a {
  background: var(--surface);
}

.section-alt .link-grid a:hover {
  background: #fff8ef;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.callout {
  background: var(--blue-deep);
  color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.callout h2 {
  color: var(--white);
}

.callout p {
  opacity: 0.92;
}

.callout a:not(.btn) {
  color: #fcd34d;
}

.phone-display {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.meta-line {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.75rem;
  margin-top: 1rem;
}

.site-footer a {
  color: #fcd34d;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav .btn-call {
    margin-top: 0.35rem;
    width: 100%;
  }
}

/* Content images (WebP, responsive) */
.content-figure {
  margin: 0 0 1.5rem;
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.content-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-media {
  margin-top: 2rem;
  max-width: 40rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--amber);
  border-radius: 1px;
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(7, 40, 72, 0.96);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--amber-hover);
}

.sticky-call a:hover {
  background: var(--amber-hover);
  color: var(--white);
}

@media (max-width: 760px) {
  body {
    padding-bottom: 4.75rem;
  }

  .sticky-call {
    display: block;
  }

  .site-footer {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
