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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #0f172a;
}

/* Layout helpers */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Header */
.header {
  background: #020617;
  border-bottom: 1px solid #111827;
}

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

.logo {
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}

.logo span {
  color: #22c55e;
}

.header-contact {
  text-align: right;
  color: #e5e7eb;
  font-size: 0.78rem;
}

.header-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.1rem;
}

.header-phone {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-phone:hover {
  text-decoration: underline;
}

/* Independent banner */
.independent-banner {
  background: #facc15;
  color: #111827;
  text-align: center;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 1px solid #111827;
  border-bottom: 1px solid #111827;
}

.independent-banner a {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Nav */
.nav {
  background: #020617;
  border-bottom: 1px solid #111827;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.5rem;
  padding-bottom: 0.6rem;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.86rem;
}

.nav a:hover {
  color: #22c55e;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #22c55e22, #020617 55%);
  color: #e5e7eb;
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.hero-text {
  max-width: 680px;
  font-size: 0.98rem;
}

.hero-ctas {
  margin: 1.2rem 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  background: #22c55e;
  color: #022c22;
}

.btn-primary:hover {
  background: #16a34a;
}

.btn-secondary {
  border: 1px solid #e5e7eb;
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.7);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.keyword-cloud span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.disclaimer {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Sections */
.section {
  background: #f8fafc;
  padding: 2.2rem 0;
}

.section.alt {
  background: #e5e7eb;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.2rem;
}

/* Grid / cards */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

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

.card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.card li {
  margin-bottom: 0.25rem;
}

/* Callout */
.callout {
  margin-top: 1.6rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.small-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* Keyword list section */
.keyword-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

.keyword-list li {
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

/* Footer */
.footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.2rem 0 1.6rem;
}

.footer-inner {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

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

/* Popup Backdrop */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 40;
}

/* Popup base */
.popup {
  position: fixed;
  z-index: 50;
}

/* Actual popup panel */
#call-popup {
  display: block;
  max-width: 380px;
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.2rem 1.1rem 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Desktop / tablet default center position */
@media (min-width: 641px) {
  #call-popup {
    width: 100%;
  }
}

/* Mobile bottom-sheet style */
@media (max-width: 640px) {
  #call-popup {
    width: 94%;
    left: 3%;
    right: 3%;
    bottom: 1.2rem;
    top: auto;
    transform: none;
  }
}

.popup h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.popup p {
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

.popup-call-btn {
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
}

.popup-note {
  font-size: 0.78rem;
  color: #6b7280;
}

.popup-close {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6b7280;
}

/* Hide state */
.popup.hidden,
.popup-backdrop.hidden {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-contact {
    text-align: left;
  }
  .nav-inner {
    flex-direction: column;
  }
}
