/* ============================================================
   Al-Amir Al-Raed — Landing Page Styles
   Theme: Dark charcoal + gold/copper luxury · RTL Arabic
   ============================================================ */

:root {
  --bg: #121110;
  --bg-2: #1a1814;
  --bg-3: #211e18;
  --panel: #1d1a15;
  --gold: #c9962e;
  --gold-2: #e7c46b;
  --gold-deep: #a06a1f;
  --copper: #a05a2c;
  --cream: #f5efe2;
  --text: #ece6d8;
  --muted: #a59c89;
  --line: rgba(201, 150, 46, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --container: 1200px;
  --nav-h: 92px;
  --nav-h-shrink: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cream);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 10px 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.kicker {
  display: inline-block;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--gold);
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(201, 150, 46, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
}
.btn .ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a130a;
  box-shadow: 0 12px 28px rgba(201, 150, 46, 0.28);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(201, 150, 46, 0.42);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}
.btn-wa {
  background: #25d366;
  color: #04331a;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
}
.btn-wa svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.45);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(18, 17, 16, 0.55),
    rgba(18, 17, 16, 0)
  );
  transition:
    height 0.35s var(--ease),
    background 0.35s,
    box-shadow 0.35s,
    backdrop-filter 0.35s;
}
.navbar.scrolled {
  height: var(--nav-h-shrink);
  background: rgba(16, 15, 13, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 64px;
  width: auto;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--cream);
  transition:
    height 0.35s var(--ease),
    padding 0.35s var(--ease),
    transform 0.6s var(--ease),
    box-shadow 0.35s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform-origin: center;
}
.navbar.scrolled .brand-logo {
  height: 48px;
  padding: 6px 10px;
}
/* Little logo animation on scroll */
.brand-logo.pulse {
  animation: logoPulse 0.8s var(--ease);
}
@keyframes logoPulse {
  0% {
    transform: scale(1) rotate(0);
  }
  35% {
    transform: scale(1.12) rotate(-3deg);
  }
  70% {
    transform: scale(0.97) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% 0;
  background: url("../images/parallax-metal.webp") center/cover no-repeat;
  z-index: -2;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 500px at 78% 18%,
      rgba(201, 150, 46, 0.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(13, 12, 10, 0.82) 0%,
      rgba(13, 12, 10, 0.72) 45%,
      rgba(13, 12, 10, 0.94) 100%
    );
}
.hero-content {
  padding-top: var(--nav-h);
}
.eyebrow {
  display: inline-block;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(201, 150, 46, 0.07);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin-bottom: 34px;
  opacity: 0.92;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 60px);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat .num {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-2);
  line-height: 1;
}
.stat .label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.scroll-down {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.scroll-down span {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  transform: translateX(50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  inset-block-end: -24px;
  inset-inline-start: -24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a130a;
  padding: 18px 26px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge strong {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge span {
  font-size: 0.85rem;
  font-weight: 700;
}
.about-text h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 12px 0 18px;
}
.about-text > p {
  color: var(--muted);
  margin-bottom: 22px;
}
.check-list {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-inline-start: 34px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(201, 150, 46, 0.15);
  color: var(--gold);
  border: 1px solid var(--line);
}

/* ============ SERVICES ============ */
.services {
  background: var(--bg-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin-inline: auto;
}
.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.feature-ico {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(201, 150, 46, 0.1);
  border: 1px solid var(--line);
  transition: background 0.35s;
}
.feature-card:hover .feature-ico {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.feature-ico svg {
  width: 34px;
  height: 34px;
  fill: var(--gold);
  transition: fill 0.35s;
}
.feature-card:hover .feature-ico svg {
  fill: #1a130a;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ PARALLAX BANDS ============ */
.parallax-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}
.band-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  will-change: transform;
  background-size: cover;
  background-position: center;
}
#cta-wood .band-bg {
  background-image: url("../images/parallax-wood.webp");
}
.band-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(13, 12, 10, 0.82),
    rgba(13, 12, 10, 0.9)
  );
}
.band-content {
  max-width: 720px;
  margin: 0 auto;
}
.band-content h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.band-content p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* ============ PRODUCTS SLIDER ============ */
.products {
  background: var(--bg);
}
.slider {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
}
.slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slide {
  position: relative;
  flex: 0 0 clamp(280px, 42%, 460px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.slide:hover img {
  transform: scale(1.06);
}
.slide figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 50px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(13, 12, 10, 0.95));
}
.slide figcaption h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.slide figcaption p {
  color: var(--muted);
  font-size: 0.92rem;
}

.slider-btn {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 15, 13, 0.8);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
  transition:
    background 0.3s,
    transform 0.3s;
}
.slider-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-btn:hover svg {
  stroke: #1a130a;
}
.slider-btn.prev {
  inset-inline-start: -6px;
}
.slider-btn.next {
  inset-inline-end: -6px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(201, 150, 46, 0.28);
  transition: 0.3s;
}
.slider-dots button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  width: 30px;
  border-radius: 6px;
}

/* ============ WHY US ============ */
.why {
  background: var(--bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.why-text h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 12px 0 16px;
}
.why-text > p {
  color: var(--muted);
  margin-bottom: 30px;
}
.why-list {
  display: grid;
  gap: 20px;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-num {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.why-item h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--cream);
}
.why-item p {
  color: var(--muted);
  font-size: 0.95rem;
}
.why-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.g-item.big {
  grid-column: span 2;
  grid-row: span 2;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(201, 150, 46, 0.35)
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.g-item:hover img {
  transform: scale(1.08);
}
.g-item:hover::after {
  opacity: 1;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: stretch;
}
.contact-info h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 12px 0 14px;
}
.contact-info > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.c-ico {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(201, 150, 46, 0.1);
  border: 1px solid var(--line);
}
.c-ico svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}
.contact-list strong {
  display: block;
  color: var(--cream);
  font-family: "Cairo", sans-serif;
}
.contact-list a,
.contact-list span {
  color: var(--muted);
}
.contact-list a[dir="ltr"] {
  display: block;
  width: fit-content;
}
.contact-list a:hover {
  color: var(--gold);
}
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ============ FOOTER ============ */
.footer {
  background: #0d0c0a;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand img {
  height: 84px;
  width: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  padding: 5px 0;
  transition:
    color 0.25s,
    padding-inline-start 0.25s;
}
.footer-col a[dir="ltr"] {
  text-align: right;
}
.footer-col a:hover {
  color: var(--gold);
  padding-inline-start: 6px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer-bottom span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============ FLOATING CONTACT ============ */
.floating-contact {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}
.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.fab-wa {
  background: #25d366;
}
.fab-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.fab-call svg {
  fill: #1a130a;
}
.fab:hover {
  transform: scale(1.1);
}
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  animation: fabPulse 2.4s infinite;
}
@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.fab-tip {
  position: absolute;
  inset-inline-start: 70px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  background: var(--bg-3);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.fab:hover .fab-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(14, 13, 11, 0.98);
    backdrop-filter: blur(16px);
    padding: 40px;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    border-right: 1px solid var(--line);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta span {
    display: none;
  }
  .nav-cta {
    padding: 9px;
  }
  .nav-cta .ico {
    margin: 0;
  }

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .why-media {
    order: -1;
  }
  .about-badge {
    inset-inline-start: auto;
    inset-inline-end: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 76px;
    --nav-h-shrink: 62px;
  }
  .container {
    padding-inline: 18px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .g-item.big {
    grid-column: span 2;
    grid-row: span 1;
  }
  .slide {
    flex-basis: 84%;
  }
  .hero-stats {
    gap: 22px;
  }
  .slider-btn {
    display: none;
  }
  .brand-logo {
    height: 50px;
    padding: 6px 9px;
  }
  .navbar.scrolled .brand-logo {
    height: 42px;
    padding: 5px 8px;
  }
  .floating-contact {
    inset-block-end: 16px;
    inset-inline-start: 16px;
  }
  .footer {
    padding-top: 48px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p {
    max-width: 360px;
  }
  .footer-col a:hover {
    padding-inline-start: 0;
  }
  .footer-col a[dir="ltr"] {
    text-align: center;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
