/* =========================================================
   resolvebertet.com — content-preview mockup styles
   Conservative editorial design; final site keeps existing
   visual identity per developer brief.
   ========================================================= */
:root {
  --paper: #F8F4ED;
  --paper-warm: #FAF7F0;
  --ink: #0A0A0A;
  --ink-soft: #1F1F1F;
  --accent: #C8102E;
  --accent-soft: #A50D27;
  --graphite: #3A3F47;
  --rule: #D8CFBC;
  --band: #ECE5D5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'tnum', 'kern';
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: 'Tiempos Headline', 'Newsreader', 'Charter', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } body { font-size: 16px; } }

/* ---------- Top bar (floating pill) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 20px;
  background: transparent;
  border-bottom: none;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 0;
  padding: 14px 32px;
  max-width: 1320px;
  background: rgba(248, 244, 237, 0.95);
  border-radius: 60px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid rgba(216,207,188,0.5);
}
.mark {
  font-family: 'Tiempos Headline', 'Newsreader', 'Charter', 'Georgia', serif;
  font-size: 26px; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.mark .accent { color: var(--accent); font-style: italic; }
.nav {
  display: flex; gap: 24px; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav a { color: var(--graphite); text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 880px) { .nav { display: none; } }

/* ---------- Eyebrow / labels ---------- */
.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.section.dark { background: var(--ink); color: var(--paper); border-bottom: none; }
.section.dark .eyebrow, .section.dark .section-label { color: #C99A6A; }
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark p { color: rgba(248, 244, 237, 0.78); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 24ch;
  margin-bottom: 40px;
}
.section-title em { color: var(--accent); font-style: italic; }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--paper);
  border: none; text-decoration: none;
  padding: 18px 36px; font-family: inherit; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.28);
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: rgba(248, 244, 237, 0.6);
  padding: 56px 0 36px; font-size: 13px;
}
footer .foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(248, 244, 237, 0.1);
}
@media (max-width: 720px) { footer .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
footer .foot-mark {
  font-family: 'Tiempos Headline', 'Newsreader', serif; font-size: 18px;
  color: var(--paper); margin-bottom: 12px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(248, 244, 237, 0.6); text-decoration: none; transition: color 0.15s ease; }
footer a:hover { color: var(--paper); }
footer h4 {
  font-family: inherit; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--paper); margin-bottom: 14px; font-weight: 500;
}
.foot-bottom {
  padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: 12px;
}


/* ---------- Accessibility: skip-to-content & focus indicators ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 12px 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

/* Visible focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Practice area card grid (home page) ---------- */
.practice-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 56px;
  border: 1px solid var(--rule);
}
@media (max-width: 1100px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .practice-grid { grid-template-columns: 1fr; } }
.practice-card {
  padding: 44px 32px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.practice-card:hover { background: var(--paper-warm); }
.practice-card:last-child { border-right: none; }
@media (max-width: 1100px) {
  .practice-card:nth-child(2n) { border-right: none; }
  .practice-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .practice-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .practice-card:last-child { border-bottom: none; }
}
.practice-card .tag {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}
.practice-card h3 {
  font-family: 'Tiempos Headline', 'Newsreader', 'Charter', 'Georgia', serif;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.15;
  color: var(--ink); margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.practice-card h3 em { color: var(--accent); font-style: italic; }
.practice-card p {
  font-size: 15px; line-height: 1.55;
  color: var(--graphite); margin-bottom: 24px;
  flex-grow: 1;
}
.practice-card .creds {
  font-size: 12px; color: var(--graphite);
  font-style: italic; margin-bottom: 24px;
  padding-top: 16px; border-top: 1px solid var(--rule);
  min-height: 56px;
}
.practice-card .arrow {
  margin-top: auto;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none; font-weight: 600;
}
.practice-card .arrow:hover { color: var(--accent-soft); }


/* ---------- Nav dropdown + mobile menu + CV button (build additions) ---------- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dd-toggle {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--graphite); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 14px; padding: 2px 0; border-bottom: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown:hover > .nav-dd-toggle,
.nav-dropdown:focus-within > .nav-dd-toggle,
.nav-dd-toggle.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-dd-toggle .caret { font-size: 9px; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: rgba(248,244,237,0.97); border: 1px solid var(--rule);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  border-radius: 14px;
  display: none; flex-direction: column; padding: 8px 0; z-index: 30;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 10px 22px; border-bottom: none; white-space: nowrap; font-size: 13px; }
.nav-dd-menu a:hover { background: var(--paper-warm); color: var(--ink); border-bottom: none; }
.nav-cta {
  display: inline-block; background: var(--ink); color: var(--paper) !important;
  text-decoration: none; padding: 10px 22px; border-radius: 50px;
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 600; border-bottom: none !important;
  white-space: nowrap; margin-left: 12px; flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
  will-change: transform;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }
.nav-toggle, .nav-toggle-cb { display: none; }
@media (max-width: 880px) {
  .topbar { padding: 10px 12px; }
  .topbar-inner { border-radius: 20px; flex-wrap: wrap; padding: 12px 18px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; transition: 0.2s; }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; flex-direction: column; width: 100%; gap: 0; margin-top: 12px; border-top: 1px solid var(--rule); }
  .nav-toggle-cb:checked ~ .nav { display: flex; }
  .nav > a, .nav-dropdown { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav > a { padding: 14px 0; }
  .nav-dropdown { flex-direction: column; align-items: flex-start; }
  .nav-dd-toggle { padding: 14px 0; width: 100%; }
  .nav-dd-menu { position: static; display: flex; border: none; box-shadow: none; backdrop-filter: none; padding: 0 0 8px 16px; min-width: 0; border-radius: 0; }
}
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn-cv {
  display: inline-block; background: transparent; color: var(--paper);
  border: 1px solid rgba(248,244,237,0.5); text-decoration: none;
  padding: 18px 32px; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  will-change: transform;
}
.btn-cv:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  transform: translateY(-2px);
}
.btn-cv:active { transform: translateY(0); }

/* ---------- Credentials marquee ---------- */
.creds-band {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.creds-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 36px; text-align: center;
}
.creds-marquee { overflow: hidden; }
.creds-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: creds-scroll 32s linear infinite;
}
.creds-track:hover { animation-play-state: paused; }
.creds-track img {
  height: 52px;
  width: 160px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.80;
  transition: opacity 0.2s;
}
.creds-track img:hover { opacity: 1; }
@keyframes creds-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .creds-track img { height: 40px; width: 124px; }
  .creds-track { gap: 40px; }
}
