/* ===========================================
   House Art Printing Services
   Brand colors: #F57E30 (orange), #225E61 (teal), #233D4D (navy)
   =========================================== */

:root {
  --orange: #F57E30;
  --orange-dark: #d96a23;
  --teal: #225E61;
  --teal-dark: #1a4a4d;
  --navy: #233D4D;
  --navy-dark: #1a2d39;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --bg-dark: #233D4D;
  --text: #1f2a33;
  --text-soft: #5e6b75;
  --text-light: #ffffff;
  --border: #e6e2da;
  --shadow-sm: 0 2px 8px rgba(35,61,77,0.06);
  --shadow-md: 0 8px 24px rgba(35,61,77,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --whatsapp: #25D366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

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

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 48px; width: auto; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a { color: var(--navy); }
.nav a:hover { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--navy); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s;
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-text { max-width: 760px; }
.hero-text .lead { margin-left: auto; margin-right: auto; }
.hero-cta { justify-content: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-text .lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ SECTION BASICS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--orange); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 40px;
  max-width: 760px;
}
.section-title.light { color: #fff; }
.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: -24px;
  margin-bottom: 36px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.about-grid p {
  color: var(--text-soft);
  font-size: 1.05rem;
}
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border-inline-start: 4px solid var(--orange);
}
.vm-card:nth-child(2) { border-inline-start-color: var(--teal); }
.vm-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}
.vm-card p { color: var(--text-soft); }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,22,28,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* ============ WHY US ============ */
.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-grid li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.why-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  font-feature-settings: "tnum";
  min-width: 40px;
}
.why-grid p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-top: 4px;
}

/* ============ QUOTE FORM ============ */
.quote-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 880px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 6px 0 22px;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--teal);
  min-height: 1.2em;
}
.form-status.error { color: #c0392b; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin-top: 8px;
}
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
}
.contact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.95);
}
.footer-tag { font-size: 1rem; color: #fff; font-weight: 500; }
.footer-copy { font-size: 0.85rem; }

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

body[dir="rtl"] .whatsapp-fab { right: auto; left: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .vm-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .header-actions .btn-sm { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ RTL TWEAKS ============ */
body[dir="rtl"] .eyebrow,
body[dir="rtl"] .section-eyebrow {
  letter-spacing: 0;
}
body[dir="rtl"] .hero-text h1,
body[dir="rtl"] .section-title { letter-spacing: 0; }

/* RTL: align contact value text to the right edge of its cell so it sits next to the label */
body[dir="rtl"] .contact-list li > *:not(.contact-label) {
  text-align: right;
}
