/* ============================================
   Chronex Paralegal Services — Styles
   ============================================ */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-gray: #1a1a1a;
  --gray-900: #222222;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #cccccc;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --container: 1200px;
  --hero-text-inset: 0px;
  --hero-min-gap: 16px;
  --radius-pill: 999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-gray {
  background: var(--gray-100);
}

.section-header {
  max-width: 720px;
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 20px;
  text-transform: capitalize;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.6);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-body {
  margin-top: 28px;
}

.about-body p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.about-body p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--black);
}

.arrow {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--gray-900);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta-mobile {
  display: none;
}

.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: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    transparent 65%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero .hero-content.container {
  width: 100%;
  max-width: min(540px, 42%);
  margin-right: auto;
  margin-left: max(
    var(--hero-min-gap),
    calc((100vw - min(100vw, var(--container))) / 2 + var(--hero-text-inset))
  );
  padding-left: 0;
  padding-right: max(var(--hero-min-gap), 24px);
}

.hero .hero-footer.container {
  max-width: var(--container);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(
    var(--hero-text-inset),
    calc(var(--hero-min-gap) - (100vw - min(100vw, var(--container))) / 2)
  );
  padding-right: max(var(--hero-min-gap), 24px);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-features {
  margin-bottom: 40px;
}

.hero-features li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.hero-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  margin-top: auto;
  max-width: var(--container);
  width: 100%;
}

.hero-footer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.scroll-indicator:hover {
  color: var(--white);
}

.scroll-indicator svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Stats Bar */
.stats-bar {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stats-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.stats-trust-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.stats-avatars {
  display: flex;
}

.stats-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  margin-left: -10px;
  object-fit: cover;
}

.stats-avatars img:first-child {
  margin-left: 0;
}

.stats-trust-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.stats-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.stats-grid {
  display: flex;
  flex: 1;
  justify-content: space-around;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* About */
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img-card:hover img {
  transform: scale(1.03);
}

/* Team */
.team-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.team-content {
  flex: 1;
  max-width: 620px;
  padding-left: 0;
}

.team-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.team-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.team-image img {
  display: block;
  width: auto;
  max-width: min(720px, 72vw);
  max-height: 230px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 10px;
}

/* Values / How We Work */
.values-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.values-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.values-steps p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.values-steps p:last-child {
  margin-bottom: 0;
}

.values-steps strong {
  color: var(--black);
  font-weight: 600;
}

.values-images {
  position: relative;
  min-height: 400px;
}

.values-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 85%;
}

.values-img-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.values-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.values-img-secondary img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--gray-500);
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--gray-700);
}

.contact-details svg {
  flex-shrink: 0;
  color: var(--gray-500);
}

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  max-width: 400px;
  text-align: right;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 16px;
    border: none !important;
  }

  .nav-cta-mobile .btn {
    width: 100%;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero .hero-content.container {
    max-width: 100%;
    margin-left: max(
      var(--hero-min-gap),
      calc((100vw - min(100vw, var(--container))) / 2 + var(--hero-text-inset))
    );
    padding-left: 0;
    padding-right: max(var(--hero-min-gap), 24px);
  }

  .hero .hero-footer.container {
    padding-left: max(
      var(--hero-text-inset),
      calc(var(--hero-min-gap) - (100vw - min(100vw, var(--container))) / 2)
    );
    padding-right: max(var(--hero-min-gap), 24px);
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stats-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .stats-divider {
    width: 100%;
    height: 1px;
  }

  .stats-grid {
    width: 100%;
    justify-content: space-between;
  }

  .stat-label {
    font-size: 11px;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .team-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .team-image {
    width: 100%;
    justify-content: flex-start;
  }

  .team-image img {
    max-width: 100%;
    max-height: 230px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .values-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-images {
    min-height: 300px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .stats-trust {
    flex-wrap: wrap;
  }

  .stats-grid {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: left;
  }

  .contact-form {
    padding: 24px;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
