/* Brass Mechanism — Consultora Workspace Elmfield */

:root {
  --gold: #c9a227;
  --gold-light: #d4af37;
  --gold-dark: #8b6914;
  --brass: #b8860b;
  --walnut: #2c2416;
  --walnut-mid: #3d3225;
  --steel: #5c5c5c;
  --steel-light: #8a8a8a;
  --oxidized: #4a5d4a;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --charcoal: #1a1814;
  --error: #8b3a3a;
  --success: #3a5d3a;
  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--charcoal);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--walnut) 0%, var(--charcoal) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--gold-light);
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: color var(--transition);
}

a:hover {
  color: var(--ivory);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--charcoal);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 24, 20, 0.92);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.25rem;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--ivory-dark);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--walnut);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    padding: 1rem 1.5rem;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
  animation: gear-spin 0.6s ease-out;
}

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(90deg); }
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 16px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--steel-light);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Layout sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: "§ ";
  color: var(--gold-dark);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero-content {
  order: 1;
}

.hero-visual {
  order: 2;
  position: relative;
}

.hero-frame {
  border: 2px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 0.5rem;
  background: var(--walnut-mid);
  box-shadow: var(--shadow), inset 0 0 30px rgba(201, 162, 39, 0.08);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
}

.hero-frame::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-dial {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.hero-dial-item {
  text-align: center;
}

.hero-dial-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
}

.hero-dial-label {
  font-size: 0.75rem;
  color: var(--steel-light);
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: 0; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--walnut-mid);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--steel-light);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card-title a {
  text-decoration: none;
  color: var(--ivory);
}

.card-title a:hover {
  color: var(--gold-light);
}

/* Page header */
.page-header {
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.page-header h1 {
  margin: 0 0 0.75rem;
}

.page-header p {
  max-width: 640px;
  color: var(--ivory-dark);
  margin: 0;
}

/* Brass panel */
.brass-panel {
  background: linear-gradient(135deg, var(--walnut-mid), var(--walnut));
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.brass-panel::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* Testimonials */
.testimonial {
  padding: 1.5rem;
  border-left: 3px solid var(--gold-dark);
  background: rgba(44, 36, 22, 0.6);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--steel-light);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--ivory-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ivory);
  background: var(--charcoal);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

.form-error {
  color: #d48484;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-status--success {
  background: rgba(58, 93, 58, 0.3);
  border: 1px solid var(--success);
}

.form-status--error {
  background: rgba(139, 58, 58, 0.3);
  border: 1px solid var(--error);
}

/* Legal pages */
.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.legal-content th {
  background: var(--walnut-mid);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  text-align: left;
}

.pricing-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--walnut);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--steel-light);
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ivory-dark);
}

address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ivory-dark);
}

address p { margin: 0 0 0.35rem; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: var(--steel-light);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--walnut);
  border-top: 2px solid var(--gold-dark);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Service detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.detail-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.detail-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.detail-meta-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  font-size: 0.9rem;
}

.detail-meta-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.placeholder-image {
  background: linear-gradient(135deg, var(--walnut-mid), var(--walnut));
  border: 1px dashed rgba(201, 162, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-light);
  font-size: 0.85rem;
  aspect-ratio: inherit;
  width: 100%;
}
