/* =========================================================
   Axia 3D Max — 3D printing landing page
   Design system + global styles
   ========================================================= */

/* Color variables come from a theme file (css/themes/*.css), loaded
   before this stylesheet — see index.html. This file only derives
   computed values from them and holds theme-independent constants. */
:root {
  --color-whatsapp: #17823f;
  --color-whatsapp-dark: #126832;

  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-accent) 120%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-secondary-rgb), 0.12));

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --shadow-focus: 0 0 0 3px rgba(var(--color-primary-rgb), 0.35);

  /* Theme-aware shadow used only by the gallery cards and the lightbox dialog
     (see .gallery__item / .lightbox__dialog) — --shadow-color-rgb comes from
     the theme: dark tone for light themes, light tone for dark themes, so it
     stays visible either way instead of blending into a dark page background. */
  --shadow-gallery: 0 4px 14px rgba(var(--shadow-color-rgb), 0.16);
  --shadow-gallery-hover: 0 14px 36px rgba(var(--shadow-color-rgb), 0.20);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-base: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1200px;
  --header-height: 76px;

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
  --transition-slow: 420ms ease;
}

/* Used only for the company name in the hero brand lockup
   (.hero__brand-name) — kept separate from --font-base so the rest of
   the site keeps using system fonts. */
@font-face {
  font-family: "Ethnocentric";
  src: url("../fonts/Ethnocentric-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Basic reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Visible focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

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

/* =========================================================
   Section typography
   ========================================================= */
.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-text-on-dark);
}

.section--dark .section-header__title {
  color: #fff;
}

.section--dark .section-header__subtitle {
  color: var(--color-text-on-dark-muted);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  color: var(--color-primary-light);
  background: rgba(var(--color-primary-light-rgb), 0.12);
}

.section-header__title {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

.btn--email {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--email:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.section--dark .btn--email {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.section--dark .btn--email:hover {
  background-color: #fff;
  color: var(--color-dark);
}

.btn--accent {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

/* The blurred glass background lives on a pseudo-element instead of directly
   on .site-header: filter/backdrop-filter on an element turns it into the
   containing block for any position:fixed descendant, which broke the
   mobile menu's full-viewport overlay (it was sizing itself against the
   ~76px header instead of the screen). An empty pseudo-element has no such
   descendants, so it can't cause that problem. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(var(--color-bg-rgb), 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--transition-base);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled::before {
  background-color: rgba(var(--color-bg-rgb), 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

/* Hidden on desktop, where the brand lockup already lives in the hero.
   Shown only in the mobile header, next to the hamburger button — see
   the max-width: 860px media query below. */
.header-brand {
  display: none;
  align-items: center;
  gap: 8px;
}

.header-brand__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header-brand__name {
  font-family: "Ethnocentric", var(--font-base);
  font-weight: normal;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.main-nav__link:hover {
  background-color: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
}

.main-nav__link.is-active {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switcher {
  display: inline-flex;
}

.theme-switcher__select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 9px 34px 9px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  max-width: 160px;
  text-overflow: ellipsis;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-switcher__select:hover {
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  flex-shrink: 0;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  position: relative;
}

.nav-toggle__bar::before {
  position: absolute;
  top: -7px;
}

.nav-toggle__bar::after {
  position: absolute;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--color-text);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--color-text);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 96px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.05) 0, rgba(var(--color-primary-rgb), 0.05) 1px, transparent 1px, transparent 26px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero__brand {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__brand-logo {
  width: clamp(2.904rem, 1.848rem + 4.62vw, 4.8rem);
  height: clamp(2.904rem, 1.848rem + 4.62vw, 4.8rem);
  flex-shrink: 0;
}

.hero__brand-name {
  font-family: "Ethnocentric", var(--font-base);
  font-weight: normal;
  font-size: clamp(1.32rem, 0.825rem + 2.475vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.hero__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__title .highlight {
  color: var(--color-primary-dark);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero__note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  max-width: 240px;
}

.hero__badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.18);
}

/* =========================================================
   About
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.about__text-block {
  max-width: 74ch;
  margin: 0 auto 48px;
  text-align: center;
}

.about__text-block p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.highlight-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.highlight-card__icon svg {
  width: 22px;
  height: 22px;
}

.highlight-card__label {
  font-weight: 700;
  font-size: 0.96rem;
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-primary-rgb), 0.25);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* =========================================================
   Possibilities / Gallery
   ========================================================= */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

.category-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.category-nav__link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.category-nav__link img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.product-category {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.product-category:last-of-type {
  margin-bottom: 32px;
}

.product-category__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 760px;
}

.product-category__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.product-category__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-category__desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery__item {
  border: 1px solid var(--color-border);
  background: none;
  padding: 0;
  text-align: left;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-gallery);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gallery-hover);
}

.gallery__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.gallery__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__figure img,
.gallery__item:focus-visible .gallery__figure img {
  transform: scale(1.06);
}

.gallery__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(var(--color-dark-rgb), 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
  opacity: 1;
  transform: scale(1);
}

.gallery__zoom svg {
  width: 16px;
  height: 16px;
}

.gallery__caption {
  display: block;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--color-surface);
  color: var(--color-text);
}

.gallery-note {
  max-width: 860px;
  margin: 40px auto 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-gallery-hover);
  color: var(--color-text-on-dark);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(17, 17, 20, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color var(--transition-fast);
}

.lightbox__close:hover {
  background-color: rgba(17, 17, 20, 0.65);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.lightbox__figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.lightbox__body {
  padding: 24px 28px 28px;
}

.lightbox__category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.lightbox__title {
  font-size: 1.3rem;
  font-weight: 800;
}

/* =========================================================
   How it works (timeline)
   ========================================================= */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  opacity: 0.4;
}

.timeline__step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.timeline__number {
  counter-increment: step;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.timeline__number::before {
  content: counter(step);
}

.timeline__title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
  color: #fff;
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--color-text-on-dark-muted);
}

/* =========================================================
   Quote
   ========================================================= */
/* Form */
.quote-form {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.quote-form__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.quote-form__intro {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-field .required {
  color: var(--color-accent-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #dc2626;
}

.form-error {
  font-size: 0.82rem;
  color: #dc2626;
  min-height: 1.1em;
  font-weight: 600;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-file-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 20px 0;
}

.form-file-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.quote-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.quote-form__status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.quote-form__status.is-error {
  color: #dc2626;
}

.quote-form__status.is-success {
  color: #15803d;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.faq-item__icon svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  background-color: var(--color-primary);
  color: #fff;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon svg {
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}

.faq-item__panel[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__answer {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 4px;
}

.contact-card__value {
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
}

.contact-card__value a:hover {
  text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background-color: var(--color-dark-alt);
  color: var(--color-text-on-dark-muted);
  padding: 64px 0 28px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-disclaimer {
  max-width: 90ch;
  opacity: 0.85;
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-whatsapp);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--transition-base), background-color var(--transition-fast);
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-3px) scale(1.02);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float__text {
  white-space: nowrap;
}

/* =========================================================
   Scroll reveal animations
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .highlight-card:hover,
  .service-card:hover,
  .gallery__item:hover,
  .whatsapp-float:hover {
    transform: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Responsiveness
   ========================================================= */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .timeline::before {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 32px 24px;
  }
}

@media (max-width: 860px) {
  /* .main-nav becomes position:fixed below, which takes it out of the
     flex flow entirely — .header-actions ends up as the only flex item
     in .site-header__inner, and a lone item under justify-content:
     space-between doesn't reliably land at the end. Push it there
     explicitly so the hamburger button stays flush right. */
  .header-brand {
    display: flex;
  }

  /* Now shown in the header instead — avoid showing the lockup twice. */
  .hero__brand {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 24px;
  }

  .main-nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-switcher__select {
    max-width: 92px;
    padding: 9px 30px 9px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 64px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__badge {
    left: 12px;
    bottom: -14px;
    padding: 12px 14px;
    max-width: 200px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 14px;
  }

  .whatsapp-float__text {
    display: none;
  }

  .quote-form {
    padding: 24px 18px;
  }

  .btn {
    width: 100%;
  }

  .hero .btn-group .btn {
    width: 100%;
  }
}

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