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

:root {
  --ink: #171a18;
  --ink-soft: #2b302d;
  --muted: #626962;
  --surface: #f4f1ea;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --line: #ddd5c8;
  --accent: #eea51f;
  --accent-dark: #9a5a12;
  --forest: #1f493e;
  --teal: #2f6e73;
  --danger: #a94830;
  --shadow: 0 18px 40px rgba(26, 30, 27, 0.12);
  --shadow-soft: 0 10px 24px rgba(26, 30, 27, 0.08);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

body.contact-page {
  background:
    linear-gradient(rgba(244, 241, 234, 0.88), rgba(244, 241, 234, 0.88)),
    url("../images/bg/contact-bg.jpeg") center / cover fixed;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(23, 26, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(23, 26, 24, 0.14);
  backdrop-filter: blur(14px);
}

.header::before {
  content: none;
}

.header .container,
.nav-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 180px;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.logo small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

nav {
  display: block;
  margin: 0;
}

nav ul,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.intro-section,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 610px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.88), rgba(12, 14, 13, 0.58), rgba(12, 14, 13, 0.18)),
    url("../images/bg/hero-bg.jpeg") center / cover no-repeat;
}

.page-hero {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.88), rgba(12, 14, 13, 0.48)),
    url("../images/bg/home-header.jpeg") center / cover no-repeat;
}

.contact-page .page-hero {
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.86), rgba(12, 14, 13, 0.46)),
    url("../images/bg/contact-bg.jpeg") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 42px;
  padding-block: 92px;
}

.hero-copy,
.page-hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.intro-section h1,
.intro-section h2,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: 4rem;
  line-height: 1.03;
  font-weight: 850;
}

.intro-section p,
.page-hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
}

.intro-section .eyebrow,
.page-hero .eyebrow {
  max-width: none;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.btn,
.view-all-btn,
.contact-form button,
.email-popup-content button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #171a18;
  background: var(--accent);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(238, 165, 31, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.view-all-btn:hover,
.contact-form button:hover,
.email-popup-content button:hover {
  color: #171a18;
  background: #f6bb48;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(238, 165, 31, 0.28);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.section,
.about-preview,
.services-preview,
.about,
.contact-layout {
  padding-block: 82px;
}

.about-preview {
  background: var(--paper);
}

.about-preview .container,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 44px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading,
.about-preview h2,
.services-preview h2,
.contact-info h2,
.contact-form h2,
.map h2,
.about h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 2.3rem;
  line-height: 1.12;
  font-weight: 850;
}

.section-copy,
.about-preview p,
.about p,
.contact-info p,
.legal-shell p {
  color: var(--muted);
  font-size: 1rem;
}

.about-preview .section-kicker,
.services-preview .section-kicker,
.about .section-kicker {
  color: var(--accent-dark);
  font-size: 0.8rem;
}

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

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list,
.about ul,
.legal-shell ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.about li,
.legal-shell li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.feature-list li::before,
.about li::before,
.legal-shell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  transform: translateY(-50%);
}

.services-preview {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
}

.service-cards,
.services,
.gallery,
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
  animation: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 110, 115, 0.35);
  box-shadow: var(--shadow);
  animation: none;
}

.card a {
  display: flex;
  flex-direction: column-reverse;
  color: inherit;
}

.card h3 {
  margin: 0;
  padding: 16px 18px 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-img,
.gallery img,
.gallery video,
.youtube-thumb,
.tiktok-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 220ms ease;
}

.card:hover .service-img,
.service-img:hover,
.youtube-thumb:hover,
.tiktok-thumb:hover {
  transform: scale(1.04);
}

.gallery img,
.gallery video,
.video-wrapper iframe {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.video-wrapper {
  position: relative;
  height: 0;
  margin-top: 20px;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: var(--radius);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-item {
  text-align: left;
}

.video-title {
  margin-top: 0.65rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

.portfolio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 72px 20px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 14, 13, 0.52);
}

.portfolio h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 2rem;
}

.call-to-action {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 76px 20px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(23, 26, 24, 0.92), rgba(31, 73, 62, 0.78)),
    url("../images/quote-bg.jpg") center / cover no-repeat;
  animation: none;
}

.call-to-action h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.1;
}

.call-to-action .btn,
.call-to-action a.btn {
  color: #171a18;
  background: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.contact-info,
.contact-form,
.map {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.contact-info {
  align-self: start;
}

.contact-info p {
  margin: 14px 0 0;
}

.contact-info a {
  color: var(--forest);
  font-weight: 800;
}

.contact-form form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 110, 115, 0.13);
}

.contact-form button {
  width: fit-content;
  min-width: 170px;
}

.honeypot {
  display: none;
}

.map {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.map h2 {
  margin: 0;
  padding: 24px 28px 0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  margin-top: 20px;
  border: 0;
}

.legal-page {
  background: var(--surface);
}

.legal-shell {
  width: min(100% - 32px, 920px);
  margin: 54px auto 74px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.legal-shell h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 1.1;
}

.legal-shell h2 {
  margin: 30px 0 10px;
  color: var(--forest);
  font-size: 1.25rem;
}

.legal-shell p {
  margin: 0 0 14px;
}

.legal-shell a {
  color: var(--teal);
  font-weight: 750;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-shell .muted {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

footer .container {
  display: grid;
  gap: 14px;
}

footer p {
  margin: 0;
}

footer a,
footer .contact-link {
  color: #fff;
  font-weight: 750;
}

footer i {
  margin-right: 6px;
  color: var(--accent);
}

.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
}

.social-media img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.site-credit {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1000;
  padding: 8px 12px;
  border: 1px solid rgba(23, 26, 24, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.site-credit a {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#loader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.loader {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(23, 26, 24, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .header .container,
  .nav-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav ul,
  .nav-links {
    justify-content: flex-start;
  }

  .intro-section,
  .page-hero {
    min-height: auto;
  }

  .hero-grid,
  .about-preview .container,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 72px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-section h1,
  .intro-section h2,
  .page-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 620px) {
  .container,
  .contact-layout,
  .legal-shell {
    width: min(100% - 24px, 1180px);
  }

  nav ul,
  .nav-links {
    gap: 6px;
  }

  nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .logo {
    min-width: 0;
  }

  .intro-section,
  .page-hero {
    background-position: center;
  }

  .hero-grid {
    gap: 26px;
    padding-block: 58px;
  }

  .intro-section h1,
  .intro-section h2,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .intro-section p,
  .page-hero p {
    font-size: 1rem;
  }

  .hero-stats,
  .service-cards,
  .services,
  .gallery,
  .video-gallery {
    grid-template-columns: 1fr;
  }

  .section,
  .about-preview,
  .services-preview,
  .about,
  .contact-layout {
    padding-block: 56px;
  }

  .section-heading,
  .about-preview h2,
  .services-preview h2,
  .contact-info h2,
  .contact-form h2,
  .map h2,
  .about h2 {
    font-size: 1.95rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .view-all-btn,
  .contact-form button {
    width: 100%;
  }

  .contact-info,
  .contact-form {
    padding: 22px;
  }

  .legal-shell {
    margin-block: 28px 52px;
    padding: 28px 22px;
  }

  .legal-shell h1 {
    font-size: 2.2rem;
  }

  .call-to-action {
    padding: 58px 18px;
  }

  .call-to-action h2 {
    font-size: 2.1rem;
  }

  .site-credit {
    right: 10px;
    bottom: 10px;
  }
}
