/* ==========================================================================
   De Caires Data — single stylesheet
   ==========================================================================
   The De Caires house style, inverted: where De Caires Classics is cream and
   gold on black, this side of the brand is black and gold on white. Same
   typography (Cormorant Garamond + DM Sans), same gold hairlines, same
   generous vertical rhythm — so the two sites read as one company.

   Everything visual derives from :root, so brand tweaks are a one-block
   change.
   ========================================================================== */

@import url('fonts.css');

/* ---- Minimal reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
}

/* ---- Design tokens ----
   Palette inverted from the Classics board: the cream that was the text
   colour there is the tint band here, and the near-black that was the
   ground is the ink. Gold is unchanged as a hairline/rule colour; a deeper
   bronze (--color-gold-ink) carries gold *text*, since #B8960C is too light
   to sit legibly on white. */
:root {
  --color-ink: #0A0A0A;
  --color-ink-soft: #4A4A4A;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-cream: #F5F0E8;
  --color-gold: #B8960C;
  --color-gold-ink: #7E6400;
  --color-gold-deep: #8A6F00;
  --color-line: rgba(184, 150, 12, 0.22);
  --color-line-soft: rgba(10, 10, 10, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: var(--font-display);
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: var(--font-body);

  --max-width: 1160px;
  --space-s: clamp(0.75rem, 2vw, 1rem);
  --space-m: clamp(1.5rem, 4vw, 2.5rem);
  --space-l: clamp(4rem, 9vw, 7.5rem);
  --radius: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

p {
  color: var(--color-ink-soft);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.section {
  padding: var(--space-l) 0;
}

/* Cream band: the warm counterweight to the white ground, fenced by gold
   hairlines the way Classics fences its sections. */
.section--tint {
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section__kicker {
  display: block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: var(--space-s);
}

.section__intro {
  max-width: 46rem;
  margin-bottom: var(--space-m);
  color: var(--color-ink-soft);
  line-height: 1.85;
}

.dot-gold {
  color: var(--color-gold-ink);
}

.divider {
  width: 2.5rem;
  height: 1px;
  background: var(--color-gold);
  border: none;
  margin: 1.25rem 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ----
   Squared off, hairline-bordered, uppercase micro-type: the Classics
   treatment, with gold reading as ink rather than as glow. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-gold);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.button--solid {
  background: var(--color-gold);
  color: var(--color-ink);
  border-color: var(--color-gold);
}

.button--solid:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-cream);
}

.button--ghost {
  background: transparent;
  color: var(--color-gold-ink);
  border-color: rgba(184, 150, 12, 0.55);
}

.button--ghost:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

/* ---- Navigation ----
   Transparent over the white hero, then a solid pane with a gold hairline
   once the page moves — mirroring the Classics nav exactly. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}

.nav--scrolled,
.nav--open {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem var(--space-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav__brand-logo {
  height: clamp(1.9rem, 3.4vw, 2.4rem);
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(10, 10, 10, 0.72);
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-ink);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.35);
}

.nav__lang-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.55);
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav__lang-btn:hover {
  color: var(--color-ink);
}

.nav__lang-btn--active {
  color: var(--color-gold-ink);
  font-weight: 500;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---- Hero (homepage): the wordmark as the centrepiece, on white ----
   Behind it, a contour field (images/hero-contours.svg): nested isolines
   banded warm-core-to-cool-edge, the way a rainfall or elevation map is
   banded. Monoline, at the same stroke weight as the logo's script. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(30rem, 76vh, 46rem);
  display: flex;
  align-items: center;
  padding: calc(var(--space-l) + 4rem) 0 var(--space-l);
  background: var(--color-bg);
  text-align: center;
}

.hero > .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Inset negatively so the drift animation never exposes a white edge. */
.hero-art {
  position: absolute;
  inset: -5%;
  z-index: 0;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

/* A near-white wash over the centre: the wordmark is a very thin monoline,
   and without this the contour crossings break up its strokes. */
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 44% at 50% 44%,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.74) 45%,
    rgba(255, 255, 255, 0.34) 70%,
    rgba(255, 255, 255, 0) 100%);
}

@keyframes hero-drift {
  to { transform: translate3d(-26px, 14px, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.hero__logo {
  width: min(560px, 84vw);
  height: auto;
}

/* The value proposition, set the way the Classics tagline is set: display
   serif, italic, quiet. */
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

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

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--space-l) + 3rem) 0 var(--space-m);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-line);
}

.page-hero__intro {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.85;
  color: var(--color-ink-soft);
}

/* ---- Service cards ----
   A hairline grid rather than floating boxes, as on the Classics services
   section: the 1px gap over a gold-tinted background draws the rules. */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.3s ease;
}

.service-card:hover {
  background: #FBF9F5;
}

.service-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--color-gold-deep);
}

.service-card__text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.8;
}

.service-card__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.service-card__link:hover {
  opacity: 0.65;
}

/* ---- Credibility strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem);
  line-height: 1;
  color: var(--color-gold-ink);
  margin-bottom: 0.4rem;
}

.stats__label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

/* ---- Feature / offering lists ---- */
.offerings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m) var(--space-l);
}

.offering h3 {
  margin-bottom: 0.6rem;
}

.offering h3::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
  margin-top: 0.75rem;
}

.offering p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- Process steps ---- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
  max-width: 46rem;
}

.steps__item {
  counter-increment: step;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.steps__item::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--color-gold-ink);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.steps__item h3 {
  margin-bottom: 0.3rem;
}

.steps__item p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- Case study / portfolio cards ---- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card__media {
  display: block;
  overflow: hidden;
}

.case-card__media img {
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.8);
}

.case-card__media:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.case-card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.case-card__image--placeholder {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-card__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.case-card__tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
}

.case-card__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.case-card__link:hover {
  opacity: 0.65;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-l);
  align-items: start;
}

.about-grid__photo {
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  filter: saturate(0.85);
}

.about-grid__photo--placeholder {
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credentials {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: var(--space-s);
}

.credentials__item {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.credentials__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.75rem;
  height: 1px;
  background: var(--color-gold);
}

.credentials + .button {
  margin-top: var(--space-m);
}

/* ---- CTA band ----
   Stays on the cream, not on black: the point of this side of the brand is
   that the ink is dark and the ground is light. */
.cta-band {
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
  padding: var(--space-l) 0;
}

.cta-band h2 {
  color: var(--color-ink);
}

.cta-band h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--color-gold);
  margin: 1.25rem auto 0;
}

.cta-band p {
  color: var(--color-ink-soft);
  max-width: 38rem;
  margin: 1.25rem auto 2rem;
  line-height: 1.85;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-l);
  align-items: start;
}

.contact-block__social {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-s);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.2s ease;
}

.contact-link:hover {
  background: var(--color-cream);
  border-color: rgba(184, 150, 12, 0.5);
}

.contact-link__icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-gold-deep);
  flex-shrink: 0;
}

.contact-note {
  background: var(--color-cream);
  border-radius: var(--radius);
  border-left: 1px solid var(--color-gold);
  padding: 1.75rem;
  margin-top: var(--space-m);
}

.contact-note h3 {
  margin-bottom: 0.5rem;
}

.contact-note p,
.contact-note ul {
  font-size: 0.93rem;
  line-height: 1.8;
}

.contact-note ul {
  margin: 0.5rem 0 0 1.1rem;
  color: var(--color-ink-soft);
}

/* ---- Form ----
   Underlined fields rather than boxes, as on the Classics contact page. */
.form {
  display: grid;
  gap: 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  margin-bottom: 0.5rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font: inherit;
  color: var(--color-ink);
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid rgba(184, 150, 12, 0.35);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.25s ease;
  outline: none;
  resize: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(10, 10, 10, 0.32);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-bottom-color: var(--color-gold);
}

.form__select {
  padding-right: 1.5rem;
}

.form__textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form__hint {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg);
  color: var(--color-ink-soft);
  border-top: 1px solid var(--color-line);
  padding: var(--space-l) 0 var(--space-m);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
}

.footer__brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.footer__brand-logo {
  height: 2.4rem;
  width: auto;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  max-width: 24rem;
}

.footer__heading {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
  margin-bottom: 1rem;
}

.footer__list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-ink);
}

.footer__legal {
  border-top: 1px solid var(--color-line-soft);
  padding-top: var(--space-s);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.45);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .services,
  .stats,
  .offerings,
  .cases {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 2.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .about-grid__photo,
  .about-grid__photo--placeholder {
    max-width: 22rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 20px rgba(10, 10, 10, 0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    display: none;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__links > li {
    width: 100%;
    border-bottom: 1px solid var(--color-line-soft);
  }

  .nav__links > li:last-child {
    border-bottom: none;
  }

  .nav__link {
    display: block;
    padding: 0.9rem var(--space-m);
    font-size: 0.85rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__lang {
    padding: 0.9rem var(--space-m);
  }

  .nav__lang-btn {
    font-size: 0.85rem;
  }

  .nav--open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav--open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .form {
    padding: 1.75rem 1.35rem;
  }

  .hero__actions,
  .form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }
}
