/* S.M Electric — mobile-first, premium RTL */

:root {
  --bg: #0a0d10;
  --bg-elevated: #12171e;
  --bg-card: #0e1218;
  --text: #eef2f6;
  --text-muted: #8b96a3;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --gold-line: rgba(201, 162, 39, 0.45);
  --accent: #d4b44a;
  --accent-hover: #e8c85c;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --tap-min: 48px;
  --container: min(1120px, calc(100% - 1.5rem));
  --font-body: "Heebo", system-ui, sans-serif;
  --font-display: "Frank Ruhl Libre", "Heebo", Georgia, serif;
  --shadow-soft: 0 32px 64px rgba(0, 0, 0, 0.45);
  --transition: 0.22s ease;
}

@media (min-width: 768px) {
  :root {
    --container: min(1120px, calc(100% - 3rem));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

::selection {
  background: var(--gold-soft);
  color: var(--text);
}

h1,
h2,
h3,
.section-title,
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#main {
  min-width: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #1a1508;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 200;
  transform: translateY(-120%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(10, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #1a1508;
  background: linear-gradient(145deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
  min-width: 0;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo:hover .logo-name {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
}

.site-header.nav-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  min-height: var(--tap-min);
  line-height: var(--tap-min);
  padding-inline: 0.75rem;
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.nav-cta {
  margin-top: 0.35rem;
  text-align: center;
  line-height: 1.2 !important;
  min-height: var(--tap-min);
  padding-block: 0.85rem !important;
  background: var(--gold-soft) !important;
  border: 1px solid var(--gold-line) !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.22) !important;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-list a {
    min-height: auto;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
  }

  .nav-cta {
    margin-top: 0;
    margin-inline-start: 0.35rem;
    padding: 0.5rem 1rem !important;
    min-height: auto !important;
    border-radius: 999px !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.75rem, 9vw, 5.5rem) 0 clamp(3.25rem, 11vw, 6.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(201, 162, 39, 0.11), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 40%, rgba(80, 120, 180, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #080a0c 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(145deg, #e0c65e 0%, var(--gold) 45%, #a8861c 100%);
  color: #141008;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.35);
  color: #141008;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--accent);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .hero-aside {
    align-items: stretch;
  }
}

.hero-panel {
  padding: 1.65rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
}

.hero-panel-label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-panel-list li {
  position: relative;
  padding-inline-start: 1.1rem;
}

.hero-panel-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.hero-stats-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 420px) {
  .hero-stats-wrap {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1rem;
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 16ch;
}

/* Trust */
.trust {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  margin: 0;
  padding: 1.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.trust-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.trust-icon {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.trust-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.trust-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: clamp(3.25rem, 9vw, 5.5rem) 0;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}

.section-intro {
  margin: 0 0 2.25rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.subsection-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.subsection-title-spaced {
  margin-top: 2.75rem;
}

.home-topic-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  max-width: 640px;
}

.home-topic-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  display: block;
}

@media (max-width: 520px) {
  .home-topic-shots {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.services {
  background: var(--bg);
}

.service-grid {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .service-grid,
  .service-grid-comm {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.5;
}

.service-card-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.about-inner {
  max-width: 68ch;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-copy .section-title {
  color: var(--text);
}

.about-list {
  margin: 1.5rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
}

.about-list li {
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.faq-inner {
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  margin: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap-min);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  padding: 0 1.25rem 1.2rem;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-inner {
  max-width: 540px;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 480px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .contact-form .btn-primary {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  min-height: var(--tap-min);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 3px), calc(100% - 0.85rem) calc(50% - 3px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 2.25rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.contact-direct {
  margin: 0;
  text-align: center;
}

@media (min-width: 480px) {
  .contact-direct {
    text-align: start;
  }
}

.contact-phone {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
}

.contact-phone:hover {
  color: var(--accent-hover);
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

@media (min-width: 480px) {
  .contact-channels {
    justify-content: flex-start;
  }
}

.contact-sep {
  color: var(--text-muted);
  user-select: none;
}

.contact-email {
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-all;
  color: var(--accent);
}

.contact-email:hover {
  color: var(--accent-hover);
}

.contact-maps {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-maps:hover {
  color: var(--accent-hover);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #080a0c;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: start;
  }
}

.footer-brand {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
}

.footer-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 280px;
}

@media (min-width: 640px) {
  .footer-meta {
    text-align: end;
    max-width: 420px;
  }
}

.footer-meta a {
  color: var(--text-muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Nav active */
.nav-list a.nav-current {
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
}

@media (min-width: 768px) {
  .nav-list a.nav-current {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--accent);
  }
}

/* Inner pages */
.page-hero {
  position: relative;
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero--compact {
  padding-bottom: clamp(1.25rem, 4vw, 2rem);
}

.breadcrumb ol {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.5rem;
  opacity: 0.45;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.page-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-visuals-section {
  padding-block-end: clamp(1.25rem, 3vw, 2rem);
}

.page-gallery {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  min-width: 0;
}

.page-gallery-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  min-width: 0;
}

.page-gallery-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.page-gallery-figure figcaption {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
}

.page-gallery-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.85rem 0 0;
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
}

.page-gallery-intro {
  margin: 0 0 1rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-gallery-subhead {
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.page-gallery--multi {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.page-gallery--multi .page-gallery-figure figcaption {
  font-size: 0.75rem;
  padding: 0.5rem 0.65rem;
}

@media (max-width: 700px) {
  .page-gallery {
    grid-template-columns: 1fr;
  }

  .page-gallery--multi {
    grid-template-columns: 1fr;
  }
}

.comm-rec-grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.25rem 0 0;
  min-width: 0;
}

@media (min-width: 600px) {
  .comm-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comm-rec-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comm-rec-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.comm-rec-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.comm-rec-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.comm-rec-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.prose-section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.prose {
  min-width: 0;
  max-width: 100%;
}

.prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose-list {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.35rem;
  color: var(--text-muted);
}

.prose-list li {
  margin-bottom: 0.55rem;
}

.prose-list strong {
  color: var(--text);
}

.prose-note {
  font-size: 0.9rem;
  border-inline-start: 3px solid var(--gold-line);
  padding-inline-start: 1rem;
  margin-top: 1.5rem !important;
}

.article-meta {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.articles-index-intro {
  margin-top: 0.5rem;
}

p.articles-index-section-title {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

p.articles-index-section-title:first-of-type {
  margin-top: 1rem;
}

.articles-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-teaser {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.article-teaser h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.article-teaser h3 a {
  color: inherit;
}

.article-teaser h3 a:hover {
  color: var(--accent);
}

.article-teaser p {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-teaser .article-teaser-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.article-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.article-prose th,
.article-prose td {
  border: 1px solid var(--border-strong);
  padding: 0.55rem 0.65rem;
  text-align: right;
  vertical-align: top;
}

.article-prose th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.article-prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.article-prose h3:first-of-type {
  margin-top: 1.25rem;
}

.cta-inline {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.cta-inline p {
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 600;
}

.cta-inline .btn {
  margin-inline-end: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-more {
  margin: 1rem 0 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow:hover {
  color: var(--accent-hover);
}

.link-arrow::before {
  content: "←";
  font-size: 1rem;
  opacity: 0.85;
}

.form-botcheck {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-web3-warning,
.form-rate-warning,
.form-sanitize-warning {
  grid-column: 1 / -1;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(180, 120, 40, 0.12);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
}

.form-rate-warning {
  background: rgba(80, 120, 180, 0.1);
  border-color: rgba(120, 160, 220, 0.45);
}

.form-web3-warning code {
  font-size: 0.85em;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
  max-width: 52ch;
}

.form-hint a {
  font-weight: 600;
}

.contact-inner--wide {
  max-width: 640px;
}

.contact-page-section {
  padding-top: 0;
}

/* Thank you / 404 */
.thanks-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.thanks-box {
  text-align: center;
  max-width: 420px;
}

.thanks-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.thanks-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.thanks-text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Lead assistant + WhatsApp */
.lead-widget {
  position: fixed;
  z-index: 250;
  inset-inline-end: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.lead-widget > * {
  pointer-events: auto;
}

.lead-panel {
  box-sizing: border-box;
  width: min(340px, calc(100vw - 2rem));
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.lead-panel[hidden] {
  display: none !important;
}

.lead-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.lead-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.lead-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lead-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lead-intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lead-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lead-chip {
  min-height: var(--tap-min);
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: start;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lead-chip:hover {
  border-color: var(--gold-line);
  color: var(--accent);
}

.lead-back {
  margin-top: 0.85rem;
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.lead-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-min);
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #141008;
  background: linear-gradient(145deg, #e0c65e 0%, var(--gold) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lead-toggle-text {
  max-width: 8em;
}

.lead-wa-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.lead-wa-fab:hover {
  color: #fff;
  filter: brightness(1.08);
}

.lead-wa {
  display: flex !important;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.lead-alt {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.lead-alt a {
  font-weight: 600;
}

/* Reviews */
.reviews-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-stars {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.review-text {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.review-author {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.review-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.stats-page {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.stats-page h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.stats-page h2:first-of-type {
  margin-top: 0;
}

.stats-page p,
.stats-page li {
  color: var(--text-muted);
  line-height: 1.6;
}

.stats-page ol {
  padding-inline-start: 1.25rem;
}

.stats-page .stats-links a {
  font-weight: 600;
}
