/* Brass Mechanism — Elmcore Emploi International */

:root {
  --gold: #c9a227;
  --gold-light: #e2c066;
  --gold-dark: #8b6914;
  --tobacco: #5c4033;
  --tobacco-light: #8b7355;
  --oxidized: #4a6741;
  --charcoal: #2a2520;
  --charcoal-light: #3d3428;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --ivory: #f5f0e6;
  --ivory-dark: #e8dfd0;
  --walnut: #3d2e24;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 4px;
  --shadow-brass: 0 4px 20px rgba(42, 37, 32, 0.25);
  --transition-gear: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 103, 65, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--oxidized);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--walnut);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--charcoal-light) 0%, var(--charcoal) 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, var(--gold-dark) 2px, transparent 2px);
  background-size: 100% 100%;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-mark::before {
  width: 1px;
  height: 60%;
}

.logo-mark::after {
  width: 60%;
  height: 1px;
}

.logo-text {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.logo-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold);
  color: var(--charcoal) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  transition: transform var(--transition-gear), background 0.2s;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--charcoal) !important;
  transform: rotate(-1deg);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition-gear), background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  top: 50%;
  left: 12px;
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
  transition: opacity 0.2s, transform var(--transition-gear);
}

.btn:hover::before {
  opacity: 0.5;
  transform: translateY(-50%) rotate(90deg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--charcoal);
  border-color: var(--gold-dark);
}

.btn-primary:hover {
  transform: rotate(-0.5deg) scale(1.02);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--tobacco);
  border-color: var(--tobacco-light);
}

.btn-secondary:hover {
  background: var(--ivory-dark);
  transform: rotate(0.5deg);
}

/* Home hero */
.home-hero {
  position: relative;
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-dial {
  position: absolute;
  top: 2rem;
  right: 5%;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
}

.dial-ring {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 50%;
  position: relative;
}

.dial-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 2px;
  background: var(--gold-dark);
  transform-origin: left center;
  transform: translateY(-50%) rotate(-30deg);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home-lead {
  font-size: 1.15rem;
  color: var(--tobacco);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.home-hero-image {
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-brass);
  position: relative;
}

.home-hero-image::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--tobacco-light);
  border-radius: var(--radius);
  pointer-events: none;
}

.home-hero-image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--ivory-dark);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-brass {
  background: linear-gradient(180deg, var(--ivory-dark) 0%, var(--ivory) 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  max-width: none;
}

.section-brass > .section-header,
.section-brass > .card-grid,
.section-brass > .intro-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.25rem;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.brass-card {
  background: var(--ivory);
  border: 1px solid var(--tobacco-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-brass);
  transition: transform 0.3s, border-color 0.3s;
}

.brass-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--ivory-dark), var(--tobacco-light));
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-body time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
}

.card-body h2,
.card-body h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.card-body h2 a,
.card-body h3 a {
  text-decoration: none;
  color: var(--walnut);
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--gold-dark);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.card-details {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.card-details li {
  padding: 0.25rem 0;
  border-bottom: 1px dotted var(--ivory-dark);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Testimonials */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  font-style: italic;
}

.testimonial-muted {
  border-left-color: var(--steel-light);
  opacity: 0.9;
}

.testimonial footer {
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
}

/* CTA panel */
.home-cta {
  padding-bottom: 4rem;
}

.cta-panel {
  background: var(--charcoal-light);
  color: var(--ivory);
  padding: 3rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel h2 {
  color: var(--ivory);
}

.cta-panel p {
  max-width: 50ch;
  margin: 1rem auto 2rem;
  color: var(--ivory-dark);
}

.cta-dial {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.2;
}

/* Page hero */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-hero-compact {
  padding-bottom: 1.5rem;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.service-hero,
.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}

.dial-mark {
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--tobacco);
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--ivory-dark);
  border: 1px solid var(--tobacco-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
}

.hero-figure img {
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-brass);
  background: var(--ivory-dark);
}

.hero-figure-portrait img {
  aspect-ratio: 5/6;
  object-fit: cover;
}

/* Content */
.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.content-wrap.prose h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ivory-dark);
}

.content-wrap.prose ul,
.content-wrap.prose ol {
  padding-left: 1.5rem;
}

.content-wrap.prose li {
  margin-bottom: 0.5rem;
}

.process-list li {
  margin-bottom: 1rem;
}

/* Service detail */
.service-cta-panel {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem 1.5rem;
  background: var(--ivory-dark);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
}

/* Pricing */
.pricing-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px dotted var(--tobacco-light);
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.price-tag span {
  font-size: 0.85rem;
  color: var(--steel);
}

.pricing-list {
  list-style: none;
  padding: 0;
}

.pricing-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ivory-dark);
}

.pricing-cta {
  margin-top: 2rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
}

.review-card footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.review-card footer span {
  display: block;
  color: var(--steel);
  margin-top: 0.25rem;
}

.review-card-muted {
  opacity: 0.85;
}

.case-study {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ivory-dark);
  border-left: 4px solid var(--oxidized);
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1000px;
}

.contact-info address {
  font-style: normal;
}

.contact-hours {
  font-size: 0.95rem;
  color: var(--steel);
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--tobacco);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  border: 1px solid var(--tobacco-light);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #9b2c2c;
}

.field-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #9b2c2c;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.form-status.success {
  background: rgba(74, 103, 65, 0.15);
  border: 1px solid var(--oxidized);
  color: var(--oxidized);
}

.form-status.error {
  background: rgba(155, 44, 44, 0.1);
  border: 1px solid #9b2c2c;
  color: #9b2c2c;
}

/* Legal */
.legal-prose h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--tobacco-light);
  padding: 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: var(--ivory-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Guide CTA */
.guide-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--charcoal-light);
  color: var(--ivory);
  border-radius: var(--radius);
}

.guide-cta h2 {
  color: var(--ivory);
}

/* Error page */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.2em;
}

.error-dial {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  position: relative;
}

.error-dial .dial-ring {
  border-width: 2px;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-name {
  font-size: 1.25rem;
  color: var(--ivory);
  margin: 0 0 0.5rem;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--ivory-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer address {
  font-style: normal;
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--charcoal-light);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal-light);
  border-top: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.08em;
}

.cookie-desc {
  flex: 1;
  min-width: 250px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ivory-dark);
}

.cookie-desc a {
  color: var(--gold-light);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

/* Post footer */
.post-footer {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 1.5rem;
  border-top: 1px solid var(--ivory-dark);
  font-size: 0.95rem;
  color: var(--steel);
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero-inner,
  .page-hero-split,
  .intro-grid,
  .testimonial-strip,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    align-items: flex-start;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .cookies-table {
    font-size: 0.75rem;
  }

  .cookies-table th,
  .cookies-table td {
    padding: 0.5rem;
  }
}
