/* Vellum Law Practice: brand tokens from the firm letterhead */
/* Fonts are bundled locally in assets/fonts (free Google Fonts, SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #14284B;
  --navy-deep: #0E1D38;
  --gold: #B8923A;
  --gold-deep: #8A6A24;
  --gold-soft: #E9DDBF;
  --vellum: #FAF7F0;
  --vellum-dark: #F1EBDD;
  --ink: #1A1A1A;
  --grey: #555555;
  --line: #DDD3BD;

  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
  --font-mark: "Cinzel", "Trajan Pro", serif;

  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --fold: clamp(56px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.22rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.75rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; }
.brand-sub { font-family: var(--font-mark); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.32em; color: var(--gold-deep); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 1.05rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav .btn { border-bottom: 0; color: #fff; padding: 10px 20px; }
.nav .btn:hover, .nav a.btn[aria-current="page"] { color: #fff; border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy); color: var(--navy); font: inherit; padding: 6px 14px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-body); font-size: 1.05rem; text-decoration: none; padding: 12px 26px; border: 1px solid var(--navy); background: var(--navy); color: #fff; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #CBA44C; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* The folded sheet: the signature element, taken from the logo */
.sheet { position: relative; background: var(--navy); color: #E7E2D6; clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%); }
.sheet::after { content: ""; position: absolute; top: 0; right: 0; width: var(--fold); height: var(--fold); background: linear-gradient(225deg, transparent 50%, var(--gold) 50%); box-shadow: -4px 4px 10px rgba(0,0,0,0.25); transform-origin: top right; animation: fold 1.1s cubic-bezier(.6,.05,.25,1) 0.25s both; }
@keyframes fold { from { transform: scale(0); } to { transform: scale(1); } }
.sheet h1, .sheet h2, .sheet h3 { color: #fff; }
.sheet a:not(.btn) { color: var(--gold-soft); }

.hero { padding: clamp(28px, 4vw, 48px) 0 0; }
.hero .sheet { padding: clamp(56px, 9vw, 120px) clamp(24px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero h1 { max-width: 13ch; margin-bottom: 0.4em; }
.hero-lead { font-size: clamp(1.15rem, 1.2vw, 1.35rem); color: #D9D3C4; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-aside { border-left: 1px solid rgba(184,146,58,0.55); padding-left: 28px; }
.hero-aside dl { margin: 0; }
.hero-aside dt { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-soft); font-weight: 600; }
.hero-aside dd { margin: 0 0 18px; color: #C9C3B5; font-size: 1rem; }
.hero-aside dd:last-child { margin-bottom: 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--vellum-dark); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lede { font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.5; color: var(--navy); font-family: var(--font-display); font-weight: 500; }
.rule-gold { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 28px; }

/* Cyber law feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(184,146,58,0.45); }
.feature-list li { padding: 14px 0; border-bottom: 1px solid rgba(184,146,58,0.25); color: #E7E2D6; }
.sheet-inner { padding: clamp(40px, 6vw, 80px); padding-right: calc(var(--fold) + 24px); }

/* Contents-page practice index */
.contents { list-style: none; margin: 40px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.contents li { border-top: 1px solid var(--line); }
.contents a { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.contents a:hover .c-name { color: var(--gold-deep); }
.c-name { font-family: var(--font-display); font-size: clamp(1.35rem, 1.8vw, 1.65rem); font-weight: 600; color: var(--navy); white-space: nowrap; transition: color 0.2s; }
.c-leader { flex: 1; border-bottom: 1px dotted var(--gold); transform: translateY(-5px); min-width: 24px; }
.c-ref { font-size: 1.02rem; color: var(--grey); white-space: nowrap; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.partner { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 2px solid var(--navy); }
.monogram { width: 112px; aspect-ratio: 4 / 5; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.partner h3 { margin-bottom: 4px; }
.partner .role { color: var(--gold-deep); margin-bottom: 10px; }
img.monogram { height: auto; object-fit: cover; object-position: center top; }
.partners-full { grid-template-columns: 1fr; }
.partners-full .partner { grid-template-columns: 200px minmax(0, 68ch); gap: clamp(24px, 4vw, 48px); padding: 40px 0; scroll-margin-top: 96px; }
.partners-full .partner p { max-width: 68ch; }
.partners-full .monogram { width: 200px; font-size: 3.6rem; }

/* Process (a real sequence, so it is numbered) */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 10px; }

/* CTA band */
.cta .sheet { padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { margin: 0; max-width: 18ch; }

/* Page header for inner pages */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }
.page-head p { font-size: 1.25rem; color: var(--grey); }

/* Practice detail */
.practice { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.practice:target h2 { color: var(--gold-deep); }
.practice h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.practice ul { margin: 0; padding-left: 1.1em; }
.practice li { margin-bottom: 6px; }
.practice li::marker { color: var(--gold); }
.practice-featured { background: var(--navy); color: #E7E2D6; padding: 56px clamp(24px, 4vw, 56px); border-bottom: 0; clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); margin-top: 48px; }
.practice-featured h2 { color: #fff; }
.practice-featured .tag { color: var(--gold); }

/* About */
.statement { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 32px; }
.statement div { border-top: 2px solid var(--gold); padding-top: 20px; }
.statement p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--navy); line-height: 1.25; font-weight: 500; }
.statement h3 { font-family: var(--font-body); font-size: 1.05rem; color: var(--gold-deep); font-weight: 500; letter-spacing: 0; }
.values { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.values li { padding: 20px 0; border-top: 1px solid var(--line); }
.values strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list span { display: block; color: var(--gold-deep); font-size: 0.98rem; }
.contact-list a, .contact-list address { font-style: normal; font-size: 1.2rem; color: var(--navy); }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 1rem; color: var(--navy); }
input, select, textarea { font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid #C9BEA6; background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--grey); }
.form-status { min-height: 1.5em; color: var(--navy); }
.form-status[data-state="error"] { color: #8A2C24; }
.form-status[data-state="success"] { color: var(--navy); }
form button:disabled { opacity: 0.65; cursor: wait; }
.map { margin-top: 32px; border: 1px solid var(--line); width: 100%; height: 320px; }

/* Insights */
.insight-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.insight-card { border-top: 2px solid var(--gold); padding: 22px 0 0; }
.insight-card time, .article-meta { display: block; color: var(--gold-deep); font-size: 0.98rem; margin-bottom: 10px; }
.insight-card h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
.insight-card h2 a { text-decoration: none; }
.insight-card p { color: var(--grey); }
.article-copy { max-width: 72ch; }
.article-copy h2 { margin-top: 1.5em; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.article-copy ul { padding-left: 1.2em; }
.article-copy li::marker { color: var(--gold); }

/* Floating contact shortcut */
.whatsapp-button { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--gold); background: var(--navy); color: #fff; font-size: 1rem; line-height: 1.2; text-decoration: none; box-shadow: 0 3px 14px rgba(14,29,56,0.24); }
.whatsapp-button:hover { color: var(--navy-deep); background: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9C3B5; padding: 64px 0 28px; margin-top: clamp(64px, 9vw, 120px); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold); }
.site-footer h3 { font-family: var(--font-body); font-size: 1.05rem; color: var(--gold); font-weight: 500; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E7E2D6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(184,146,58,0.3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: #9C978A; }
.footer-base p { margin: 0; max-width: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .feature, .contact-grid, .practice, .footer-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid rgba(184,146,58,0.55); padding: 24px 0 0; }
  .partners, .statement { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--vellum); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; }
  .nav.open { display: flex; }
  .nav .btn { margin-top: 10px; }
  .values, .field-row { grid-template-columns: 1fr; }
  .insight-list { grid-template-columns: 1fr; gap: 28px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer ul a { display: inline-block; padding: 9px 0; min-height: 44px; }
  .contact-list a { display: inline-block; padding: 6px 0; min-height: 44px; }
}
@media (max-width: 520px) {
  .c-name { font-size: 1.25rem; white-space: normal; }
  .c-leader, .c-ref { display: none; }
  .partner { grid-template-columns: 80px 1fr; gap: 16px; }
  .monogram { width: 80px; font-size: 1.8rem; }
}
@media (max-width: 640px) {
  .partners-full .partner { grid-template-columns: 1fr; gap: 20px; }
  .partners-full .monogram { width: 160px; font-size: 2.8rem; }
}
