/* ==========================================================================
   COMPONENTS (Buttons, Cards, Inputs)
   ========================================================================== */

/* 1. Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(30, 67, 52, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 67, 52, 0.25);
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-primary i {
  transition: transform 0.3s ease;
  z-index: 2;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-link i {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.btn-link:hover i {
  transform: translateX(4px);
}

/* 2. Editorial Cards */
.card-editorial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

/* Branded corner accent — reads as “spec sheet” framing */
.card-editorial::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, transparent 48%, rgba(179, 141, 70, 0.12) 48%, rgba(179, 141, 70, 0.12) 52%, transparent 52%);
  pointer-events: none;
}

.card-editorial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--line-strong);
}

.card-editorial__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.card-editorial:hover .card-editorial__icon {
  background: var(--accent);
  color: #fff;
}

.card-editorial__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.card-editorial__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* 3. Section Headers (Modern) */
.section-head {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
  z-index: 10;
  clear: both;
  transform: translateZ(0); /* Fix z-index rendering issues */
}

.section-head--left {
  text-align: left;
  margin-left: 0;
}

.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.section-head__lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Gold rule under key section kickers — ties headlines to the brand lane */
.why-choose > .container > .section-head .section-head__eyebrow,
.services--ops > .container > .section-head .section-head__eyebrow,
.products--cards > .container > .section-head .section-head__eyebrow,
.contact > .container > .section-head .section-head__eyebrow {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

.why-choose > .container > .section-head .section-head__eyebrow::after,
.services--ops > .container > .section-head .section-head__eyebrow::after,
.products--cards > .container > .section-head .section-head__eyebrow::after,
.contact > .container > .section-head .section-head__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-head--left .section-head__eyebrow {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

.section-head--left .section-head__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(179, 141, 70, 0.2));
}

/* FAQ — native <details>, no JS */
.faq-section {
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.faq-section > .container > .section-head .section-head__eyebrow {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

.faq-section > .container > .section-head .section-head__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.faq-accordion {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-a p {
  margin: 0;
}

.faq-a p + p {
  margin-top: 0.65rem;
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
