/* ===== Talent LegalWorks – Modern Legal Aesthetic ===== */
:root {
  --navy: #0f2c59;
  --navy-dark: #0a1f3d;
  --gold: #c9a227;
  --gold-light: #e0bc4a;
  --cream: #f8f5f0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --shadow: 0 10px 40px rgba(15, 44, 89, 0.08);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(248, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 44, 89, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* ===== Hero with Parallax ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  transform: scale(1.1);
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 44, 89, 0.88) 0%, rgba(10, 31, 61, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-content .eyebrow {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--gold-light);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ===== Section Common ===== */
section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .eyebrow {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Services ===== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 44, 89, 0.12);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.service-card .learn-more {
  margin-top: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card .learn-more:hover {
  color: var(--gold);
}

/* ===== About / Team ===== */
.about {
  background: var(--cream);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: 10px;
  max-width: 220px;
}

.about-badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.team-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.team-point .icon {
  width: 42px;
  height: 42px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.team-point h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.team-point p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Why Us / Trust ===== */
.trust {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.trust h2 {
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  padding: 1.5rem;
}

.trust-item .number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-item p {
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ===== Contact / CTA ===== */
.contact {
  background: var(--white);
}

.contact-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-box h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-box p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* Placeholder for Tally form */
.form-placeholder {
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 1.5rem;
  max-width: 560px;
  margin-inline: auto;
}

.form-placeholder p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Parallax helper ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image img {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  .nav-cta {
    display: none;
  }
  .hero {
    min-height: 90vh;
    text-align: center;
  }
  .hero-content {
    margin-inline: auto;
  }
  .btn-group {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth image loading */
img {
  background: #e8e4dc;
}
