/* ============================================================
   customcoldplunges.com — stylesheet
   Palette: warm ivory / deep walnut / near-black ink / brass
   Type:    Cormorant Garamond (display serif) + Inter (body sans)
   ============================================================ */

:root {
  /* Colors */
  --ink: #14110d;           /* near-black, warm */
  --ink-2: #2a2520;
  --ivory: #f6f0e3;         /* warm cream */
  --ivory-2: #ece3d2;
  --stone: #b9ac94;
  --walnut: #3a2614;
  --walnut-2: #4a2f19;
  --brass: #b58c4a;
  --brass-soft: #d8b277;
  --line: rgba(20, 17, 13, 0.12);
  --line-dark: rgba(246, 240, 227, 0.18);

  /* Type */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;

  /* Scale */
  --step--1: clamp(0.85rem, 0.83rem + 0.10vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.35vw, 1.30rem);
  --step-2:  clamp(1.35rem, 1.20rem + 0.60vw, 1.70rem);
  --step-3:  clamp(1.80rem, 1.45rem + 1.40vw, 2.60rem);
  --step-4:  clamp(2.40rem, 1.80rem + 2.60vw, 3.80rem);
  --step-5:  clamp(3.00rem, 2.20rem + 3.80vw, 5.20rem);

  --ease: cubic-bezier(0.22, 0.68, 0.32, 0.96);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: min(1280px, 100% - 2.5rem);
  margin-inline: auto;
}
@media (min-width: 900px) {
  .container { width: min(1280px, 100% - 5rem); }
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
  text-transform: uppercase;
  will-change: transform;
}
.btn--lg { padding: 1.05rem 2rem; font-size: 0.98rem; }
.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--walnut);
  border-color: var(--walnut);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ivory);
  border-color: rgba(246, 240, 227, 0.4);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(246, 240, 227, 0.1);
  border-color: var(--ivory);
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 1.5rem 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  font-family: var(--f-display);
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 1.1rem;
  letter-spacing: 0;
  font-weight: 500;
}
.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__line-1 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; font-family: var(--f-body); font-weight: 500; }
.brand__line-2 { font-size: 1.25rem; font-family: var(--f-display); letter-spacing: 0.01em; }

.nav {
  display: none;
  gap: 2rem;
  align-items: center;
  color: var(--ivory);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { opacity: 0.85; transition: opacity 180ms var(--ease); }
.nav a:hover { opacity: 1; }
.nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(246, 240, 227, 0.4);
  opacity: 1 !important;
  font-size: 0.78rem;
  border-radius: 2px;
}
.nav__cta:hover {
  background: rgba(246, 240, 227, 0.1);
}
@media (min-width: 800px) {
  .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,13,0.55) 0%, rgba(20,17,13,0.05) 40%, rgba(20,17,13,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  max-width: 760px;
}
.hero__title {
  font-size: var(--step-5);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.hero__title em {
  color: var(--brass-soft);
  font-weight: 400;
}
.hero__sub {
  font-size: var(--step-1);
  max-width: 56ch;
  opacity: 0.88;
  margin-bottom: 2.2rem;
  font-weight: 300;
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Intro ---------- */
.intro {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--ivory);
}
.intro__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
  }
}
.intro__lede h2 { margin-bottom: 0; }
.intro__body {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
}

/* ---------- Section header ---------- */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header__sub {
  font-size: var(--step-1);
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Projects grid ---------- */
.projects {
  padding: clamp(4rem, 6vw, 6rem) 0 clamp(5rem, 8vw, 8rem);
  background: var(--ivory-2);
}
.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(20,17,13,0.35);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), filter 280ms var(--ease);
}
.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.04);
}
.project-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(20,17,13,0) 0%, rgba(20,17,13,0.85) 100%);
  color: var(--ivory);
}
.project-card__meta h3 {
  font-size: var(--step-2);
  margin: 0 0 0.25rem;
  font-weight: 400;
  line-height: 1.15;
}
.project-card__loc {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
  font-family: var(--f-body);
}
.project-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.78;
  font-family: var(--f-body);
}
.project-card__specs span { display: block; }
.project-card__specs b {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.15rem;
}

/* ---------- Process ---------- */
.process {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--ink);
  color: var(--ivory);
}
.process .section-header__sub,
.process .eyebrow { color: var(--brass-soft); }
.process .eyebrow { color: var(--brass); }
.process h2 { color: var(--ivory); }

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (min-width: 1050px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  padding: 2rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.process-step__num {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--brass-soft);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.process-step h3 {
  font-size: var(--step-2);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.process-step p {
  color: rgba(246, 240, 227, 0.7);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 300;
}

/* ---------- Craft ---------- */
.craft {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--ivory);
}
.craft__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 950px) {
  .craft__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.craft__image {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
}
.craft__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.craft__specs {
  margin: 2rem 0 0;
  padding: 0;
}
.craft__specs > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
@media (min-width: 500px) {
  .craft__specs > div {
    grid-template-columns: minmax(140px, 1fr) 2.5fr;
    gap: 1.5rem;
  }
}
.craft__specs dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  padding-top: 0.12rem;
}
.craft__specs dd {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 300;
}

/* ---------- Lead form ---------- */
.lead {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--walnut);
  color: var(--ivory);
}
.lead .eyebrow { color: var(--brass-soft); }
.lead h2 { color: var(--ivory); }
.lead .section-header__sub { color: rgba(246, 240, 227, 0.78); }

.lead-form {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}
.lead-form__row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .lead-form__row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-soft);
}
.field__label em { color: var(--brass-soft); font-style: normal; }
.field__note {
  color: rgba(246, 240, 227, 0.55);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  font-weight: 400;
  margin-left: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(246, 240, 227, 0.08);
  border: 1px solid rgba(246, 240, 227, 0.25);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--step-0);
  border-radius: 2px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-soft);
  background: rgba(246, 240, 227, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--f-body); }

.field select option { background: var(--walnut); color: var(--ivory); }

.field--file input[type="file"] {
  padding: 0.75rem;
  font-size: 0.88rem;
  background: rgba(246, 240, 227, 0.06);
}
.field--file input::file-selector-button {
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(246, 240, 227, 0.35);
  background: transparent;
  color: var(--ivory);
  border-radius: 2px;
  margin-right: 1rem;
  cursor: pointer;
}

.lead-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 700px) {
  .lead-form__actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.lead-form .btn--primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.lead-form .btn--primary:hover,
.lead-form .btn--primary:focus-visible {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
}
.lead-form__privacy {
  font-size: 0.78rem;
  color: rgba(246, 240, 227, 0.6);
  margin: 0;
  max-width: 40ch;
  line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 240, 227, 0.7);
  padding: 3rem 0 2.5rem;
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}
.site-footer .brand { color: var(--ivory); }
.site-footer__tag {
  font-size: 0.85rem;
  margin-top: 1rem;
  color: rgba(246, 240, 227, 0.58);
}
.site-footer__tag a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__links a:hover { color: var(--ivory); }
.site-footer__legal {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(246, 240, 227, 0.45);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 13, 0.97);
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  animation: fadeIn 220ms var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--ivory);
  opacity: 0.8;
  transition: opacity 180ms var(--ease);
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__close {
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  font-family: var(--f-display);
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (min-width: 700px) {
  .lightbox__prev { left: 2rem; }
  .lightbox__next { right: 2rem; }
}
.lightbox__figure {
  margin: 0;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox__caption {
  color: rgba(246, 240, 227, 0.82);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 56ch;
  font-family: var(--f-body);
}
.lightbox__caption .title {
  display: block;
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}

body.lightbox-open { overflow: hidden; }

/* ---------- Motion reductions ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
