/* DRG BarsAdds Insurance — Mexlife-inspired theme */
:root {
  --navy: #1A1D2D;
  --navy-dark: #12141f;
  --gold: #F7A400;
  --gold-hover: #e09500;
  --white: #ffffff;
  --gray-100: #f5f6f8;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #4b5563;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 40px rgba(26, 29, 45, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--navy-dark);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--navy);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
}

.site-header.sticky {
  position: fixed;
  background: rgba(26, 29, 45, 0.97);
  box-shadow: var(--shadow);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--white);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Inner pages header */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 400px;
  height: 400px;
  background: var(--gold);
  border-radius: 45% 55% 60% 40%;
  opacity: 0.15;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--gold);
}

/* Home hero */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero-blob {
  position: absolute;
  right: 0;
  top: 10%;
  width: 45%;
  height: 85%;
  background: var(--navy);
  border-radius: 60% 40% 50% 50%;
  z-index: 1;
  opacity: 0.92;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 620px;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .label {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.section-title p {
  max-width: 640px;
  margin: 16px auto 0;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.about-images img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-align: center;
  border: 4px solid var(--gold);
}

.experience-badge strong {
  font-size: 1.35rem;
  color: var(--gold);
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  background: rgba(247, 164, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card .read-more {
  color: var(--gold);
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
}

.service-card.has-bg {
  color: var(--white);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 45, 0.92), transparent);
  z-index: 0;
}

.service-card.has-bg img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.service-card.has-bg h3,
.service-card.has-bg p,
.service-card.has-bg .read-more {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* Testimonial */
.testimonial-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.stars {
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 28px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--gold);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card .photo-wrap {
  position: relative;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-card .social {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.team-card .social a {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.85rem;
}

.team-card .info {
  padding: 24px 16px;
}

.team-card h3 {
  font-size: 1.1rem;
}

.team-card p {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-content {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 50px 40px;
}

.why-content h2 {
  color: var(--white);
  margin-bottom: 24px;
}

.why-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.why-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-content h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 6px;
}

.why-image {
  position: relative;
  min-height: 380px;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-image .blob {
  position: absolute;
  left: -40px;
  top: 20%;
  width: 120px;
  height: 80%;
  background: var(--gold);
  border-radius: 50% 40% 60% 50%;
  opacity: 0.4;
}

/* Quote form section */
.quote-section {
  position: relative;
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.quote-form {
  padding: 40px;
}

.quote-side img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.field-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.checkbox-group .field-error {
  flex-basis: 100%;
  margin-left: 32px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  font-weight: 400;
  color: var(--text);
}

.range-wrap {
  margin-bottom: 20px;
}

.range-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.range-value {
  font-weight: 600;
  color: var(--navy);
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card.featured img {
  height: 100%;
  min-height: 260px;
}

.blog-card .content {
  padding: 24px;
}

.blog-card .date {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.pricing-card.featured {
  border-color: var(--gold);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--gold);
  margin-right: 10px;
  font-weight: 700;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 45, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.project-card h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.project-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Legal / long content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 90px;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 14px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid .logo-footer {
  height: 44px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-bottom {
  background: var(--navy-dark);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--gold);
}

/* Content page */
.content-block {
  padding: 60px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid,
  .why-grid,
  .quote-card,
  .blog-card.featured,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-card.featured {
    grid-column: span 1;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-blob {
    width: 70%;
    opacity: 0.7;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-main.open {
    display: flex;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-images img:first-child {
    grid-row: auto;
    min-height: 200px;
  }

  .quote-side {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
  }
}