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

:root {
  --primary: #c8956d;
  --primary-dark: #a87a55;
  --primary-light: #e8d5c0;
  --bg: #fdfbf7;
  --bg-alt: #f7f3ed;
  --text: #2d2a26;
  --text-light: #6b6560;
  --border: #e8e0d6;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 42, 38, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200, 149, 109, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 149, 109, 0.45);
}

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

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(200, 149, 109, 0.05);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(253, 251, 247, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.logo__icon {
  font-size: 1.5rem;
}

.logo strong {
  color: var(--primary);
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(200, 149, 109, 0.12), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(200, 149, 109, 0.08), transparent 50%);
  z-index: -1;
}

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

.hero__badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero__features li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px 20px;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ===== Section ===== */
.section {
  padding: 90px 0;
}

.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section__title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ===== Services ===== */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

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

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

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

.service-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card__body p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.7;
}

.service-card__link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.service-card__link:hover {
  color: var(--primary-dark);
}

/* ===== Gallery ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  aspect-ratio: 4 / 3;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery__item:hover figcaption {
  transform: translateY(0);
}

/* ===== Before & After ===== */
.before-after {
  background: var(--bg-alt);
}

.before-after__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ba-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ba-card__compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.ba-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-card__img--after {
  clip-path: inset(0 0 0 50%);
}

.ba-card__slider {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-card__slider::after {
  content: '↔';
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.ba-card__label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  pointer-events: none;
}

.ba-card__label--before {
  right: 12px;
}

.ba-card__label--after {
  left: 12px;
}

.ba-card__caption {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/* ===== Why Us ===== */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Steps ===== */
.steps {
  background: var(--bg-alt);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Paint Types ===== */
.paint-types__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.paint-type {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--primary);
  transition: all var(--transition);
}

.paint-type:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.paint-type__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.paint-type h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.paint-type p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.paint-types__note {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--primary-light);
  border-radius: var(--radius);
  text-align: center;
}

.paint-types__note p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== Areas ===== */
.areas {
  background: var(--bg-alt);
}

.areas__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.area-tag {
  background: var(--white);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.area-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.faq__item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

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

.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--primary);
}

.faq__item p {
  padding: 0 24px 22px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cta__inner {
  text-align: center;
  max-width: 700px;
}

.cta__title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.8;
}

.cta .btn--primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta .btn--primary:hover {
  background: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.footer {
  background: #2d2a26;
  color: #d4cec7;
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer__text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #b5afa8;
}

.footer__links li,
.footer__contact li {
  margin-bottom: 10px;
}

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

.footer__links a:hover {
  color: var(--primary);
}

.footer__contact a {
  color: var(--primary);
  font-weight: 700;
}

.footer__bottom {
  border-top: 1px solid #3d3933;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #8a847e;
}

/* ===== Floating Call Button ===== */
.floating-call {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(200, 149, 109, 0.5);
  z-index: 999;
  align-items: center;
  gap: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(200, 149, 109, 0.5); }
  50% { box-shadow: 0 8px 32px rgba(200, 149, 109, 0.8); }
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__close {
  top: 20px;
  left: 20px;
}

.lightbox__prev {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__title { font-size: 2.2rem; }
  .hero__inner { gap: 40px; }
  .hero__image img { height: 400px; }
  .section__title { font-size: 1.9rem; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  
  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  
  .nav__link::after { display: none; }
  
  .menu-toggle { display: flex; }
  .header__cta { display: none; }
  
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .hero__image { order: -1; }
  .hero__image img { height: 300px; }
  .hero__image::before { display: none; }
  
  .before-after__grid { grid-template-columns: 1fr; }
  
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  
  .floating-call { display: flex; }
  
  body { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .section__title { font-size: 1.6rem; }
  .hero__title { font-size: 1.7rem; }
  .hero__desc { font-size: 1rem; }
  .hero__features { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  
  .services__grid,
  .gallery__grid,
  .why-us__grid,
  .steps__grid,
  .paint-types__grid {
    grid-template-columns: 1fr;
  }
  
  .cta__title { font-size: 1.7rem; }
  
  .lightbox__prev,
  .lightbox__next { width: 42px; height: 42px; font-size: 1.2rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 1.5rem; }
}