/* Wads of Wisdom — Mexlife-inspired theme */
:root {
  --cyan: #00d1ff;
  --cyan-dark: #00b8e0;
  --navy: #1a1a1a;
  --navy-light: #2d2d2d;
  --white: #ffffff;
  --grey-bg: #f8f9fa;
  --text: #5a5a5a;
  --text-dark: #1a1a1a;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font: "Poppins", 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;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--cyan);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: #ccc;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  display: none;
}

@media (min-width: 768px) {
  .top-bar {
    display: block;
  }
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--cyan);
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.logo-link:hover {
  color: var(--white);
}

.logo-link img.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--cyan);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-light);
  padding: 1rem 4%;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid #333;
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  color: #e8e8e8;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cyan:hover {
  background: var(--cyan-dark);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border: none;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
  }

  .main-nav a {
    padding: 0.5rem 0.85rem;
  }

  .header-actions {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  background: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.25) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, transparent 70%);
  bottom: 20px;
  right: 10%;
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: var(--white);
  box-shadow: var(--shadow);
}

.play-btn svg {
  margin-left: 4px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-grey {
  background: var(--grey-bg);
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-title .subtitle {
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Feature cards */
.feature-row {
  display: grid;
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 209, 255, 0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 209, 255, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* About split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.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(--cyan);
  font-weight: 700;
}

.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--cyan-dark);
}

.image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.image-grid-2 img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card h3 {
  font-size: 1.1rem;
}

.service-card .arrow-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

/* Process */
.process-row {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--cyan);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--grey-bg);
  border: none;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-item.active .accordion-trigger {
  background: rgba(0, 209, 255, 0.15);
  color: var(--navy);
}

.accordion-panel {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
}

.accordion-item.active .accordion-panel {
  display: block;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-card {
  position: relative;
  padding-top: 2.5rem;
}

.quote-icon {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  color: var(--cyan);
  line-height: 1;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* Team */
.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card .team-info {
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* CTA bar */
.cta-bar {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4d8 100%);
  padding: 2.5rem 0;
  color: var(--navy);
}

.cta-bar .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cta-bar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-bar h2 {
  color: var(--navy);
  margin: 0;
  font-size: 1.5rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  max-width: 480px;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
}

/* Forms */
.form-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-bottom-color: #e53935;
}

.field-error {
  color: #e53935;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
  justify-self: start;
  align-self: start;
  box-sizing: border-box;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-align: left;
}

.checkbox-group .field-error {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: none;
}

.checkbox-group.has-error .field-error {
  display: block;
}

.checkbox-group.has-error input[type="checkbox"] {
  outline: 2px solid #e53935;
  outline-offset: 1px;
}

.form-success {
  display: none;
  background: rgba(0, 209, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--navy);
  padding: 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-fields-wrap.has-error .field-error {
  display: block;
  width: 100%;
  color: #e53935;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.contact-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Page banner */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.2) 0%, transparent 70%);
  right: -50px;
  top: -50px;
}

.page-banner h1 {
  color: var(--white);
  position: relative;
}

.breadcrumb {
  color: #aaa;
  font-size: 0.9rem;
  position: relative;
}

.breadcrumb a {
  color: var(--cyan);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  text-align: center;
  border: 2px solid #eee;
  transition: border-color 0.2s;
}

.pricing-card.featured {
  border-color: var(--cyan);
  transform: scale(1.02);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan-dark);
}

.price span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Projects */
.project-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card .card-body {
  padding: 1.25rem;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Legal content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Trust section */
.trust-section {
  text-align: center;
}

.trust-section img {
  max-width: 500px;
  margin: 2rem auto;
  border-radius: var(--radius);
}

.floating-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.floating-stats .card {
  min-width: 140px;
  padding: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b0b0b0;
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-logo {
  margin-bottom: 1rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: #b0b0b0;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.social-icons a:hover {
  background: var(--cyan);
  color: var(--navy);
}

.footer-news-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-news-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-legal {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-legal a {
  color: var(--cyan);
}

.footer-subscribe input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #444;
  border-radius: var(--radius);
  background: var(--navy-light);
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: inherit;
}

.footer-subscribe input::placeholder {
  color: #888;
}

/* Stars */
.stars {
  color: #ffc107;
  font-size: 1.25rem;
  letter-spacing: 2px;
}