/* ============================================================
   KESSELSTATT · DEPPELER — sistema de diseño
   Corporativo clásico modernizado: gaceta legal + tipografía
   con autoridad. Reglas finas en vez de tarjetas; un solo
   acento (oxblood, heredero del rojo histórico de la marca).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Jost:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #1B2B44;
  --navy-deep: #12213A;
  --navy-mid: #1E3556;
  --paper: #F7F5EF;
  --paper-raised: #FFFFFF;
  --oxblood: #8C2A2E;
  --brass: #B08D4F;
  --brass-light: #D9C08F;
  --slate: #5C6B7A;
  --line: #D9D4C7;
  --line-dark: rgba(255,255,255,.18);

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--oxblood); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 56ch; }

.label {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--oxblood);
  margin: 0 0 6px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- header ---------- */

header.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-flag {
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  opacity: .5;
  transition: opacity .15s;
  flex-shrink: 0;
}
.lang-flag:hover { opacity: .8; }
.lang-flag.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--oxblood);
  pointer-events: none;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

.wordmark {
  display: block;
  line-height: 0;
}
.wordmark img {
  height: 46px;
  width: auto;
  display: block;
}
footer.site-foot .wordmark img { height: 50px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 500;
}
nav.main-nav a:hover { color: var(--oxblood); text-decoration: none; }
nav.main-nav li.current a { color: var(--oxblood); }

.menu-toggle { display: none; }

header.site-head.nav-open nav.main-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
header.site-head.nav-open nav.main-nav ul {
  flex-direction: column;
  gap: 0;
}
header.site-head.nav-open nav.main-nav li {
  border-top: 1px solid var(--line);
}
header.site-head.nav-open nav.main-nav li:first-child { border-top: none; }
header.site-head.nav-open nav.main-nav a {
  display: block;
  padding: 15px 32px;
}

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .menu-toggle {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    padding: 8px 14px;
    font-family: var(--sans);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
  }
}

/* ---------- hero (full-bleed photographic, Linklaters-style) ---------- */

section.hero {
  position: relative;
  background: var(--navy-deep);
}

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.08) contrast(1.05);
  display: block;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,20,32,.88) 0%, rgba(12,20,32,.6) 38%, rgba(12,20,32,.2) 68%, rgba(12,20,32,.06) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}
.hero-content .wrap { width: 100%; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-bottom: 20px; color: #fff; }
.hero-copy .lede { margin-bottom: 26px; color: #C7D1DE; }

.credentials-line {
  font-size: .88rem;
  color: #93A2B5;
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
  margin-top: 28px;
  max-width: 58ch;
}
.credentials-line strong { color: #fff; font-weight: 600; }

/* shorter hero used on interior pages (Firm, Areas, Startups, Contact) */
section.hero.short .hero-content { padding: 64px 0; }

@media (max-width: 700px) {
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(12,20,32,.62) 0%, rgba(12,20,32,.93) 68%, rgba(12,20,32,.97) 100%);
  }
  .hero-content { padding: 90px 0 40px; }
  section.hero.short .hero-content { padding: 70px 0 34px; }
}

/* practice-area strip under the hero, on the navy band */
.practice-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  margin-top: 0;
  background: var(--navy-deep);
}
.practice-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 900px) {
  .practice-strip ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .practice-strip ul { grid-template-columns: repeat(2, 1fr); }
}
.practice-strip li {
  border-right: 1px solid var(--line-dark);
  padding: 16px 14px;
}
.practice-strip li:last-child { border-right: none; }
.practice-strip a {
  color: #D7DEE8;
  font-size: .82rem;
  font-weight: 500;
  display: block;
}
.practice-strip a:hover { color: var(--brass-light); text-decoration: none; }
.practice-strip .n {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: .8rem;
  margin-bottom: 4px;
}

/* ---------- sections ---------- */

section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
section.block:last-of-type { border-bottom: none; }

.block-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .block-head { grid-template-columns: 1fr; gap: 16px; }
}
.block-head h2 { padding-top: 2px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.readmore {
  font-size: .92rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 14px;
}

/* practice area index list, reused on home */
.area-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.area-list li {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .area-list li { grid-template-columns: 1fr; gap: 6px; }
}
.area-list h3 { font-size: 1.05rem; }
.area-list p { margin: 0; color: var(--slate); font-size: .95rem; }

/* people */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
}
@media (max-width: 700px) { .people-grid { grid-template-columns: 1fr; } }

.person-card {
  border-top: 3px solid var(--oxblood);
  padding-top: 4px;
}
.person-card:nth-child(2) { border-top-color: var(--brass); }
.person-card h3 { margin-bottom: 4px; }
.person-role {
  color: var(--slate);
  font-size: .88rem;
  margin-bottom: 14px;
}
.person-card p { font-size: .95rem; }

/* ---------- interior page intro (bio, areas, etc.) ---------- */

section.page-intro {
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--line);
}
section.page-intro .label { margin-bottom: 10px; }
section.page-intro h1 { margin-bottom: 10px; }
section.page-intro .role-line {
  font-size: 1rem;
  color: var(--slate);
  max-width: 60ch;
}

/* credential / timeline list reused across bio + areas pages */
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cred-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .cred-list li { grid-template-columns: 1fr; gap: 4px; }
}
.cred-list .when {
  font-family: var(--serif);
  font-style: italic;
  color: var(--oxblood);
  font-size: .92rem;
}
.cred-list .what strong { color: var(--ink); }
.cred-list .what { font-size: .95rem; color: var(--slate); margin: 0; }

section.block h3.subhead {
  margin-bottom: 14px;
}

/* intro layout with a graphic (non-portrait pages) */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .intro-art { order: -1; max-width: 220px; margin: 0 auto; }
}
.intro-art { width: 100%; height: auto; }

/* duotone photography treatment (navy/oxblood over real stock) */
.duotone {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.03);
  display: block;
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,24,30,.42), rgba(70,76,84,.16));
  mix-blend-mode: multiply;
}

/* monogram avatar placeholder until real photos are supplied */
.monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* real portrait avatar (card teaser) */
.avatar-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.03);
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px var(--line);
}

/* portrait on bio pages */
.bio-intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 700px) {
  .bio-intro-grid { grid-template-columns: 1fr; }
}
.bio-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.03);
  border-top: 3px solid var(--oxblood);
}
.bio-portrait.brass { border-top-color: var(--brass); }

/* firm section with photo + copy */
.firm-feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .firm-feature { grid-template-columns: 1fr; } }
.firm-feature .duotone { aspect-ratio: 4/3; }

/* footer */
footer.site-foot {
  background: var(--navy-deep);
  color: #C9D2DD;
  padding: 56px 0 28px;
}
footer.site-foot a { color: #fff; }
footer.site-foot .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  footer.site-foot .wrap { grid-template-columns: 1fr; gap: 28px; }
}
footer.site-foot h4 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .1em;
  color: #8393A6;
  margin: 0 0 14px;
  font-weight: 500;
}
footer.site-foot ul { list-style: none; margin: 0; padding: 0; }
footer.site-foot li { margin-bottom: 8px; font-size: .92rem; }
.foot-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 44px;
  padding-top: 20px;
  font-size: .82rem;
  color: #7C8CA0;
}
.foot-bottom .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* buttons / forms shared by contact page later */
.btn {
  display: inline-block;
  background: var(--oxblood);
  color: #fff;
  padding: 12px 24px;
  font-size: .92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #74222A; text-decoration: none; color: #fff; }
