/* SH البناء والزخرفة - Styles principaux */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  --brown: #4a2c14;
  --brown-dark: #2a170a;
  --brown-mid: #6b4423;
  --brown-soft: #8a5a32;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --gold-deep: #9a7b1a;
  --cream: #f7f1e6;
  --cream-dark: #ede3d0;
  --ivory: #fbf8f2;
  --font-display: "Playfair Display", serif;
  --font-sans: "Outfit", "Cairo", sans-serif;
  --font-arabic: "Cairo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--brown-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

html[dir="rtl"] body { font-family: var(--font-arabic); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.font-display { font-family: var(--font-display); }
html[dir="rtl"] .font-display { font-family: var(--font-arabic); }

.gold-line {
  height: 2px;
  width: 5.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem 0;
}

.gold-border { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }

.hero-overlay {
  background: linear-gradient(180deg, rgba(42,23,10,0.55) 0%, rgba(42,23,10,0.35) 40%, rgba(42,23,10,0.78) 100%);
}

.gold-curve {
  background: radial-gradient(120% 80% at 100% 0%, rgba(201,162,39,0.35), transparent 55%);
}

.section-pattern {
  background-image: radial-gradient(rgba(201,162,39,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

.card-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(42,23,10,0.16);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown-dark);
}
.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown-mid);
  padding: 0.25rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--brown-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.2rem;
}
.lang-switch a {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-soft);
}
.lang-switch a.active {
  background: var(--gold);
  color: var(--brown-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--brown-dark);
  box-shadow: 0 8px 20px rgba(201,162,39,0.3);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.6);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  border: 1px solid rgba(74,44,20,0.35);
  color: var(--brown-dark);
}
.btn-outline-dark:hover { background: var(--cream); }

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--brown-dark);
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(201,162,39,0.2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.6rem 0.5rem;
  font-weight: 500;
  color: var(--brown-mid);
  border-radius: 0.5rem;
}
.nav-mobile a:hover, .nav-mobile a.active {
  background: var(--cream);
  color: var(--brown-dark);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  padding: 6rem 0;
}
.hero-tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--gold-light);
}
.hero-title {
  margin-top: 1rem;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  color: var(--cream);
}
.hero-slogan {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(247,241,230,0.88);
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stats */
.stats-grid {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(201,162,39,0.2);
  box-shadow: 0 4px 20px rgba(42,23,10,0.04);
}
.stat-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.stat-l {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brown-dark);
  margin-top: 0.35rem;
}
.section-intro {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--brown-soft);
}

/* Cards grid */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.18);
  box-shadow: 0 8px 30px rgba(42,23,10,0.06);
}
.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.card-body { padding: 1.35rem 1.5rem 1.5rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brown-dark);
}
.card-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--brown-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-deep);
}
.card-link:hover { color: var(--brown); }

/* Why */
.why-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
.why-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(201,162,39,0.2);
  text-align: center;
}
.why-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.why-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown-dark);
}
.why-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.cta-band p {
  margin: 0.75rem auto 1.5rem;
  max-width: 32rem;
  opacity: 0.9;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  color: var(--cream);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero .kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.page-hero h1 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}
.page-hero p {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  opacity: 0.88;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--brown-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5d9c5;
  background: white;
  color: var(--brown-dark);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--brown-soft); margin-top: 0.3rem; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

/* Contact info cards */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(201,162,39,0.2);
}
.info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-deep);
  font-size: 1.2rem;
}
.info-label { font-size: 0.8rem; color: var(--brown-soft); }
.info-value { font-weight: 600; color: var(--brown-dark); }

/* Footer */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 0.75rem;
  opacity: 0.8;
  font-size: 0.95rem;
  max-width: 18rem;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  opacity: 0.85;
  font-size: 0.95rem;
}
.footer-col a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  font-size: 1.6rem;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,0.4);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--brown-mid);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
}

/* Project gallery */
.project-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
.project-card {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(42,23,10,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--cream);
}
.project-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.project-overlay p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Service detail */
.service-detail {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.service-detail img {
  border-radius: 1.25rem;
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}
.service-detail .content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-detail .content p {
  color: var(--brown-soft);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* About values */
.values-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
.value-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(201,162,39,0.2);
}
.value-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}
.value-card p { color: var(--brown-soft); font-size: 0.95rem; }

.quote-banner {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  border-radius: 1.25rem;
  color: var(--cream);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}

/* Admin */
.admin-body { background: #f5f0e8; }
.admin-shell {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 240px 1fr; }
}
.admin-sidebar {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 1.5rem 1rem;
}
.admin-sidebar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1rem;
}
.admin-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(201,162,39,0.2);
  opacity: 1;
  color: var(--gold-light);
}
.admin-main { padding: 1.5rem; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.admin-table-wrap {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5d9c5;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid #f0e8d8;
}
.admin-table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--brown-dark);
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-done { background: #e8f5e9; color: #2e7d32; }
.badge-progress { background: #fff3e0; color: #ef6c00; }
.admin-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .admin-cards { grid-template-columns: repeat(4, 1fr); }
}
.admin-stat {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #e5d9c5;
}
.admin-stat .n {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.admin-stat .l {
  font-size: 0.85rem;
  color: var(--brown-soft);
  margin-top: 0.25rem;
}
.admin-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5d9c5;
  background: white;
  padding: 0.65rem 0.85rem;
  color: var(--brown-dark);
  outline: none;
  font: inherit;
}
.admin-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  padding: 1.5rem;
}
.login-box {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.login-box h1 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--brown-dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9a227; border-radius: 999px; }
::-webkit-scrollbar-track { background: #f7f1e6; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-center {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Header CTA visible only on desktop */
.header-cta { display: none; }
@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
}

/* Hero entrance */
.hero-content .hero-tagline {
  animation: fadeInUp 0.7s ease both;
}
.hero-content .hero-title {
  animation: fadeInUp 0.8s ease 0.12s both;
}
.hero-content .hero-slogan {
  animation: fadeInUp 0.8s ease 0.22s both;
}
.hero-content .hero-sub {
  animation: fadeInUp 0.8s ease 0.32s both;
}
.hero-content .hero-ctas {
  animation: fadeInUp 0.8s ease 0.42s both;
}
.hero-bg {
  animation: scaleIn 1.4s ease both;
  transition: transform 8s ease;
}
.hero:hover .hero-bg {
  transform: scale(1.04);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Cards */
.card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(42, 23, 10, 0.14);
}
.card-img {
  transition: transform 0.55s ease;
}
.card:hover .card-img {
  transform: scale(1.06);
}
.card-link {
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}
.card:hover .card-link {
  letter-spacing: 0.02em;
}

/* Stats */
.stat-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(42, 23, 10, 0.1);
  border-color: var(--gold);
}
.stat-n {
  transition: color 0.3s ease, transform 0.3s ease;
}
.stat-card:hover .stat-n {
  color: var(--gold);
  transform: scale(1.06);
}

/* Why cards */
.why-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(42, 23, 10, 0.1);
}
.why-icon {
  transition: transform 0.4s ease;
}
.why-card:hover .why-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Buttons */
.btn {
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.4);
}
.btn-whatsapp {
  animation: pulseGold 2.5s ease infinite;
}
.btn-whatsapp:hover {
  animation: none;
}

/* Project gallery */
.project-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(42, 23, 10, 0.18);
}
.project-overlay {
  transition: background 0.35s ease;
}
.project-overlay h3,
.project-overlay p {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateY(6px);
}
.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
  transform: translateY(0);
}

/* Nav links smooth underline already exists */
.nav-link {
  transition: color 0.25s ease;
}

/* Language switch */
.lang-switch a {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.lang-switch a:hover {
  transform: scale(1.08);
}

/* Header shadow on scroll */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(42, 23, 10, 0.1);
  background: rgba(251, 248, 242, 0.97);
}

/* WhatsApp float */
.wa-float {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float 3s ease-in-out infinite;
}
.wa-float:hover {
  animation: none;
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

/* Page hero */
.page-hero {
  animation: fadeIn 0.6s ease both;
}
.page-hero h1 {
  animation: fadeInUp 0.7s ease 0.1s both;
}
.page-hero p {
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* Forms */
.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  transform: translateY(-1px);
}

/* Alerts */
.alert {
  animation: fadeInUp 0.45s ease both;
}

/* Filter buttons */
.filter-btn {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.filter-btn:hover {
  transform: translateY(-2px);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(201, 162, 39, 0.12) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

/* Value cards */
.value-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(42, 23, 10, 0.1);
  border-color: var(--gold);
}

/* Logo mark */
.logo-mark {
  transition: transform 0.35s ease;
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.08);
}

/* Info items contact */
.info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-item:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(42, 23, 10, 0.08);
}
html[dir="rtl"] .info-item:hover {
  transform: translateX(-4px);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Button ripple */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(2.5); opacity: 0; }
}

/* 3D tilt cards */
.card, .why-card, .stat-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* Hero parallax smooth */
.hero-bg {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* Service image base64 safe */
.card-img, .service-detail img, .project-card img {
  background: var(--cream-dark);
}

/* Admin preview polish */
#imagePreview img {
  box-shadow: 0 8px 24px rgba(42, 23, 10, 0.12);
  transition: transform 0.3s ease;
}
#imagePreview img:hover {
  transform: scale(1.03);
}
