/* ================================
   LOCUS LEGAL SOLUTIONS — style.css
   Brand: Navy #1e3a5f | Green #6aaa3a
   ================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1e3a5f;
  --navy-dark:   #152b47;
  --navy-light:  #e8eef5;
  --green:       #6aaa3a;
  --green-dark:  #4e8429;
  --green-light: #f0f7ea;
  --ink:         #1a1a18;
  --ink-muted:   #252520;
  --ink-faint:   #555550;
  --surface:     #f7f5f0;
  --white:       #ffffff;
  --rule:        rgba(26,26,24,0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================================
   NAVIGATION
   ================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  color: var(--navy) !important;
  border: 1px solid var(--navy);
  padding: 0.42rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ================================
   SHARED
   ================================ */

.container { max-width: 960px; margin: 0 auto; }
section { padding: 6rem 2.5rem; }

.section-label {
  font-size: 0.80rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.section-label--light { color: rgba(255,255,255,0.72); }

.eyebrow {
  font-size: 0.80rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.75rem;
}

/* ================================
   HERO
   ================================ */

#hero {
  padding-top: 10rem;
  padding-bottom: 7rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.75rem;
  max-width: 760px;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-ghost {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

/* ================================
   SERVICES
   ================================ */

#services { background: var(--surface); }

.services-intro {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.service-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}

.service-item:hover { background: var(--white); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.service-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ================================
   ABOUT (FIRM)
   ================================ */

#about {
  background: var(--navy);
  padding: 6rem 2.5rem;
}

#about .section-label { color: rgba(255,255,255,0.72); }

.about-firm-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.about-firm-text {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  max-width: 680px;
  line-height: 1.85;
}

/* ================================
   TEAM
   ================================ */

#team {
  background: var(--white);
  padding: 6rem 2.5rem;
}

.team-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.team-photo-col {
  position: sticky;
  top: 5.5rem;
}

.team-photo {
  width: 100%;
  border-radius: 3px;
  display: block;
  filter: grayscale(15%);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.team-title {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.team-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.team-text:last-child { margin-bottom: 0; }

/* ================================
   BOOKING
   ================================ */

#booking {
  background: var(--navy-light);
  padding: 6rem 2.5rem;
}

.booking-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.booking-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

/* ================================
   CONTACT
   ================================ */

#contact { background: var(--surface); }

.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-email-cta {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 0.5rem;
}

.contact-email-cta:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.80rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--navy);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-submit:hover { background: var(--navy-dark); }

.form-note {
  font-size: 0.82rem;
  color: var(--green-dark);
  min-height: 1.2rem;
}

/* ================================
   FOOTER
   ================================ */

footer {
  background: var(--navy-dark);
  padding: 2.5rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-note {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-layout { grid-template-columns: 1fr; gap: 3rem; }
  .approach-left { position: static; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-col { position: static; max-width: 240px; }
  .team-inner { grid-template-columns: 1fr; gap: 3rem; }
  .team-photo-col { position: static; max-width: 240px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 600px) {
  #navbar { padding: 0 1.25rem; }
  section { padding: 4rem 1.25rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
