/* ===== Tera Studio — näidisleht ===== */

:root {
  --bg:        #0E0D0C;
  --bg-2:      #181614;
  --light:     #F7F5F1;
  --text:      #F0EDE8;
  --muted:     #8A8480;
  --gold:      #C9A96E;
  --gold-soft: #d8bd88;
  --deco:      #3A3530;
  --line:      rgba(240,237,232,0.10);
  --line-dark: rgba(14,13,12,0.10);

  --serif: "Cormorant 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.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

.section__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 640px; }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #16140f;
}
.section__title--light { color: var(--text); }

.rule { display: inline-block; width: 40px; height: 1px; background: currentColor; }
.rule--gold { background: var(--gold); margin-bottom: 28px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn--gold { background: var(--gold); color: #18130a; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--dark { background: #16140f; color: var(--light); }
.btn--dark:hover { background: #2a2620; }
.btn--lg { padding: 17px 34px; font-size: 15px; }
.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: #050505;
  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.14em;
  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(14,13,12,0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 4px;
}
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text);
  position: relative;
  padding-block: 4px;
}
.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(--gold); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  margin-inline: auto;
  transition: transform .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: 40px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
}
.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;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,13,12,0.90) 42%, rgba(14,13,12,0.35) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: calc(var(--demo-h) + 74px);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 10vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  max-width: 12ch;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: rgba(240,237,232,0.82);
  max-width: 44ch;
  margin: 0 0 38px;
}
.hero__hours {
  margin-top: 30px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);  transform-origin: top; }
}

/* ===== Teenused ===== */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.svc {
  background: var(--light);
  padding: clamp(28px, 4vw, 46px);
  transition: background .4s ease, color .4s ease;
}
.svc:hover { background: var(--bg); color: var(--text); }
.svc__icon {
  width: 52px; height: 52px;
  color: #16140f;
  margin-bottom: 26px;
  transition: color .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.svc__icon svg { width: 100%; height: 100%; }
.svc:hover .svc__icon { color: var(--gold); transform: rotate(-6deg) scale(1.06); }
.svc__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  margin: 0 0 12px;
}
.svc__desc {
  font-size: 15px;
  color: #56504a;
  margin: 0 0 24px;
  max-width: 38ch;
  transition: color .4s ease;
}
.svc:hover .svc__desc { color: var(--muted); }
.svc__price {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a847c;
  margin: 0;
}
.svc__price span {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  margin-left: 4px;
}

/* ===== Galerii ===== */
.gallery {
  columns: 3;
  column-gap: 16px;
}
.gallery__item {
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--bg-2);
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
  filter: grayscale(0.15);
}
.gallery__item:hover img { transform: scale(1.05); filter: grayscale(0); }
.gallery__item--tall img { aspect-ratio: 3/4.4; object-fit: cover; }
.gallery__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s ease;
}
.gallery__link:hover { border-bottom-color: var(--gold); }

/* ===== Hinnakiri / Accordion ===== */
.accordion { border-top: 1px solid var(--line-dark); }
.acc { border-bottom: 1px solid var(--line-dark); }
.acc__head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4px;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  color: #16140f;
}
.acc__sign {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-left: 20px;
}
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .35s ease, opacity .35s ease;
}
.acc__sign::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.acc__sign::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.acc__head[aria-expanded="true"] .acc__sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.acc__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
}
.price-list { list-style: none; margin: 0; padding: 0 4px 14px; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
}
.price-list li:first-child { border-top: none; }
.price-list__name { flex: 1; font-size: 16px; color: #2a2620; }
.price-list__dur { font-size: 13px; color: #9a948c; min-width: 64px; text-align: right; }
.price-list__price {
  font-family: var(--serif);
  font-size: 21px;
  color: #16140f;
  min-width: 96px;
  text-align: right;
}
.price-note {
  margin-top: 30px;
  font-size: 13px;
  color: #8a847c;
  text-align: center;
  font-style: italic;
}

/* ===== Meeskond ===== */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}
.member__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 20px;
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter .6s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--text);
}
.member__role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.member__bio { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Broneerimine ===== */
.booking {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.booking__text {
  font-size: 16px;
  color: #56504a;
  max-width: 40ch;
  margin: 0 0 36px;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
}
.contact-list__k {
  min-width: 90px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a948c;
  padding-top: 2px;
}
.contact-list__v { color: #2a2620; }
.contact-list__v a:hover { color: var(--gold); }

.booking__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--line-dark);
}
.field { display: flex; flex-direction: column; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a847c;
  margin-bottom: 8px;
}
.field input, .field select {
  font-family: var(--sans);
  font-size: 15px;
  color: #16140f;
  padding: 13px 14px;
  border: 1px solid #ddd8d0;
  background: #faf9f6;
  border-radius: 0;
  transition: border-color .3s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
}
.booking__form .btn { grid-column: span 2; margin-top: 6px; }
.booking__note {
  grid-column: span 2;
  font-size: 14px;
  color: #4a7a52;
  margin: 0;
  text-align: center;
}

/* ===== Arvustused ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}
.review {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-2);
}
.review__stars { color: var(--gold); letter-spacing: 4px; font-size: 15px; }
.review blockquote {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
  flex: 1;
}
.review figcaption {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.review figcaption span { color: var(--muted); font-weight: 400; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 90px); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}
.footer__logo { padding-left: 0; display: inline-block; margin-bottom: 16px; }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 30ch; margin: 0; }
.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  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: 16px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.footer__social { display: flex; gap: 24px; }
.footer__social a { font-size: 13px; letter-spacing: 0.04em; color: var(--text); }
.footer__social a:hover { color: var(--gold); }
.footer__copy { font-size: 13px; color: var(--muted); margin: 0; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s 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; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { text-align: center; align-items: center; }
  .hero__inner { display: flex; flex-direction: column; align-items: center; }
  .hero__overlay { background: linear-gradient(to bottom, rgba(14,13,12,0.78), rgba(14,13,12,0.92)); }
  .rule--gold { display: none; }
  .hero__sub { margin-inline: auto; }
  .services { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 1; }
  .booking__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; }
}
