/* Rosmedian Law — design tokens */
:root {
  --navy: #0E1A2B;
  --navy-2: #18263A;
  --navy-line: #232D3B;
  --gold: #C5A880;
  --gold-dark: #9C7F55;
  --ivory: #FAF9F6;
  --white: #FFFFFF;
  --hairline: #E4E7EC;
  --ink: #181C22;
  --muted: #5B6472;
  --muted-dark: #A3ACBA;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 100vw;
  --gutter: clamp(20px, 8vw, 220px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--gold); }

.h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; margin-top: 14px; }
.lead { font-size: 17px; color: var(--muted); max-width: 46ch; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* Links & buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font: 600 14px/1 var(--sans); letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D6BD98; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1.4 var(--sans); color: var(--navy);
  padding-bottom: 4px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { background-size: 100% 1px; }

.arrow { width: 18px; height: 18px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid var(--navy-line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 56px; width: auto; }
section[id] { scroll-margin-top: 80px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78);
  padding: 8px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang { display: flex; gap: 4px; }
.lang button {
  background: none; border: 0; cursor: pointer; padding: 8px 6px;
  font: 600 12px/1 var(--sans); letter-spacing: .1em; color: rgba(255,255,255,.55);
  border-bottom: 1px solid transparent; transition: color .2s;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.header .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--navy-line); cursor: pointer; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: min(760px, calc(100vh - 80px)); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 7vw, 96px) clamp(32px, 5vw, 72px) clamp(48px, 6vw, 80px) 0;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero h1 {
  font-size: clamp(40px, 4.4vw, 96px); line-height: 1.06; letter-spacing: -.02em;
  margin: 24px 0 28px;
}
.hero h1 em { color: var(--gold); font-style: italic; white-space: nowrap; }
.hero-sub { font-size: clamp(17px, 1vw, 22px); line-height: 1.6; color: var(--muted-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--navy-line);
}
.stat { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--navy-line); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat b { display: block; font: 400 28px/1.1 var(--serif); color: var(--gold); white-space: nowrap; }
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted-dark); }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,26,43,.55) 0%, rgba(14,26,43,0) 30%);
}

/* Values strip */
.values { background: var(--white); border-bottom: 1px solid var(--hairline); }
.values ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.values li {
  padding: 28px 12px; text-align: center;
  font: 400 20px/1.3 var(--serif); color: var(--navy);
  border-right: 1px solid var(--hairline);
}
.values li:last-child { border-right: 0; }
.values li::before { content: "·"; color: var(--gold); margin-right: 10px; }

/* Practice areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px 32px; background: var(--white); border: 1px solid var(--hairline);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.area::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.area:hover { box-shadow: 0 12px 32px rgba(14,26,43,.06); }
.area:hover::before { transform: scaleX(1); }
.area-num { font: 400 26px/1 var(--serif); color: var(--gold-dark); }
.area h3 { font-size: 26px; line-height: 1.2; margin: 24px 0 12px; color: var(--navy); }
.area p { font-size: 15px; color: var(--muted); flex: 1; }
.area .arrow { margin-top: 28px; align-self: flex-end; color: var(--navy); transition: transform .3s var(--ease), color .3s; }
.area:hover .arrow { transform: translateX(4px); color: var(--gold-dark); }

/* About */
.about { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-media { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about-copy p { color: var(--muted); margin-top: 20px; max-width: 54ch; }
.about-copy p.first { margin-top: 24px; font-size: 18px; color: var(--ink); }
.features {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.feature {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--hairline);
  font: 400 19px/1.3 var(--serif); color: var(--navy);
}
.feature:nth-child(odd) { border-right: 1px solid var(--hairline); }
.feature:nth-child(even) { padding-left: 24px; }
.feature svg { width: 24px; height: 24px; flex: none; color: var(--gold-dark); margin-top: 1px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { background: var(--white); border: 1px solid var(--hairline); transition: box-shadow .3s var(--ease); }
.member:hover { box-shadow: 0 12px 32px rgba(14,26,43,.06); }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #E9EBEF; }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
  filter: grayscale(.25) contrast(1.02); transition: transform .6s var(--ease), filter .4s;
}
.member:hover .member-photo img { transform: scale(1.03); filter: none; }
.member-body { padding: 22px 24px 26px; }
.member h3 { font-size: 22px; line-height: 1.25; color: var(--navy); }
.member p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.member-body::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-top: 18px; }

/* News */
.news { padding-top: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hairline); transition: box-shadow .3s var(--ease); }
.post:hover { box-shadow: 0 12px 32px rgba(14,26,43,.06); }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-img img { transform: scale(1.03); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.tag { font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.post h3 { font-size: 22px; line-height: 1.28; margin: 12px 0 16px; color: var(--navy); flex: 1; }
.post .arrow { align-self: flex-end; color: var(--navy); transition: transform .3s var(--ease); }
.post:hover .arrow { transform: translateX(4px); }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { color: #fff; }
.contact .lead { color: var(--muted-dark); margin-top: 20px; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--navy-line); }
.contact-list li { border-bottom: 1px solid var(--navy-line); }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; font-size: 16px; color: #fff;
}
.contact-list a:hover { color: var(--gold); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.contact-list small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }

.form { background: var(--white); color: var(--ink); padding: clamp(28px, 4vw, 44px); }
.form h3 { font-size: 26px; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--hairline); background: var(--ivory); border-radius: 0;
  padding: 14px 16px; font-size: 16px; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 24px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form .btn { width: 100%; }
.form-note { margin-top: 16px; font-size: 14px; color: #207267; min-height: 1.4em; }

/* Footer */
.footer { background: var(--navy); color: var(--muted-dark); border-top: 1px solid var(--navy-line); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 0; flex-wrap: wrap; }
.footer .logo img { height: 52px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* Responsive */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header .btn { display: none; }
}
@media (max-width: 1024px) {
  .nav, .header .lang { display: none; }
  .burger { display: block; }
  .menu-open .mobile-menu { display: flex; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 64px var(--gutter) 56px; }
  .hero-media { order: -1; aspect-ratio: 16 / 9; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14,26,43,.6) 0%, rgba(14,26,43,0) 40%); }
  .areas-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values ul { grid-template-columns: repeat(3, 1fr); }
  .values li:nth-child(3) { border-right: 0; }
  .values li:nth-child(n+4) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .logo img { height: 46px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .stat { border-right: 0; margin: 0; padding: 0; }
  .areas-grid, .news-grid, .features, .form-row { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: 0; }
  .feature:nth-child(even) { padding-left: 0; }
  .values ul { grid-template-columns: 1fr 1fr; }
  .values li { border-right: 0; border-top: 1px solid var(--hairline); font-size: 18px; padding: 18px 8px; }
  .values li:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .values li:nth-child(-n+2) { border-top: 0; }
  .values li:last-child { grid-column: 1 / -1; border-right: 0; }
  .team-grid { gap: 16px; }
  .member-body { padding: 16px 16px 20px; }
  .member h3 { font-size: 19px; }
  .member p { font-size: 13px; }
}

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  position: fixed; inset: 80px 0 0; background: var(--navy); padding: 24px var(--gutter) 40px;
  overflow-y: auto; z-index: 49;
}
@media (max-width: 680px) { .mobile-menu { inset: 68px 0 0; } }
.mobile-menu a:not(.btn) {
  font: 400 26px/1.2 var(--serif); color: #fff; padding: 14px 0; border-bottom: 1px solid var(--navy-line);
}
.mobile-menu .lang { margin: 24px 0; }
.mobile-menu .lang button { font-size: 14px; padding: 10px 12px 10px 0; }
.menu-open { overflow: hidden; }

/* Short static edition: contact details replace the request form. */
.contact-actions { display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:clamp(28px,4vw,48px); border:1px solid rgba(197,168,128,.38); }
.contact-actions h3 { font-size:clamp(28px,3vw,38px); line-height:1.2; color:var(--white); }
.contact-actions p { color:#c8ced7; max-width:36ch; }
.contact-actions .btn { width:100%; }
.area, .member { cursor:default; }
.legal-header { background:var(--navy); color:var(--white); padding:24px var(--gutter); display:flex; justify-content:space-between; align-items:center; gap:24px; }
.legal-header img { width:86px; height:auto; }
.legal-header a:last-child { color:var(--gold); font-size:14px; }
.legal-document { max-width:920px; margin:0 auto; padding:clamp(40px,7vw,88px) 24px; overflow-wrap:anywhere; }
.legal-document h1 { font-size:clamp(32px,5vw,52px); line-height:1.12; margin-bottom:40px; color:var(--navy); }
.legal-copy { font-size:16px; line-height:1.8; }
.legal-copy p, .legal-copy ul, .legal-copy ol { margin:0 0 20px; }
.legal-copy strong, .legal-copy b { color:var(--navy); }
.legal-copy a { color:#765c35; text-decoration:underline; text-underline-offset:3px; }
.legal-footer { border-top:1px solid var(--hairline); padding:24px; text-align:center; display:flex; flex-wrap:wrap; justify-content:center; gap:24px; font-size:13px; }
@media(max-width:680px) { .hero-copy { padding-top:40px; } .contact-actions { padding:28px 24px; } .footer-bottom { align-items:flex-start; gap:20px; } .footer-legal { flex-direction:column; align-items:flex-start; gap:10px; } }
