/* ============================================
   CREAN LAW · SHARED DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Lato:wght@300;400&display=swap');

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

:root {
  --cream: #f4efe4; --cream-dark: #ede8dc;
  --ink: #1a1a18; --ink-mid: #3a3a36; --ink-light: #6b6b62;
  --rule: #d8d2c4;
  --accent: #2c4a2e; --accent-light: #3d6b40;
  --tag-bg: #2c4a2e; --tag-color: #f4efe4;
  --serif: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Lato', 'Gill Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* HEADER */
header { background: var(--cream); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; max-width: 1200px; margin: 0 auto;
}

.brand { flex-shrink: 0; }
.brand-name { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0.18em; color: var(--ink); }
.brand-sub { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-light); margin-top: 3px; }

.desktop-nav { display: flex; align-items: center; }
.desktop-nav a { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-mid); text-decoration: none; margin-left: 32px; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--rule); padding: 6px 10px; font-size: 16px; cursor: pointer; color: var(--ink); line-height: 1; }

.mobile-nav { display: none; flex-direction: column; padding: 0 24px; border-top: 1px solid var(--rule); background: var(--cream); }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-mid); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule); display: block; }
.mobile-nav a:last-child { border-bottom: none; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto; padding: 80px 48px 96px; align-items: center;
}

.eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-light); margin-bottom: 24px; }

h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); font-weight: 300; line-height: 1.1; color: var(--ink); margin-bottom: 28px; }
h1 em { font-style: italic; color: var(--accent); }

.hero-body { font-size: 14px; color: var(--ink-mid); max-width: 380px; margin-bottom: 40px; line-height: 1.85; }

.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; background: var(--accent); color: var(--tag-color) !important;
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.14em;
  text-decoration: none !important; padding: 14px 28px; border: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-ghost {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.14em;
  color: var(--ink-mid) !important; text-decoration: none !important;
  border-bottom: 1px solid var(--ink-mid); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--accent) !important; border-color: var(--accent); }

.principal-card { padding: 0 0 0 36px; border-left: 3px solid var(--accent); }

.tag {
  display: inline-block; background: var(--tag-bg); color: var(--tag-color);
  font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: 0.14em;
  padding: 5px 12px; margin-bottom: 24px;
}

blockquote {
  font-family: var(--serif); font-size: clamp(17px, 1.8vw, 22px);
  font-style: italic; font-weight: 300; line-height: 1.5; color: var(--ink); margin-bottom: 28px;
}

.credentials { font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-light); line-height: 2.2; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.services.four-col { grid-template-columns: repeat(4, 1fr); }

.service-card { padding: 48px 40px 56px; border-right: 1px solid var(--rule); transition: background 0.2s; }
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--cream-dark); }

.service-num { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-light); margin-bottom: 16px; }

.service-card h2 { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ink); margin-bottom: 14px; }
.service-card p { font-size: 13px; color: var(--ink-mid); line-height: 1.75; }

/* ALSO / PART OF */
.also-section, .part-of {
  display: flex; align-items: center; gap: 32px;
  padding: 24px 48px; max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--rule); flex-wrap: wrap;
}
.also-label, .part-of-label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-light); }
.also-link, .part-of-link { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-mid); text-decoration: none; transition: color 0.2s; }
.also-link:hover, .part-of-link:hover { color: var(--accent); }

/* ABOUT / CONTACT */
.about-section {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-section h2 { font-family: var(--serif); font-size: 36px; font-weight: 300; margin-bottom: 24px; color: var(--ink); }
.about-section p { font-size: 13px; color: var(--ink-mid); line-height: 1.85; margin-bottom: 16px; }

.contact-details { font-size: 13px; color: var(--ink-mid); line-height: 2.4; }
.contact-details a { color: var(--accent); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* PROCESS */
.process-section { max-width: 1200px; margin: 0 auto; padding: 80px 48px; border-top: 1px solid var(--rule); }
.section-label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-light); margin-bottom: 48px; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; }
.process-step h3 { font-family: var(--serif); font-size: 22px; font-weight: 300; margin-bottom: 12px; color: var(--ink); }
.process-step p { font-size: 13px; color: var(--ink-mid); line-height: 1.75; }

/* FOOTER */
footer { border-top: 1px solid var(--rule); background: var(--cream); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px; max-width: 1200px; margin: 0 auto; }
.footer-brand { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; color: var(--ink); }
.footer-contact { text-align: right; font-size: 12px; color: var(--ink-light); line-height: 1.9; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner { padding: 16px 24px; }
  .desktop-nav { display: none; }
  .nav-toggle { display: block; }

  .hero { grid-template-columns: 1fr; padding: 48px 24px 64px; gap: 48px; }
  .hero-body { max-width: 100%; }
  .principal-card { padding-left: 24px; }

  .services { grid-template-columns: 1fr; }
  .services.four-col { grid-template-columns: 1fr 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 36px 24px; }
  .service-card:last-child { border-bottom: none; }

  .also-section, .part-of { padding: 20px 24px; }

  .about-section { grid-template-columns: 1fr; padding: 56px 24px; gap: 48px; }
  .process-section { padding: 56px 24px; }

  .footer-inner { flex-direction: column; gap: 12px; padding: 28px 24px; text-align: center; }
  .footer-contact { text-align: center; }
}

@media (max-width: 560px) {
  .services.four-col { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
}
