/* Same brand colour tokens as the Portal / ZERO apps (see the TRIPLE C
   design system) — only the typography/spacing/motion system below is
   specific to this public site, built for a general-client, premium feel. */
:root {
  --primary: #975d0c;
  --primary-dark: #7a4b0a;
  --brand-gold: #ed9925;
  --ink: #14211e;
  --muted: #64716d;
  --canvas: #f2f5f2;
  --surface: #fff;
  --surface-dark: #132722;
  --line: #d8e0dc;
  --tint: #f4eee7;
  --focus: #2b75d6;
  --font: 'Cairo', Tahoma, Arial, sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 20px 24px;
  max-width: var(--container);
  margin: 0 auto;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.topbar.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
  order: 2;
}

.brand img {
  height: 26px;
  width: auto;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  order: 1;
  flex: 1;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  order: 3;
}

.lang-btn {
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--ink);
}

.btn-engineers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
}

.btn-engineers:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .topbar {
    justify-content: space-between;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    flex: none;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  .topbar-actions {
    order: 2;
    flex: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1px solid var(--primary);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--tint);
  color: var(--primary-dark);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.btn-link:hover {
  color: var(--primary);
}

.link-row {
  margin-top: 20px;
}

.btn-link .arrow {
  transition: transform 0.15s ease;
}

.btn-link:hover .arrow {
  transform: translateX(-3px);
}

[dir='ltr'] .btn-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Layout ---------- */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 560px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
  color: #eef5f1;
  border-radius: 24px;
  padding: 88px 44px 56px;
  margin: 24px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  aspect-ratio: 1056 / 944;
  background: url('/logo.svg') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

[dir='rtl'] .hero::before {
  inset: -10% auto auto -10%;
}

.hero > * {
  position: relative;
}

.hero .eyebrow {
  color: var(--brand-gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 780px;
}

.lead {
  font-size: 18px;
  color: #c9d6d0;
  max-width: 620px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 32px 0 44px;
}

.hero .btn-ghost {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: transparent;
}

.hero .btn-ghost:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: #fff;
}

.hero .btn-link {
  color: #eef5f1;
}

.hero .btn-link:hover {
  color: var(--brand-gold);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.facts div {
  min-width: 140px;
}

.facts dt {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: -0.01em;
}

.facts dd {
  margin: 4px 0 0;
  color: #c9d6d0;
  font-size: 14px;
}

.hero.hero-page {
  padding: 64px 40px 44px;
}

.hero.hero-page h1 {
  font-size: clamp(26px, 4vw, 38px);
}

/* Homepage hero with a real project photo instead of the plain dark panel.
   The dark gradient keeps the white text readable over any part of the
   photo; the logo watermark (.hero::before) is hidden here since a real
   photo is already filling the space. */
.hero-home {
  background-image: linear-gradient(180deg, rgba(19, 39, 34, 0.55), rgba(19, 39, 34, 0.92) 85%), url('/images/project-divider-2.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-home::before {
  display: none;
}

/* ---------- Statement (large centred typographic break) ---------- */

.statement {
  padding: 96px 0;
  text-align: center;
}

.statement p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.statement .eyebrow {
  text-align: center;
}

/* ---------- Cards / grids ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.service-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-inline: 24px;
  scrollbar-width: thin;
}

.card {
  background: var(--surface);
  padding: 30px 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-card {
  flex: none;
  scroll-snap-align: start;
  width: min(300px, 78vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 26px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  padding: 20px 24px;
}

.steps span {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 15px;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  background: var(--tint);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 700;
}

.intro {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 720px;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.value-list li {
  background: var(--surface);
  padding: 22px 26px;
}

.value-list strong {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.value-list span {
  color: var(--muted);
  font-size: 14.5px;
}

.gallery-empty {
  background: var(--tint);
  border: 1px dashed var(--primary);
  border-radius: 20px;
  padding: 56px 24px;
  text-align: center;
}

.gallery-empty p {
  color: var(--muted);
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 15.5px;
}

.badge-soon {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.contact-card {
  background: var(--surface);
  padding: 28px 26px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.contact-card .btn {
  width: 100%;
  text-align: center;
}

.map-frame {
  margin-top: 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Visit CTA band ---------- */

.visit {
  margin-top: 40px;
  background: var(--ink);
  color: #eef5f1;
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}

.visit h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
}

.visit p {
  color: #c9d6d0;
  max-width: 560px;
  margin: 14px auto 26px;
  font-size: 16px;
}

.visit .btn {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--ink);
}

.visit .btn:hover {
  background: #ffb547;
  border-color: #ffb547;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-brand strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-col p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 300px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Teaser (image-less "Be Inspired"-style card) ---------- */

.teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.teaser > div {
  background: var(--surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teaser-visual {
  background: var(--ink);
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-visual img {
  width: 42%;
  opacity: 0.9;
}

.teaser-visual--photo {
  align-items: stretch;
  justify-content: stretch;
}

.teaser-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.teaser h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.teaser p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .teaser {
    grid-template-columns: 1fr;
  }

  .teaser-visual {
    min-height: 140px;
  }
}

/* ---------- Gallery grid (real project photos) ---------- */

.gallery-group {
  margin: 0 0 56px;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.gallery-group h3 {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--canvas);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(19, 39, 34, 0.8), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- About page: process photo + text ---------- */

.about-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.about-photo h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.about-photo-desc {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 760px) {
  .about-photo {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service card thumbnail (only where a real photo matches) ---------- */

.service-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 16px;
}

.service-card__photo--wide {
  aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand img {
    height: 26px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 56px 22px 36px;
    border-radius: 18px;
  }

  .hero.hero-page {
    padding: 44px 22px 32px;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .statement {
    padding: 64px 0;
  }

  .visit {
    padding: 40px 22px;
  }
}
