/* Zed Law PC — static rebuild of zedlawfirm.com for Netlify */

:root {
  --black: #000;
  --white: #fff;
  --accent: #663b14;        /* brown rules + highlights */
  --light-accent: #ebd8c7;  /* beige sections */
  --dark-accent: #3a3d1d;   /* eyebrow text */
  --gutter: 4vw;
  --header-h: 77px;
  --radius: 10px;

  --font-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-btn-alt: "Helvetica Neue", Arial, sans-serif;

  --fs-h1: clamp(40px, 4.84vw, 74px);
  --fs-h2: clamp(30px, 3.16vw, 48px);
  --fs-h3: clamp(26px, 2.56vw, 39px);
  --fs-h4: clamp(18px, 1.48vw, 22px);
  --fs-lg: clamp(18px, 1.6vw, 24px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.375;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-h1); line-height: 1.056; }
h2 { font-size: var(--fs-h2); line-height: 1.123; }
h3 { font-size: var(--fs-h3); line-height: 1.147; }
h4 { font-size: var(--fs-h4); line-height: 1.19; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 40px; }
li { margin-bottom: 8px; line-height: 22px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--black); color: var(--white);
  padding: 16px 20.8px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 8px; }

.rule {
  width: 89px; height: 1px; background: var(--accent);
  border: 0; margin: 0 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 62px; padding: 0 20.8px;
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .8; }
.btn--solid { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); }
.btn--outline {
  background: transparent; color: var(--black); border-color: var(--black);
  font-family: var(--font-btn-alt); font-weight: 400;
}
.btn--wide { width: 239px; }
.btn--xl { width: 289px; }
.btn--tall { min-height: 99px; }
.btn--sm { min-height: 54px; padding: 16px 20.8px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.site-header__logo img { width: 64px; height: auto; }
.site-header__right { display: flex; align-items: center; gap: 56px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-size: 14.4px; line-height: 19.8px; text-decoration: none;
  letter-spacing: -0.02em; padding: 4px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.header-cta {
  font-family: var(--font-btn-alt); font-size: 16px; font-weight: 400;
  border: 1px solid var(--black); border-radius: var(--radius);
  padding: 16px 20.8px; text-decoration: none; line-height: 1.2;
  transition: opacity .15s ease;
}
.header-cta:hover { opacity: .7; }

.burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--black);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--white);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.mobile-menu a { font-family: var(--font-head); font-weight: 300; font-size: 32px; text-decoration: none; }
.mobile-menu .header-cta { font-size: 16px; margin-top: 20px; font-family: var(--font-btn-alt); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { position: fixed; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 0 var(--gutter); }
.section--beige { background: var(--light-accent); }
.section--black { background: var(--black); color: var(--white); }
.inset { padding-left: calc(var(--gutter) + 50px); padding-right: calc(var(--gutter) + 50px); }

/* Hero */
.hero {
  min-height: 956px; padding-top: 158px; padding-bottom: 42px;
  display: flex; align-items: flex-start; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .4; }
.hero__bg img, .hero__bg video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero__content { position: relative; z-index: 1; width: 100%; max-width: 600px; }
.eyebrow {
  font-size: 14.4px; font-weight: 600; color: var(--dark-accent);
  text-transform: uppercase; margin-bottom: 34px;
}
.hero h1 { margin-bottom: 64px; }
.hero__tagline { font-weight: 700; margin-bottom: 18px; }
.hero__tagline .hl { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lead { font-size: var(--fs-lg); line-height: 1.375; }
.hero .lead { max-width: 500px; }
.hero__buttons { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 124px; }

/* Services */
.services { padding-top: 140px; padding-bottom: 42px; }
.services > h2 { margin-bottom: 48px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.services__col h3 { margin-bottom: 40px; }
.services__col p { margin-bottom: 16px; }
.services__col ul { margin-bottom: 0; }
.services__cta { display: flex; justify-content: center; padding: 100px 0 0; }

/* Founder (home) */
.founder { padding-top: 72px; padding-bottom: 72px; }
.founder__grid { display: grid; grid-template-columns: 1fr auto; gap: 100px; align-items: start; }
.founder__img { padding-right: 50px; }
.founder__text { max-width: 560px; padding-top: 30px; }
.founder__text h2 { margin-bottom: 16px; }
.founder__text .rule { margin-bottom: 36px; }
.founder__img img {
  width: 100%; max-width: 389px; aspect-ratio: 389 / 738; object-fit: cover; border-radius: 14px;
}
.contact-line a { text-underline-offset: 2px; }

/* Consultation band */
.consult { padding-top: 66px; padding-bottom: 120px; }
.consult__grid { display: grid; grid-template-columns: minmax(0, 600px) auto; gap: 100px; align-items: start; }
.consult h2 { margin-bottom: 24px; }
.consult .lead { max-width: 560px; }
.consult__cta { padding-top: 52px; }

/* Contact */
.contact { padding-top: 120px; padding-bottom: 220px; }
.contact.inset { padding-right: var(--gutter); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 550px) 1fr; gap: 0; align-items: start; }
.contact h2 { margin-bottom: 4px; }
.contact .rule { margin-bottom: 36px; }
.contact .lead { max-width: 390px; }
.contact .lead a { text-underline-offset: 3px; }

.form { margin-right: 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.form legend { font-size: 16px; padding: 0; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: block; font-size: 16px; margin-bottom: 18px; }
.form fieldset label { font-size: 14.4px; }
.form label .req { color: #555; font-size: 13px; margin-left: 6px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px;
  border: 0; border-bottom: 1px solid #949494; border-radius: 0;
  background: transparent; padding: 8px 0;
  font: 16px var(--font-body); color: var(--black);
}
.form textarea { height: 100px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--black); }
.form .hidden { position: absolute; left: -9999px; }
.form__status { margin-top: 16px; font-size: 16px; }

.note {
  background: var(--light-accent); padding: 50px 36px 42px; margin-top: 48px;
  font-size: 14.4px; line-height: 1.38;
}
.note strong { display: block; margin-bottom: 14px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black); color: var(--white);
  border-top: 1px solid var(--accent);
  padding: 82px var(--gutter) 90px;
}
.footer__grid { display: grid; grid-template-columns: 150px minmax(0, 470px) 1fr auto; gap: 0; align-items: start; }
.footer__logo img { width: 88px; height: auto; }
.footer__legal { font-size: 14.4px; line-height: 1.38; }
.footer__legal p { margin-bottom: 20px; }
.footer__contact { font-size: 16px; line-height: 1.375; min-width: 240px; }
.footer__contact h4 { font-weight: 600; margin-bottom: 14px; font-size: 19.1px; }
.footer__contact p { margin-bottom: 16px; }
.footer__contact a { text-underline-offset: 2px; }
.footer__icons { display: flex; gap: 14px; align-items: center; }
.footer__icons svg { width: 20px; height: 20px; fill: none; stroke: var(--white); }
.footer__icons a { display: inline-flex; }

/* ---------- About page ---------- */
.about-page { background: var(--light-accent); }
.about { padding-top: calc(var(--header-h) + 74px); padding-bottom: 150px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 54px; align-items: start; }
.about h1 { margin-bottom: 22px; }
.about .rule { width: 189px; margin-bottom: 26px; }
.about h3 { font-weight: 600; margin-bottom: 30px; }
.about h4 { margin: 32px 0 30px; }
.about__img { padding-top: 116px; display: flex; justify-content: flex-start; }
.about__img img { width: 100%; max-width: 456px; aspect-ratio: 2 / 3; object-fit: cover; }
.about__cta { display: flex; justify-content: center; padding-top: 100px; }

/* ---------- Insights ---------- */
.insights { padding-top: calc(var(--header-h) + 50px); padding-bottom: 60px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post-card { text-align: center; padding: 0 50px; }
.post-card__meta { font-size: 14.4px; margin-bottom: 18px; }
.post-card__meta .dot { margin: 0 8px; }
.post-card h2 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 40px; }
.post-card h2 a { text-decoration: none; }
.post-card__more { font-size: 14.4px; color: var(--accent); text-underline-offset: 2px; }

/* ---------- Blog post ---------- */
.post { padding-top: calc(var(--header-h) + 54px); padding-bottom: 150px; }
.post__inner { max-width: 892px; margin: 0 auto; }
.post__meta { font-size: 14.4px; margin-bottom: 28px; }
.post__meta span + span { margin-left: 10px; }
.post__meta .dot { margin: 0 6px 0 10px; }
.post h1 { line-height: 1.2; margin-bottom: 60px; }
.post h2 { font-size: var(--fs-h2); margin: 40px 0 34px; }
.post__body p, .post__body li { font-size: 16px; }
.post__body a { text-underline-offset: 2px; }
.post__disclaimer { margin-top: 56px; font-style: italic; }
.post__tags { font-size: 14.4px; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 0; }
.post__tags span:not(:last-child)::after { content: "\2022"; margin: 0 10px; }

/* 404 */
.notfound { padding-top: calc(var(--header-h) + 140px); padding-bottom: 200px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-header__right { gap: 28px; }
  .footer__grid { grid-template-columns: 120px 1fr; row-gap: 40px; }
  .footer__contact { grid-column: 2; }
  .footer__spacer { display: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 6vw; --header-h: 70px; }
  .site-nav, .site-header__right > .header-cta { display: none; }
  .burger { display: block; }
  .inset { padding-left: var(--gutter); padding-right: var(--gutter); }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; align-items: center; }
  .hero h1 { margin-bottom: 40px; }
  .hero__buttons { margin-top: 48px; }
  .btn--wide, .btn--xl { width: 100%; }

  .services { padding-top: 80px; }
  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__col h3 { margin-bottom: 24px; }
  .services__cta { padding-top: 60px; padding-bottom: 20px; }

  .founder__grid, .consult__grid, .contact__grid, .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .founder__img { padding-right: 0; }
  .founder__img img { max-width: 100%; aspect-ratio: 4 / 5; }
  .consult__cta { padding-top: 0; }
  .contact { padding-top: 80px; padding-bottom: 100px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .about { padding-bottom: 80px; }
  .about__img { padding-top: 0; order: -1; }
  .about__cta { padding-top: 60px; }

  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 0; }
  .post h1 { margin-bottom: 36px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { grid-column: auto; }
}
