/* ============================================================
   Home page layout (loaded only by index.html, after styles.css)
   All images are <img> tags in index.html: change the src to your own file.
   ============================================================ */

.h-wrap { max-width: 1280px; margin: 0 auto; padding: 0 4rem; }
.h-eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.9rem; }
.h-link { font-size: 0.8rem; color: var(--ink); text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.h-link:hover { color: var(--green); }

/* Image boxes: green fallback shows if a file is missing */
.h-img { position: relative; overflow: hidden; background: #123524; }
.h-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- HERO ---------- */
.h-hero {
  position: relative; padding: 0; margin-top: 80px;
  min-height: 460px; background: #0f2a1d; color: #fff; overflow: hidden;
  display: flex; align-items: center;
}
.h-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; }
.h-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0f2a1d 0%, rgba(15,42,29,0.55) 35%, rgba(15,42,29,0) 70%);
}
.h-hero-inner { position: relative; z-index: 2; width: 100%; }
.h-hero-text { max-width: 520px; padding: 4rem 0; }
.h-hero .h-eyebrow { color: rgba(255,255,255,0.8); }
.h-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.1; margin-bottom: 1.4rem;
}
.h-hero p { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.88); margin-bottom: 2rem; }
.h-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.h-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.5rem; font-size: 0.85rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.45); color: #fff; border-radius: 3px; transition: all .2s;
}
.h-btn.solid { background: var(--green); border-color: var(--green); }
.h-btn.solid:hover { background: var(--green-light); border-color: var(--green-light); }
.h-btn:hover { border-color: #fff; }
.h-hero-caption {
  position: absolute; right: 4rem; bottom: 1.5rem; z-index: 2;
  font-size: 0.72rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 0.8rem;
}
.h-hero-caption::after { content: ''; width: 36px; height: 1px; background: rgba(255,255,255,0.7); }

/* ---------- PRACTICE AREAS ---------- */
.h-practice { padding: 3.5rem 0; background: var(--warm-white); }
.h-practice .h-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.h-practice h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.2; color: var(--green); margin-bottom: 1.2rem;
}
.h-practice p { font-size: 0.88rem; line-height: 1.7; color: var(--mid); margin-bottom: 1.4rem; max-width: 380px; }
.h-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.h-area {
  display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 3px;
  padding: 1.1rem 1.1rem; text-decoration: none; color: var(--charcoal);
  font-size: 0.82rem; line-height: 1.35; transition: border-color .2s, transform .2s;
}
.h-area:hover { border-color: var(--green); transform: translateY(-2px); }
.h-area svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--green); }
.h-area span { flex: 1; }
.h-area::after { content: '\2192'; color: var(--mid); }

/* ---------- WHY + STATS + ARTICLES ---------- */
.h-why { padding: 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.h-why-grid { display: grid; grid-template-columns: 1fr 1.1fr 2.2fr; align-items: stretch; }
.h-why-panel {
  background: #0f2a1d; color: #fff; padding: 3rem 2.5rem 3rem 4rem;
  position: relative; overflow: hidden; display: flex; align-items: center;
}
.h-why-panel .h-bg { position: absolute; inset: 0; opacity: 0.25; }
.h-why-panel .h-bg img { width: 100%; height: 100%; object-fit: cover; }
.h-why-panel .inner { position: relative; border-left: 1px solid rgba(255,255,255,0.35); padding-left: 1.4rem; }
.h-why-panel h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.6rem; margin-bottom: 0.9rem; }
.h-why-panel p { font-size: 0.8rem; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.h-why-panel a { color: #fff; font-size: 0.78rem; text-decoration: none; }
.h-stats { display: flex; align-items: center; justify-content: space-around; gap: 1rem; padding: 2rem 1.5rem; border-right: 1px solid rgba(0,0,0,0.08); }
.h-stat { text-align: left; }
.h-stat b { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2rem; color: var(--charcoal); }
.h-stat small { font-size: 0.72rem; color: var(--mid); line-height: 1.4; display: block; }
.h-articles { padding: 1.8rem 4rem 1.8rem 2rem; }
.h-articles-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 0.9rem; }
.h-articles-head h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.h-article-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.h-article { text-decoration: none; color: var(--ink); border: 1px solid rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .2s; }
.h-article:hover { border-color: var(--green); }
.h-article .h-img { height: 90px; }
.h-article-body { padding: 0.8rem 0.9rem 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.h-article-body h4 { font-size: 0.76rem; font-weight: 500; line-height: 1.4; }
.h-article-body small { margin-top: auto; font-size: 0.65rem; color: var(--mid); }

/* ---------- TESTIMONIAL + OFFICES ---------- */
.h-bottom { padding: 0; background: var(--cream); }
.h-bottom-grid { display: grid; grid-template-columns: 1fr 1.6fr; }
.h-testi { padding: 2.5rem 2rem 2.5rem 4rem; border-right: 1px solid rgba(0,0,0,0.08); position: relative; }
.h-testi-slide { display: none; }
.h-testi-slide.active { display: block; }
.h-testi blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.2rem; }
.h-testi blockquote::before { content: '\201C'; color: var(--green); font-size: 1.8rem; line-height: 0; vertical-align: -0.35em; margin-right: 0.2rem; }
.h-testi cite { font-style: normal; font-size: 0.78rem; color: var(--mid); display: block; }
.h-testi cite strong { color: var(--charcoal); font-weight: 500; }
.h-testi-nav { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.4rem; }
.h-testi-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.2);
  background: #fff; cursor: pointer; font-size: 0.9rem; color: var(--charcoal);
}
.h-testi-nav button:hover { border-color: var(--green); color: var(--green); }
.h-offices { padding: 2.5rem 4rem 2.5rem 2rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: center; }
.h-offices-text h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.4rem; margin-bottom: 0.6rem; }
.h-offices-text p { font-size: 0.78rem; line-height: 1.6; color: var(--mid); margin-bottom: 1rem; }
.h-office { display: block; height: 130px; border-radius: 3px; text-decoration: none; }
.h-office::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 60%); }
.h-office span { position: absolute; left: 0.9rem; bottom: 0.7rem; z-index: 2; color: #fff; font-size: 0.85rem; }

/* ---------- CTA BAND ---------- */
.h-cta { padding: 2rem 0; background: #0f2a1d; color: #fff; }
.h-cta .h-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.h-cta h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.4rem; }
.h-cta p { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }
.h-cta a { background: #fff; color: var(--ink); padding: 0.85rem 1.6rem; font-size: 0.82rem; text-decoration: none; border-radius: 3px; }
.h-cta a:hover { background: var(--green-pale); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .h-why-grid { grid-template-columns: 1fr 1fr; }
  .h-articles { grid-column: 1 / -1; padding: 2rem 1.5rem; }
  .h-why-panel { padding-left: 1.5rem; }
  .h-stats { border-right: 0; }
  .h-practice .h-wrap { grid-template-columns: 1fr; }
  .h-bottom-grid { grid-template-columns: 1fr; }
  .h-testi { padding: 2rem 1.5rem; border-right: 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .h-offices { padding: 2rem 1.5rem; }
}
@media (max-width: 760px) {
  .h-wrap { padding: 0 1.5rem; }
  .h-hero { min-height: 520px; align-items: flex-end; }
  .h-hero-img { width: 100%; }
  .h-hero-img::after { background: linear-gradient(0deg, #0f2a1d 15%, rgba(15,42,29,0.45) 100%); }
  .h-hero-text { padding: 2.5rem 0; }
  .h-hero-caption { display: none; }
  .h-areas { grid-template-columns: 1fr; }
  .h-why-grid { grid-template-columns: 1fr; }
  .h-stats { flex-wrap: wrap; }
  .h-article-row { grid-template-columns: 1fr; }
  .h-article .h-img { height: 140px; }
  .h-offices { grid-template-columns: 1fr; }
  .h-office { height: 160px; }
  .h-cta .h-wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- INNER PAGE BANNERS (about, services, team, insights, contact) ---------- */
.page-hero.ph-img { min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.page-hero.ph-img::after { display: none; }
.page-hero .ph-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.page-hero .ph-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(13,26,18,0.6) 35%, rgba(13,26,18,0) 75%);
}
.page-hero.ph-img > *:not(.ph-photo) { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .page-hero .ph-photo { width: 100%; }
  .page-hero .ph-photo::after { background: linear-gradient(0deg, var(--ink) 20%, rgba(13,26,18,0.55) 100%); }
}

/* ---------- SERVICES PAGE: icon + title + expandable details (self-contained) ---------- */
.services-grid { align-items: start; }
.service-card { padding: 0; }
.service-card summary {
  list-style: none; cursor: pointer; display: block; padding: 0;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary::marker { content: ''; }
.service-head {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.8rem 1.8rem 1.2rem;
}
.service-icon {
  flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale); color: var(--green);
  border-radius: 50%;
  transition: background .25s, color .25s;
}
.service-icon svg { width: 26px; height: 26px; flex-shrink: 0; }
.service-card:hover .service-icon, .service-card[open] .service-icon { background: var(--green); color: #fff; }
.service-card summary h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.service-more {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 1.8rem; padding: 0.8rem 0 1.3rem;
  border-top: 1px solid rgba(26,122,60,0.15);
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green);
}
.service-more::after { content: '+'; font-size: 1.2rem; line-height: 1; }
.service-card[open] .service-more::after { content: '\2212'; }
.service-detail { padding: 0 1.8rem 1.8rem; }
.service-detail p { font-size: 0.88rem; line-height: 1.7; color: var(--mid); }
.service-detail p + p { margin-top: 0.8rem; }
.service-detail .service-lead { color: var(--charcoal); font-weight: 500; }
.service-card summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- HOME: original stats band + hero tweaks ---------- */
.h-hero h1 em { font-style: italic; color: var(--green-light); }
.h-statband { padding: 2.5rem 0; background: #0a1f15; }
.h-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.h-statband .stat-num { font-size: 2.6rem; line-height: 1.1; }
.h-statband .hero-quote { margin-top: 2rem; }
@media (max-width: 760px) { .h-statgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- ABOUT: Why + offices ---------- */
.h-why-grid.no-articles { grid-template-columns: 1.6fr 1fr; }
.h-why-grid.no-articles .h-stats { border-right: 0; }
.h-offices-only .h-offices { max-width: 1280px; margin: 0 auto; padding: 2.5rem 4rem; }
@media (max-width: 1100px) {
  .h-why-grid.no-articles { grid-template-columns: 1fr 1fr; }
  .h-offices-only .h-offices { padding: 2rem 1.5rem; }
}
@media (max-width: 760px) {
  .h-why-grid.no-articles { grid-template-columns: 1fr; }
}

/* ---------- INSIGHTS: article thumbnails ---------- */
.article-thumb { height: 170px; margin: -2rem -2rem 1.3rem; }

/* ---------- SERVICES: show full cards on phones ---------- */
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { overflow: visible; }
  .service-head { padding: 1.4rem 1.2rem 1rem; gap: 0.9rem; }
  .service-more { margin: 0 1.2rem; }
  .service-detail { padding: 0 1.2rem 1.4rem; }
  .service-card summary h3 { min-width: 0; overflow-wrap: anywhere; }
}

/* ---------- INSIGHTS: fit phones ---------- */
.article-card { min-width: 0; }
.article-card h3 { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .article-card { padding: 1.4rem 1.2rem; }
  .article-card h3 { font-size: 1.15rem; line-height: 1.3; }
  .article-thumb { height: 180px; margin: -1.4rem -1.2rem 1.1rem; }
}