/* ==========================================================================
   STUDIO LEGALE SABRINA TRANQUILLI - Stylesheet
   ========================================================================== */

/* Tokens */
:root {
  --navy: #15203b;
  --navy-2: #1f2c4a;
  --navy-soft: #2a3760;
  --gold: #b08d57;
  --gold-light: #d4b87f;
  --ivory: #faf7f0;
  --cream: #f3ede0;
  --paper: #fffdf8;
  --charcoal: #1d1d1d;
  --text: #2b2b2b;
  --muted: #6f6f6f;
  --line: #e6dfd0;
  --shadow-sm: 0 2px 8px rgba(21, 32, 59, 0.06);
  --shadow-md: 0 12px 30px rgba(21, 32, 59, 0.10);
  --shadow-lg: 0 24px 60px rgba(21, 32, 59, 0.16);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

/* Typography */
h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: #424242; line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.bg-ivory { background: var(--ivory); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #e6e3da; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 860px){
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4rem 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--gold); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand { display: flex; align-items: center; gap: .9rem; }
.brand-logo {
  height: 54px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.site-footer .brand-logo {
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: .15rem;
}

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: .92rem;
  color: var(--charcoal);
  position: relative;
  padding: .25rem 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold); }

.nav-cta { padding: .6rem 1.1rem; font-size: .8rem; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--navy);
  transition: .25s var(--ease);
}
@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(15,22,42,.86) 0%, rgba(15,22,42,.60) 60%, rgba(15,22,42,.45) 100%),
                    var(--hero-img, url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?auto=format&fit=crop&w=2000&q=80'));
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-inner { padding: 7rem 0 6rem; max-width: 720px; }
.hero h1 { color: #fff; font-weight: 400; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero p.lead { color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; }
.hero .eyebrow { color: var(--gold-light); }

/* Page hero (for inner pages) */
.page-hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(21,32,59,.78), rgba(21,32,59,.92)),
                    var(--page-img, url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2000&q=80'));
  background-size: cover; background-position: center;
  z-index: 0;
  opacity: .9;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.05rem; }
.breadcrumbs {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.breadcrumbs a { color: rgba(255,255,255,.7); }
.breadcrumbs a:hover { color: var(--gold-light); }

/* Cards - aree */
.area-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  transition: all .3s var(--ease);
  position: relative;
  height: 100%;
}
.area-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.area-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.area-card h3 { margin-bottom: .75rem; }
.area-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.area-card .more {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: .5rem;
}
.area-card .more::after { content: '→'; transition: transform .25s var(--ease); }
.area-card:hover .more { color: var(--gold); }
.area-card:hover .more::after { transform: translateX(4px); }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding: .9rem 0 .9rem 2.2rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.25rem;
  width: 14px; height: 1px;
  background: var(--gold);
}

/* Pillar / value blocks */
.pillar h4 { color: var(--navy); display: flex; align-items: center; gap: .8rem; }
.pillar h4 .badge {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1rem;
}
.pillar p { color: var(--muted); font-size: .95rem; }

/* Image frames */
.framed {
  position: relative;
  display: block;
}
.framed img { display: block; width: 100%; }
.framed::after {
  content: '';
  position: absolute;
  right: -18px; bottom: -18px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* Quote / pull */
.pull-quote {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 2rem 0;
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.78); margin-bottom: 1.6rem; }
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,87,.18), transparent 70%);
}

/* Footer */
.site-footer {
  background: #0f1729;
  color: #b9beca;
  padding: 4.5rem 0 1.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer a { color: #b9beca; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: var(--gold-light); }

.legal-bar {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
  color: #7d8499;
}

/* Forms */
.form-card {
  background: var(--paper);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .45rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 1.2rem 0; }
.consent input { margin-top: .25rem; }

/* Contact info blocks */
.info-block { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.info-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.info-block h4 { margin: 0 0 .25rem; font-size: .95rem; color: var(--navy); }
.info-block p, .info-block a { font-size: .92rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--gold);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-top: .8rem; color: var(--muted); margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.divider {
  display: block;
  width: 50px; height: 2px; background: var(--gold);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Team / Bio */
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  transition: box-shadow .3s var(--ease);
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-card .team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--cream);
  background-size: cover;
  background-position: center top;
}
.team-card .team-body { padding: 2rem 2.2rem; }
.team-card h3 { margin-bottom: .2rem; }
.team-card .team-role {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.team-card p { font-size: .96rem; color: #3d3d3d; }
.team-card .badge-pill {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  margin: 0 .4rem .4rem 0;
}
@media (max-width: 720px){
  .team-card { grid-template-columns: 1fr; }
  .team-card .team-photo { aspect-ratio: 4/3; }
}

/* ATER highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
}
.highlight-box h3 { color: #fff; }
.highlight-box p { color: rgba(255,255,255,.85); }
.highlight-box .eyebrow { color: var(--gold-light); }
@media (max-width: 860px){
  .highlight-box { grid-template-columns: 1fr; padding: 2rem; }
}

/* Document / certificate frame */
.cert-frame {
  background: var(--paper);
  padding: 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin: 0 auto;
}
.cert-frame img { width: 100%; height: auto; display: block; }
.cert-caption {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .8rem;
  letter-spacing: .05em;
}

/* Skip to content */
.skip-link {
  position: absolute; left: -9999px;
  top: 0; padding: .5rem 1rem; background: var(--navy); color: #fff;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; }
