:root {
  --bg: #faf7f2;
  --ink: #1f1b16;
  --muted: #6b6156;
  --accent: #a8622f;
  --card-bg: #ffffff;
  --border: #e8e1d6;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

html[lang="ar"] {
  --font-display: "Tajawal", "Fraunces", serif;
  --font-body: "Tajawal", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-mark {
  height: 34px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.lang-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

html[lang="ar"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 48px;
  text-align: center;
}

/* Work / Gallery */
.work {
  padding: 100px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(31, 27, 22, 0.25);
}

.card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.ph-1 { background: linear-gradient(135deg, #d9c4a3, #a8622f); }
.ph-2 { background: linear-gradient(135deg, #8a6a4f, #3c2a1e); }
.ph-3 { background: linear-gradient(135deg, #cbb89a, #7c5a3a); }
.ph-4 { background: linear-gradient(135deg, #b7c4a3, #5a6b45); }
.ph-5 { background: linear-gradient(135deg, #e3d5c0, #b98d5e); }
.ph-6 { background: linear-gradient(135deg, #a89078, #4a382a); }

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.collection-cover {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.collection-cover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(31, 27, 22, 0.35);
}

.collection-cover-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.collection-cover:hover .collection-cover-image {
  transform: scale(1.06);
}

.collection-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 16, 12, 0.82) 0%, rgba(20, 16, 12, 0.15) 55%, transparent 75%);
}

.collection-cover-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 32px;
  color: #fff;
}

.collection-cover-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.collection-cover-body p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.collection-cover-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

/* About */
.about {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(135deg, #c2a789, #6b4a2f);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

html[dir="rtl"] .about-text .section-title,
html[dir="rtl"] .about-text {
  text-align: right;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-text .section-title,
  html[dir="rtl"] .about-text .section-title {
    text-align: center;
  }

  .about-text,
  html[dir="rtl"] .about-text {
    text-align: center;
  }
}

/* Services */
.services {
  padding: 100px 0;
}

.services-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: -28px;
  margin-bottom: 48px;
}

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

.service-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(31, 27, 22, 0.25);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(168, 98, 47, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Service modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.service-modal.is-open {
  display: flex;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 22, 0.55);
}

.service-modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(31, 27, 22, 0.4);
}

.service-modal-content .service-icon {
  margin-bottom: 20px;
}

.service-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-modal-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.service-modal-close:hover {
  background: var(--bg);
}

html[dir="rtl"] .service-modal-close {
  right: auto;
  left: 16px;
}

/* Contact */
.contact {
  padding: 120px 0;
}

.contact-inner {
  text-align: center;
}

.contact p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.gallery-status {
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px 0;
}

.inquiry-form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

html[dir="rtl"] .inquiry-form {
  text-align: right;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.inquiry-form .btn {
  border: none;
  cursor: pointer;
  width: 100%;
}

.form-status {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 620px;
  margin: 40px auto 0;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  text-align: center;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 98, 47, 0.1);
  color: var(--accent);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-info-value {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

a.contact-info-value {
  text-decoration: none;
  word-break: break-word;
}

a.contact-info-value:hover {
  text-decoration: underline;
}

.contact-info-maps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.contact-info-maps:hover {
  text-decoration: underline;
}

/* Collection page */
.collection-hero {
  padding: 160px 0 60px;
}

.collection-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.collection-back:hover {
  color: var(--ink);
}

.collection-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.collection-tagline {
  color: var(--muted);
  font-size: 1.05rem;
}

.collection-gallery {
  padding: 0 0 100px;
}

.card-image[role="button"] {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 12, 9, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-figure {
  max-width: min(88vw, 1000px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Logo intro */
html.intro-locked {
  overflow: hidden;
}

html.no-intro .intro {
  display: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  animation: intro-out 0.6s ease 2.3s forwards;
}

.intro-logo {
  width: min(58vw, 340px);
  opacity: 0;
  transform: scale(0.86);
  animation:
    intro-scale 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
    intro-glow 1.9s ease 0.15s forwards;
}

@keyframes intro-scale {
  to { opacity: 1; transform: scale(1); }
}

@keyframes intro-glow {
  0% { filter: drop-shadow(0 0 0 rgba(200, 156, 92, 0)); }
  55% { filter: drop-shadow(0 0 26px rgba(200, 156, 92, 0.55)); }
  100% { filter: drop-shadow(0 0 8px rgba(200, 156, 92, 0.2)); }
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  html.intro-locked { overflow: auto; }
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1.in-view { transition-delay: 0.1s; }
.delay-2.in-view { transition-delay: 0.2s; }
.delay-3.in-view { transition-delay: 0.3s; }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 100px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card, .card-image, .btn {
    transition: none;
  }
}
