﻿/*
Theme Name: Dynamic Options Engineering
Theme URI:
Author: Dynamic Options Engineering and Fabrication
Description: Engineering and fabrication company website.
Version: 1.0
*/

/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
  --dynamic-purple: #59658f;
  --dynamic-purple-dark: #454f75;
  --dynamic-accent: #7f8dbb;
  --dynamic-steel: #687078;
  --dynamic-light: #eef0f4;
  --dynamic-white: #ffffff;
  --dynamic-line: #d9dde4;

  --ink: #1c1f24;
  --muted: #68707a;
  --paper: #f6f6f3;
  --surface: #ffffff;
  --ghost: #f0f1ee;

  --max: 1240px;
  --radius: 0;
  --shadow: 0 20px 60px rgba(20, 24, 32, .10);
}


/* ============================================================
   02. RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.05;
}

::selection {
  background: var(--dynamic-purple);
  color: #ffffff;
}


/* ============================================================
   03. GLOBAL LAYOUT
   ============================================================ */

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-label,
.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--dynamic-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: currentColor;
}


/* ============================================================
   04. BUTTONS
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--dynamic-purple);
  background: var(--dynamic-purple);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.button:hover {
  background: var(--dynamic-purple-dark);
  border-color: var(--dynamic-purple-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.button--outline-light {
  border-color: rgba(255,255,255,.55);
  background: transparent;
  color: #ffffff;
}

.button--outline-light:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--dynamic-purple);
}

.button--header {
  min-height: 40px;
  padding-inline: 18px;
}


/* ============================================================
   05. TOP BAR
   ============================================================ */

.top-bar {
  background: #15171c;
  color: rgba(255,255,255,.68);
  font-size: 10px;
}

.top-bar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar__company {
  color: rgba(255,255,255,.48);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar__contact span,
.top-bar__contact a {
  color: rgba(255,255,255,.68);
}

.top-bar__contact a:hover {
  color: #ffffff;
}


/* ============================================================
   06. HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--dynamic-line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.brand-logo {
  width: 245px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button) {
  position: relative;
  color: #333943;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--dynamic-purple);
  transition: width .2s ease;
}

.site-nav > a:not(.button):hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}


/* ============================================================
   07. HERO
   ============================================================ */

.hero--image {
  position: relative;
  min-height: 730px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #20242a;
  color: #ffffff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18,21,27,.92) 0%,
      rgba(18,21,27,.70) 45%,
      rgba(18,21,27,.28) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 820px;
}

.hero .eyebrow {
  color: #c4ccea;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 28px;
  color: #ffffff;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -.06em;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .button {
  margin-right: 0;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 55px;
}

.hero-credentials span {
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,.30);
  color: rgba(255,255,255,.66);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-credentials span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-scroll {
  position: absolute;
  right: 0;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.50);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-scroll__line {
  width: 45px;
  height: 1px;
  background: rgba(255,255,255,.40);
}


/* ============================================================
   08. ABOUT
   ============================================================ */

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

.about-modern__body {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 85px;
  align-items: center;
}

.about-modern__visual {
  position: relative;
}

.about-modern__image {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(
      135deg,
      rgba(20,25,32,.08),
      rgba(20,25,32,.34)
    ),
    url("assets/images/projects/titanium-barren-tank-workshop.jpg")
    center / cover no-repeat;
  transition: transform .45s ease;
}

.about-modern__visual:hover .about-modern__image {
  transform: scale(1.015);
}

.about-modern__image::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}

.about-modern__image-label {
  position: absolute;
  left: 34px;
  bottom: 32px;
  z-index: 2;
  color: #ffffff;
}

.about-modern__image-label span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-modern__image-label strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.02em;
}

.about-modern__content > .lead {
  max-width: 700px;
  margin-bottom: 25px;
  color: #31363e;
  font-size: 22px;
  line-height: 1.55;
}

.about-modern__content > p:not(.lead) {
  max-width: 690px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.about-modern__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--dynamic-line);
  border-bottom: 1px solid var(--dynamic-line);
}

.about-fact {
  padding: 25px 20px 25px 0;
  border-right: 1px solid var(--dynamic-line);
}

.about-fact + .about-fact {
  padding-left: 20px;
}

.about-fact:last-child {
  border-right: 0;
}

.about-fact span {
  display: block;
  margin-bottom: 10px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-fact strong {
  display: block;
  margin-bottom: 5px;
  font-size: 27px;
  letter-spacing: -.03em;
}

.about-fact p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}


/* ============================================================
   09. SERVICES
   ============================================================ */

.services-modern {
  background: #ffffff;
}

.services-modern__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.services-modern__heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -.055em;
}

.services-modern__heading h2 span {
  color: var(--dynamic-purple);
}

.services-modern__heading > p {
  max-width: 470px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dynamic-line);
  border: 1px solid var(--dynamic-line);
}

.service-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  background: #ffffff;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--dynamic-purple);
  transition: height .25s ease;
}

.service-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  height: 100%;
}

.service-card--featured {
  background: var(--dynamic-purple);
  color: #ffffff;
}

.service-card--featured::before {
  background: #ffffff;
}

.service-card--featured p,
.service-card--featured .service-card__category {
  color: rgba(255,255,255,.68);
}

.service-card--featured .service-card__link {
  color: #ffffff;
}

.service-card--featured:hover {
  background: var(--dynamic-purple-dark);
}

.service-card--dark {
  background: #1d2025;
  color: #ffffff;
}

.service-card--dark p,
.service-card--dark .service-card__category {
  color: rgba(255,255,255,.62);
}

.service-card--dark .service-card__link {
  color: #ffffff;
}

.service-card__number {
  color: var(--dynamic-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.service-card--featured .service-card__number,
.service-card--dark .service-card__number {
  color: #aeb9df;
}

.service-card__content {
  margin-top: auto;
}

.service-card__category {
  display: block;
  margin-bottom: 12px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 25px;
  letter-spacing: -.025em;
}

.service-card p {
  max-width: 360px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-card__link span {
  transition: transform .2s ease;
}

.service-card:hover .service-card__link span {
  transform: translateX(4px);
}


/* ============================================================
   10. MATERIALS
   ============================================================ */

.materials-modern {
  background: var(--ghost);
}

.materials-modern__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 1px;
  background: var(--dynamic-line);
  border: 1px solid var(--dynamic-line);
}

.material-card {
  position: relative;
  min-height: 285px;
  padding: 28px;
  overflow: hidden;
  background: #ffffff;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.material-card:hover {
  z-index: 2;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.material-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(89,101,143,.14);
  border-radius: 50%;
  transition: transform .35s ease;
}

.material-card:hover::after {
  transform: scale(1.5);
}

.material-card--feature {
  background: var(--dynamic-purple);
  color: #ffffff;
}

.material-card--feature .material-card__number,
.material-card--feature p,
.material-card--feature .material-card__detail {
  color: rgba(255,255,255,.68);
}

.material-card--feature .material-card__arrow {
  color: #ffffff;
}

.material-card--outline {
  background: transparent;
}

.material-card__number {
  display: block;
  margin-bottom: 70px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.material-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.material-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -.025em;
}

.material-card__detail {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.material-card__arrow {
  position: absolute;
  right: 25px;
  bottom: 25px;
  color: var(--dynamic-purple);
  font-size: 22px;
}


/* ============================================================
   11. QUALITY
   ============================================================ */

.quality-modern {
  background: #ffffff;
}

.quality-modern__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.quality-modern__top h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -.055em;
}

.quality-modern__top h2 span {
  color: var(--dynamic-purple);
}

.quality-modern__top > p {
  max-width: 480px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.quality-modern__main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 35px;
}

.quality-certificate {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 45px;
  background: #1d2025;
  color: #ffffff;
}

.quality-certificate::before,
.quality-certificate::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  pointer-events: none;
}

.quality-certificate::before {
  width: 440px;
  height: 440px;
  right: -170px;
  top: -180px;
}

.quality-certificate::after {
  width: 250px;
  height: 250px;
  right: -75px;
  top: -85px;
}

.quality-certificate__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 90px;
  color: rgba(255,255,255,.50);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.quality-certificate__top span:last-child {
  color: #aeb9df;
}

.quality-certificate__body {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.quality-certificate__eyebrow {
  margin-bottom: 12px;
  color: #aeb9df;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quality-certificate h3 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.045em;
}

.quality-certificate__body > p:not(.quality-certificate__eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.8;
}

.quality-certificate .button {
  background: #ffffff;
  border-color: #ffffff;
  color: #1d2025;
}

.quality-certificate .button:hover {
  background: var(--dynamic-accent);
  border-color: var(--dynamic-accent);
  color: #ffffff;
}

.quality-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--dynamic-line);
}

.quality-detail {
  padding: 25px;
  background: var(--ghost);
}

.quality-detail__number {
  display: block;
  margin-bottom: 55px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.quality-detail strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.quality-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.quality-modern__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1px;
  background: var(--dynamic-line);
}

.quality-modern__footer > div {
  min-height: 135px;
  padding: 25px;
  background: #ffffff;
}

.quality-modern__footer span {
  display: block;
  margin-bottom: 14px;
  color: var(--dynamic-purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quality-modern__footer strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.quality-modern__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}


/* ============================================================
   12. PROJECTS
   ============================================================ */

.projects-modern {
  background: var(--paper);
}

.projects-modern__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.projects-modern__heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -.055em;
}

.projects-modern__heading h2 span {
  color: var(--dynamic-purple);
}

.projects-modern__heading > p {
  max-width: 450px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.projects-modern__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.projects-modern .project {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  outline: none;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.projects-modern .project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(10,13,18,.10),
      rgba(10,13,18,.82)
    );
  transition: background .25s ease;
}

.projects-modern .project:hover {
  z-index: 2;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.projects-modern .project:hover::before {
  background:
    linear-gradient(
      180deg,
      rgba(10,13,18,.04),
      rgba(10,13,18,.88)
    );
}

.projects-modern .project:focus-visible {
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px var(--dynamic-purple);
}

.project__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.project__top {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #ffffff;
}

.project__top > span:first-child {
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.project__open {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.30);
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition:
    background .2s ease,
    border-color .2s ease;
}

.projects-modern .project:hover .project__open,
.projects-modern .project:focus-visible .project__open {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.65);
}

.project__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  color: #ffffff;
}

.project__content p {
  margin-bottom: 7px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project__content h3 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: -.025em;
}

.projects-modern .project--feature {
  grid-column: span 7;
  grid-row: span 2;
}

.projects-modern .project--feature .project__content h3 {
  font-size: clamp(30px, 4vw, 52px);
}

.projects-modern .project--feature .project__content p {
  font-size: 10px;
}

.projects-modern .project--tall {
  grid-column: span 5;
  grid-row: span 2;
}

.projects-modern .project--wide {
  grid-column: span 6;
  grid-row: span 1;
}


/* ============================================================
   13. CONTACT
   ============================================================ */

.contact-modern {
  position: relative;
  overflow: hidden;
  padding: 125px 0 110px;
  background: var(--dynamic-purple);
  color: #ffffff;
}

.contact-modern::before,
.contact-modern::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  pointer-events: none;
}

.contact-modern::before {
  width: 520px;
  height: 520px;
  right: -190px;
  top: -250px;
}

.contact-modern::after {
  width: 300px;
  height: 300px;
  right: -75px;
  top: -140px;
  border-color: rgba(255,255,255,.08);
}

.contact-modern .container {
  position: relative;
  z-index: 2;
}

.contact-modern__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.contact-modern__intro .section-label {
  color: #bfc8eb;
}

.contact-modern__intro h2 {
  max-width: 700px;
  margin-bottom: 28px;
  color: #ffffff;
  font-size: clamp(50px, 6vw, 84px);
  letter-spacing: -.055em;
  line-height: .94;
}

.contact-modern__intro h2 span {
  color: #aebbe8;
}

.contact-modern__lead {
  max-width: 540px;
  margin-bottom: 35px;
  color: rgba(255,255,255,.70);
  font-size: 17px;
  line-height: 1.75;
}

.contact-modern__button {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--dynamic-purple);
}

.contact-modern__button:hover {
  background: var(--dynamic-accent);
  border-color: var(--dynamic-accent);
  color: #ffffff;
}

.contact-modern__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.18);
  border-left: 1px solid rgba(255,255,255,.18);
}

.contact-detail {
  min-height: 205px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.contact-detail--primary {
  grid-column: span 2;
  min-height: 230px;
  background: rgba(255,255,255,.06);
}

.contact-detail__label {
  display: block;
  margin-bottom: 35px;
  color: #aebbe8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-detail strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 16px;
}

.contact-detail a {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  font-size: 14px;
}

.contact-detail a:hover {
  border-color: #cbd3ef;
  color: #cbd3ef;
}

.contact-detail p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.8;
}


/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer-modern {
  padding: 80px 0 0;
  background: #15171c;
  color: #ffffff;
}

.site-footer-modern__main {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 70px;
}

.site-footer-modern__brand {
  max-width: 330px;
}

.site-footer-modern__logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .08em;
}

.site-footer-modern__logo span {
  color: #aab7e4;
}

.site-footer-modern__brand > p:first-of-type {
  margin-bottom: 25px;
  color: #aab7e4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-footer-modern__statement {
  color: rgba(255,255,255,.46);
  font-size: 12px;
  line-height: 1.75;
}

.site-footer-modern__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer-modern__label {
  display: block;
  margin-bottom: 22px;
  color: #7180ad;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-footer-modern__column a,
.site-footer-modern__column strong,
.site-footer-modern__column p {
  margin-bottom: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer-modern__column strong {
  color: #ffffff;
}

.site-footer-modern__column a:hover {
  color: #ffffff;
}

.site-footer-modern__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.34);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .04em;
}


/* ============================================================
   15. LIGHTBOX
   ============================================================ */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  background: rgba(15,17,22,.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.image-lightbox__caption {
  max-width: 900px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.image-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(255,255,255,.10);
}


/* ============================================================
   16. ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--dynamic-purple);
  outline-offset: 3px;
}


/* ============================================================
   17. TABLET
   ============================================================ */

@media (max-width: 1000px) {

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

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

  .material-card--feature {
    grid-column: span 2;
  }

  .projects-modern__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }

  .projects-modern .project--feature,
  .projects-modern .project--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .projects-modern .project--feature {
    grid-column: span 2;
  }

  .projects-modern .project--wide {
    grid-column: span 1;
  }

  .site-footer-modern__main {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-modern__brand {
    grid-column: span 2;
  }
}


/* ============================================================
   18. MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 800px) {

  .container {
    width: min(calc(100% - 36px), var(--max));
  }

  .top-bar__inner {
    min-height: 42px;
  }

  .top-bar__company {
    display: none;
  }

  .top-bar__contact {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-logo {
    width: 210px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 26px;
    background: #15171c;
    color: #ffffff;
    box-shadow: 0 20px 35px rgba(0,0,0,.15);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: 13px 0;
    color: rgba(255,255,255,.82);
  }

  .site-nav > a:not(.button)::after {
    display: none;
  }

  .site-nav .button {
    margin-top: 10px;
  }

  .hero--image {
    min-height: 650px;
  }

  .hero h1 {
    font-size: clamp(50px, 11vw, 80px);
  }

  .hero-scroll {
    display: none;
  }

  .about-modern__body,
  .services-modern__heading,
  .quality-modern__top,
  .projects-modern__heading,
  .quality-modern__main,
  .contact-modern__grid {
    grid-template-columns: 1fr;
  }

  .about-modern__body {
    gap: 50px;
  }

  .services-modern__heading,
  .quality-modern__top,
  .projects-modern__heading {
    gap: 25px;
  }

  .about-modern__image {
    min-height: 430px;
  }

  .contact-modern__grid {
    gap: 55px;
  }

  .quality-certificate {
    min-height: 430px;
  }

  .site-footer-modern__main {
    gap: 45px 30px;
  }
}


/* ============================================================
   19. SMALL MOBILE
   ============================================================ */

@media (max-width: 560px) {

  .section {
    padding: 80px 0;
  }

  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .top-bar__contact {
    font-size: 9px;
  }

  .top-bar__contact span:first-child {
    display: none;
  }

  .brand-logo {
    width: 190px;
  }

  .hero--image {
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 65px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-credentials {
    flex-direction: column;
    gap: 9px;
    margin-top: 40px;
  }

  .hero-credentials span {
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(255,255,255,.30);
  }

  .about-modern__facts {
    grid-template-columns: 1fr;
  }

  .about-fact,
  .about-fact + .about-fact {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dynamic-line);
  }

  .about-fact:last-child {
    border-bottom: 0;
  }

  .services-grid,
  .materials-modern__grid,
  .quality-details,
  .projects-modern__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 270px;
  }

  .material-card--feature,
  .projects-modern .project--feature {
    grid-column: span 1;
  }

  .projects-modern__grid {
    grid-auto-rows: 260px;
  }

  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .quality-certificate {
    min-height: 460px;
    padding: 30px;
  }

  .quality-certificate__top {
    margin-bottom: 65px;
  }

  .quality-modern__footer {
    grid-template-columns: 1fr;
  }

  .contact-modern {
    padding: 90px 0 80px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(46px, 12vw, 68px);
  }

  .contact-modern__details {
    grid-template-columns: 1fr;
  }

  .contact-detail--primary {
    grid-column: span 1;
  }

  .site-footer-modern {
    padding-top: 60px;
  }

  .site-footer-modern__main {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .site-footer-modern__brand {
    grid-column: span 1;
  }

  .site-footer-modern__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .image-lightbox {
    padding: 25px;
  }

  .image-lightbox img {
    max-width: 96vw;
    max-height: 72vh;
  }
}


/* ============================================================
   20. VERY SMALL SCREENS
   ============================================================ */

@media (max-width: 400px) {

  .top-bar__contact {
    justify-content: flex-start;
  }

  .top-bar__contact a:last-child {
    display: none;
  }

  .brand-logo {
    width: 175px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .section {
    padding: 70px 0;
  }

  .contact-detail {
    padding: 22px;
  }

  .quality-certificate {
    padding: 25px;
  }
}

/* ============================================================
   STAGE 8F - FINAL VISUAL STABILISATION
   Purpose:
   - establish controlled desktop proportions
   - reduce oversized typography
   - reduce excessive section spacing
   - present projects as compact clickable thumbnails
   - preserve existing project lightbox behaviour
   - improve tablet/mobile consistency
   ============================================================ */


/* ------------------------------------------------------------
   1. GLOBAL SECTION PROPORTIONS
   ------------------------------------------------------------ */

.section {
  padding: 92px 0;
}

.section-label {
  margin-bottom: 20px;
}


/* ------------------------------------------------------------
   2. HERO
   ------------------------------------------------------------ */

.hero--image {
  min-height: 590px;
}

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

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 5.7vw, 82px);
  line-height: .94;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.65;
}

.hero-credentials {
  margin-top: 42px;
}


/* ------------------------------------------------------------
   3. ABOUT
   ------------------------------------------------------------ */

.about-modern__body {
  align-items: start;
  gap: 58px;
}

.about-modern__image {
  min-height: 0;
  height: 460px;
  transform: none;
}

.about-modern__content {
  padding-top: 4px;
}

.about-modern__facts {
  margin-top: 30px;
}


/* ------------------------------------------------------------
   4. SERVICES
   ------------------------------------------------------------ */

.services-modern__heading {
  margin-bottom: 42px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.service-card {
  min-height: 285px;
}


/* ------------------------------------------------------------
   5. MATERIALS
   ------------------------------------------------------------ */

.materials-modern__heading {
  margin-bottom: 38px;
}

.materials-modern__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.material-card {
  min-height: 270px;
}

.material-card--feature {
  grid-column: 1 / -1;
  min-height: 175px;
}


/* ------------------------------------------------------------
   6. QUALITY
   ------------------------------------------------------------ */

.quality-modern__top {
  margin-bottom: 48px;
}

.quality-modern__main {
  gap: 28px;
}

.quality-certificate {
  min-height: 390px;
}

.quality-modern__footer {
  margin-top: 28px;
}


/* ------------------------------------------------------------
   7. PROJECT GALLERY
   ------------------------------------------------------------ */

/*
   Projects are deliberately thumbnails.
   The full-resolution photograph remains available through
   the existing lightbox JavaScript when the project is clicked.
*/

.projects-modern__heading {
  margin-bottom: 42px;
}

.projects-modern__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 14px;
}

.projects-modern .project,
.project {
  min-height: 0;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
}

/*
   Two larger feature thumbnails at the top.
   These are still thumbnails, not full-page photographs.
*/

.projects-modern .project--feature,
.project--feature {
  grid-column: span 2;
  grid-row: span 2;
  height: 374px;
}

.projects-modern .project--tall,
.project--tall {
  grid-column: span 2;
  grid-row: span 2;
  height: 374px;
}

/*
   The remaining four projects form a compact thumbnail row.
*/

.projects-modern .project--wide,
.project--wide {
  grid-column: span 1;
  grid-row: span 1;
  height: 180px;
}

.project__content {
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.project__content h3 {
  font-size: 21px;
  line-height: 1.05;
}

.project--feature .project__content h3,
.project--tall .project__content h3 {
  font-size: clamp(24px, 2.2vw, 34px);
}

.project__content p {
  font-size: 8px;
}

.project__top {
  top: 17px;
  left: 18px;
  right: 18px;
}

.project__open {
  padding: 6px 8px;
  font-size: 7px;
}


/* ------------------------------------------------------------
   8. PROJECT IMAGE HOVER
   ------------------------------------------------------------ */

.project {
  background-position: center;
  background-size: cover;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255,255,255,0);
  pointer-events: none;
  transition: background .22s ease;
}

.project:hover::after,
.project:focus-visible::after {
  background: rgba(255,255,255,.06);
}


/* ------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------ */

.contact-modern {
  padding: 96px 0 88px;
}

.contact-modern__grid {
  gap: 48px;
}

.contact-modern__intro h2 {
  max-width: 620px;
  font-size: clamp(52px, 6vw, 82px);
  line-height: .94;
}


/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */

.site-footer-modern {
  padding-top: 68px;
}

.site-footer-modern__main {
  gap: 45px;
}

.site-footer-modern__bottom {
  margin-top: 52px;
}


/* ------------------------------------------------------------
   11. LIGHTBOX
   ------------------------------------------------------------ */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10,13,18,.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox img {
  display: block;
  width: auto;
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.image-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.18);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
}

.image-lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 80vw;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}


/* ------------------------------------------------------------
   12. TABLET
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

  .hero--image {
    min-height: 540px;
  }

  .hero h1 {
    font-size: clamp(50px, 7vw, 72px);
  }

  .about-modern__image {
    height: 400px;
  }

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

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

  .material-card--feature {
    grid-column: span 2;
  }

  .projects-modern__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .projects-modern .project,
  .project {
    height: 210px;
  }

  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide,
  .project--feature,
  .project--tall,
  .project--wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 210px;
  }

  .projects-modern .project--feature,
  .projects-modern .project--tall {
    grid-column: span 2;
  }

  .contact-modern__intro h2 {
    font-size: clamp(48px, 7vw, 68px);
  }
}


/* ------------------------------------------------------------
   13. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 800px) {

  .section {
    padding: 76px 0;
  }

  .hero--image {
    min-height: 520px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(48px, 10vw, 68px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .about-modern__image {
    height: 360px;
  }

  .service-card {
    min-height: 250px;
  }

  .material-card {
    min-height: 230px;
  }

  .material-card--feature {
    min-height: 180px;
  }

  .projects-modern__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .projects-modern .project,
  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide,
  .project,
  .project--feature,
  .project--tall,
  .project--wide {
    height: 190px;
    grid-column: span 1;
    grid-row: span 1;
  }

  .projects-modern .project--feature,
  .projects-modern .project--tall {
    grid-column: span 2;
  }

  .contact-modern {
    padding: 78px 0 70px;
  }
}


/* ------------------------------------------------------------
   14. SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 560px) {

  .section {
    padding: 68px 0;
  }

  .hero--image {
    min-height: 500px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .about-modern__image {
    height: 300px;
  }

  .services-grid,
  .materials-modern__grid {
    grid-template-columns: 1fr;
  }

  .material-card--feature {
    grid-column: span 1;
  }

  .projects-modern__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .projects-modern .project,
  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide,
  .project,
  .project--feature,
  .project--tall,
  .project--wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 220px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .image-lightbox {
    padding: 20px;
  }

  .image-lightbox img {
    max-width: 94vw;
    max-height: 76vh;
  }

  .image-lightbox__close {
    top: 15px;
    right: 15px;
  }
}


/* ------------------------------------------------------------
   15. VERY SMALL SCREENS
   ------------------------------------------------------------ */

@media (max-width: 400px) {

  .hero h1 {
    font-size: 42px;
  }

  .projects-modern__grid {
    grid-auto-rows: 200px;
  }

  .projects-modern .project,
  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide,
  .project,
  .project--feature,
  .project--tall,
  .project--wide {
    height: 200px;
  }
}


/* ============================================================
   STAGE 8G - CORPORATE TYPOGRAPHY & PROPORTION
   Purpose:
   - reduce oversized display typography
   - create a more established engineering-company feel
   - tighten excessive vertical spacing
   - improve contrast on coloured cards
   - preserve Stage 8F project image dimensions
   - preserve existing lightbox behaviour
   ============================================================ */


/* ------------------------------------------------------------
   1. GLOBAL SECTION PROPORTIONS
   ------------------------------------------------------------ */

.section {
  padding: 76px 0;
}

.section-label {
  margin-bottom: 16px;
}


/* ------------------------------------------------------------
   2. HERO
   ------------------------------------------------------------ */

.hero--image {
  min-height: 550px;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(46px, 4.55vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.62;
}

.hero-credentials {
  margin-top: 34px;
}


/* ------------------------------------------------------------
   3. ABOUT
   ------------------------------------------------------------ */

.about-modern__body {
  gap: 50px;
}

.about-modern__image {
  height: 440px;
}

.about-modern__facts {
  margin-top: 26px;
}


/* ------------------------------------------------------------
   4. ABOUT / GENERAL SECTION HEADINGS
   ------------------------------------------------------------ */

.about-modern h2,
.services-modern h2,
.materials-modern h2,
.quality-modern h2,
.projects-modern h2 {
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.04em;
}


/* ------------------------------------------------------------
   5. SERVICES
   ------------------------------------------------------------ */

.services-modern__heading {
  margin-bottom: 34px;
}

.service-card {
  min-height: 270px;
}

.service-card h3 {
  font-size: 28px;
  line-height: 1.05;
}


/* Improve readability on dark/blue service cards */

.service-card--featured p,
.service-card--dark p,
.service-card--accent p {
  color: rgba(255,255,255,.78);
}


/* ------------------------------------------------------------
   6. MATERIALS
   ------------------------------------------------------------ */

.materials-modern__heading {
  margin-bottom: 32px;
}

.material-card {
  min-height: 250px;
}

.material-card h3 {
  font-size: 27px;
  line-height: 1.05;
}


/* Preserve readable text on featured material panel */

.material-card--feature p,
.material-card--feature .material-card__description {
  color: rgba(255,255,255,.78);
}


/* ------------------------------------------------------------
   7. QUALITY
   ------------------------------------------------------------ */

.quality-modern__top {
  margin-bottom: 38px;
}

.quality-modern__main {
  gap: 24px;
}

.quality-certificate {
  min-height: 360px;
}

.quality-certificate h3,
.quality-certificate__title {
  font-size: clamp(42px, 4vw, 58px);
  line-height: .98;
}


/* ------------------------------------------------------------
   8. PROJECTS
   ------------------------------------------------------------ */

.projects-modern__heading {
  margin-bottom: 34px;
}

.projects-modern h2 {
  max-width: 680px;
}


/*
   IMPORTANT:
   Project image dimensions from Stage 8F are deliberately
   NOT changed in Stage 8G.
*/

.projects-modern__grid {
  gap: 14px;
}


/* ------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------ */

.contact-modern {
  padding: 78px 0 72px;
}

.contact-modern__grid {
  gap: 42px;
}

.contact-modern__intro h2 {
  max-width: 560px;
  font-size: clamp(46px, 4.7vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
}


/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */

.site-footer-modern {
  padding-top: 58px;
}

.site-footer-modern__main {
  gap: 40px;
}

.site-footer-modern__bottom {
  margin-top: 44px;
}


/* ------------------------------------------------------------
   11. CORPORATE TYPOGRAPHY REFINEMENT
   ------------------------------------------------------------ */

/*
   Large display text should feel authoritative rather than
   promotional. These values intentionally avoid the oversized
   editorial/agency appearance of the previous version.
*/

.hero h1,
.about-modern h2,
.services-modern h2,
.materials-modern h2,
.quality-modern h2,
.projects-modern h2,
.contact-modern__intro h2 {
  font-weight: 700;
}


/* Keep ordinary headings compact and practical */

.service-card h3,
.material-card h3,
.quality-certificate h3,
.project__content h3 {
  letter-spacing: -.025em;
}


/* ------------------------------------------------------------
   12. IMPROVED CARD CONTRAST
   ------------------------------------------------------------ */

.service-card--featured p,
.service-card--dark p,
.service-card--accent p,
.material-card--feature p,
.material-card--feature .material-card__description {
  opacity: 1;
}


/* ------------------------------------------------------------
   13. TABLET
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

  .section {
    padding: 68px 0;
  }

  .hero--image {
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(44px, 6vw, 62px);
  }

  .about-modern__image {
    height: 390px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(40px, 5.5vw, 54px);
  }

  .service-card h3,
  .material-card h3 {
    font-size: 25px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(44px, 6vw, 60px);
  }
}


/* ------------------------------------------------------------
   14. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 800px) {

  .section {
    padding: 62px 0;
  }

  .hero--image {
    min-height: 500px;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(40px, 9vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .about-modern__image {
    height: 340px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(38px, 8vw, 52px);
  }

  .service-card {
    min-height: 240px;
  }

  .material-card {
    min-height: 220px;
  }

  .contact-modern {
    padding: 68px 0 62px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(42px, 9vw, 58px);
  }
}


/* ------------------------------------------------------------
   15. SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 560px) {

  .section {
    padding: 56px 0;
  }

  .hero--image {
    min-height: 480px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .about-modern__image {
    height: 300px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .service-card h3,
  .material-card h3 {
    font-size: 24px;
  }

  .contact-modern {
    padding: 62px 0 56px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(40px, 12vw, 54px);
  }
}


/* ------------------------------------------------------------
   16. VERY SMALL SCREENS
   ------------------------------------------------------------ */

@media (max-width: 400px) {

  .hero h1 {
    font-size: 38px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: 36px;
  }

  .contact-modern__intro h2 {
    font-size: 40px;
  }
}


/* ============================================================
   STAGE 8H - FULL PAGE LAYOUT & PROPORTION REFINEMENT

   Objectives:
   - establish consistent page alignment
   - reduce oversized visual hierarchy
   - improve vertical rhythm
   - tighten excessive whitespace
   - improve navigation landing positions
   - improve contact/footer proportions
   - preserve project image dimensions
   - preserve existing lightbox behaviour
   - preserve existing content
   ============================================================ */


/* ------------------------------------------------------------
   1. PAGE RHYTHM
   ------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

[id] {
  scroll-margin-top: 120px;
}

.section {
  padding-top: 68px;
  padding-bottom: 68px;
}


/* ------------------------------------------------------------
   2. CONSISTENT CONTENT WIDTH
   ------------------------------------------------------------ */

.section > .container,
.section .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}


/* ------------------------------------------------------------
   3. HERO - MORE PROFESSIONAL PROPORTION
   ------------------------------------------------------------ */

.hero--image {
  min-height: 520px;
}

.hero-content {
  max-width: 660px;
  padding-left: clamp(24px, 4.6vw, 64px);
  padding-right: 24px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(44px, 4.05vw, 60px);
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 24px;
  font-size: 15.5px;
  line-height: 1.58;
}

.hero-credentials {
  margin-top: 28px;
}

.hero .button,
.hero a.button {
  min-height: 46px;
}


/* ------------------------------------------------------------
   4. SECTION LABELS
   ------------------------------------------------------------ */

.section-label {
  margin-bottom: 13px;
  font-size: 11px;
  letter-spacing: .16em;
}


/* ------------------------------------------------------------
   5. MAJOR SECTION HEADINGS
   ------------------------------------------------------------ */

.about-modern h2,
.services-modern h2,
.materials-modern h2,
.quality-modern h2,
.projects-modern h2 {
  font-size: clamp(38px, 3.55vw, 50px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 760px;
}

.about-modern h2 {
  max-width: 920px;
}

.projects-modern h2 {
  max-width: 650px;
}


/* ------------------------------------------------------------
   6. ABOUT
   ------------------------------------------------------------ */

.about-modern__heading {
  margin-bottom: 22px;
}

.about-modern__body {
  gap: 44px;
  align-items: start;
}

.about-modern__image {
  height: 430px;
}

.about-modern__facts {
  margin-top: 22px;
}

.about-modern__body p {
  line-height: 1.65;
}

.about-modern__body > * {
  min-width: 0;
}


/* ------------------------------------------------------------
   7. SERVICES / CAPABILITIES
   ------------------------------------------------------------ */

.services-modern__heading {
  margin-bottom: 28px;
}

.services-modern__heading p {
  max-width: 560px;
  line-height: 1.6;
}

.service-card {
  min-height: 245px;
  padding: 30px;
}

.service-card h3 {
  font-size: 25px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.service-card p {
  max-width: 360px;
  line-height: 1.55;
}

.service-card__link {
  margin-top: 22px;
}


/* ------------------------------------------------------------
   8. MATERIALS
   ------------------------------------------------------------ */

.materials-modern__heading {
  margin-bottom: 26px;
}

.materials-modern__heading p {
  max-width: 760px;
  line-height: 1.6;
}

.material-card {
  min-height: 230px;
  padding: 28px;
}

.material-card h3 {
  font-size: 25px;
  line-height: 1.08;
}

.material-card p,
.material-card__description {
  line-height: 1.5;
}


/* Featured titanium panel */

.material-card--feature {
  min-height: 300px;
  padding: 30px;
}

.material-card--feature h3 {
  font-size: 27px;
}


/* ------------------------------------------------------------
   9. QUALITY
   ------------------------------------------------------------ */

.quality-modern__top {
  margin-bottom: 30px;
}

.quality-modern__top p {
  max-width: 520px;
  line-height: 1.6;
}

.quality-modern__main {
  gap: 20px;
}

.quality-certificate {
  min-height: 340px;
  padding: 38px 44px;
}

.quality-certificate h3,
.quality-certificate__title {
  font-size: clamp(38px, 3.5vw, 52px);
  line-height: 1.02;
}

.quality-certificate p {
  line-height: 1.55;
}

.quality-modern__facts {
  min-height: 340px;
}


/* ------------------------------------------------------------
   10. PROJECTS

   IMPORTANT:
   Do NOT alter project image dimensions established in Stage 8F.
   ------------------------------------------------------------ */

.projects-modern__heading {
  margin-bottom: 28px;
}

.projects-modern__heading p {
  max-width: 520px;
  line-height: 1.6;
}

.projects-modern__grid {
  gap: 14px;
}


/* Keep project title hierarchy controlled */

.project__content h3 {
  line-height: 1.08;
  letter-spacing: -.025em;
}

.projects-modern .project:first-child .project__content h3,
.projects-modern .project:nth-child(2) .project__content h3 {
  font-size: clamp(28px, 2.35vw, 36px);
}


/* ------------------------------------------------------------
   11. CONTACT

   Main objective:
   Remove excessive empty vertical space while retaining
   the strong blue contact treatment.
   ------------------------------------------------------------ */

.contact-modern {
  padding-top: 68px;
  padding-bottom: 58px;
}

.contact-modern__grid {
  gap: 32px;
  align-items: start;
}

.contact-modern__intro {
  padding-top: 4px;
}

.contact-modern__intro h2 {
  max-width: 500px;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.01;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}

.contact-modern__intro p {
  max-width: 520px;
  line-height: 1.62;
}

.contact-modern__intro .button,
.contact-modern__intro a.button {
  margin-top: 20px;
}


/* Contact information panel */

.contact-modern__details,
.contact-modern__info,
.contact-modern__card {
  min-height: 0;
}

.contact-modern__grid > * {
  min-height: 0;
}


/* Prevent empty grid rows from stretching unnecessarily */

.contact-modern__grid > div {
  align-self: start;
}


/* ------------------------------------------------------------
   12. CONTACT TYPOGRAPHY
   ------------------------------------------------------------ */

.contact-modern strong,
.contact-modern h3 {
  line-height: 1.25;
}

.contact-modern p {
  line-height: 1.55;
}


/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */

.site-footer-modern {
  padding-top: 48px;
  padding-bottom: 28px;
}

.site-footer-modern__main {
  gap: 34px;
}

.site-footer-modern__main p {
  line-height: 1.5;
}

.site-footer-modern__bottom {
  margin-top: 36px;
}


/* ------------------------------------------------------------
   14. HEADER / NAVIGATION LANDING
   ------------------------------------------------------------ */

.site-header-modern {
  position: relative;
  z-index: 1000;
}

.site-header-modern a {
  transition: opacity .2s ease;
}

.site-header-modern a:hover {
  opacity: .72;
}


/* ------------------------------------------------------------
   15. BUTTON PROPORTION
   ------------------------------------------------------------ */

.button,
.btn,
a.button {
  min-height: 46px;
  padding-left: 24px;
  padding-right: 24px;
  letter-spacing: .12em;
}


/* ------------------------------------------------------------
   16. TABLET
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

  html {
    scroll-padding-top: 90px;
  }

  [id] {
    scroll-margin-top: 90px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero--image {
    min-height: 500px;
  }

  .hero-content {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero h1 {
    font-size: clamp(42px, 5.5vw, 56px);
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(36px, 5vw, 48px);
  }

  .about-modern__body {
    gap: 32px;
  }

  .service-card {
    min-height: 230px;
    padding: 26px;
  }

  .material-card {
    min-height: 220px;
    padding: 26px;
  }

  .quality-certificate {
    padding: 34px;
  }

  .contact-modern {
    padding-top: 60px;
    padding-bottom: 52px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(40px, 5.5vw, 52px);
  }
}


/* ------------------------------------------------------------
   17. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 800px) {

  html {
    scroll-padding-top: 80px;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero--image {
    min-height: 470px;
  }

  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(38px, 8vw, 52px);
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 15px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(34px, 7.5vw, 46px);
  }

  .about-modern__image {
    height: 340px;
  }

  .service-card {
    min-height: 0;
    padding: 24px;
  }

  .material-card {
    min-height: 0;
    padding: 24px;
  }

  .material-card--feature {
    min-height: 250px;
  }

  .quality-certificate {
    min-height: 0;
    padding: 30px 26px;
  }

  .quality-modern__facts {
    min-height: 0;
  }

  .contact-modern {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .contact-modern__intro h2 {
    font-size: clamp(38px, 8.5vw, 52px);
  }

  .site-footer-modern {
    padding-top: 42px;
    padding-bottom: 24px;
  }
}


/* ------------------------------------------------------------
   18. SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 560px) {

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero--image {
    min-height: 450px;
  }

  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .hero-copy {
    font-size: 14.5px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .about-modern__image {
    height: 300px;
  }

  .service-card,
  .material-card {
    padding: 22px;
  }

  .service-card h3,
  .material-card h3 {
    font-size: 23px;
  }

  .quality-certificate {
    padding: 26px 22px;
  }

  .quality-certificate h3,
  .quality-certificate__title {
    font-size: clamp(34px, 9vw, 46px);
  }

  .contact-modern__intro h2 {
    font-size: clamp(36px, 10.5vw, 50px);
  }
}


/* ------------------------------------------------------------
   19. VERY SMALL SCREENS
   ------------------------------------------------------------ */

@media (max-width: 400px) {

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2 {
    font-size: 32px;
  }

  .contact-modern__intro h2 {
    font-size: 36px;
  }
}
/* ============================================================
   STAGE 9 - MATERIALS & TYPOGRAPHY REFINEMENT

   Objectives:
   - reduce oversized section headings
   - make major headings read as clean single-line headings
     on normal desktop widths
   - keep service/material titles compact
   - introduce restrained photographic material cards
   - preserve existing project image sizing and lightbox behaviour
   ============================================================ */

/* ------------------------------------------------------------
   1. MAJOR SECTION HEADINGS
   ------------------------------------------------------------ */

.about-modern h2,
.services-modern h2,
.materials-modern h2,
.quality-modern h2,
.projects-modern h2 {
  font-size: clamp(30px, 2.35vw, 33px);
  line-height: 1.10;
  letter-spacing: -.028em;
  max-width: none;
  margin-bottom: 18px;
}

.contact-modern__intro h2 {
  font-size: clamp(32px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 720px;
}

@media (min-width: 1180px) {
  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2,
  .contact-modern__intro h2 {
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------
   2. HERO - LESS EDITORIAL / MORE CORPORATE
   ------------------------------------------------------------ */

.hero h1 {
  font-size: clamp(46px, 3.7vw, 54px);
  line-height: 1.01;
  letter-spacing: -.038em;
  max-width: 760px;
}

/* ------------------------------------------------------------
   3. SERVICE + MATERIAL CARD TITLES
   ------------------------------------------------------------ */

.service-card h3,
.material-card h3 {
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -.022em;
}

@media (min-width: 801px) {
  .service-card h3,
  .material-card h3 {
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------
   4. MATERIAL SECTION
   ------------------------------------------------------------ */

.materials-modern__heading {
  margin-bottom: 28px;
}

.materials-modern__grid {
  gap: 1px;
}

.material-card {
  min-height: 270px;
  padding: 28px;
  isolation: isolate;
  color: #fff;
  background-color: var(--dynamic-purple);
  background-size: cover;
  background-position: center;
  border: 0;
}

.material-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(20,24,30,.18) 0%,
    rgba(20,24,30,.80) 100%
  );
  transition: background .25s ease;
}

.material-card > * {
  position: relative;
  z-index: 2;
}

.material-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(20,24,30,.10) 0%,
    rgba(20,24,30,.70) 100%
  );
}

/* Material photography */

.material-card:nth-child(1) {
  background-image: url("assets/images/materials/titanium.jpg");
  background-position: center 45%;
}

.material-card:nth-child(2) {
  background-image: url("assets/images/materials/stainless-steel.jpg");
  background-position: center 42%;
}

.material-card:nth-child(3) {
  background-image: url("assets/images/materials/nickel.jpg");
  background-position: center 52%;
}

.material-card:nth-child(4) {
  background-image: url("assets/images/materials/aluminium.jpg");
  background-position: center 48%;
}

.material-card:nth-child(5) {
  background-image: url("assets/images/materials/carbon-steel.jpg");
  background-position: center 50%;
}

/* Material text remains readable over photography */

.material-card .material-card__number,
.material-card p,
.material-card h3,
.material-card .material-card__detail,
.material-card .material-card__arrow {
  color: #fff;
}

.material-card .material-card__number {
  margin-bottom: 72px;
  font-size: 9px;
  letter-spacing: .16em;
}

.material-card p {
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}

.material-card h3 {
  margin-bottom: 7px;
}

.material-card__detail {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(20,24,30,.30);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Keep the final "built to requirement" card intentionally clean. */

.material-card--outline {
  color: var(--ink);
  background: #e3e6ed;
}

.material-card--outline::before {
  display: none;
}

.material-card--outline > * {
  color: var(--ink);
}

.material-card--outline p,
.material-card--outline .material-card__number {
  color: var(--muted);
}

/* ------------------------------------------------------------
   5. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 800px) {
  .about-modern h2,
  .services-modern h2,
  .materials-modern h2,
  .quality-modern h2,
  .projects-modern h2,
  .contact-modern__intro h2 {
    font-size: 31px;
    white-space: normal;
  }

  .hero h1 {
    font-size: 46px;
  }

  .service-card h3,
  .material-card h3 {
    white-space: normal;
  }

  .material-card {
    min-height: 220px;
  }
}


/* ============================================================
   STAGE 10A - PROFESSIONAL VISUAL REFINEMENT
   ============================================================ */

/* ---------- GLOBAL RHYTHM ---------- */

html {
    scroll-behavior: smooth;
}

.section {
    scroll-margin-top: 100px;
}

/* ---------- SECTION HEADINGS ---------- */

.about-modern .section-heading h2,
.services-modern .section-heading h2,
.materials-modern .section-heading h2,
.quality-modern .section-heading h2,
.projects-modern .section-heading h2,
.contact-modern .section-heading h2 {
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

/* Smaller eyebrow labels */
.about-modern .eyebrow,
.services-modern .eyebrow,
.materials-modern .eyebrow,
.quality-modern .eyebrow,
.projects-modern .eyebrow,
.contact-modern .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
}

/* ---------- SECTIONS ---------- */

.about-modern,
.services-modern,
.materials-modern,
.quality-modern,
.projects-modern,
.contact-modern {
    padding-top: clamp(58px, 5.5vw, 82px);
    padding-bottom: clamp(58px, 5.5vw, 82px);
}

/* ---------- ABOUT ---------- */

.about-modern__intro {
    max-width: 720px;
    margin-bottom: 34px;
}

.about-modern__facts {
    gap: 18px;
}

.about-fact {
    padding: 20px 22px;
}

/* ---------- CAPABILITIES ---------- */

.services-modern__heading {
    margin-bottom: 36px;
}

.services-grid {
    gap: 18px;
}

.service-card {
    min-height: 0;
}

.service-card__number {
    font-size: 12px;
}

.service-card__category {
    font-size: 11px;
    letter-spacing: 0.12em;
}

.service-card__content {
    padding: 24px;
}

/* ---------- MATERIALS ---------- */

.materials-modern__heading {
    margin-bottom: 34px;
}

.materials-modern__grid {
    gap: 18px;
}

.material-card {
    min-height: 250px;
    border-radius: 2px;
    overflow: hidden;
}

.material-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.03) 15%,
            rgba(0,0,0,0.18) 48%,
            rgba(0,0,0,0.76) 100%
        );
}

.material-card > * {
    position: relative;
    z-index: 2;
}

.material-card img {
    transition: transform 400ms ease;
}

.material-card:hover img {
    transform: scale(1.025);
}

.material-card__number {
    font-size: 11px;
    letter-spacing: 0.12em;
}

.material-card__detail {
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- QUALITY ---------- */

.quality-modern__top {
    margin-bottom: 32px;
}

.quality-modern__main {
    gap: 24px;
}

.quality-certificate {
    min-height: 380px;
}

.quality-details {
    gap: 14px;
}

.quality-detail {
    padding: 18px 20px;
}

.quality-modern__footer {
    margin-top: 30px;
}

/* ---------- PROJECTS ---------- */

.projects-modern__heading {
    margin-bottom: 34px;
}

.projects-modern__grid {
    gap: 16px;
}

.project__open {
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* ---------- CONTACT ---------- */

.contact-modern {
    padding-bottom: 64px;
}

.contact-modern__grid {
    gap: 28px;
}

.contact-modern__details {
    gap: 16px;
}

.contact-detail {
    padding: 18px 20px;
}

.contact-detail__label {
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* ---------- HERO ---------- */

.hero-modern {
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -260px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-modern::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.045);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- NAVIGATION ---------- */

.site-header nav a {
    white-space: nowrap;
}

/* ---------- FOOTER ---------- */

.site-footer-modern {
    padding-top: 48px;
    padding-bottom: 24px;
}

.site-footer-modern__main {
    padding-bottom: 34px;
}

.site-footer-modern__bottom {
    padding-top: 18px;
}

/* ---------- ACCESSIBILITY ---------- */

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {

    .about-modern,
    .services-modern,
    .materials-modern,
    .quality-modern,
    .projects-modern,
    .contact-modern {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .about-modern .section-heading h2,
    .services-modern .section-heading h2,
    .materials-modern .section-heading h2,
    .quality-modern .section-heading h2,
    .projects-modern .section-heading h2,
    .contact-modern .section-heading h2 {
        font-size: 36px;
    }

    .material-card {
        min-height: 230px;
    }
}

@media (max-width: 640px) {

    .about-modern,
    .services-modern,
    .materials-modern,
    .quality-modern,
    .projects-modern,
    .contact-modern {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .about-modern .section-heading h2,
    .services-modern .section-heading h2,
    .materials-modern .section-heading h2,
    .quality-modern .section-heading h2,
    .projects-modern .section-heading h2,
    .contact-modern .section-heading h2 {
        font-size: 30px;
        line-height: 1.1;
    }

    .material-card {
        min-height: 220px;
    }

    .hero-modern::before {
        width: 320px;
        height: 320px;
        right: -180px;
    }

    .hero-modern::after {
        width: 220px;
        height: 220px;
        right: -120px;
    }
}


/* ============================================================
   STAGE 10 - CORRECTIVE POLISH
   ============================================================ */

/* ------------------------------------------------------------
   MATERIALS - REMOVE DECORATIVE CIRCLES FROM CARDS
   Circles belong to the hero treatment, not individual cards.
   ------------------------------------------------------------ */

.materials-modern .material-card::before,
.materials-modern .material-card--outline::before {
    content: none !important;
    display: none !important;
}

/* Keep material image overlays, but prevent decorative elements
   from creating visual circles or clipping card content. */

.materials-modern .material-card {
    overflow: hidden;
    min-width: 0;
}

.materials-modern .material-card > div {
    min-width: 0;
    max-width: 100%;
}

.materials-modern .material-card h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ------------------------------------------------------------
   MATERIAL 06 - BUILT TO REQUIREMENT
   ------------------------------------------------------------ */

.materials-modern .material-card--outline {
    min-width: 0;
}

.materials-modern .material-card--outline h3 {
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.05;
    max-width: 100%;
}

.materials-modern .material-card--outline .material-card__detail {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   MATERIAL GRID - PREVENT LAST CARD FROM OVERFLOWING
   ------------------------------------------------------------ */

.materials-modern .materials-grid {
    min-width: 0;
}

.materials-modern .materials-grid > * {
    min-width: 0;
}

/* ------------------------------------------------------------
   DESKTOP HEADER - MAKE ROOM FOR MATERIALS
   ------------------------------------------------------------ */

@media (min-width: 1101px) {

    .site-header nav {
        gap: 15px;
    }

    .site-header nav a {
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .site-header .button--header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ------------------------------------------------------------
   MEDIUM DESKTOP / TABLET
   ------------------------------------------------------------ */

@media (max-width: 1100px) and (min-width: 821px) {

    .site-header nav {
        gap: 12px;
    }

    .site-header nav a {
        font-size: 11px;
    }

    .site-header .button--header {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ------------------------------------------------------------
   MOBILE / NARROW SCREENS
   ------------------------------------------------------------ */

@media (max-width: 820px) {

    .materials-modern .material-card--outline h3 {
        font-size: 30px;
    }

    .materials-modern .material-card--outline .material-card__detail {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ============================================================
   END STAGE 10 - CORRECTIVE POLISH
   ============================================================ */


/* ============================================================
   STAGE 10 - FINAL CORRECTIVE FIX
   ============================================================ */

/*
   MATERIAL CARDS
   The existing Stage 10 overlay was applied through ::after.
   Remove that decorative layer from the Materials cards.
*/

.materials-modern .material-card::after,
.materials-modern [class*="material-card"]::after {
    display: none !important;
    content: none !important;
}

/*
   Preserve the actual photographs.
*/

.materials-modern .material-card img {
    position: relative;
    z-index: 0;
}

/*
   Keep all card text above the photograph.
*/

.materials-modern .material-card > * {
    position: relative;
    z-index: 2;
}

/*
   CARD DIMENSIONS
   Prevent the final card from becoming wider than the grid.
*/

.materials-modern .material-card,
.materials-modern .material-card--outline {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

/*
   FINAL CARD TEXT
*/

.materials-modern .material-card--outline h3 {
    max-width: 100%;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: normal;
}

.materials-modern .material-card--outline .material-card__detail {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.45;
}

/*
   Make the Materials grid respect the available width.
*/

.materials-modern .materials-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.materials-modern .materials-grid > * {
    min-width: 0;
}

/*
   Prevent any inner element from forcing the card wider.
*/

.materials-modern .material-card > div {
    min-width: 0;
    max-width: 100%;
}

/*
   DESKTOP NAVIGATION
*/

@media (min-width: 1101px) {

    .site-header nav {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .site-header nav a {
        white-space: nowrap;
    }
}

/*
   NARROW DESKTOP
*/

@media (max-width: 1100px) and (min-width: 821px) {

    .site-header nav {
        gap: 10px;
    }

    .site-header nav a {
        font-size: 11px;
    }
}

/*
   MOBILE
*/

@media (max-width: 820px) {

    .materials-modern .material-card--outline h3 {
        font-size: 30px;
    }
}

/* ============================================================
   END STAGE 10 - FINAL CORRECTIVE FIX
   ============================================================ */


/* ============================================================
   STAGE 10 - CARD 06 TEXT WRAP FIX
   ============================================================ */

.materials-modern .material-card--outline h3 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;

    font-size: clamp(24px, 1.85vw, 32px) !important;
    line-height: 1.08 !important;
}

/*
   Keep the supporting statement inside the card.
*/

.materials-modern .material-card--outline .material-card__detail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    box-sizing: border-box !important;
}

/*
   Make sure Card 06 itself cannot overflow its grid column.
*/

.materials-modern .material-card--outline {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* ============================================================
   END STAGE 10 - CARD 06 TEXT WRAP FIX
   ============================================================ */


/* ============================================================
   STAGE 10 - CARD 06 CONTRAST / FINISH FIX
   ============================================================ */

.materials-modern .material-card--outline h3 {
    color: var(--ink) !important;

    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;

    font-size: clamp(24px, 1.85vw, 32px) !important;
    line-height: 1.08 !important;
}

.materials-modern .material-card--outline p,
.materials-modern .material-card--outline .material-card__number {
    color: var(--muted) !important;
}

.materials-modern .material-card--outline .material-card__detail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;

    color: var(--ink) !important;
    background: rgba(255,255,255,.34) !important;
    border: 1px solid rgba(28,31,36,.22) !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.materials-modern .material-card--outline {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* ============================================================
   END STAGE 10 - CARD 06 CONTRAST / FINISH FIX
   ============================================================ */


/* ============================================================
   STAGE 12A - PROJECT GALLERY CONTROLS
   ============================================================ */

.image-lightbox__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1400px, 92vw);
  max-height: 88vh;
}

.image-lightbox__content img {
  max-width: 100%;
}

.image-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-top: 14px;
}

.image-lightbox__counter {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.image-lightbox__prev,
.image-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(10,13,18,.35);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.image-lightbox__prev {
  left: 28px;
}

.image-lightbox__next {
  right: 28px;
}

.image-lightbox__prev:hover,
.image-lightbox__prev:focus-visible,
.image-lightbox__next:hover,
.image-lightbox__next:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
}

.image-lightbox__prev[hidden],
.image-lightbox__next[hidden] {
  display: none;
}

@media (max-width: 700px) {

  .image-lightbox__prev,
  .image-lightbox__next {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .image-lightbox__prev {
    left: 10px;
  }

  .image-lightbox__next {
    right: 10px;
  }

  .image-lightbox__meta {
    flex-direction: column;
    gap: 5px;
  }

}

/* STAGE 18E - UNIFORM PROJECT CARDS */
/*
   All desktop project cards use the same compact thumbnail dimensions.
   Gallery behaviour and image rendering remain unchanged.
*/
@media (min-width: 1001px) {
  .projects-modern__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .projects-modern .project,
  .projects-modern .project--feature,
  .projects-modern .project--tall,
  .projects-modern .project--wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 180px;
    min-height: 0;
  }
}


/* ============================================================
   STAGE 19N - PROJECT OVERLAY CONTRAST FIX
   Ensures the actual project markup receives the intended
   white overlay typography without changing images, sizing,
   galleries, or the existing project gradient.
   ============================================================ */

.projects-modern .project__overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 24px;
  color: #ffffff;
}

.projects-modern .project__number {
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
}

.projects-modern .project__overlay h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.projects-modern .project__view {
  color: rgba(255,255,255,.78);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.projects-modern .project:hover .project__view,
.projects-modern .project:focus-visible .project__view {
  color: #ffffff;
}

@media (max-width: 700px) {
  .projects-modern .project__overlay {
    padding: 18px 18px;
    gap: 7px;
  }

  .projects-modern .project__overlay h3 {
    font-size: 18px;
  }
}

/* ============================================================
   END STAGE 19N
   ============================================================ */


/* ============================================================
   DYNAMIC OPTIONS â€” FINAL IMAGE FRAMING FIX
   ============================================================ */

/* Keep the main About image fully visible inside its frame. */
.about-modern__image {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #eef0f2;
}
