/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #1A1A1A;
  --bg-secondary: #2D2D2D;
  --bg-card: #333333;
  --gold: #C9A84C;
  --gold-light: #E0C068;
  --gold-dark: #A8893A;
  --text-primary: #F5F0E8;
  --text-secondary: #A0A0A0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-heading: 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;

  --container-width: 1200px;
  --section-padding: 5rem 0;
  --transition: 0.3s ease;
  --radius: 12px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Prevent RTL from flipping SVG icons */
svg {
  transform: scaleX(1) /* rtl:ignore */;
}

[dir="rtl"] .lightbox__prev svg,
[dir="rtl"] .lightbox__next svg,
[dir="rtl"] .testimonials__arrow svg,
[dir="rtl"] .hero__scroll-indicator svg,
[dir="rtl"] .footer__back-top svg {
  transform: scaleX(1);
}

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: var(--section-padding);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section__title--center {
  text-align: center;
}

.section__title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.section__title-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background-color: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.btn--full {
  width: 100%;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  background-color: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 70px;
  width: 70px;
  object-fit: contain;
}

.navbar--scrolled .navbar__logo img {
  height: 56px;
  width: 56px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--gold);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 1rem;
  left: 1rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.navbar__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/wall-paneling-carved-door.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(26, 26, 26, 0.85) 50%,
    rgba(26, 26, 26, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards 0.3s;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards 0.5s;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards 0.7s;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards 0.9s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-dark);
  border-radius: var(--radius);
  opacity: 0.3;
  pointer-events: none;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.1);
}

.stat__icon {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__number--text {
  font-size: 1.8rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== SERVICES ===== */
.services {
  background-color: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 35px rgba(201, 168, 76, 0.15);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__icon {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-card__cta {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.service-card__cta:hover {
  border-bottom-color: var(--gold);
}

.service-card__cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== PROCESS ===== */
.process__timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 3rem;
  padding: 0 1rem;
}

.process__line {
  position: absolute;
  top: 35px;
  right: 80px;
  left: 80px;
  height: 3px;
  background: var(--bg-card);
  border-radius: 2px;
}

.process__line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.8s ease;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 220px;
}

.process__number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.process__step:hover .process__number {
  background: var(--gold);
  color: var(--bg-primary);
}

.process__icon {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.process__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background-color: var(--bg-secondary);
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portfolio__filter {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition);
}

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

.portfolio__filter.active {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  font-weight: 700;
}

.portfolio__filter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__item:hover img {
  transform: scale(1.05);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__label {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
}

.portfolio__item[hidden] {
  display: none;
}

.portfolio__cta {
  text-align: center;
  margin-top: 3rem;
}

.portfolio__cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
  transition: var(--transition);
}

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

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  padding: 1rem;
  transition: var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--gold);
}

.lightbox__prev {
  right: 1.5rem;
}

.lightbox__next {
  left: 1.5rem;
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== VIDEOS ===== */
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.videos__item video {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.videos__item video:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== TESTIMONIALS ===== */
.testimonials__carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 2.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  text-align: center;
  box-sizing: border-box;
}

.testimonial-card__quote {
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: serif;
}

.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-card__text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.testimonials__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition);
  background: var(--bg-card);
  border-radius: 50%;
}

.testimonials__arrow:hover {
  color: var(--gold);
  background: var(--bg-primary);
}

.testimonials__arrow--prev {
  right: -0.5rem;
}

.testimonials__arrow--next {
  left: -0.5rem;
}

.testimonials__arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--text-secondary);
  transition: var(--transition);
}

.testimonials__dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

.testimonials__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== CONTACT ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.required {
  color: var(--gold);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.1);
  transition: var(--transition);
}

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

.contact__card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact__card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact__card-icon--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.contact__card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact__card span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding-top: 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

.footer__logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
  padding-right: 5px;
}

.footer__links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.footer__links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer__links li svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer__back-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer__back-top:hover {
  color: var(--gold-light);
  transform: translateY(-2px);
}

.footer__back-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: whatsappPulse 10s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes whatsappPulse {
  0%, 90%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  95% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-in"] {
  transform: translateY(20px);
}

[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .process__line {
    display: none;
  }

  .process__step {
    max-width: 100%;
    width: 100%;
  }

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

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__col--brand {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }

  .navbar__link.active::after {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero__content {
    padding: 7rem 1rem 3rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .stat {
    padding: 1.5rem 0.75rem;
  }

  .stat__number {
    font-size: 2rem;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__arrow {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__col--brand {
    grid-column: span 1;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .portfolio__filters {
    gap: 0.3rem;
  }

  .portfolio__filter {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .hero__title,
  .hero__subtitle,
  .hero__desc,
  .hero__buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
