/* The Trilogy Salon — redesign
   Palette from the logo and shopfront: ivory, ink, brand blue #28458B
   Display: Cormorant Garamond. Body: Outfit. */

:root {
  --ivory: #F3EEE6;
  --paper: #FAF7F2;
  --ink: #12151A;
  --ink-soft: #2A2E35;
  --blue: #28458B;
  --blue-deep: #1B2F63;
  --stone: #7A746A;
  --line: #D9D2C7;
  --white: #FFFCFA;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote, .hero-lead, .pillar-from, .footer-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: .5rem 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ivory); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .4s var(--ease), box-shadow .4s, backdrop-filter .4s, color .3s;
}
.site-header .brand img { filter: invert(1); transition: filter .3s; }
.site-header.is-scrolled {
  background: rgba(243, 238, 230, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header.is-scrolled .brand img { filter: none; }
.header-inner {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
}
.site-nav a:not(.nav-book)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.site-nav a:not(.nav-book):hover::after { right: 0; }
.nav-book {
  background: var(--ink);
  color: var(--ivory) !important;
  padding: .7rem 1.15rem;
  border-radius: 999px;
}
.nav-book:hover { background: var(--blue); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 1.5px; margin: 7px 10px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.06);
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(12,14,18,.72) 0%, rgba(12,14,18,.28) 48%, rgba(12,14,18,.12) 100%),
    linear-gradient(180deg, rgba(12,14,18,.35) 0%, transparent 28%, rgba(12,14,18,.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 80px));
  margin: 0 0 10vh 7vw;
  padding-bottom: 1rem;
}
.hero-copy .eyebrow { color: #E4D8B8; }
.hero h1 {
  font-size: clamp(3.8rem, 9vw, 8.6rem);
  font-weight: 500;
  margin: 0 0 .3em;
  line-height: .9;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-lead {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  max-width: 22em;
  margin-bottom: 1.8rem;
  color: rgba(255,252,250,.9);
}
.hero-note {
  margin: 1.4rem 0 0;
  font-size: .85rem;
  letter-spacing: .06em;
  color: rgba(255,252,250,.7);
}
.hero-mark {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 2;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  color: rgba(255,252,250,.7);
}

/* About */
.about { padding: 8.5rem 0 6rem; }
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr .9fr;
  gap: 4rem 4.5rem;
  align-items: start;
}
.about-index {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--stone);
  padding-top: .4rem;
}
.about-copy { max-width: 38rem; }
.about-copy p { color: var(--ink-soft); }
.about blockquote {
  margin: 2rem 0 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--blue);
}
.about blockquote p {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.about-figure { margin: 2.5rem 0 0; }
.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(.12) contrast(1.04);
}
.about-figure figcaption {
  margin-top: .8rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Pillars */
.pillars { padding: 2rem 0 8rem; }
.section-head { max-width: 20em; margin-bottom: 3.5rem; }
.pillar {
  display: grid;
  gap: 3.5rem 4rem;
  align-items: center;
  margin-bottom: 5.5rem;
}
.pillar:last-child { margin-bottom: 0; }
.pillar-a, .pillar-c { grid-template-columns: 1.15fr .85fr; }
.pillar-b { grid-template-columns: .85fr 1.15fr; }
.pillar figure { margin: 0; overflow: hidden; }
.pillar img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.pillar-a img, .pillar-c img { height: 700px; }
.pillar figure:hover img { transform: scale(1.05); }
.pillar-no {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .22em;
  color: var(--blue);
  margin: 0 0 .6rem;
}
.pillar-body p { color: var(--ink-soft); }
.pillar-from {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin-top: 1.4rem;
}

/* Prices */
.prices {
  background: var(--ink);
  color: var(--ivory);
  padding: 8rem 0;
}
.prices .eyebrow { color: #C9B896; }
.prices-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.prices-intro p { color: rgba(243,238,230,.75); max-width: 28rem; }
.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.price-cols h3 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.price-cols ul { list-style: none; margin: 0; padding: 0; }
.price-cols li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(243,238,230,.14);
  font-size: .95rem;
}
.price-cols li span:last-child {
  white-space: nowrap;
  color: #C9B896;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* Gallery */
.gallery { padding: 8rem 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
}
.gallery-grid .g { margin: 0; overflow: hidden; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-grid .g:hover img { transform: scale(1.07); }
.g1 { grid-column: 1 / 6; grid-row: 1 / 5; }
.g2 { grid-column: 6 / 9; grid-row: 1 / 4; }
.g3 { grid-column: 9 / 13; grid-row: 1 / 3; }
.g4 { grid-column: 9 / 13; grid-row: 3 / 6; }
.g5 { grid-column: 6 / 9; grid-row: 4 / 7; }
.g6 { grid-column: 1 / 4; grid-row: 5 / 8; }
.g7 { grid-column: 4 / 9; grid-row: 7 / 10; }
.g8 { grid-column: 9 / 13; grid-row: 6 / 10; }

/* Visit */
.visit {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 6rem 6vw;
}
.visit-media { position: absolute; inset: 0; }
.visit-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: contrast(1.05) saturate(.9);
}
.visit-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,21,26,.25), rgba(18,21,26,.08) 40%, rgba(18,21,26,.4));
}
.visit-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 3.2rem 3rem;
  width: min(520px, 100%);
  margin-left: auto;
  box-shadow: 0 24px 60px rgba(18,21,26,.22);
}
.visit-card address { margin: 1.2rem 0; }
.visit-contact { margin: 0 0 1.5rem; }
.visit-contact a:hover { color: var(--blue); }
.hours h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.hours ul { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

/* Footer */
.site-footer {
  background: #0C0E12;
  color: #D8D2C8;
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(216,210,200,.15);
}
.footer-brand img {
  height: 86px;
  width: auto;
  filter: invert(1);
}
.footer-name { font-size: 1.6rem; color: var(--ivory); margin-bottom: .3rem; }
.site-footer a:hover { color: var(--ivory); }
.footer-grid nav, .footer-social { display: flex; flex-direction: column; gap: .45rem; }
.footer-social p {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: #C9B896;
}
.footer-base { padding-top: 1.5rem; font-size: .85rem; color: #8A857C; }

/* Motion */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-in {
  animation: rise .9s var(--ease) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .prices-grid, .pillar-a, .pillar-b, .pillar-c {
    grid-template-columns: 1fr;
  }
  .about-index { display: none; }
  .about-figure { margin-top: 0; }
  .pillar img, .pillar-a img, .pillar-c img { height: 480px; }
  .pillar-b { display: flex; flex-direction: column-reverse; gap: 2rem; }
  .price-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { width: min(100%, calc(100% - 48px)); margin: 0 24px 8vh; }
  .gallery-grid { grid-auto-rows: 100px; gap: 10px; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { height: 48px; }
  .nav-toggle { display: block; z-index: 60; }
  .site-nav {
    color: var(--ink);
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 360px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8.5px) rotate(-45deg); }
  .hero { min-height: 92vh; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-mark { display: none; }
  .about, .pillars, .prices, .gallery { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .visit { padding: 2rem 16px 3rem; min-height: 0; }
  .visit-media { position: relative; height: 280px; }
  .visit-media::after { display: none; }
  .visit {
    display: block;
    background: var(--paper);
    padding: 0;
  }
  .visit-card {
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 2.4rem 1.2rem 3.5rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-grid .g { grid-column: auto; grid-row: auto; }
  .g1, .g7, .g8 { grid-column: 1 / -1; }
  .g1 { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
