/* Brass Mechanism — Havenway Transfert d'Entreprise */

:root {
  --gold: #c9a227;
  --gold-light: #e2c56a;
  --gold-dark: #8a7018;
  --tobacco: #4a3728;
  --tobacco-light: #6b5344;
  --green-oxide: #4a5d4a;
  --charcoal: #1e1a16;
  --charcoal-soft: #2a2318;
  --steel: #8a8f94;
  --ivory: #f4efe4;
  --ivory-dark: #e8dfd0;
  --walnut: #3d2e22;
  --error: #8b3a3a;
  --success: #3d5a3d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 2px;
  --shadow: 0 4px 24px rgba(30, 26, 22, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(74, 93, 74, 0.05) 0%, transparent 40%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.narrow { width: min(720px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.95);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  background: var(--charcoal-soft);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.brand-mark::before {
  width: 2px;
  height: 12px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.brand-mark::after {
  width: 8px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.6rem; color: var(--tobacco-light); text-transform: uppercase; letter-spacing: 0.1em; }

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--tobacco);
  font-size: 0.95rem;
  position: relative;
}

.site-nav a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }

.nav-cta {
  background: var(--charcoal-soft);
  color: var(--ivory) !important;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold);
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--gold-dark);
  color: var(--ivory) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: transform var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition), transform 0.2s;
}

.btn::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  opacity: 0;
  transition: left 0.4s ease, opacity 0.3s;
}

.btn:hover::before,
.btn:focus-visible::before {
  left: 8px;
  opacity: 0.6;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  font-weight: 500;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--charcoal-soft);
  color: var(--ivory);
}

.btn-secondary:hover {
  background: var(--walnut);
  color: var(--ivory);
}

.btn-ghost {
  background: transparent;
  color: var(--tobacco);
  border-color: var(--steel);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.btn-block { width: 100%; }

/* Hero Home */
.hero-home {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 70vh;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}

.hero-dial {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 90px;
  height: 90px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(30, 26, 22, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.dial-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.dial-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom right, var(--ivory), var(--ivory-dark));
  border-left: 1px solid rgba(201, 162, 39, 0.2);
}

.hero-kicker { color: var(--green-oxide); margin-bottom: 0.5rem; }
.hero-lead { font-size: 1.05rem; color: var(--tobacco); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-brass { background: linear-gradient(180deg, var(--ivory-dark) 0%, var(--ivory) 100%); border-block: 1px solid rgba(201, 162, 39, 0.2); }
.section-dark { background: var(--charcoal-soft); color: var(--ivory); }
.section-dark a { color: var(--gold-light); }
.section-dark h2 { color: var(--ivory); }

.section-header { margin-bottom: 2.5rem; max-width: 60ch; }
.section-kicker { color: var(--gold-dark); margin-bottom: 0.5rem; }
.section-cta { margin-top: 2rem; }

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  background: linear-gradient(180deg, var(--ivory-dark), var(--ivory));
}

.page-kicker { color: var(--gold-dark); margin-bottom: 0.5rem; }
.page-lead { font-size: 1.1rem; color: var(--tobacco); max-width: 55ch; }

.page-hero-image { padding: 0; position: relative; }
.hero-image-wrap { max-height: 420px; overflow: hidden; }
.hero-image-wrap img { width: 100%; height: 420px; object-fit: cover; filter: sepia(0.12); }
.hero-overlay-content {
  position: relative;
  margin-top: -4rem;
  background: rgba(244, 239, 228, 0.94);
  padding: 2rem;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card, .blog-card {
  background: var(--ivory);
  border: 1px solid rgba(201, 162, 39, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover, .blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--charcoal-soft);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-body { padding: 1.25rem; }
.card-body h2, .card-body h3 { margin-top: 0; color: var(--charcoal); }
.card-body p { color: var(--tobacco); font-size: 0.95rem; margin-bottom: 0.75rem; }
.card-meta { color: var(--gold-dark); }
.card-date { color: var(--steel); display: block; margin-bottom: 0.5rem; }

.card-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.card-details li {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  color: var(--tobacco);
}

.card-details span { color: var(--gold-dark); margin-right: 0.5rem; }

.service-card-flagship { border-color: var(--gold); }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: var(--ivory);
  position: relative;
}

.feature-index {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Split */
.split-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ivory-dark);
}

.split-stats {
  display: grid;
  gap: 1rem;
}

.stat-plate {
  padding: 1.25rem;
  border: 1px solid var(--gold);
  background: rgba(30, 26, 22, 0.5);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--steel);
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.link-arrow::after { content: " →"; }

/* Detail pages */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.detail-main h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.detail-main h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.process-list, .check-list, .dash-list {
  padding-left: 1.25rem;
}

.check-list li::marker { color: var(--green-oxide); }
.dash-list li::marker { color: var(--steel); }

.info-plate {
  position: sticky;
  top: 5rem;
  padding: 1.5rem;
  background: var(--charcoal-soft);
  color: var(--ivory);
  border: 1px solid var(--gold);
}

.info-plate dl { margin: 0 0 1.5rem; }
.info-plate dt { color: var(--gold-light); margin-top: 0.75rem; }
.info-plate dt:first-child { margin-top: 0; }
.info-plate dd { margin: 0.15rem 0 0; }
.sidebar-note { font-size: 0.8rem; color: var(--steel); margin-top: 1rem; }

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.timeline-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.timeline-index {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  background: var(--ivory);
}

/* Pricing */
.pricing-table { border: 1px solid rgba(201, 162, 39, 0.3); }

.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.pricing-row:last-child { border-bottom: none; }
.pricing-name h2 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.pricing-name p { margin: 0; font-size: 0.85rem; color: var(--tobacco-light); }
.pricing-amount { font-size: 1.1rem; color: var(--gold-dark); white-space: nowrap; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.review-card p { margin: 0.75rem 0; }
.review-card footer { font-size: 0.85rem; color: var(--tobacco-light); }
.review-card cite { font-style: normal; font-weight: 600; display: block; }
.review-role { display: block; margin-top: 0.25rem; }
.review-service { display: block; margin-top: 0.5rem; color: var(--gold-dark); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Blog article */
.article-header { margin-bottom: 2rem; }
.article-hero-image { max-height: 400px; overflow: hidden; }
.article-hero-image img { width: 100%; height: 400px; object-fit: cover; }
.article-meta { color: var(--tobacco-light); font-size: 0.9rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; }
.tag {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 0.65rem;
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info address { font-style: normal; }
.contact-hours { font-size: 0.9rem; color: var(--tobacco-light); margin-top: 1.5rem; }

.contact-form {
  padding: 2rem;
  background: var(--ivory-dark);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--tobacco);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
}

.form-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--success);
  color: var(--ivory);
  font-size: 0.9rem;
}

.form-status-error {
  background: var(--error);
}

/* About portrait */
.about-portrait img {
  border: 2px solid var(--gold);
  filter: sepia(0.08);
}

.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 1rem;
}

.legal-dl dd { margin: 0.25rem 0 0; }

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: var(--ivory-dark);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

/* CTA block */
.section-cta-block {
  background: linear-gradient(135deg, var(--charcoal-soft), var(--walnut));
  color: var(--ivory);
  text-align: center;
}

.cta-inner h2 { color: var(--ivory); }
.cta-inner p { color: var(--steel); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--steel);
  padding: 3rem 0 1.5rem;
  border-top: 2px solid var(--gold-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-bottom: 2rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.5rem;
}

.footer-tagline { font-size: 0.85rem; margin: 0; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.site-footer address a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.site-footer address a:hover { color: var(--gold-light); }

.site-footer address { font-style: normal; font-size: 0.9rem; }
.site-footer address p { margin: 0 0 0.5rem; }

.footer-bottom {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.8rem;
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--charcoal-soft);
  border-top: 2px solid var(--gold);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.cookie-title {
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.35rem;
}

.cookie-text p { margin: 0; color: var(--steel); font-size: 0.9rem; }
.cookie-text a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Error page */
.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page .hero-actions { justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-visual { max-height: 320px; }
  .feature-row { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .info-plate { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-row { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--gold);
    padding: 1rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
