/* ==========================================================================
   AL-SAFWA IMPORT & EXPORT — MAIN STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Cairo:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --font-en-body: 'DM Sans', sans-serif;
  --font-en-head: 'Manrope', sans-serif;
  --font-ar-body: 'Alexandria', 'Cairo', sans-serif;
  --font-ar-head: 'Cairo', 'Alexandria', sans-serif;
  --green: #073e35;
  --green-light: #0d564b;
  --deep: #032d27;
  --gold: #d8b368;
  --gold-hover: #eac786;
  --gold-dark: #b89144;
  --ink: #172f2a;
  --muted: #526660;
  --soft: #f4f7f5;
  --card-bg: #ffffff;
  --line: #dce4de;
  --shadow-sm: 0 4px 12px rgba(3, 45, 39, 0.05);
  --shadow-md: 0 10px 28px rgba(3, 45, 39, 0.08);
  --shadow-lg: 0 20px 45px rgba(3, 45, 39, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: #ffffff;
  font: 16px/1.7 var(--font-en-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-en-head);
  line-height: 1.2;
}

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

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

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a, button {
  transition: var(--transition);
}

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.wrap {
  width: min(1240px, 90%);
  margin: auto;
}

/* ==========================================================================
   TOP LINE BANNER
   ========================================================================== */

.topline {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 179, 104, 0.2);
}

.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topline a {
  color: var(--gold);
  font-weight: 700;
}

.topline a:hover {
  color: var(--gold-hover);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 95px;
}

.brand {
  height: 80px;
  width: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.04);
}

nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 600;
}

nav a {
  position: relative;
  color: var(--ink);
  padding: 6px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--green);
}

nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  max-width: 145px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}

select:hover {
  border-color: var(--gold);
}

.menu {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  color: white;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      115deg,
      rgba(3, 45, 39, 0.92) 0%,
      rgba(7, 62, 53, 0.78) 55%,
      rgba(3, 45, 39, 0.45) 100%
    ),
    url('assets/hero.jpg') center 52% / cover no-repeat;
  filter: brightness(0.95);
}

.hero-inner {
  padding-top: 110px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-block;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow,
.sectors .eyebrow {
  color: var(--gold);
}

h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  white-space: pre-line;
  max-width: 860px;
}

h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: pre-line;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

p {
  color: var(--muted);
}

.hero-copy {
  max-width: 600px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 28px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 40px 0 90px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 30px;
  background: var(--gold);
  color: var(--deep);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 18px rgba(216, 179, 104, 0.35);
}

.button:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(216, 179, 104, 0.45);
}

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.text-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.dark {
  color: var(--green);
}

/* ==========================================================================
   HERO STATS CARDS
   ========================================================================== */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 45px 0 65px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 179, 104, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.hero-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */

.section {
  padding: 100px 0;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 36px;
  font-size: 0.85rem;
  font-weight: 700;
}

.principles span {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  color: var(--green);
}

.soft {
  background: var(--soft);
}

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

.section-head > p {
  max-width: 420px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service {
  padding: 40px 34px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216, 179, 104, 0.6);
}

.number {
  font-size: 2.2rem;
  color: var(--gold-dark);
  font-weight: 300;
  font-family: 'Manrope', sans-serif;
  display: block;
  margin-bottom: 28px;
}

.service p {
  margin: 18px 0 28px;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.service .text-link {
  font-size: 0.85rem;
}

/* ==========================================================================
   STEPS SECTION
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.steps article {
  padding: 10px 15px 10px 0;
  border-inline-start: 2px solid transparent;
  transition: var(--transition);
}

.steps article:hover {
  border-inline-start-color: var(--gold);
  padding-inline-start: 12px;
}

.steps article > span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.steps h3 {
  font-size: 1.15rem;
  margin: 16px 0 10px;
}

.steps p {
  font-size: 0.88rem;
}

/* ==========================================================================
   SECTORS SECTION
   ========================================================================== */

.sectors {
  background: var(--green);
  color: white;
}

.sectors .section-head > p {
  color: rgba(255, 255, 255, 0.8);
}

.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.sector-grid details {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 26px 0;
  transition: var(--transition);
}

.sector-grid details p {
  color: rgba(255, 255, 255, 0.82);
  margin: 14px 0 22px;
  font-size: 0.95rem;
}

.sector-grid summary {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sector-grid summary::-webkit-details-marker {
  display: none;
}

.sector-no {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

summary h3 {
  font-size: 1.25rem;
  color: white;
}

.plus {
  margin-inline-start: auto;
  color: var(--gold);
  font-size: 1.7rem;
  transition: transform 0.3s ease;
}

details[open] .plus {
  transform: rotate(45deg);
}

/* ==========================================================================
   GLOBAL REACH SECTION
   ========================================================================== */

.global {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.global-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.global-photo img {
  height: 460px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.global-photo:hover img {
  transform: scale(1.05);
}

.global-photo > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 28px;
  background: var(--gold);
  color: var(--deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.global p:not(.eyebrow) {
  margin-top: 25px;
  font-size: 1.05rem;
}

.transport {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.transport span {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

/* ==========================================================================
   WHY AL-SAFWA SECTION
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-grid article {
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 24px;
  background: white;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.why-grid p {
  margin-top: 14px;
  font-size: 0.95rem;
}

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

/* ==========================================================================
   IMAGE GALLERY SECTION — ELEGANT LUXURY CARDS & INTERACTIVE FILTERS
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.gallery-filter {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter:hover {
  border-color: var(--gold);
  color: var(--green);
  transform: translateY(-2px);
}

.gallery-filter.active {
  background: var(--green);
  color: var(--gold);
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(7, 62, 53, 0.25);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}

.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: var(--deep);
  color: white;
  position: relative;
  text-align: start;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  filter: brightness(0.92);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(3, 45, 39, 0.9) 0%,
    rgba(3, 45, 39, 0.3) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.gallery-item > span {
  position: relative;
  z-index: 2;
  display: block;
  padding: 22px 24px 22px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  padding-inline-end: 55px;
}

.gallery-item b {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(216, 179, 104, 0.9);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  transition: var(--transition);
}

.gallery-item:hover b {
  background: var(--gold-hover);
  transform: scale(1.15) rotate(45deg);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
  background: var(--deep);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: white;
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
  margin: 24px 0;
  font-size: 1.05rem;
}

.offices {
  margin-top: 45px;
  max-width: 400px;
}

.offices h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-top: 26px;
}

.offices p {
  font-size: 0.9rem;
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.offices a {
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   FORM STYLING
   ========================================================================== */

form {
  background: white;
  color: var(--ink);
  padding: 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

form h3 {
  margin-bottom: 28px;
  font-size: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

input, textarea {
  display: block;
  width: 100%;
  background: #fafbf9;
  border: 1px solid #d4ddd6;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 8px;
  color: var(--ink);
  min-width: 0;
  transition: var(--transition);
}

input:focus, textarea:focus {
  background: #ffffff;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(216, 179, 104, 0.2);
  outline: none;
}

.contact .form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 12px 0 20px;
}

form .button {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #02201b;
  color: #c1cfc7;
  font-size: 0.85rem;
  padding: 55px 0 25px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
}

footer p {
  color: #c1cfc7;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer a:hover {
  color: var(--gold);
}

.copyright {
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 35px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   LIGHTBOX DIALOG
   ========================================================================== */

.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: white;
  z-index: 1000;
  padding: 15px;
}

.skip:focus {
  top: 10px;
}

dialog {
  width: min(1050px, 94vw);
  padding: 40px 24px 20px;
  background: #04241f;
  color: white;
  border: 1px solid rgba(216, 179, 104, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

dialog::backdrop {
  background: rgba(0, 15, 12, 0.9);
  backdrop-filter: blur(8px);
}

#lightbox-image {
  max-height: 72vh;
  object-fit: contain;
  width: 100%;
  border-radius: var(--radius-sm);
}

#close-gallery {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

#close-gallery:hover {
  color: var(--gold);
  transform: scale(1.2);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 18px;
}

.gallery-controls button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  font-size: 20px;
  padding: 6px 24px;
  transition: var(--transition);
}

.gallery-controls button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
}

#photo-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================================
   RTL SUPPORT (ARABIC) — CAIRO & ALEXANDRIA LUXURY TYPOGRAPHY
   ========================================================================== */

[dir='rtl'] body {
  font-family: var(--font-ar-body);
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] .eyebrow,
[dir='rtl'] .button,
[dir='rtl'] .footer-brand,
[dir='rtl'] .sector-no,
[dir='rtl'] .stat-number,
[dir='rtl'] .gallery-filter {
  font-family: var(--font-ar-head);
  letter-spacing: 0 !important;
}

[dir='rtl'] .hero-image {
  transform: scaleX(-1);
}

[dir='rtl'] h1 {
  line-height: 1.4;
  font-weight: 800;
}

[dir='rtl'] h2 {
  line-height: 1.45;
  font-weight: 700;
}

[dir='rtl'] h3 {
  line-height: 1.5;
  font-weight: 700;
}

[dir='rtl'] p,
[dir='rtl'] span,
[dir='rtl'] a,
[dir='rtl'] label,
[dir='rtl'] input,
[dir='rtl'] textarea {
  font-family: var(--font-ar-body);
}

[dir='rtl'] .hero-copy {
  font-size: 1.18rem;
  line-height: 1.85;
}

[dir='rtl'] nav a {
  font-family: var(--font-ar-body);
  font-weight: 600;
}

/* ==========================================================================
   TRANSLATION & ANIMATIONS
   ========================================================================== */

.translation-status {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 100;
  max-width: 380px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-sm);
  border-inline-start: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  color: var(--ink);
}

#google_translate_element {
  padding: 0 6%;
  background: #f4f6f3;
}

.reveal {
  animation: appear 0.7s ease both;
}

@keyframes appear {
  from {
    opacity: 0.2;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1050px) {
  nav {
    gap: 20px;
  }
  .header {
    gap: 15px;
  }
  .brand {
    width: 120px;
  }
  .contact-grid,
  .about,
  .global {
    gap: 40px;
  }
  .service-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .service {
    padding: 30px 24px;
  }
}

@media (max-width: 780px) {
  .wrap {
    width: 90%;
  }
  .topline {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }
  .header {
    height: 80px;
  }
  .brand {
    height: 70px;
    width: 110px;
  }
  .menu {
    display: block;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--green);
  }
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px 6%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  nav.open {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .hero-inner {
    padding-top: 65px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-copy {
    font-size: 1rem;
  }
  .actions {
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .hero-bottom {
    font-size: 0.62rem;
    flex-direction: column;
    gap: 8px;
  }
  .section {
    padding: 65px 0;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 35px 0 45px;
  }
  .gallery-item.featured {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .about,
  .global,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .service-grid,
  .why-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .global-photo img {
    height: 320px;
  }
  .contact h2 {
    font-size: 2.3rem;
  }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
  form {
    padding: 28px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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