/* ════════════════════════════════════════
   style.css — shared styles
   Studio Legale Avv. Sara Gugole
   ════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #FFFFFF;
  --cream:    #FAFBFD;
  --sky:      #4EADD4;
  --sky-pale: #EDF6FC;
  --sky-mid:  #9DCCE6;
  --sky-dark: #1B6E96;
  --ink:      #0F1B25;
  --ink-60:   #586A78;
  --ink-30:   #BDC9D1;
  --ink-10:   #ECF0F3;
  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-sans:   'Raleway', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--sky-mid); }

/* ── NAV ── */
nav#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 76px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-10);
  transition: box-shadow .3s;
}

nav#nav.scrolled {
  box-shadow: 0 2px 24px rgba(15,27,37,.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-icon { display: block; flex-shrink: 0; }

.nav-name {
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--sky-dark); }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--sky) !important;
  color: var(--sky) !important;
  transition: background .25s, color .25s !important;
}

.nav-cta:hover {
  background: var(--sky) !important;
  color: var(--white) !important;
}

/* ── LAYOUT ── */
section { padding: 112px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 88px;
}

/* ── SHARED COMPONENTS ── */
.lbl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lbl-dash {
  width: 28px; height: 1px;
  background: var(--sky);
  flex-shrink: 0;
}

.lbl span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sky);
}

.display {
  font-family: var(--f-serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

.display em { font-style: italic; color: var(--sky-dark); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.kicker-bar {
  width: 48px; height: 1px;
  background: var(--sky);
  flex-shrink: 0;
}

.kicker span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sky);
}

.btn-filled {
  padding: 13px 32px;
  background: var(--sky);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background .25s, transform .2s;
}

.btn-filled:hover { background: var(--sky-dark); transform: translateY(-2px); }

.btn-outline {
  padding: 13px 32px;
  background: transparent;
  color: var(--sky);
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--sky);
  transition: background .25s, color .25s;
}

.btn-outline:hover { background: var(--sky); color: var(--white); }

.btn-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-60);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .04em;
  transition: color .2s;
}

.btn-text::after { content: '→'; transition: transform .2s; }
.btn-text:hover { color: var(--sky); }
.btn-text:hover::after { transform: translateX(5px); }

.tag {
  padding: 3px 10px;
  border: 1px solid var(--ink-30);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-60);
  transition: border-color .2s, color .2s;
}

/* ── REVEAL ── */
.r {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1),
              transform .85s cubic-bezier(.16,1,.3,1);
}

.r.in { opacity: 1; transform: none; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .22s; }
.r.d3 { transition-delay: .34s; }
.r.d4 { transition-delay: .46s; }

/* ── PAGE HERO (area pages) ── */
.page-hero {
  padding: 148px 0 88px;
  background: var(--sky-pale);
  position: relative;
  overflow: hidden;
}

.page-hero-deco {
  position: absolute;
  bottom: -40px; right: 40px;
  font-family: var(--f-serif);
  font-size: 300px;
  font-weight: 300;
  font-style: italic;
  color: var(--sky);
  opacity: .19;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.breadcrumb-secondary {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--sky);
  text-decoration: none;
  transition: color .2s;
  top:100px;
}

.breadcrumb-secondary a {
  color: var(--sky);
  text-decoration: none;
  transition: color .2s;
  top:100px;
}

.breadcrumb a:hover { color: var(--sky-dark); }
.breadcrumb-secondary a:hover { color: var(--sky-dark); }

.bc-sep { color: var(--ink-30); font-size: 9px; }

.bc-cur { color: var(--ink-60); }

.page-hero-title {
  font-family: var(--f-serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  line-height: .95;
  color: var(--ink);
  margin-bottom: 24px;
}

.page-hero-title em {
  font-style: italic;
  color: var(--sky-dark);
}

.page-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-60);
  max-width: 560px;
}

/* ── SERVICES ── */
.services { background: var(--white); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-10);
  margin-top: 64px;
  border: 1px solid var(--ink-10);
}

.svc-item {
  padding: 44px 36px;
  background: var(--white);
  transition: background .3s;
}

.svc-item:hover { background: var(--sky-pale); }

.svc-n {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.svc-title {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}

.svc-body {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--ink-60);
}

/* ── FAQ ── */
.faq { background: var(--cream); }

.faq-list {
  margin-top: 64px;
  border-top: 1px solid var(--ink-10);
}

.faq-item { border-bottom: 1px solid var(--ink-10); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  transition: color .2s;
}

.faq-item summary:hover { color: var(--sky-dark); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  width: 26px; height: 26px;
  border: 1px solid var(--ink-30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--sky);
  font-weight: 300;
  transition: background .25s, border-color .25s, color .25s, transform .35s;
}

.faq-item[open] summary { color: var(--sky-dark); }

.faq-item[open] .faq-icon {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 48px 28px 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-60);
  max-width: 760px;
}

.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── RELATED AREAS ── */
.related { background: var(--ink); }

.related .lbl-dash { background: var(--sky-mid); }
.related .lbl span { color: var(--sky-mid); }
.related .display { color: var(--white); margin-bottom: 48px; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
}

.related-item {
  padding: 52px 48px;
  background: var(--ink);
  text-decoration: none;
  display: block;
  transition: background .3s;
}

.related-item:hover { background: #16232f; }

.related-n {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}

.related-title {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.related-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255,255,255,.38);
  margin-bottom: 24px;
}

.related-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s;
}

.related-item:hover .related-link { gap: 14px; }

/* ── AREA CTA ── */
.area-cta {
  background: var(--sky);
  padding: 80px 0;
  text-align: center;
}

.area-cta h2 {
  font-family: var(--f-serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}

.area-cta p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  padding: 14px 36px;
  background: var(--white);
  color: var(--sky-dark);
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background .25s, transform .2s;
}

.btn-white:hover { background: var(--sky-pale); transform: translateY(-2px); }

/* ── CONTACTS SECTION ── */
.contacts {
  background: var(--ink);
  padding: 112px 0;
}

.contacts .lbl-dash { background: var(--sky-mid); }
.contacts .lbl span { color: var(--sky-mid); }
.contacts .display { color: var(--white); }
.contacts .display em { color: var(--sky-mid); }

.contacts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.contacts-head-note {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,.45);
  max-width: 380px;
  padding-top: 8px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.ci {
  padding: 40px 40px;
  background: var(--ink);
  transition: background .3s;
}

.ci:hover { background: #16232f; }

.ci-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
  display: block;
}

.ci-value {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
}

.ci-value a {
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}

.ci-value a:hover { color: var(--sky); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 40px 88px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.foot-logo .logo-icon { opacity: 0.45; }

.foot-name {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
}

.foot-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.foot-links a {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color .2s;
}

.foot-links a:hover { color: var(--sky); }

.foot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.foot-copy {
  font-size: 11px;
  color: rgba(255,255,255,.2);
}

.foot-email {
  font-size: 11px;
  color: rgba(78,173,212,.45);
  text-decoration: none;
  transition: color .2s;
}

.foot-email:hover { color: var(--sky); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav, footer { padding-left: 40px; padding-right: 40px; }
  .container { padding: 0 40px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .contacts-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}

nav#nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav#nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav#nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  nav#nav { padding-left: 40px; padding-right: 40px; }
  .nav-name { display: none; }
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 40px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--ink-10);
    box-shadow: 0 12px 40px rgba(15,27,37,.08);
    z-index: 199;
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 12px;
    letter-spacing: .14em;
    border-bottom: 1px solid var(--ink-10);
    color: var(--ink-60) !important;
    text-transform: uppercase;
    transition: color .2s;
  }

  .nav-links a:hover { color: var(--sky-dark) !important; }

  .nav-cta {
    margin-top: 4px;
    color: var(--sky) !important;
    border: none !important;
    border-bottom: 1px solid var(--line, var(--ink-10)) !important;
    padding: 15px 0 !important;
    background: none !important;
  }
}

@media (max-width: 640px) {
  nav#nav { padding-left: 20px; padding-right: 20px; }
  .nav-links { padding: 8px 20px 28px; }
  footer { padding-left: 20px; padding-right: 20px; }
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .ci { padding: 28px 20px; }
  .ci-value { font-size: 18px; }
  .foot-inner { flex-direction: column; gap: 20px; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .foot-meta { align-items: center; }
  .faq-item summary { font-size: 18px; gap: 16px; }
  .faq-answer { padding: 0 0 24px 0; }
  .related-item { padding: 36px 24px; }
  .related-title { font-size: 26px; }
  .area-cta { padding: 60px 20px; }
  .page-hero { padding: 120px 0 60px; }
  .page-hero-title { font-size: clamp(44px, 12vw, 72px); }
  .page-hero-deco { font-size: 160px; right: -16px; bottom: -24px; opacity: .04; }
  .page-hero-sub { font-size: 14px; }
  .breadcrumb { flex-wrap: wrap; font-size: 10px; gap: 5px; }
  .paths-grid { grid-template-columns: 1fr !important; }
  .paths-grid > div { padding: 36px 24px !important; }
}
