/* ═══════════════════════════════════════════════════════
   CYK Law — Disputes. It's all we do.
   Design reference: enyolaw.com
   Typography: Montserrat
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #051739;
  --navy-light: #0A2654;
  --gold: #C5A639;
  --gold-soft: rgba(197,166,57,0.12);
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray: #8A8FA0;
  --gray-light: #C8CBD4;
  --border: rgba(255,255,255,0.1);
  --border-light: #E2E4E9;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1140px;
  --section-pad: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--navy); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); box-shadow: 0 6px 24px rgba(5,23,57,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 6px 24px rgba(197,166,57,0.4); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; background: transparent; transition: background var(--transition), padding var(--transition);
}
.header.scrolled { background: rgba(5,23,57,0.95); backdrop-filter: blur(12px); padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-logo img { height: 28px; width: auto; filter: brightness(10); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em; transition: color var(--transition); position: relative;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
}
.header-nav a:hover { color: var(--white); }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { margin-left: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(6.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-6.5px); }

/* ─── Hero ─── */
.hero {
  min-height: 100dvh; display: flex; align-items: center; position: relative;
  background: var(--navy); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-attachment: fixed; opacity: 0.4;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,23,57,0.3) 0%, rgba(5,23,57,0.7) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.hero h1 { color: var(--white); margin-bottom: 24px; max-width: 600px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 520px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* ─── About ─── */
.about { padding: var(--section-pad) 0; background: var(--white); }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.about h2 { margin-bottom: 24px; }
.about p { color: var(--gray); margin-bottom: 20px; }
.about-img { border-radius: 0; width: 100%; height: 400px; object-fit: cover; }

/* ─── Testimonials ─── */
.testimonials { padding: var(--section-pad) 0; background: var(--navy); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.testimonials::before { content: '\201C'; position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 200px; color: rgba(197,166,57,0.08); line-height: 1; }
.testimonial-slide { max-width: 700px; margin: 0 auto; position: relative; }
.testimonial-quote { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-style: italic; line-height: 1.5; margin-bottom: 24px; color: var(--white); }
.testimonial-source { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: background var(--transition); }
.testimonial-dot.active { background: var(--gold); }

/* ─── Services ─── */
.services { padding: var(--section-pad) 0; background: var(--off-white); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header h4 { color: var(--gold); margin-bottom: 12px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.service-card {
  background: var(--white); padding: 40px 28px; transition: all var(--transition);
  border-bottom: 3px solid transparent; position: relative;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform var(--transition); }
.service-card:hover { background: var(--navy); color: var(--white); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 12px; transition: color var(--transition); }
.service-card p { font-size: 13px; color: var(--gray); line-height: 1.6; transition: color var(--transition); }
.service-card:hover p { color: rgba(255,255,255,0.6); }

/* ─── Work ─── */
.work { padding: var(--section-pad) 0; background: var(--white); }
.work-header { text-align: center; margin-bottom: 48px; }
.work-header h4 { color: var(--gold); margin-bottom: 12px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { overflow: hidden; position: relative; }
.work-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.work-card:hover img { transform: scale(1.05); }
.work-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,23,57,0.4) 100%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.work-card:hover::after { opacity: 1; }

/* ─── CTA ─── */
.cta-section { padding: var(--section-pad) 0; background: var(--navy); text-align: center; color: var(--white); position: relative; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── Footer ─── */
.footer { padding: 56px 0 32px; background: var(--navy); color: rgba(255,255,255,0.6); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand img { height: 24px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h4 { color: var(--gold); margin-bottom: 16px; font-size: 11px; }
.footer-col a { display: block; padding: 3px 0; font-size: 13px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; }

/* ─── Animations ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .about .container { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: var(--navy); justify-content: center; align-items: center;
    gap: 28px; z-index: 105;
  }
  .header-nav.open a { font-size: 20px; color: var(--white); }
  .header-nav.open .header-cta { margin-left: 0; margin-top: 8px; border-color: var(--gold); color: var(--gold); padding: 16px 40px; font-size: 14px; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
