/* =========================================================
   Complex Confident Smile Decoration — styles.css (v2)
   New identity: Forest green + Brass + Warm paper · Arch motif
   No blue anywhere. RTL / Arabic.
   ========================================================= */

:root {
  --forest: #1c3328;
  --forest-deep: #13231b;
  --moss: #2f4f3f;
  --brass: #c59a3a;
  --brass-soft: #e0c27c;
  --brass-deep: #8c6a17;
  --paper: #f6f4ee;
  --white: #ffffff;
  --sand: #ebe6d9;
  --stone: #d8d0bd;
  --charcoal: #1d1b17;
  --text: #2b2a25;
  --muted: #5f5d54;
  --on-dark: #e9eee6;
  --on-dark-muted: #b4c0b1;

  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Amiri", "Tajawal", serif;

  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 800;
}
p {
  margin: 0 0 1em;
}
::selection {
  background: var(--brass);
  color: var(--forest-deep);
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin-inline: auto;
}
.section {
  padding: clamp(68px, 9vw, 120px) 0;
  position: relative;
}

/* old decorative blobs are not used in this design */
.bg-decoration,
.bg-decoration-2 {
  display: none;
}

/* scrollbars on mobile swipe rows (replaces old blue-ish ones) */
.about-visual,
.projects-grid,
.services-container,
.stats-grid {
  scrollbar-color: var(--brass) var(--stone);
}

/* ---------- Header ---------- */
.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: var(--brass-deep);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--forest);
  font-weight: 700;
}
.nav-cta {
  margin-inline-start: 12px;
  padding: 10px 24px;
  color: var(--paper);
  background: var(--forest);
  font-weight: 700;
  border-radius: 2px;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover,
.nav-cta.active {
  color: var(--forest-deep);
  background: var(--brass);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--forest);
  border-radius: 2px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font: 700 16px/1 var(--font-body);
  border: 1.5px solid var(--forest);
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  color: var(--paper);
  background: var(--forest);
}
.btn-primary:hover {
  color: var(--forest-deep);
  background: var(--brass);
  border-color: var(--brass);
}
.btn-secondary {
  color: var(--forest);
  background: transparent;
}
.btn-secondary:hover {
  color: var(--paper);
  background: var(--forest);
}
.btn-full {
  width: 100%;
}

/* ---------- Hero (signature: the arch) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background: var(--paper);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 159px,
    rgba(28, 51, 40, 0.06) 159px 160px
  );
}
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
}
.shape-1 {
  width: 340px;
  height: 540px;
  top: 8%;
  left: 4%;
  border: 1px solid rgba(197, 154, 58, 0.55);
  border-radius: var(--arch);
}
.shape-2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  right: 36%;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0.7;
}
.shape-3 {
  width: 16px;
  height: 16px;
  top: 26%;
  left: 46%;
  background: var(--brass);
  transform: rotate(45deg);
}

.hero-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 2px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brass-deep);
  border-inline-start: 3px solid var(--brass);
}
.hero-title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 700;
}
.title-line {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--brass-deep);
}
.title-highlight {
  display: block;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.22;
  color: var(--forest);
}
.hero-description {
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--muted);
}
.hero-description a,
.hero-description a span {
  color: var(--forest) !important;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-image {
  max-width: 420px;
  justify-self: center;
  width: 100%;
}
.image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--white);
  border-radius: var(--arch);
  border: 1px solid var(--stone);
  box-shadow: 0 30px 60px rgba(28, 51, 40, 0.14);
}
.image-wrapper::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1.5px solid var(--brass);
  border-radius: var(--arch);
  z-index: -1;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16% 10% 10%;
}
.image-overlay {
  display: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

/* ---------- Section headers (start-aligned, not centered) ---------- */
.section-header {
  max-width: 720px;
  margin: 0 0 clamp(36px, 5vw, 64px);
  text-align: start;
}
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brass-deep);
}
.section-subtitle::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brass);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--forest);
}
.section-description {
  margin-inline: 0 !important;
  color: var(--muted);
}
.title-decoration,
.title-underline {
  width: 56px;
  height: 3px;
  margin: 18px 0 0;
  background: var(--brass);
}
.lead-text {
  font-size: 1.15em;
  font-weight: 500;
  color: var(--forest);
}

/* explicit title colours (beat old inline gold/white) */
#about .section-title,
#services .section-title,
#contact .section-title {
  color: var(--forest) !important;
}
#methodology .section-title {
  color: var(--paper) !important;
}
#methodology .section-subtitle {
  color: var(--brass-soft);
}

/* ---------- About ---------- */
.about-section {
  background: var(--white);
}
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.about-text > p {
  color: var(--muted);
}
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--stone);
}
.feature-icon {
  flex: none;
  margin-top: 6px;
  font-size: 10px;
  color: var(--brass);
}
.feature-text h4 {
  margin-bottom: 4px;
  font-size: 18px;
  color: var(--forest);
}
.feature-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.about-visual {
  display: grid;
  gap: 20px;
}
.visual-card {
  padding: 32px 30px;
  color: var(--on-dark);
  background: var(--forest);
  border-bottom: 4px solid var(--brass);
}
.visual-card:nth-child(2) {
  color: var(--text);
  background: var(--sand);
}
.visual-icon {
  margin-bottom: 10px;
  font-size: 30px;
}
.visual-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--brass-soft);
}
.visual-card:nth-child(2) h3 {
  color: var(--forest);
}
.visual-card p {
  margin: 0;
  font-size: 16px;
}

/* ---------- Why us ---------- */
#clients {
  background: var(--forest-deep) !important;
}
#clients h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px) !important;
  color: var(--brass-soft) !important;
}
#clients-text-block p {
  color: var(--on-dark-muted);
}
#clients ul li {
  padding-inline-start: 4px;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(224, 194, 124, 0.18);
}
#clients ul li:last-child {
  border-bottom: 0;
}

/* ---------- Projects / areas ---------- */
.dark-section,
.projects-section {
  background: var(--sand);
}
.projects-section .container > div:not(.section-header):not(.projects-grid) {
  max-width: 62ch;
  margin: -16px 0 44px !important;
  color: var(--muted);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
}
.projects-section .project-card {
  padding: 34px 28px 30px;
  background: var(--white);
  border-top: 4px solid var(--brass);
  transition:
    background 0.35s,
    transform 0.35s var(--ease);
}
.projects-section .project-card:hover {
  background: var(--forest);
  transform: translateY(-6px);
}
.project-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 28px;
  border: 1px solid var(--stone);
  border-radius: var(--arch);
}
.project-card h3 {
  font-size: 21px;
  color: var(--forest);
  transition: color 0.3s;
}
.project-card p {
  color: var(--muted);
  font-size: 15.5px;
  transition: color 0.3s;
}
.project-features {
  list-style: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--stone);
}
.project-features li {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brass-deep);
  transition: color 0.3s;
}
.projects-section .project-card:hover h3 {
  color: var(--brass-soft);
}
.projects-section .project-card:hover p {
  color: var(--on-dark);
}
.projects-section .project-card:hover li {
  color: var(--brass-soft);
}
.projects-section .project-card:hover .project-icon {
  border-color: var(--brass);
}
.projects-section .project-overlay {
  display: none;
}

/* ---------- Gallery (arched windows) ---------- */
.projects-gallery {
  padding: clamp(68px, 9vw, 120px) 0;
  background: var(--white);
}
.projects-gallery .section-header {
  margin-bottom: 48px;
}
.project-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--arch);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.projects-gallery .project-card:hover img {
  transform: scale(1.05);
}
.projects-gallery .project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  text-align: center;
  background: rgba(19, 35, 27, 0.9);
}
.project-info h3 {
  margin: 0;
  font-size: 19px;
  color: var(--brass-soft);
}

/* ---------- Services (ruled list, not cards) ---------- */
.services-section {
  background: var(--paper);
}
.services-section .container > p {
  margin: 0 0 18px !important;
  font-size: 18px;
  font-weight: 700 !important;
  color: var(--brass-deep);
}
.services-container {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--forest);
  margin-bottom: 8px;
}
.service-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--stone);
  transition:
    background 0.3s,
    padding 0.35s var(--ease);
}
.service-box:hover {
  background: var(--white);
  padding-inline-start: 24px;
}
.service-number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--brass);
}
.service-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: baseline;
}
.service-content h3 {
  margin: 0;
  font-size: 21px;
  color: var(--forest);
}
.service-content p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Engineering / quality ---------- */
.light-section,
.engineering-section {
  background: var(--sand);
}
.light-section .section-title {
  color: var(--forest);
}
.engineering-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.engineering-visual {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 60px 32px 32px;
  background: var(--forest);
  border-radius: var(--arch);
}
.cert-badge {
  text-align: center;
  color: var(--on-dark);
}
.cert-icon {
  margin-bottom: 16px;
  font-size: 60px;
}
.cert-text span {
  display: block;
  font-size: 15px;
  color: var(--brass-soft);
}
.cert-text strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.5;
}
.engineering-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.eng-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--forest);
  background: var(--white);
  border-inline-start: 3px solid var(--brass);
}
.eng-icon {
  font-size: 22px;
}
.quality-box {
  padding: 26px 28px;
  color: var(--on-dark);
  background: var(--forest);
  border-inline-start: 4px solid var(--brass);
}
.quality-box h3 {
  font-size: 20px;
  color: var(--brass-soft);
}
.quality-box p {
  margin: 0;
}

/* ---------- Methodology ---------- */
.stats-section {
  background: var(--forest);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(224, 194, 124, 0.35);
}
.stat-card {
  padding: 36px 30px 40px;
  border-bottom: 1px solid rgba(224, 194, 124, 0.2);
  border-inline-start: 1px solid rgba(224, 194, 124, 0.2);
}
.stat-card:nth-child(3n + 1) {
  border-inline-start: 0;
}
.stat-icon {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brass);
}
.stat-label {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--paper);
}
.stat-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}
.stat-decoration {
  width: 36px;
  height: 2px;
  margin-top: 22px;
  background: var(--brass);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--white);
}
.contact-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--forest);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--stone);
}
.contact-icon {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--sand);
  border-radius: var(--arch);
}
.contact-details h4 {
  margin: 0 0 2px;
  font-size: 16px;
  color: var(--brass-deep);
}
.contact-details p,
.contact-details a {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--forest) !important;
  word-break: break-word;
}

.contact-form-wrapper {
  padding: clamp(26px, 4vw, 44px);
  background: var(--forest);
}
.contact-form {
  display: grid;
  gap: 22px;
}
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 24px 2px 8px;
  font: 500 16px/1.5 var(--font-body);
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(224, 194, 124, 0.45);
  border-radius: 0;
  transition: border-color 0.25s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-bottom-color: var(--brass-soft);
}
.form-group label {
  position: absolute;
  top: 18px;
  inset-inline-start: 2px;
  font-size: 16px;
  color: var(--on-dark-muted);
  pointer-events: none;
  transition:
    top 0.2s,
    font-size 0.2s,
    color 0.2s;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass-soft);
}
.contact-form .btn-primary {
  color: var(--forest-deep);
  background: var(--brass);
  border-color: var(--brass);
}
.contact-form .btn-primary:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
}

/* ---------- Follow-us strip (overrides its inline blue-ish header) ---------- */
#follow-us {
  background: var(--paper) !important;
  border: 0 !important;
  border-top: 1px solid var(--stone) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#follow-us > div:first-child {
  background: var(--forest-deep) !important;
  border-bottom: 0 !important;
}
#follow-us > div:last-child {
  background: var(--sand) !important;
  color: var(--brass-deep) !important;
}
#complex-contact-links {
  background: var(--white) !important;
}
#complex-contact-links a {
  color: var(--forest) !important;
  transition:
    background 0.25s,
    color 0.25s;
}
#complex-contact-links a:hover {
  background: var(--sand);
  color: var(--brass-deep) !important;
}

/* ---------- FAQ / vision / blog (re-themed over old inline navy) ---------- */
#faq {
  background: var(--paper) !important;
  color: var(--text) !important;
}
#faq h2 {
  font-family: var(--font-display);
  color: var(--forest) !important;
}
#faq p:first-child {
  color: var(--forest);
}
#vision-2030 {
  background: var(--sand) !important;
  color: var(--text) !important;
}
#vision-2030 h2 {
  font-family: var(--font-display);
  color: var(--forest) !important;
}
#vision-2030 h3 {
  color: var(--brass-deep) !important;
}
#blog-details {
  background: var(--charcoal) !important;
}
#blog-details h2 {
  font-family: var(--font-display);
  color: var(--brass-soft) !important;
}
#blog-details hr {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* mobile accordions: beat the old inline blue backgrounds */
@media (max-width: 768px) {
  html body #vision-2030 .vision-block h3 {
    background: var(--forest) !important;
    color: var(--brass-soft) !important;
    border-radius: 2px !important;
    border-right-color: var(--brass) !important;
  }
  html body #vision-2030 .vision-block-content {
    background: var(--white) !important;
    border-right-color: var(--brass) !important;
    border-radius: 0 !important;
  }
  html body #blog-details .blog-article h2 {
    background: #2a2822 !important;
    border-radius: 2px !important;
    border-right-color: var(--brass) !important;
  }
  html body #blog-details .blog-article-content {
    background: #23211c !important;
    border-radius: 0 !important;
    border-right-color: var(--brass) !important;
  }
}

/* ---------- Footer ---------- */
.main-footer {
  padding: 72px 0 26px;
  color: var(--on-dark-muted);
  background: var(--forest-deep);
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
}
.logo-icon {
  color: var(--brass);
}
.footer-desc {
  font-size: 15px;
}
.footer-section h4 {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--brass-soft);
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  font-size: 15px;
  transition:
    color 0.25s,
    padding 0.25s;
}
.footer-links a:hover {
  color: var(--brass-soft);
  padding-inline-start: 6px;
}
.footer-contact p {
  margin-bottom: 10px;
  font-size: 15px;
}
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(224, 194, 124, 0.2);
  font-size: 14px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  font-size: 20px;
  color: var(--brass-soft);
  background: var(--forest);
  border: 1px solid var(--brass);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s var(--ease),
    background 0.25s;
}
.back-to-top:hover {
  background: var(--moss);
}
.back-to-top.visible,
.back-to-top.show,
.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-wrapper,
  .about-content,
  .engineering-layout,
  .contact-content {
    grid-template-columns: 1fr;
  }
  .hero-image {
    max-width: 340px;
  }
  .engineering-visual {
    min-height: 380px;
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }
  .projects-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(3n + 1) {
    border-inline-start: 1px solid rgba(224, 194, 124, 0.2);
  }
  .stat-card:nth-child(2n + 1) {
    border-inline-start: 0;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .nav-link {
    padding: 8px 9px;
    font-size: 14px;
  }
  .service-content {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 6% 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 20px 40px rgba(28, 51, 40, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.4s var(--ease),
      opacity 0.3s,
      visibility 0.3s;
  }
  .main-nav.active,
  .main-nav.open,
  .main-nav.show {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--stone);
  }
  .nav-link::after {
    display: none;
  }
  .nav-cta {
    margin: 16px 0 0;
    text-align: center;
    border: 0;
  }
}

@media (max-width: 768px) {
  .service-box {
    background: var(--white);
    border: 1px solid var(--stone);
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .service-box:hover {
    padding-inline-start: 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: auto;
    padding-bottom: 88px;
  }
  .hero-buttons .btn {
    flex: 1 1 100%;
  }
  .shape-1 {
    display: none;
  }
  .about-features,
  .engineering-features,
  .projects-grid,
  .stats-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
  .stat-card,
  .stat-card:nth-child(n) {
    border-inline-start: 0;
  }
  .scroll-indicator {
    display: none;
  }
  .back-to-top {
    bottom: 20px;
    left: 16px;
  }
}

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