/* Javier Painting LLC - shared styles */

:root {
  --navy: #0b3c8c;
  --blue: #1d4fd6;
  --blue-light: #eaf1ff;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-200: #e4e8f0;
  --gray-500: #6b7280;
  --gray-800: #1f2430;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(11, 60, 140, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 56px; width: auto; }

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a.nav-link {
  font-weight: 600;
  color: var(--gray-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--navy); }

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover { background: var(--blue-light); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,32,74,0.88) 20%, rgba(11,60,140,0.65) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 18px;
  max-width: 720px;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 560px;
  color: var(--blue-light);
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.trust-bar {
  background: var(--navy);
  color: var(--white);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-bar .item { display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--gray-50); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section-head .eyebrow {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 8px 0 12px;
}

.section-head p { color: var(--gray-500); }

/* Cards grid */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; color: var(--navy); }
.card p { margin: 0; color: var(--gray-500); }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  text-align: center;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--blue-light); margin: 0 0 28px; }

.cta-band .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.cta-band .btn-primary:hover { background: var(--blue-light); }

/* Video gallery */

.video-card {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card video { width: 100%; display: block; max-height: 520px; }

.photo-placeholder {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 16px;
  text-align: center;
  min-height: 200px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat { text-align: left; }
.stat strong { display: block; font-size: 2rem; color: var(--navy); }
.stat span { color: var(--gray-500); font-size: 0.9rem; }

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.values-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.values-list strong { color: var(--navy); }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-info-list .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-list h4 { margin: 0 0 4px; color: var(--navy); }
.contact-info-list p { margin: 0; color: var(--gray-500); }

.social-row { display: flex; gap: 14px; margin-top: 8px; }

.social-pill {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.form-row { display: grid; gap: 6px; }

.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }

.form-row input,
.form-row textarea,
.form-row select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
  font-size: 1rem;
  background: var(--gray-50);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--blue);
  background: var(--white);
}

/* Footer */

footer.site-footer {
  background: #0a1f4d;
  color: #cfd9f5;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid h4 { color: var(--white); margin: 0 0 16px; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

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

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 48px; filter: brightness(0) invert(1); }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94a3d0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Page hero (interior pages) */

.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--blue-light); margin: 0; }

/* WhatsApp chat widget */

.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  background: #25d366;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  animation: wa-pulse 2.4s infinite;
  transition: transform 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg { width: 30px; height: 30px; fill: #ffffff; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 20px rgba(0,0,0,0.28); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 20px rgba(0,0,0,0.28); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 20px rgba(0,0,0,0.28); }
}

.wa-panel {
  width: 300px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.wa-panel[hidden] { display: none; }

.wa-panel-header {
  background: #075e54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
}

.wa-panel-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}

.wa-panel-header strong { display: block; font-size: 0.95rem; }
.wa-panel-header span { display: block; font-size: 0.75rem; color: #d9fdd3; }

.wa-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.wa-panel-body {
  background: #ece5dd;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-bot-msg {
  background: #fff;
  border-radius: 10px;
  border-top-left-radius: 2px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--gray-800);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-option {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #075e54;
  text-align: left;
  transition: background 0.15s ease;
}

.wa-option:hover { background: #d9fdd3; }

@media (max-width: 760px) {
  .whatsapp-float { width: 54px; height: 54px; }
  .wa-widget { bottom: 18px; right: 18px; }
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .header-cta { flex-direction: column; align-items: stretch; }

  .nav-toggle { display: block; }

  .hero-actions .btn { width: 100%; }
}
