/* ============================================================
   CHELSEA REFURB — styles.css
   Palette: Warm Ivory · Deep Charcoal · Aged Brass · Fog Grey
   Fonts: Cormorant Garamond (display) · Jost (body)
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --ivory:      #F6F3EE;
  --ivory-2:    #EDE9E2;
  --charcoal:   #1C1C1A;
  --charcoal-2: #2E2D2B;
  --brass:      #B8976A;
  --brass-lt:   #D4B896;
  --fog:        #8A8680;
  --fog-lt:     #C8C4BC;
  --white:      #FFFFFF;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', system-ui, sans-serif;

  --radius: 2px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: var(--brass-lt); color: var(--charcoal); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ivory-2); }
::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 99px; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── SECTION COMMON ──────────────────────────────────────── */
.section { padding-block: clamp(4rem, 10vw, 8rem); }

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 560px;
}

.section__label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--charcoal);
}
.section__title em { font-style: italic; color: var(--brass); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--light  { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn--light:hover { background: var(--ivory); }

.btn--ghost  { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--dark   { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--charcoal-2); }

.btn--full   { width: 100%; justify-content: center; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(246,243,238,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28,28,26,0.08);
  padding-block: 0.9rem;
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.nav.scrolled .nav__logo-mark,
.footer .nav__logo-mark { background: var(--brass); color: var(--white); }

.nav__logo-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.4s;
}
.nav.scrolled .nav__logo-name { color: var(--charcoal); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: var(--white); }

.nav.scrolled .nav__links a { color: var(--fog); }
.nav.scrolled .nav__links a:hover { color: var(--charcoal); }

.nav__cta {
  background: var(--brass) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--brass-lt) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
.nav.scrolled .nav__burger span { background: var(--charcoal); }
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1800&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroPan 20s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -1.5%); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,28,26,0.72) 0%,
    rgba(28,28,26,0.45) 55%,
    rgba(28,28,26,0.28) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block-start: 7rem;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 1.5rem;
}

.hero__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.hero__heading em { font-style: italic; color: var(--brass-lt); }

.hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50%       { transform: scaleY(0.4); transform-origin: top; }
}

/* ── RIBBON ──────────────────────────────────────────────── */
.ribbon {
  background: var(--charcoal);
  overflow: hidden;
  padding-block: 0.85rem;
  white-space: nowrap;
}
.ribbon__track {
  display: inline-flex;
  gap: 2rem;
  animation: ribbon 28s linear infinite;
}
.ribbon__track span {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,243,238,0.55);
}
.ribbon__dot { color: var(--brass) !important; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--ivory-2);
  background: var(--ivory-2);
}

.service-card {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--ivory);
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 3px;
  height: 0;
  background: var(--brass);
  transition: height 0.45s var(--ease);
}
.service-card:hover { background: var(--ivory-2); }
.service-card:hover::before { height: 100%; }

.service-card__num {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fog-lt);
  margin-bottom: 2rem;
}

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 0.85rem;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.75;
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery { background: var(--ivory-2); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 6px;
  margin-top: 2.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery__item img {
  transition: transform 0.7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(28,28,26,0.72));
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }
.gallery__caption span {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: var(--ivory); }

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.about__visual { position: relative; }

.about__img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
}
.about__img-wrap img { transition: transform 0.7s var(--ease); }
.about__img-wrap:hover img { transform: scale(1.04); }

.about__stat-block {
  position: absolute;
  inset-block-end: -1.5rem;
  inset-inline-end: -1.5rem;
  background: var(--charcoal);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  box-shadow: 0 20px 60px rgba(28,28,26,0.18);
}

.about__stat { display: flex; flex-direction: column; gap: 0.25rem; }
.about__stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
}
.about__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,243,238,0.5);
}

.about__copy p {
  font-size: 0.92rem;
  color: var(--fog);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about__list {
  margin-block: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--charcoal-2);
}
.about__list li svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brass);
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials { background: var(--charcoal); }
.testimonials .section__label { color: var(--brass-lt); }
.testimonials .section__title { color: var(--ivory); }
.testimonials .section__title em { color: var(--brass-lt); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  padding: 2.25rem;
  border: 1px solid rgba(246,243,238,0.08);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s;
}
.testimonial:hover { border-color: rgba(184,151,106,0.35); }

.testimonial::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.8;
  color: rgba(184,151,106,0.15);
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  pointer-events: none;
}

.testimonial__quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(246,243,238,0.85);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.testimonial__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--brass-lt);
}
.testimonial__loc {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(246,243,238,0.35);
  text-transform: uppercase;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--ivory-2); }

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact__info p {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.8;
  margin-block: 1.5rem;
}

.contact__details { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--charcoal-2);
}
.contact__detail svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brass);
}

/* ── FORM ────────────────────────────────────────────────── */
.contact__form-wrap {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 4px 40px rgba(28,28,26,0.07);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form__group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form__group label em { font-style: normal; color: var(--fog-lt); text-transform: none; letter-spacing: 0; }

.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--fog-lt);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8680' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184,151,106,0.12);
  background: var(--white);
}
.form__group input.error,
.form__group select.error,
.form__group textarea.error { border-color: #C0392B; }

.form__error {
  font-size: 0.72rem;
  color: #C0392B;
  min-height: 1em;
}

/* Submit button spinner */
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(246,243,238,0.3);
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn__text { opacity: 0; position: absolute; }
.btn.loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__success {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(184,151,106,0.08);
  border: 1px solid rgba(184,151,106,0.3);
  margin-top: 1rem;
}
.form__success.visible { display: flex; }
.form__success svg { width: 1.6rem; height: 1.6rem; flex-shrink: 0; color: var(--brass); }
.form__success p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--charcoal-2); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding-block: 3rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__brand p {
  font-size: 0.78rem;
  color: rgba(246,243,238,0.4);
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,243,238,0.45);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--brass-lt); }
.footer__note {
  font-size: 0.7rem;
  color: rgba(246,243,238,0.3);
  text-align: right;
  line-height: 1.7;
}

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 99;
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .nav__links a {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: rgba(246,243,238,0.7);
  }
  .nav__links a:hover { color: var(--white); }
  .nav__cta { background: var(--brass) !important; padding: 0.6rem 2rem !important; }
  .nav__burger { display: flex; z-index: 101; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--tall,
  .gallery__item--wide { grid-row: span 1; grid-column: span 1; }
  .gallery__item { height: 200px; }

  .about__container { grid-template-columns: 1fr; }
  .about__stat-block {
    position: static;
    margin-top: 1.5rem;
    grid-template-columns: 1fr 1fr;
  }

  .contact__container { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__note { text-align: left; }
}

@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { height: 240px; }
}
