/* =====================================================================
   Ishimatsu Law Group — static site stylesheet
   Hand-authored replacement for the WordPress/Elementor build.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #132030;   /* primary brand / dark sections / headings */
  --navy-2:      #1a2736;   /* slightly lighter navy (footer bottom)   */
  --slate:       #6e777f;   /* muted body / nav text                   */
  --tan:         #c5a788;   /* eyebrow labels + inline CTA links        */
  --tan-dark:    #a98a6a;   /* tan hover                                */
  --peach:       #ead3bc;   /* testimonial band background              */
  --card:        #f9f9f9;   /* light card backgrounds                  */
  --hairline:    #e8eded;   /* thin divider lines (AV band, sections)   */
  --teal:        #044c6a;   /* case-study subheads                     */
  --ink:         #333333;   /* default body text                       */
  --line:        #e2e6e6;   /* hairline borders                        */
  --white:       #ffffff;

  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;   /* 1180 box - 2x20 gutter = 1140 content, matches Elementor */
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 35px;              /* offset for the fixed top bar */
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 300; color: var(--navy); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--tight { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
.grid-2--wide-right { grid-template-columns: 0.9fr 1.1fr; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0;
}
.lead { color: var(--slate); font-size: 18px; line-height: 1.5; }
.h-xl { font-size: 80px; line-height: 1.0; letter-spacing: normal; }
.h-lg { font-size: 60px; line-height: 1.1; }
.h-md { font-size: 40px; line-height: 1.15; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons / inline CTAs ---------- */
.cta-link {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--teal);
  display: inline-block;
  transition: color .2s;
}
.cta-link:hover { color: #06749a; }
.cta-slate {
  font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 24px;
  color: var(--slate); text-transform: none; letter-spacing: normal; display: inline-block;
}
.btn-ghost {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 3px;
  padding: 13px 26px;
  display: inline-block;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--white); color: var(--navy); }

/* =====================================================================
   Header
   ===================================================================== */
.topbar {
  background: var(--navy); color: var(--white);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 35px;
}
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 0; height: 35px; }
.topbar a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  height: 35px;
  gap: 7px;
  padding: 0 24px;
  white-space: nowrap;
  transition: color .2s;
}
.topbar a:last-child { padding-right: 0; }
.topbar a:hover { color: var(--tan); }
.topbar a:hover .ti { fill: var(--white); }
.topbar .ti { width: 19px; height: 19px; fill: var(--tan); flex: 0 0 auto; transition: fill .2s; }
.topbar .ti-hs { width: 19px; height: auto; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; min-height: 65px; }
.brand img { height: 24px; width: auto; }
.mainnav ul { display: flex; align-items: center; gap: 0; }
.mainnav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--slate);
  padding: 13px 20px;
  transition: color .2s;
}
.mainnav li:last-child a { padding-right: 0; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--tan); }

.navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; transition: transform .2s ease; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transform-origin: center; transition: transform .25s ease, opacity .2s ease, background-color .2s ease; }
/* hover effect (hamburger state) */
.navtoggle:hover span { background: var(--tan); }
/* clicked/open: morph the three bars into an X */
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* X's own hover effect: bars go tan and the X grows slightly */
.navtoggle[aria-expanded="true"]:hover { transform: scale(1.08); }
.navtoggle[aria-expanded="true"]:hover span { background: var(--tan); }

/* =====================================================================
   Hero (interior + home)
   ===================================================================== */
.hero { padding: 64px 0 0; }
.hero .grid-2 { align-items: center; gap: 48px; }
.hero h1 { color: var(--navy); }
.hero .lead { margin: 0 0 14px; }
.hero-figure { margin-top: 60px; }
.hero-figure img { width: 100%; border-radius: 0; }
.hero--interior { padding: 64px 0 0; }
.fullbleed { width: 100%; }
.fullbleed img { width: 100%; height: clamp(280px, 34vw, 520px); object-fit: cover; display: block; }
/* Interior-page hero banners: fixed (parallax) background, matching the original */
.fullbleed.heroimg { background-position: center center; background-repeat: no-repeat; background-size: cover; background-attachment: fixed; }

/* =====================================================================
   Client logo marquee
   ===================================================================== */
.logobar { background: var(--navy); padding: 27px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee img {
  height: 34px; width: auto; margin: 0 46px; flex: 0 0 auto;
  filter: brightness(0) invert(1); opacity: .78;
  transition: opacity .2s;
}
.marquee img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* =====================================================================
   Generic content section (eyebrow + heading left, body right)
   ===================================================================== */
.split h2 { margin-bottom: 0; max-width: 455px; }
.split .body p { color: var(--slate); font-size: 16px; line-height: 24px; margin-bottom: 14px; }
.split .body p:first-of-type { color: var(--navy); font-size: 22px; line-height: 33px; }
/* About feature text scale (matches live per-element sizing) */
.t22 { color: var(--navy); font-size: 22px; line-height: 33px; margin-bottom: 14px; }
.t16 { color: var(--slate); font-size: 16px; line-height: 24px; margin-bottom: 14px; }
.rich.rich-navy22 li { color: var(--navy); font-size: 22px; line-height: 33px; }
.lead2 { font-size: 16px; line-height: 24px; }
/* Body lists use real disc bullets, marker colour = text colour (matches original) */
.check, .rich { list-style: disc outside; padding-left: 40px; margin: 0 0 24px; }
.check { margin-top: 38px; }
.check li, .rich li { color: var(--slate); font-size: 16px; line-height: 24px; font-weight: 300; margin-bottom: 0; padding-left: 0; }
.check li::marker, .rich li::marker { color: currentColor; }
.rich.rich-navy22 li { color: var(--navy); font-size: 22px; line-height: 33px; }
.rich h3 { font-family: var(--sans); font-weight:600; text-transform:uppercase; letter-spacing:1px; font-size:13px; color:var(--slate); margin: 22px 0 8px; }

/* AV rating row */
.av { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.av .container { display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: center; }
.av img { width: 100%; max-width: 100%; }
.av .lead { font-size: 16px; line-height: 24px; color: var(--slate); }

/* =====================================================================
   Service cards
   ===================================================================== */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { background: var(--card); padding: 48px; border-radius: 0; }
.card .icon { width: 32px; height: 32px; margin-bottom: 22px; fill: var(--tan); stroke: none; }
.card h2 { font-size: 30px; line-height: 30px; margin-bottom: 16px; }
.card p { font-size: 16px; line-height: 24px; color: var(--slate); margin-bottom: 14px; }
.card .rich { margin-top: 18px; }

/* =====================================================================
   Case study rows (results page)
   ===================================================================== */
.case { display: grid; grid-template-columns: 1fr 1fr; }
.case__title { background: var(--navy); color: var(--white); padding: 64px 40px; display: flex; flex-direction: column; justify-content: center; }
.case__title .eyebrow { color: var(--tan); font-size: 16px; line-height: 16px; font-weight: 600; margin-bottom: 14px; }
.case__title h2 { color: var(--white); font-size: 35px; font-weight: 800; line-height: 35px; }
.case__body { padding: 56px 48px; background: #fff; }
.case__body h3 { font-family: var(--serif); font-weight: 900; text-transform: none; letter-spacing: normal; font-size: 29px; line-height: 29px; color: var(--teal); margin: 0 0 10px; }
.case__body p { font-size: 16px; line-height: 24px; color: var(--slate); }
.case__body .blk + .blk { margin-top: 28px; }
.quotebar { max-width: 666px; margin: 44px auto; padding: 28px 32px; background: #fff; border: 1px solid rgba(19,32,48,.08); box-shadow: 0 6px 20px rgba(19,32,48,.10); }
.quotebar p { font-style: normal; color: var(--teal); font-weight: 400; margin: 0; text-align: left; font-size: 16px; line-height: 24px; }
.quotebar .who { display: block; font-style: normal; font-weight: 500; font-size: 19px; color: var(--navy); margin-top: 10px; text-align: right; }

.split-band { display: grid; grid-template-columns: 1fr 1fr; }
.split-band__dark { background: var(--navy); color: var(--white); padding: 64px 40px; display:flex; flex-direction:column; justify-content:center; }
.split-band__dark .eyebrow { font-size: 16px; line-height: 16px; font-weight: 600; margin-bottom: 14px; }
.split-band__dark h2 { color: var(--white); font-size: 35px; font-weight: 800; line-height: 35px; }
.split-band__tan { background: var(--tan); color: var(--navy); padding: 64px 40px; display:flex; align-items:center; }
.split-band__tan p { color: var(--navy); font-size: 15px; line-height: 23px; font-weight: 500; }

/* =====================================================================
   About — Bruce feature
   ===================================================================== */
.feature { display: grid; grid-template-columns: 1.31fr 1fr; gap: 48px; align-items: start; }
.feature__img img { width: 100%; border-radius: 0; }
.cred-label { font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 24px; color: var(--slate); text-transform: none; letter-spacing: normal; margin: 26px 0 14px; }
.feature__img { position: sticky; top: 24px; }

/* overlay testimonial on fixed (parallax) background image */
.overlay {
  position: relative; min-height: 27vw;
  background-position: center center; background-repeat: no-repeat;
  background-size: cover; background-attachment: fixed;
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.overlay__card {
  display: flex; align-items: center; justify-content: center;
}
.overlay__card blockquote {
  background: rgba(255,255,255,.77); max-width: 741px; margin: 0; padding: 30px 20px; border-radius: 0;
  border: 1px solid rgba(255,255,255,.28);
  color: var(--navy); font-weight: 400; font-size: 16px; line-height: 24px;
}
.overlay__card .who { display:block; margin-top: 16px; font-size: 19px; font-weight: 500; color: var(--navy); text-align: right; }

/* =====================================================================
   Testimonial carousel (pre-footer, peach band)
   ===================================================================== */
.testi { background: var(--peach); padding: 56px 0 52px; }
.testi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.testi__card { margin: 0; background: #fff; border: 1px solid rgba(19,32,48,.08); box-shadow: 0 6px 20px rgba(19,32,48,.10); padding: 30px 32px; display: flex; flex-direction: column; }
.testi__card blockquote { margin: 0; font-style: italic; color: var(--navy); font-size: 16px; line-height: 24px; }
.testi__card .who { margin-top: 16px; font-style: italic; font-weight: 400; color: #333; font-size: 16px; }
.disclaimer-note { max-width: 900px; margin: 34px auto 0; text-align: center; font-size: 12px; line-height: 1.6; color: #7c6f5e; font-style: italic; }

/* =====================================================================
   Footer
   ===================================================================== */
.contactband { background: var(--navy-2); color: #fff; padding: 64px 0 0; }
.contactband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contactband .brand-white img { width: 300px; max-width: 100%; height: auto; display: block; }
.contactband__rule { display: block; width: 100%; max-width: 510px; height: 0; border: 0; border-bottom: 1px solid rgb(51,51,51); margin: 24px 0; }
.contactband__intro, .contactband__info { min-width: 0; }
.contactband h2 { color: var(--white); font-size: 24px; line-height: 24px; margin: 0; font-weight: 400; max-width: 460px; }
.contactband__info { max-width: 242px; }
.contactband__info li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--body); font-size: 16px; line-height: 24px; font-weight: 400; color: #fff; }
.contactband__info a, .contactband__info span { color: #fff; }
.contactband a:hover { color: var(--tan); }
.contactband .ci { width: 16px; height: 16px; fill: #879ba1; flex: 0 0 auto; }
.mapframe { width: 100%; height: 351px; border: 0; display: block; margin-top: 44px; filter: saturate(0); transition: filter .3s; }
.mapframe:hover { filter: saturate(1); }

.sitefoot { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.6); padding: 56px 0 40px; font-family: var(--body); font-size: 14px; }
.sitefoot .container { position: relative; z-index: 1; }
.sitefoot__mark {
  position: absolute; right: 0; bottom: 26px; width: min(600px, 62%); height: auto;
  aspect-ratio: 1797 / 374; object-fit: contain;
  opacity: .07; pointer-events: none; z-index: 0; user-select: none;
}
@media (max-width: 767px) { .sitefoot__mark { display: none; } }
.sitefoot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sitefoot__top img { height: 36px; width: auto; margin-bottom: 8px; }
.sitefoot h4 { font-family: var(--sans); font-weight:600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.sitefoot li { margin-bottom: 11px; }
.sitefoot a:hover { color: var(--tan); }
.sitefoot__legal { padding-top: 30px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.45); }
.sitefoot__legal strong { color: rgba(255,255,255,.7); font-weight: 600; }
.sitefoot__legal p { margin: 0 0 12px; }
.copyright { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.5); }

/* =====================================================================
   Terms page
   ===================================================================== */
.legal-body { max-width: 651px; margin: 0 auto; }
.legal-body h1 { font-size: 80px; line-height: 80px; margin-bottom: 24px; }
.legal-body h2 { font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: normal; font-size: 32px; line-height: 38px; color: var(--navy); margin: 48px 0 16px; }
.legal-body h3 { font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: normal; font-size: 28px; line-height: 34px; color: var(--navy); margin: 34px 0 12px; }
.legal-body p { font-size: 22px; line-height: 33px; color: var(--navy); font-weight: 300; margin-bottom: 14px; }
.legal-body .lead { max-width: 447px; font-size: 18px; line-height: 27px; color: var(--slate); margin-bottom: 14px; }
.legal-body .updated { max-width: 447px; font-family: var(--body); font-size: 18px; line-height: 27px; letter-spacing: normal; text-transform: none; color: var(--slate); font-weight: 300; margin-bottom: 14px; }

/* =====================================================================
   Responsive
   ===================================================================== */
/* Tablet (Elementor breakpoint) */
@media (max-width: 1024px) {
  .h-xl { font-size: 64px; }
  .h-lg { font-size: 48px; }
  .h-md { font-size: 34px; }
  .split h2 { max-width: none; }
  /* 22px intros/lists shrink to 18px, matching live */
  .split .body p:first-of-type, .t22, .rich.rich-navy22 li { font-size: 18px; line-height: 27px; }
  .section, .section--tight { padding: 64px 0; }
  .legal-body { max-width: 100%; }
  .legal-body h1 { font-size: 64px; line-height: 1.05; }
}
/* Stack + mobile nav */
@media (max-width: 767px) {
  .topbar .container { justify-content: center; }
  .topbar a { padding: 0 10px; }
  .topbar a:last-child { padding-right: 10px; }
  .navtoggle { display: block; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .masthead { position: relative; }
  .mainnav.open { transform: none; opacity: 1; pointer-events: auto; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .mainnav a { display: block; padding: 15px 24px; }
  .grid-2, .grid-2--wide-right, .hero .grid-2,
  .cards, .case, .split-band, .feature, .testi__grid,
  .contactband__grid, .av .container, .sitefoot__top {
    grid-template-columns: 1fr !important;
  }
  .h-xl { font-size: 44px; }
  .h-lg { font-size: 34px; }
  .h-md { font-size: 28px; }
  .legal-body h1 { font-size: 44px; }
  .legal-body h2 { font-size: 26px; line-height: 32px; }
  .legal-body h3 { font-size: 22px; line-height: 28px; }
  .legal-body p, .legal-body .lead, .legal-body .updated { font-size: 18px; line-height: 27px; max-width: none; }
  .case__title h2, .split-band__dark h2 { font-size: 30px; line-height: 32px; }
  .case__body h3 { font-size: 26px; line-height: 28px; }
  .section, .section--tight { padding: 48px 0; }
  .card, .case__title, .case__body, .split-band__dark, .split-band__tan, .quotebar { padding-left: 28px; padding-right: 28px; }
  .contactband > .container { padding-left: 1rem; padding-right: 1rem; }
  .case__title { padding-top: 44px; padding-bottom: 44px; }
  .feature__img { position: static; margin-bottom: 32px; }
  .testi__grid { gap: 16px; }
  /* fixed backgrounds are unreliable on mobile — fall back to scroll + fixed heights */
  .fullbleed.heroimg, .overlay { background-attachment: scroll; }
  .fullbleed.heroimg { min-height: 240px; }
  .overlay { min-height: 340px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .h-xl { font-size: 40px; }
  .legal-body h1 { font-size: 38px; }
  .hero-figure { margin-top: 36px; }
}
@media (max-width: 360px) {
  .topbar a { padding: 0 6px; }
  .topbar a:last-child { padding-right: 6px; }
}
