/* TerlikOnline — Mexlife-inspired theme */
:root {
  --primary: #7e22ce;
  --primary-dark: #6b21a8;
  --primary-light: #a855f7;
  --primary-bg: #f5f3ff;
  --secondary: #0f172a;
  --footer-bg: #0c1222;
  --text: #475569;
  --heading: #0f172a;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(126, 34, 206, 0.08);
  --radius: 8px;
  --font: "Poppins", system-ui, -apple-system, 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;
  background: var(--white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

/* Top bar */
.top-bar {
  background: var(--secondary);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.top-bar a {
  color: #e2e8f0;
}

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

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

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-link:hover {
  color: var(--heading);
}

.logo-link img,
.logo-link svg {
  width: 42px;
  height: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 8rem;
  background: var(--primary-bg) 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='%237e22ce' fill-opacity='0.04'%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");
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  min-height: 380px;
}

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

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

.feature-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-card a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* About split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.about-images img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--white);
  background: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0.65rem;
}

/* Stats bar */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  padding: 3.5rem 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 800;
}

.stat-item p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

.stat-item .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Service cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

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

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

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

.service-card .thumb .badge-icon {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.service-card .body {
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  position: relative;
}

.photo-mosaic img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 180px;
}

.photo-mosaic .big-stat {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: var(--shadow);
}

.photo-mosaic .big-stat span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.why-features .item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.why-features .item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Video CTA */
.video-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.video-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(107, 33, 168, 0.75);
}

.video-banner .play-btn {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border: 3px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.video-banner .play-btn:hover {
  transform: scale(1.05);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.process-step .circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  position: relative;
}

.process-step:not(:last-child) .circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(100% + 1.5rem);
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: -1;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq-image img {
  border-radius: 50%;
  width: min(400px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.accordion-item {
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--heading);
}

.accordion-item.active .accordion-header {
  background: var(--primary);
  color: var(--white);
}

.accordion-body {
  display: none;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

/* Contact section home */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
  background: var(--primary-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-info-panel {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3rem 2rem;
}

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

.contact-info-panel .info-item {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.contact-form-panel {
  background: var(--white);
  padding: 2.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group > label:not(.checkbox-label) {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.form-group label.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.form-group label.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

.form-group input.invalid:not([type="checkbox"]):not([type="radio"]),
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #dc2626;
}

.form-group input[type="checkbox"].invalid {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
}

.field-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1.25rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Partners */
.partners {
  padding: 3rem 0;
  background: #f8fafc;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.55;
  filter: grayscale(1);
}

.partners-row span {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--heading);
}

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

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

.blog-card .content {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-bg), var(--white));
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.breadcrumb a {
  color: var(--text);
}

/* Pricing */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

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

.team-card .info {
  padding: 1.5rem;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projects */
.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.4s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

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

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

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer .logo-link {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.9rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(126, 34, 206, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
}

.newsletter-form button {
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #cbd5e1;
  margin: 0 0.5rem;
}

.bg-light {
  background: #f8fafc;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container,
  .split-section,
  .why-grid,
  .faq-layout,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .feature-cards .grid,
  .cards-3,
  .stats-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child) .circle::after {
    display: none;
  }

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

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

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

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

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

  .header-actions .btn {
    display: none;
  }

  .feature-cards .grid,
  .cards-3,
  .stats-grid,
  .process-steps,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-bottom: 5rem;
  }

  .photo-mosaic .big-stat {
    left: 0.5rem;
    bottom: 0.5rem;
  }
}
