/* ===== Tamm & Partnerid — advokaadibüroo näidisleht ===== */

:root {
  --bg:        #0F1923;
  --bg-2:      #162030;
  --light:     #F8F7F4;
  --text:      #EEE9E0;
  --muted:     #8A8880;
  --gold:      #C5A55A;
  --gold-lt:   #D4B870;
  --line:      rgba(238,233,224,0.10);
  --line-lt:   rgba(15,25,35,0.10);
  --text-lt:   #0F1923;
  --muted-lt:  #6B6560;

  --serif: "EB Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --demo-h: 38px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #0F1923; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(80px, 10vw, 140px); }
.section--light { background: var(--light); color: var(--text-lt); }
.section--dark  { background: var(--bg);    color: var(--text); }

/* ===== Shared type ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow--light { color: var(--gold); }

.section__head {
  margin-bottom: clamp(44px, 5vw, 72px);
  max-width: 680px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text-lt);
}
.section__title--light { color: var(--text); }
.section__lead {
  font-size: 17px;
  color: var(--muted-lt);
  max-width: 52ch;
  margin: 0;
  line-height: 1.7;
}
.section__lead--light { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn--gold { background: var(--gold); color: #0F1923; }
.btn--gold:hover { background: var(--gold-lt); }
.btn--lg { padding: 18px 38px; font-size: 13px; }
.btn--block { width: 100%; }

/* ===== Demo banner ===== */
.demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--demo-h);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: var(--pad);
  background: #06090d;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.demo-banner__label {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.demo-banner__text { color: var(--muted); }
.demo-banner__link {
  margin-left: auto;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.demo-banner__link:hover { color: var(--gold); border-color: var(--gold); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: var(--demo-h); left: 0; right: 0;
  z-index: 150;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15,25,35,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--text);
  white-space: nowrap;
}
.nav__logo span {
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(238,233,224,0.78);
  position: relative;
  padding-block: 4px;
  transition: color .3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  margin-inline: auto;
  transition: transform .3s ease, opacity .3s ease;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__close {
  position: absolute;
  top: 24px; right: 28px;
  background: none; border: none;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}
.mobile-menu__links a:hover { color: var(--gold); }
.mobile-menu__cta { margin-bottom: 40px; }
.mobile-menu__meta {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 2.2;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  padding-top: calc(var(--demo-h) + 78px);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(72px, 10vw, 140px);
}
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(238,233,224,0.72);
  max-width: 46ch;
  margin: 0 0 44px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 500px;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__trust-num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.hero__trust-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__trust-sep {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}
.hero__deco {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  pointer-events: none;
  overflow: hidden;
}
.hero__deco-rule {
  position: absolute;
  right: clamp(60px, 10vw, 160px);
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 1px;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
  opacity: 0.22;
}

/* ===== Valdkonnad (Practice areas) ===== */
.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-lt);
  border: 1px solid var(--line-lt);
}
.area {
  background: var(--light);
  padding: clamp(28px, 3.5vw, 48px);
  transition: background .45s ease, color .45s ease;
}
.area:hover {
  background: var(--bg);
  color: var(--text);
}
.area__icon {
  width: 44px; height: 44px;
  color: var(--text-lt);
  margin-bottom: 24px;
  transition: color .45s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.area__icon svg { width: 100%; height: 100%; }
.area:hover .area__icon { color: var(--gold); transform: translateY(-4px); }
.area__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 12px;
  transition: color .45s ease;
}
.area__desc {
  font-size: 15px;
  color: var(--muted-lt);
  margin: 0;
  max-width: 34ch;
  line-height: 1.65;
  transition: color .45s ease;
}
.area:hover .area__desc { color: var(--muted); }

/* ===== Stats bar ===== */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 36px);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Meeskond ===== */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.partner__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd8d2;
  margin-bottom: 24px;
}
.partner__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.04);
  transition: filter .65s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
.partner:hover .partner__photo img {
  filter: grayscale(0);
  transform: scale(1.03);
}
.partner__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--text-lt);
}
.partner__role {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.partner__specialty {
  font-size: 13px;
  color: var(--muted-lt);
  margin: 0 0 14px;
  font-style: italic;
}
.partner__bio {
  font-size: 15px;
  color: var(--muted-lt);
  margin: 0;
  line-height: 1.7;
}

/* ===== Protsess ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px);
  position: relative;
  border-top: 1px solid var(--line);
}
.step:first-child { border-left: 1px solid var(--line); }
.step + .step { border-left: 1px solid var(--line); }
.step__num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: rgba(197,165,90,0.22);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.step__connector {
  display: none; /* used on large screens via pseudo or JS if needed */
}
.step__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
}
.step__desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  max-width: 28ch;
}

/* ===== Arvustused ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.review {
  border: 1px solid var(--line-lt);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  position: relative;
}
.review__mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.25;
  margin-bottom: 8px;
  font-weight: 400;
}
.review blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  margin: 0 0 24px;
  color: var(--text-lt);
  flex: 1;
  font-style: italic;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line-lt);
}
.review__name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-lt);
  letter-spacing: 0.04em;
}
.review__case {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.contact__text {
  font-size: 17px;
  color: rgba(238,233,224,0.72);
  max-width: 44ch;
  margin: 0 0 40px;
  line-height: 1.7;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: baseline;
}
.contact-list__k {
  min-width: 110px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.contact-list__v { color: var(--text); }
.contact-list__v a:hover { color: var(--gold); }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-2);
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  padding: 13px 16px;
  background: rgba(238,233,224,0.05);
  border: 1px solid rgba(238,233,224,0.14);
  border-radius: 0;
  transition: border-color .3s ease;
  resize: none;
}
.field select { appearance: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.contact__form .btn { grid-column: span 2; margin-top: 8px; }
.contact__note {
  grid-column: span 2;
  font-size: 14px;
  color: var(--gold);
  margin: 0;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 96px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__logo {
  display: inline-block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.07em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__logo span { font-style: italic; color: var(--gold); }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 30ch; margin: 0 0 10px; }
.footer__reg { color: rgba(138,136,128,0.5); font-size: 12px; letter-spacing: 0.06em; margin: 0; }
.footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 11px;
}
.footer__col a:hover { color: var(--text); }
.footer__hours { font-size: 13px; margin-top: 8px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}
.footer__copy { font-size: 13px; color: var(--muted); margin: 0; }
.footer__disc { font-size: 12px; color: rgba(138,136,128,0.5); margin: 0; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .team { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero__trust { flex-wrap: wrap; gap: 20px; }
  .areas { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .field--half { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__deco { display: none; }
}
