/* ==========================================
   Theme tokens and shared visual variables
========================================== */
:root {
  --brand-primary: #241336;
  --brand-secondary: #3b2370;
  --brand-accent: #f2b035;
  --bg-light: #f6f3fb;
  --bg-dark: #160c22;
  --text-dark: #1d1428;
  --text-muted: #5b5268;
  --white: #ffffff;
  --radius: 14px;
  --shadow-soft: 0 10px 24px rgba(19, 10, 30, 0.08);
  --shadow-strong: 0 16px 34px rgba(19, 10, 30, 0.16);
}

/* ==========================================
   Global reset and base typography
========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1220px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.25rem 0;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 0.55rem;
}

/* ==========================================
   Accessibility utility styles
========================================== */
.skip-link {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--white);
  border: 2px solid var(--brand-primary);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  z-index: 1000;
}

/* ==========================================
   Top bar and header navigation
========================================== */
.topbar {
  background: #12081e;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.topbar-wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-wrap p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-actions a {
  color: rgba(255, 255, 255, 0.95);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(246, 243, 251, 0.95);
  border-bottom: 1px solid rgba(59, 35, 112, 0.14);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-logo {
  width: clamp(155px, 20vw, 220px);
  height: auto;
}

.main-nav {
  display: flex;
  gap: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.main-nav a {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-primary);
  background: rgba(59, 35, 112, 0.08);
}

/* ==========================================
   Shared button components
========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  padding: 0.73rem 1.18rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-accent {
  background: var(--brand-accent);
  color: var(--white);
}

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

/* ==========================================
   Hero section with premium spacing
========================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at left top, #5c3dff 0, transparent 55%),
    linear-gradient(120deg, var(--brand-primary) 18%, var(--brand-secondary) 62%, #0d1327 100%);
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(255, 255, 255, 0.15), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4.4rem 0;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.9vw, 3.45rem);
  margin-bottom: 0.85rem;
}

.hero-subtext {
  font-size: 1.05rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero-art {
  justify-self: center;
  max-width: 620px;
}

.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

/* ==========================================
   Metrics and trust blocks
========================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.metrics-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  background: var(--white);
  border: 1px solid #ece8f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  text-align: center;
}

.metric-card span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.metric-card p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================
   Service preview cards and features
========================================== */
.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.service-preview h3 {
  margin-bottom: 0.45rem;
}

.section-actions {
  margin-top: 1.2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid #ece8f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

/* ==========================================
   Gallery and visual project showcase
========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0.85rem;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ==========================================
   Process, testimonial, and split layouts
========================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.process-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid #ece8f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.95rem 1rem;
}

.process-steps li span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-secondary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-steps li p {
  margin: 0;
}

.testimonial-box {
  background: linear-gradient(140deg, #1f1231, #2f1e56);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 1.3rem;
}

.quote-byline {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.review-name {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 1.02rem;
}

.review-stars {
  margin: 0 0 0.65rem;
  letter-spacing: 0.08em;
  color: #ffd166;
  font-size: 1.05rem;
}

/* ==========================================
   Service area map and lists
========================================== */
.service-list {
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.6rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ==========================================
   CTA band and expanded footer
========================================== */
.cta-band {
  background: linear-gradient(120deg, #1f1231 15%, #3b2370 85%);
  color: var(--white);
  padding: 4rem 0;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.88);
}

.footer-main {
  padding: 3rem 0 1.4rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-main h3 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

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

.footer-main li {
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-badges span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.33rem 0.68rem;
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.95rem 0 1.2rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================
   Page hero and detailed internal pages
========================================== */
.page-hero {
  background: linear-gradient(110deg, #241336 20%, #3b2370 80%);
  color: var(--white);
  padding: 4.2rem 0;
}

.page-hero h1 {
  margin-bottom: 0.65rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem;
}

.detail-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.services-list-card {
  padding: 1.25rem;
}

.service-master-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.4rem;
}

/* ==========================================
   Contact form and action components
========================================== */
.contact-inline {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

/* Contact form submission status text */
.form-status {
  min-height: 1.3rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.form-status-success {
  color: #116329;
}

.form-status-error {
  color: #8f2130;
}

label {
  font-weight: 600;
}

input,
textarea {
  border: 1px solid #d2d8e3;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(59, 35, 112, 0.18);
  border-color: var(--brand-primary);
}

/* ==========================================
   Fade-in and utility interactions
========================================== */
.fade-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

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

.back-to-top {
  position: fixed;
  right: 1.45rem;
  bottom: 1.45rem;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================
   Responsive behavior for all pages
========================================== */
@media (max-width: 1024px) {
  .main-nav {
    width: 100%;
    overflow-x: auto;
    order: 3;
    padding-bottom: 0.3rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .hero-content,
  .metrics-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 480px;
  }

  .service-preview-grid,
  .feature-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0;
  }

  .section {
    padding: 3.7rem 0;
  }

  .hero-content {
    min-height: auto;
    padding: 3.3rem 0;
  }

  .hero-art {
    max-width: 370px;
  }

  .service-preview-grid,
  .feature-grid,
  .detail-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    columns: 1;
  }

  .service-master-list {
    columns: 1;
  }

  .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    display: none;
  }
}
