/* NolenLife — Mexlife-inspired theme */
:root {
  --navy: #0b1c39;
  --navy-dark: #061224;
  --cyan: #00a3ff;
  --cyan-dark: #0088dd;
  --text: #5a6578;
  --text-dark: #1a2332;
  --bg-light: #f4f7fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 5px;
  --shadow: 0 10px 40px rgba(11, 28, 57, 0.08);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--cyan-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

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

.section-title .subtitle {
  display: block;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--cyan);
}

.btn-white:hover {
  background: var(--bg-light);
  color: var(--navy);
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--cyan);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 28, 57, 0.92) 0%, rgba(11, 28, 57, 0.5) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 100px 0 140px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 48px);
  max-width: 620px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--cyan);
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  font-size: 16px;
  margin-bottom: 28px;
}

/* Feature cards overlap */
.feature-cards {
  margin-top: -80px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--cyan);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 163, 255, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 20px;
}

.feature-card .read-more {
  font-weight: 600;
  font-size: 13px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-images img.primary {
  border-radius: var(--radius);
  width: 85%;
}

.about-images img.secondary {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: 55%;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  top: 20px;
  left: -10px;
  background: var(--cyan);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

.experience-badge span {
  display: block;
  font-size: 28px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .thumb .icon-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background: var(--cyan);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.service-card .body {
  padding: 22px;
}

.service-card h3 {
  font-size: 17px;
}

/* Why choose — dark section */
.why-section {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300A3FF' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.why-section h2 {
  color: var(--white);
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.why-item {
  text-align: center;
  padding: 24px;
}

.why-item .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 163, 255, 0.15);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 28px;
}

.why-item h4 {
  color: var(--white);
}

/* Quote section */
.quote-section {
  background: var(--bg-light);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.quote-form-wrap {
  padding: 40px 36px;
}

.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.quote-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.quote-tabs button.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e53935;
}

.field-error {
  display: block;
  color: #c62828;
  font-size: 12px;
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 3px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--cyan);
}

.range-value {
  font-weight: 700;
  color: var(--cyan);
  min-width: 90px;
}

.form-success-message {
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--navy);
  padding: 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-card .info {
  padding: 24px;
}

.team-card .role {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 13px;
}

/* Stats */
.stats-bar {
  background: var(--cyan);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: var(--white);
}

.stats-grid .num {
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.stats-grid .label {
  font-size: 14px;
  opacity: 0.95;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card .stars {
  color: #ffb400;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.testimonial-card .author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card .thumb {
  position: relative;
  height: 200px;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--cyan);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.blog-card .body {
  padding: 22px;
}

/* Page banner */
.page-banner {
  background: var(--navy);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cyan);
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 12px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--border);
}

.pricing-card.featured {
  border-top-color: var(--cyan);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--cyan);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 260px;
  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(11, 28, 57, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.project-card h3 {
  color: var(--white);
}

/* Legal content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
}

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

.contact-info-box {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-box h3 {
  color: var(--white);
}

.contact-info-box .item {
  margin-bottom: 20px;
  padding-left: 36px;
  position: relative;
}

.contact-info-box .item::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* Footer CTA strip */
.footer-cta {
  background: var(--cyan);
  padding: 36px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}

.footer-cta h3 {
  color: var(--white);
  margin: 0;
  font-size: 22px;
}

/* Main footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.site-footer .logo-footer {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.footer-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
}

.footer-newsletter .btn {
  padding: 12px 20px;
}

.footer-bottom {
  background: var(--navy-dark);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 992px) {
  .feature-cards-grid,
  .about-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .stats-grid,
  .team-grid,
  .blog-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-images img.secondary {
    position: relative;
    bottom: 0;
    margin-top: 16px;
    width: 100%;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    padding: 16px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    display: none;
  }

  .feature-cards-grid,
  .services-grid,
  .why-grid,
  .stats-grid,
  .team-grid,
  .testimonial-grid,
  .blog-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}
