/* UI refinements layered after the original green theme. */
html { scroll-padding-top: 104px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 80px;
  gap: 24px;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(18,29,34,.08);
}
.brand-original { max-width: 100%; gap: 0; }
.brand-logo { display: block; width: 250px; max-width: 100%; height: auto; }
.site-footer .brand-original { flex-shrink: 1; }
.site-footer .brand-logo { width: 240px; filter: brightness(0) invert(1); }
.header-cta { flex-shrink: 0; white-space: nowrap; }
.desktop-nav { flex-shrink: 0; }
.desktop-nav a[aria-current="location"]::after { width: 100%; height: 3px; background: #658129; }
.mobile-nav a[aria-current="location"] { background: #e5efc9; }
.mobile-nav { display: none; top: 100%; max-height: calc(100svh - 84px); overflow-y: auto; overscroll-behavior: contain; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions .button-outline { color: #fff; border-color: #a7b5bb; background: rgba(7,18,24,.22); }
.hero-actions .button-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.service-mobile-image { display: none; }
.service-visual[hidden] { display: none; }
.services-grid.is-collapsed { grid-template-columns: minmax(0, 1fr); }
.service h3 button > span:first-child { min-width: 0; }
.project-grid > *, .application-card { min-width: 0; }

.file-guide { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.file-guide > :is(h2,h3) { font-size: 24px; font-weight: 550; letter-spacing: -.035em; line-height: 1.3; }
.file-guide > p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.file-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.file-guide-card { min-width: 0; padding: 23px 24px; border: 1px solid var(--line); background: #fff; }
.file-guide-card :is(h3,h4) { margin: 0 0 12px; font-family: var(--heading); font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.file-guide-card p { font-size: 15px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.file-guide-card small { display: block; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }

.contact-links { display: grid; gap: 10px; margin-top: 30px; }
.contact-link { display: block; min-width: 0; min-height: 72px; padding: 13px 16px; border: 1px solid #b7c69b; background: rgba(255,255,255,.3); transition: background .2s; }
.contact-link:hover { background: rgba(255,255,255,.65); }
.contact-link small { display: block; margin-bottom: 3px; color: #4f6035; font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.contact-link strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.brief-actions .button { min-height: 44px; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; border-top: 1px solid #ffffff25; padding: 22px 0; color: #dbe4e7; font-size: 14px; }
.footer-contact > * { min-width: 0; overflow-wrap: anywhere; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact small { color: #a9b6bb; font-size: 12px; }

@media (min-width: 721px) and (max-width: 1050px) {
  .site-header { gap: 16px; }
  .site-header .brand-logo { width: 200px; }
  .desktop-nav { gap: 18px; font-size: 13px; }
  .header-cta { padding-inline: 16px; font-size: 13px; }
  .footer-top { gap: 40px; }
  .file-guide-card { padding: 21px 18px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 88px; }
  .site-header { height: 72px; gap: 10px; }
  .site-header .brand-logo { width: 148px; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 9px 12px; margin-left: auto; font-size: 12px; }
  .menu-toggle { flex-shrink: 0; }
  .mobile-nav { gap: 4px; padding-top: 10px; }
  .mobile-nav:not([hidden]) { display: flex; }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; }
  .site-footer .brand-logo { width: 210px; }

  .hero { height: auto; min-height: min(680px,calc(100svh - 72px)); max-height: none; flex-direction: column; align-items: stretch; }
  .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(44px,8svh,72px) 0 34px; }
  .hero h1 { margin-block: 24px 22px; }
  .hero-copy { margin-bottom: 26px; }
  .desktop-break { display: none; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .button { padding-inline: 18px; }
  .hero-bottom { position: relative; inset: auto; padding-bottom: 24px; }

  .services-grid { gap: 0; }
  .service-visual { display: none; }
  .service-mobile-image { display: block; width: 100%; height: auto; object-fit: contain; margin: 0 0 22px; background: var(--ink); }
  .service-mobile-image[src*="laser-hero"] { object-position: 75% center; }
  .service-mobile-image[src*="mechanical-design"], .service-mobile-image[src*="reverse-engineering"] { object-position: center; }
  .service-body { padding-right: 0; }
  .service.is-active h3 button { color: #4c6327; }
  .application-card h3 br { display: block; }

  .file-guide { margin-top: 34px; padding-top: 26px; }
  .file-guide-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .file-guide-card { padding: 22px; }
  .contact-links { margin-top: 26px; }
  .footer-top > p { margin-left: 0; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 380px) {
  .site-header .brand-logo { width: min(180px,58vw); }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero-actions .button { width: 100%; }
  .brief-actions .button { flex: 1 1 100%; }
}

@media print {
  .site-header { position: static; box-shadow: none; }
}

/* Subtle corners and a local WhatsApp icon, shared by both current versions. */
:root { --radius-control: 6px; --radius-panel: 10px; }
.button, .menu-toggle, .skip-link, .mobile-nav a,
.form-grid input, .form-grid select, .form-grid textarea,
.brief-result textarea { border-radius: var(--radius-control); }
.tags span { border-radius: 4px; }
.file-guide-card, .contact-link, .project-form,
.application-grid, .application-card,
.service-visual, .service-mobile-image, .service-mobile-media {
  border-radius: var(--radius-panel);
}
.contact-link .contact-number { display: flex; align-items: center; gap: 9px; }
.whatsapp-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
#send-whatsapp { gap: 8px; }
#send-whatsapp .whatsapp-icon { filter: brightness(0) invert(1); }

/* Expanded charcoal footer: useful links, compact mobile groups. */
.footer-expanded { padding-top: 64px; }
.footer-expanded .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .95fr 1.2fr;
  align-items: start;
  gap: clamp(24px,3vw,44px);
  padding-bottom: 46px;
}
.footer-grid > * { min-width: 0; }
.footer-expanded .brand-logo { width: 220px; }
.footer-tagline { font-size: 21px; line-height: 1.4; letter-spacing: -.025em; margin-top: 26px; }
.footer-description { color: #a9b9c0; font-size: 14px; line-height: 1.8; max-width: 29ch; margin-top: 16px; }
.footer-group h3 { margin: 0 0 18px; font-family: var(--font); font-size: 14px; font-weight: 650; letter-spacing: 0; line-height: 1.5; }
.footer-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin: 0; padding: 0; border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--paper); text-align: left;
  font: inherit; cursor: pointer;
}
.footer-toggle:disabled { cursor: default; opacity: 1; -webkit-text-fill-color: var(--paper); }
.footer-toggle-icon { display: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links[hidden] { display: none; }
.footer-links a:not(.button) { display: block; min-height: 32px; padding-block: 5px; color: #bfccd1; font-size: 14px; line-height: 1.6; transition: color .2s ease; }
.footer-links a:not(.button):hover { color: var(--lime); }
.footer-contact-list { gap: 16px; }
.footer-contact-list a:not(.button) { padding-block: 0; }
.footer-contact-label { display: block; color: #8fa3ad; font-size: 10px; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; margin-bottom: 5px; }
.footer-contact-value { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.6; }
.footer-email { display: block; overflow-wrap: anywhere; }
.site-footer .whatsapp-icon { filter: brightness(0) invert(1); }
.footer-quote { min-height: 44px; padding: 10px 18px; font-size: 13px; margin-top: 4px; }
.footer-expanded .footer-bottom { align-items: center; }
.footer-expanded .back-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.service, #file-guide { scroll-margin-top: 16px; }

@media (min-width: 721px) and (max-width: 1100px) {
  .footer-expanded .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px 52px; }
  .footer-description { max-width: 34ch; }
}
@media (max-width: 720px) {
  .footer-expanded { padding-top: 42px; }
  .footer-expanded .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 28px; }
  .footer-brand-column { padding-bottom: 30px; }
  .footer-expanded .brand-logo { width: 210px; }
  .footer-tagline { font-size: 21px; margin-top: 23px; }
  .footer-description { max-width: 36ch; margin-top: 12px; }
  .footer-group { border-top: 1px solid #ffffff25; }
  .footer-group h3 { margin: 0; }
  .footer-toggle { min-height: 64px; padding-block: 18px; }
  .footer-toggle:not(:disabled) .footer-toggle-icon { display: block; position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
  .footer-toggle-icon::before, .footer-toggle-icon::after { content: ''; position: absolute; background: currentColor; }
  .footer-toggle-icon::before { width: 12px; height: 1px; left: 1px; top: 6px; }
  .footer-toggle-icon::after { width: 1px; height: 12px; left: 6px; top: 1px; }
  .footer-toggle[aria-expanded="true"] .footer-toggle-icon::after { display: none; }
  .footer-links { gap: 0; padding-bottom: 18px; }
  .footer-links a:not(.button) { min-height: 44px; display: block; padding-block: 10px; }
  .footer-contact-list { gap: 18px; }
  .footer-contact-list a:not(.button) { display: block; padding-block: 0; }
  .footer-contact-list li:last-child { padding-top: 2px; }
  .footer-expanded .footer-bottom { align-items: flex-start; gap: 10px; }
}
@media print {
  .footer-links[hidden] { display: grid; }
  .footer-toggle-icon { display: none !important; }
}

/* FAQ: native keyboard-accessible disclosure cards, no extra JavaScript. */
.faq-section { background: #edf2ef; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.35fr; align-items: start; gap: clamp(40px,6vw,88px); }
.faq-intro.section-heading { display: block; }
.faq-intro.section-heading > .eyebrow { padding-top: 0; }
.faq-intro h2 { margin-top: 25px; font-size: clamp(34px,3.2vw,48px); line-height: 1.2; }
.faq-intro > p:not(.eyebrow) { margin-top: 20px; max-width: 30ch; font-size: 16px; line-height: 1.75; color: var(--muted); }
.faq-intro .text-link { display: inline-block; margin-top: 24px; padding-block: 8px; }
.faq-list { display: grid; gap: 12px; min-width: 0; }
.faq-item { border: 1px solid #cfdad3; border-radius: var(--radius-panel); background: rgba(255,255,255,.65); }
.faq-item[open] { background: #fff; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 72px; padding: 20px 24px; border-radius: inherit;
  color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #4c6327; }
.faq-item summary:focus-visible { outline: 3px solid var(--focus-ring,#4c6327); outline-offset: 4px; }
.faq-item[open] summary { padding-bottom: 12px; color: #4c6327; }
.faq-toggle-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq-toggle-icon::before, .faq-toggle-icon::after { content: ''; position: absolute; background: currentColor; }
.faq-toggle-icon::before { width: 14px; height: 1px; left: 1px; top: 7px; }
.faq-toggle-icon::after { width: 1px; height: 14px; left: 7px; top: 1px; }
.faq-item[open] .faq-toggle-icon::after { display: none; }
.faq-answer { padding: 0 24px 23px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a { color: var(--ink); font-weight: 550; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro > p:not(.eyebrow) { max-width: 44ch; }
}
@media (max-width: 720px) {
  .faq-intro h2 { font-size: 36px; }
  .faq-item summary { gap: 16px; min-height: 68px; padding: 18px; }
  .faq-answer { padding: 0 18px 20px; }
}

/* Visible keyboard focus on both light and dark surfaces. */
:root { --focus-ring: #4c6327; }
.hero, .print-feature, .approach, .site-footer { --focus-ring: #dcf879; }
.hero :focus-visible, .print-feature :focus-visible {
  box-shadow: 0 0 0 5px #121d22;
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}
