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

:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-light: #f9fafb;
  --bg-muted: #e5e7eb;
  --accent: #eab308;
  --accent-soft: rgba(234, 179, 8, 0.15);
  --accent-dark: #ca8a04;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --text-on-dark: #f9fafb;
  --border-subtle: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.25);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Top bar */
.top-bar {
  background: #111827;
  color: var(--text-on-dark);
  font-size: 0.875rem;
}

.top-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-text {
  opacity: 0.85;
}

.top-bar-phone {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.brand-main {
  color: var(--text-on-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-sub {
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.22), transparent 55%),
    url("https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.85)
  );
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 1.02rem;
  color: #e5e7eb;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1f2937;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

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

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.6);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

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

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

.section-split {
  background: #0b1220;
  color: var(--text-on-dark);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0.4rem 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-dark .section-header p,
.section-split .section-header p {
  color: #9ca3af;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 35px rgba(148, 163, 184, 0.22);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
}

.service-link:hover {
  color: var(--accent-dark);
}

/* Split about section */
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.split-text p {
  color: #e5e7eb;
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.split-media {
  position: relative;
  min-height: 260px;
}

.image-card {
  position: absolute;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.primary-image {
  inset: 0 10% 20% 0;
  background-image: url("https://images.pexels.com/photos/667838/pexels-photo-667838.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.secondary-image {
  width: 55%;
  height: 45%;
  bottom: 0;
  right: 0;
  background-image: url("https://images.pexels.com/photos/259580/pexels-photo-259580.jpeg?auto=compress&cs=tinysrgb&w=1600");
  border: 4px solid rgba(15, 23, 42, 0.9);
}

/* Process section */
.process-steps {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.process-steps li {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.process-steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.gallery-label {
  position: absolute;
  left: 1.1rem;
  bottom: 0.9rem;
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1;
}

.gallery-item-1 {
  background-image: url("https://images.pexels.com/photos/534151/pexels-photo-534151.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.gallery-item-2 {
  background-image: url("https://images.pexels.com/photos/1457842/pexels-photo-1457842.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.gallery-item-3 {
  background-image: url("https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.gallery-item-4 {
  background-image: url("https://images.pexels.com/photos/533157/pexels-photo-533157.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0 0;
  color: var(--text-main);
  font-size: 0.95rem;
}

.contact-details a {
  color: inherit;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent-dark);
}

.btn-full-width {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  color: #9ca3af;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-brand {
  color: #e5e7eb;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .split-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.1rem;
    gap: 0.5rem;
    transform-origin: top;
    transform: scaleY(0);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease-out;
  }

  .nav-links.open {
    transform: scaleY(1);
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-inner {
    padding-top: 3.4rem;
    padding-bottom: 3.2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .split-inner,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    min-height: 220px;
    margin-top: -0.75rem;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 200px;
  }

  .contact-form {
    padding: 1.4rem 1.2rem;
  }
}
