/* Brass Mechanism — Consultora Page Ridgefield */
:root {
  --gold: #b8860b;
  --gold-light: #c9a227;
  --gold-dark: #8b6914;
  --brass: #a67c00;
  --walnut: #3d2b1f;
  --walnut-light: #5c4033;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --oxidized: #4a5d4a;
  --charcoal: #1a1814;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --text: #2a2318;
  --text-muted: #5a5248;
  --border: #c4b896;
  --shadow: rgba(26, 24, 20, 0.12);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 93, 74, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

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

a {
  color: var(--gold-dark);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--walnut) 0%, #2a1f16 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px var(--shadow);
}

.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;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo:hover { color: var(--ivory); }

.logo-mark { color: var(--gold-light); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius);
}

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

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

.main-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

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

.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-light);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-light);
}

.main-nav .nav-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::before {
  transform: translate(-50%, -50%) scale(3) rotate(90deg);
  opacity: 0.3;
}

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

.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 12px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--walnut);
  border-color: var(--walnut-light);
}

.btn-secondary:hover {
  background: var(--walnut);
  color: var(--ivory);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

.footer-desc { margin: 0; font-size: 0.9rem; opacity: 0.85; }

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

.site-footer address { font-style: normal; font-size: 0.9rem; }
.site-footer address p { margin: 0.35rem 0; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

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

.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid var(--walnut-light);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  min-height: 400px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--ivory) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem 1rem;
  max-width: 580px;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxidized);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--walnut);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 42ch;
}

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

.hero-dial {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 80px;
  height: 80px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 24, 20, 0.7);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* Sections */
section { padding: 4rem 1.5rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--walnut);
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.section-alt {
  background: linear-gradient(180deg, var(--ivory-dark) 0%, var(--ivory) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--walnut);
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gold-dark);
}

.card-link:hover { color: var(--gold); }

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

.testimonial {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1.75rem;
  border-radius: var(--radius);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  padding-top: 1.5rem;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.testimonial cite strong {
  color: var(--walnut);
  display: block;
}

/* Stats strip — engraved style */
.engraved-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  background: var(--walnut);
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}

.engraved-item {
  text-align: center;
  color: var(--ivory);
}

.engraved-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
}

.engraved-item .label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Page content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--walnut);
  margin: 0.5rem 0;
}

.page-header .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--gold-dark); text-decoration: none; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--walnut);
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--walnut-light);
  margin: 1.5rem 0 0.5rem;
}

.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }

/* Service detail */
.service-hero-img,
.blog-hero-img {
  margin: 0 0 2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 1.25rem;
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.service-cta-block {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--walnut) 0%, var(--charcoal) 100%);
  color: var(--ivory);
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}

.service-cta-block h2 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.service-cta-block p { margin: 0 0 1.25rem; opacity: 0.9; }

/* Process page */
.process-timeline {
  position: relative;
  padding-left: 2rem;
}

.process-step {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.process-step:last-child { border-left-color: transparent; padding-bottom: 0; }

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: -1.6rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--walnut);
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.process-step h3 {
  font-family: var(--font-display);
  color: var(--walnut);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.process-step p { margin: 0; color: var(--text-muted); }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contact-info address {
  font-style: normal;
  margin-bottom: 1.5rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--walnut);
  margin: 0 0 1rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--walnut);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #a04040;
}

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

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

.form-message.success {
  display: block;
  background: #e8f0e8;
  border: 1px solid var(--oxidized);
  color: var(--oxidized);
}

.form-message.error {
  display: block;
  background: #f5e8e8;
  border: 1px solid #a04040;
  color: #802020;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  font-family: var(--font-display);
  background: var(--walnut);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.pricing-table tr:hover td { background: var(--ivory-dark); }

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem;
  background: var(--ivory-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

/* Legal pages */
.legal-page .prose h2 { font-size: 1.2rem; }

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.cookies-table th {
  background: var(--ivory-dark);
  font-weight: 600;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  margin: 0;
}

.error-page p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: var(--ivory);
  border-top: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px var(--shadow);
}

.cookie-banner[hidden] { display: none; }

.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;
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-inner a { color: var(--gold-light); }

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

/* Wide page layout */
.page-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-wide .page-header { max-width: 800px; }

/* Blog listing */
.blog-list time {
  font-size: 0.85rem;
  color: var(--steel);
  display: block;
  margin-bottom: 0.35rem;
}

/* Process hero */
.process-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  margin-bottom: 0;
}

.process-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ivory) 0%, transparent 60%);
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--walnut);
    border-bottom: 2px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open { max-height: 400px; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
  }

  .main-nav a { padding: 0.75rem 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual { min-height: 260px; order: -1; }
  .hero-visual::after { background: linear-gradient(0deg, var(--ivory) 0%, transparent 40%); }
  .hero-content { padding: 2rem 1.5rem; max-width: none; }

  .contact-layout { grid-template-columns: 1fr; }

  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
