/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0d1b4b;
  --navy2:   #1a2d6e;
  --accent:  #2563eb;
  --green:   #25d366;
  --red:     #e53935;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --bg:      #f8faff;
  --white:   #ffffff;
  --card-bg: #ffffff;
  --border:  #e5e7eb;
  --shadow:  0 4px 24px rgba(13,27,75,0.10);
  --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--accent); color: var(--white); }
.btn-dark     { background: var(--navy);   color: var(--white); }
.btn-whatsapp { background: var(--green);  color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-full     { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-tax  { color: #ffffff; }
.logo-algo { color: #60a5fa; }
.logo-sol  { color: #93c5fd; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav a:hover { color: #ffffff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy2);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.mobile-nav.open {
  display: flex;
  max-height: 300px;
  padding: 12px 0;
}
.mobile-nav a {
  color: rgba(255,255,255,0.9);
  padding: 12px 24px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: white;
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: #60a5fa; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  padding: 28px 20px;
  flex-wrap: wrap;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

/* ===== SERVICES ===== */
.services { padding: 80px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,27,75,0.15);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4ff;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img-wrap img { transform: scale(1.03); }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.card-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.card-body .btn {
  margin-top: auto;
  font-size: 0.88rem;
  padding: 10px 18px;
  text-align: center;
  justify-content: center;
}

/* ===== ABOUT ===== */
.about {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: white;
  padding: 80px 0;
}
.about-inner { max-width: 700px; margin: 0 auto; }
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 32px;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.check {
  background: rgba(255,255,255,0.15);
  color: #4ade80;
  font-weight: 800;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-list li div {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}
.about-list li strong { color: white; }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-link:hover { transform: translateX(4px); }
.contact-whatsapp { background: #e8faf0; color: #166534; }
.contact-phone    { background: #eff6ff; color: #1e40af; }
.contact-email    { background: #fdf4ff; color: #6b21a8; }

/* ===== FORM ===== */
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-tax  { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-brand .logo-algo { font-size: 1.4rem; font-weight: 800; color: #60a5fa; }
.footer-brand .logo-sol  { font-size: 1.4rem; font-weight: 800; color: #93c5fd; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer-links h4,
.footer-contact h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-contact a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover,
.footer-contact a:hover { color: white; }
.footer-contact p { margin-bottom: 10px; }
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .services { padding: 56px 0; }
  .about { padding: 56px 0; }
  .contact { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .stats-inner { gap: 12px; }
}
