/* Brass Mechanism — Consultora Panel Cedarpath */

:root {
  --gold: #c9a227;
  --gold-light: #e2c56a;
  --gold-dark: #8a6d1a;
  --tobacco: #5c4033;
  --tobacco-dark: #3d2a22;
  --oxidized: #4a6b5a;
  --oxidized-light: #6b8f7a;
  --charcoal: #2a2520;
  --charcoal-mid: #3d3830;
  --steel: #8a8580;
  --steel-light: #b5b0a8;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --walnut: #4a3728;
  --brass-gradient: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  --shadow-brass: 0 4px 20px rgba(201, 162, 39, 0.15);
  --shadow-deep: 0 8px 32px rgba(42, 37, 32, 0.25);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

.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 {
  background: var(--charcoal);
  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;
}

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

.brand:hover {
  color: var(--gold-light);
}

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

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

.brand-tag {
  font-size: 0.75rem;
  color: var(--steel-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

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

.nav-cta {
  background: var(--brass-gradient);
  color: var(--charcoal) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
}

.nav-cta:hover {
  color: var(--charcoal) !important;
  box-shadow: var(--shadow-brass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  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.15), 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: var(--brass-gradient);
  color: var(--charcoal);
  box-shadow: var(--shadow-brass);
}

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

.btn-secondary {
  background: transparent;
  color: var(--tobacco);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--tobacco-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid var(--gold-light);
}

.btn-outline-light:hover {
  background: rgba(201, 162, 39, 0.15);
  color: var(--ivory);
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--ivory-dark);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.section-dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.section-dark a {
  color: var(--gold-light);
}

.section-header {
  margin-bottom: 2.5rem;
}

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

.section-dark .section-label {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--tobacco-dark);
}

.section-dark .section-title {
  color: var(--ivory);
}

.section-intro {
  margin-top: 0.75rem;
  max-width: 60ch;
  color: var(--steel);
}

.section-dark .section-intro {
  color: var(--steel-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  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 1.5rem 3rem 0;
  max-width: 580px;
}

.hero-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.hero-index span {
  color: var(--oxidized);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--tobacco-dark);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--charcoal-mid);
  margin-bottom: 2rem;
  max-width: 48ch;
}

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

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

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

.card {
  background: var(--ivory);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--charcoal-mid);
}

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

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

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxidized);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--tobacco-dark);
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

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

.card-text {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 1rem;
}

.card-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
}

/* Page hero */
.page-hero {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(201, 162, 39, 0.08));
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.page-hero-text p {
  color: var(--steel-light);
  max-width: 50ch;
}

.page-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
}

.page-hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Content prose */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tobacco-dark);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tobacco);
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

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

.testimonial {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: 0 2px 12px rgba(42, 37, 32, 0.06);
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--charcoal-mid);
}

.testimonial cite {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--tobacco);
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.25rem;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  background: var(--ivory);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--tobacco-dark);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--steel);
}

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

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

.pricing-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tobacco);
  background: var(--ivory-dark);
}

.pricing-table td {
  font-size: 0.95rem;
}

.pricing-note {
  background: rgba(74, 107, 90, 0.08);
  border-left: 3px solid var(--oxidized);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tobacco);
  margin-bottom: 0.4rem;
}

.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 rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  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);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

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

.form-success {
  background: rgba(74, 107, 90, 0.12);
  border: 1px solid var(--oxidized);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--oxidized);
  margin-top: 1rem;
}

.form-failure {
  background: rgba(160, 64, 64, 0.1);
  border: 1px solid #a04040;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: #a04040;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
}

.contact-info a {
  color: var(--gold-light);
}

/* Legal pages */
.legal-content {
  padding: 3rem 0 4rem;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--tobacco-dark);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 2rem;
}

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

.cookies-table th,
.cookies-table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.25);
  text-align: left;
}

.cookies-table th {
  background: var(--ivory-dark);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 1rem 0;
  color: var(--tobacco-dark);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--steel-light);
  border-top: 2px solid var(--gold);
  margin-top: auto;
}

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

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

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-address a {
  color: var(--ivory);
  text-decoration: none;
}

.footer-links {
  list-style: none;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--charcoal-mid);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

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

.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 {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: var(--steel-light);
}

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

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

/* Service detail */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
}

.service-detail-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-facts {
  background: var(--ivory-dark);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.service-facts dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.75rem;
}

.service-facts dt:first-child {
  margin-top: 0;
}

.service-facts dd {
  margin-left: 0;
  color: var(--charcoal-mid);
  font-size: 0.95rem;
}

/* Blog */
.blog-meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxidized);
  margin-bottom: 0.5rem;
}

.blog-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.blog-cover img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .page-hero-inner,
  .contact-grid,
  .service-detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, var(--ivory) 0%, transparent 40%);
  }

  .hero-content {
    padding: 2rem 1.5rem;
    max-width: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    display: none;
  }

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

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

@media (max-width: 600px) {
  .section {
    padding: 2.5rem 0;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}
