/* LocalPro demo kit — design tokens & base */
:root {
  --bg: #e8edf2;
  --ink: #101820;
  --ink-soft: #3d4a57;
  --brand: #0b3a4f;
  --brand-deep: #072635;
  --accent: #f05a28;
  --accent-hover: #d9481a;
  --surface: #ffffff;
  --line: #c5d0da;
  --glow: rgba(240, 90, 40, 0.18);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --pad: clamp(1.25rem, 4.5vw, 2.75rem);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  margin: 0 0 0.6rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.container {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-solid,
.site-header.page-header {
  background: rgba(7, 38, 53, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.2vw, 1.85rem);
}

.nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--brand);
  color: #fff;
}

.btn-dark:hover {
  background: var(--brand-deep);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--brand);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 38, 53, 0.35) 0%, rgba(7, 38, 53, 0.55) 40%, rgba(7, 38, 53, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(240, 90, 40, 0.22), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  max-width: 30rem;
}

.hero-content .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.15s;
}

.hero-content .brand-mark span {
  color: var(--accent);
}

.hero-content h1 {
  color: #fff;
  opacity: 0;
  animation: riseIn 0.85s ease forwards 0.3s;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 32rem;
  opacity: 0;
  animation: riseIn 0.85s ease forwards 0.45s;
}

.hero-content .cta-row {
  opacity: 0;
  animation: riseIn 0.85s ease forwards 0.6s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #14506a);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 120%;
  background: radial-gradient(circle, var(--glow), transparent 55%);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  position: relative;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-muted {
  background: #dfe6ed;
}

.section-brand {
  background: var(--brand-deep);
  color: #fff;
}

.section-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.section-brand h2 {
  color: #fff;
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.service-item:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-item a {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.service-item a:hover {
  color: var(--accent);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin: 0;
}

.project-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--brand);
}

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

.project-card:hover img {
  transform: scale(1.06);
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem clamp(1.1rem, 2vw, 1.4rem) clamp(1.15rem, 2vw, 1.35rem);
  background: linear-gradient(transparent, rgba(7, 38, 53, 0.92) 48%);
  color: #fff;
}

.project-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.project-card figcaption span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review {
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.review p {
  color: var(--ink);
  font-size: 1.05rem;
}

.review cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.9rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.price.is-featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--glow);
  transform: translateY(-6px);
}

.price .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brand);
  margin: 0.5rem 0 1rem;
}

.price .amount small {
  font-size: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.price li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  list-style: none;
  color: var(--brand);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.15rem 1.15rem;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fb;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(240, 90, 40, 0.35);
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.map-placeholder {
  margin-top: 1.25rem;
  min-height: 180px;
  background:
    linear-gradient(135deg, #c9d5e0, #a8bac9);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--brand-deep);
  font-weight: 700;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card .body {
  padding: 1.15rem 1.25rem 1.4rem;
}

.blog-card time {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background: #0a1520;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .brand {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Mobile sticky call */
.mobile-call {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(240, 90, 40, 0.4);
}

/* Reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1rem 3rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--brand);
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .service-grid,
  .steps,
  .project-grid,
  .review-grid,
  .price-grid,
  .blog-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .price.is-featured {
    transform: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--brand-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
  }

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

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .mobile-call {
    display: inline-flex;
  }

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

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