/* 360 Civils Limited — static one-pager */
:root {
  --bg: #0b0b0b;
  --bg-elevated: #141414;
  --bg-card: #17191c;
  --bg-input: #1c1f24;
  --bg-projects: #f4f5f7;
  --text: #ffffff;
  --text-muted: #b8bdc6;
  --text-dark: #121417;
  --accent: #0091ff;
  --accent-hover: #2aa3ff;
  --accent-deep: #0070cc;
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; color: var(--text-muted); }

.lead { font-size: 1.05rem; color: #d5d9e0; }

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.heading-dark { color: var(--text-dark); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 145, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4bb4ff, var(--accent-hover));
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

.btn-quote {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

.icon-send {
  width: 18px;
  height: 18px;
  margin-left: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a[data-nav] {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8eaed;
  position: relative;
  padding: 0.35rem 0;
}

.site-nav a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a[data-nav].is-active,
.site-nav a[data-nav]:hover {
  color: var(--accent);
}

.site-nav a[data-nav].is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../assets/hero.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 720px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8eaed;
  margin-bottom: 1.25rem;
}

.eyebrow-bar,
.label-bar {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 1.75rem;
  color: #fff;
  max-width: 14ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
}

.hero-phone .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* Section labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-label-center {
  justify-content: center;
}

.section-label--dark {
  color: var(--accent);
}

/* About */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: #fff !important;
}

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 145, 255, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.chip-icon svg {
  width: 18px;
  height: 18px;
}

.chip-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

/* Services */
.services {
  background: radial-gradient(ellipse at top right, #15181d 0%, var(--bg) 55%);
}

.services h2 {
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem 1.5rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 145, 255, 0.35);
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.card-accent {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Projects — light band like mockup */
.projects {
  background: var(--bg-projects);
  color: var(--text-dark);
}

.projects .lead,
.projects p {
  color: #4a5160;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.12);
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  aspect-ratio: 800 / 560;
  object-fit: cover;
}

.project-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #16181c;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-label .label-bar {
  width: 18px;
  height: 3px;
}

/* Contact */
.contact {
  background: var(--bg);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/contact-bg.jpg") center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrap h2 {
  margin-bottom: 0.5rem;
}

.quote-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #d0d4db;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 0.9rem;
  transition: border-color 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--accent);
}

.input-wrap--textarea {
  align-items: flex-start;
  padding-top: 0.85rem;
}

.input-icon {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-wrap input,
.input-wrap textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  padding: 0.9rem 0;
  outline: none;
  width: 100%;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 110px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #6b7280;
}

.form-note {
  font-size: 0.9rem;
  min-height: 1.25em;
  margin: 0;
}

.form-note.is-error { color: #ff7b7b; }
.form-note.is-ok { color: #7dffa3; }

.contact-card {
  background: rgba(20, 22, 26, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 1.15rem;
  margin: 1rem 0 1.5rem;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 145, 255, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-list strong {
  display: block;
  color: #fff;
}

.contact-list .role {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.15rem;
}

.contact-list a {
  color: #fff;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.social-handle {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.footer-meta,
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .about-media img {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a[data-nav] {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

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

  .hero-content {
    margin-left: 1.25rem;
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: 3.75rem 0;
  }
}

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

  .about-contacts {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Gallery carousel */
.gallery {
  background: var(--bg-elevated);
  padding-bottom: 4.5rem;
}

.gallery .section-label-center {
  justify-content: center;
}

.gallery-carousel {
  position: relative;
  margin-top: 2rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 3.25rem;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #111;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.gallery-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-nav--prev { left: 0.35rem; }
.gallery-nav--next { right: 0.35rem; }

@media (max-width: 900px) {
  .gallery-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (max-width: 560px) {
  .gallery-carousel {
    padding: 0 2.75rem;
  }
  .gallery-slide {
    flex: 0 0 100%;
  }
  .gallery-track {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
