/* ===== Servimax Insurance — Style Sheet ===== */

/* --- Design Tokens --- */
:root {
  --color-primary: #9A3412;
  --color-primary-light: #C2410C;
  --color-secondary: #D97706;
  --color-accent: #059669;
  --color-bg: #FFFBEB;
  --color-bg-card: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #F2E6E2;
  --color-muted-bg: #F8F2F0;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.06);
  --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }
ul { list-style: none; }

/* --- Language Toggle --- */
[class*="lang-es"] { display: none; }
body.es [class*="lang-en"] { display: none; }
body.es [class*="lang-es"] { display: inline; }
body.es h1.lang-es, body.es h2.lang-es, body.es h3.lang-es,
body.es p.lang-es, body.es div.lang-es, body.es li.lang-es { display: block; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,235,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}
.nav-brand img {
  height: 22px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  cursor: pointer;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition);
  cursor: pointer;
}
.nav-phone:hover { background: var(--color-primary-light); color: #fff; }
.nav-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.lang-toggle {
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover { background: var(--color-border); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-muted-bg) 100%);
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.hero-cta:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.hero-cta svg { width: 20px; height: 20px; }
.hero-espanol {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Section Shared --- */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Services --- */
.services { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: #fff; }
.service-icon.auto { background: var(--color-primary); }
.service-icon.home { background: var(--color-secondary); }
.service-icon.life { background: var(--color-accent); }
.service-icon.commercial { background: #6366F1; }
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}
.service-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.service-providers {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}
.service-providers strong { color: var(--color-text); }

/* --- About --- */
.about { background: var(--color-bg); }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  margin-top: 24px;
}
.about-text h3:first-of-type { margin-top: 0; }
.about-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.about-highlights {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.highlight-item:last-child { border-bottom: none; }
.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.highlight-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.highlight-text p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --- Contact --- */
.contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 15px;
  color: var(--color-text-muted);
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}
.footer p {
  font-size: 14px;
  opacity: 0.85;
}
.footer a {
  color: #fff;
  opacity: 0.85;
}
.footer a:hover { opacity: 1; color: #fff; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone.desktop-only { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { font-size: 17px; }
  .about-content {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 48px 20px 40px; }
  .section { padding: 60px 20px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .hero-cta { padding: 14px 24px; font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Focus States --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
