/* =============================
   Yara Jewelry – Site Styles
   - Mobile-first, responsive, RTL-aware
   - Uses CSS logical properties for better RTL/LTR support
   - Pairs with index.html language switcher that sets <html dir="rtl|ltr">
   ============================= */

/* ---- CSS Variables ---- */
:root {
  --gold: #c9a227;       /* primary gold */
  --gold-2: #f0d37a;     /* soft highlight */
  --ink: #0d0d0d;        /* deep text for light mode */
  --text: #1d1d1f;       /* body text */
  --muted: #7a7f8a;      /* secondary text */
  --bg: #fffaf2;         /* warm ivory background */
  --card: #ffffff;       /* card surface */
  --line: #efe7d9;       /* soft divider line */
  --shadow: 0 12px 30px rgba(201, 162, 39, 0.08);
  --radius: 16px;
}

/* Dark mode (optional, auto) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;       /* deep charcoal */
    --card: #13151a;     /* elevated surface */
    --text: #e9e9ee;     /* high contrast text */
    --muted: #a8adba;    /* subdued text */
    --line: #232834;     /* subtle borders */
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }
}

/* ---- Reset-ish & Base ---- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-inline-size: 100%; block-size: auto; display: block; }

/* Store photo size */
.store-photo { max-inline-size: 720px; margin-inline: auto; border-radius: var(--radius); }
@media (max-width: 767px) {
  .store-photo { inline-size: 100%; max-inline-size: 100%; block-size: auto; }
}

/* Link styles */
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Layout ---- */
.container {
  max-inline-size: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: var(--card);
  border-block-end: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}

.topbar {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: 10px;
  gap: 8px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; justify-content: center; text-align: center; }
.logo {
  inline-size: 56px; block-size: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: grid; place-items: center; color: #fff; font-weight: 700;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.logo img { inline-size: 100%; block-size: 100%; object-fit: contain; border-radius: inherit; }

/* Language nav */
nav.lang { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lang button {
  border: 1px solid #e5e7eb; background: var(--card); color: var(--gold);
  padding-block: 6px; padding-inline: 10px; border-radius: 999px; cursor: pointer;
}
.lang button:hover { border-color: var(--gold); }
.lang button.active {
  background: var(--gold); color: #111; border-color: var(--gold);
  font-weight: 700;
}

/* Hero */
.hero { padding-block: 24px 24px; display: grid; gap: 10px; text-align: center; }
.hero h1 { letter-spacing: 0.3px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 0; font-weight: 700; }
.hero p { margin: 0; color: var(--muted); }
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--gold);
  font-weight: 600;
  margin: 4px 0 8px 0;
}
.hero-manager {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--muted);
  font-style: italic;
  margin: 8px 0 4px 0;
}

/* CTAs */
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-block-start: 10px; }
.btn {
  padding-block: 10px; padding-inline: 14px; border-radius: 12px;
  border: 1px solid #e5e7eb; background: var(--card); color: inherit;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.btn img {
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn:hover { border-color: var(--gold); text-decoration: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #111; box-shadow: 0 6px 16px rgba(201,162,39,0.25); }

/* Pills */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  border: 1px dashed var(--line); padding-block: 6px; padding-inline: 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 12%, transparent);
}
.muted { color: var(--muted); }

/* Sections */
section { padding-block: 40px; border-block-start: 1px solid var(--line); }

/* Services section - lighter background */
#services { background: color-mix(in oklab, var(--bg) 95%, var(--gold)); }

/* Grid helpers */
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile-first tweaks */
@media (max-width: 767px) {
  .container { padding-inline: 12px; }
  .brand strong { font-size: 20px; }
  .logo { inline-size: 64px; block-size: 64px; }
  .cta { gap: 8px; }
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

h2 { margin: 0 0 12px 0; font-size: clamp(20px, 3.2vw, 24px); }

ul { margin: 0; padding-inline-start: 18px; }
ul li { padding-block: 3px; }

/* Footer */
footer { padding-block: 24px; background: #111; color: #eee; margin-block-start: 28px; }
footer .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
footer p { margin: 0.5rem 0; line-height: 1.4; }
footer .container { text-align: center; }

/* Map embed */
.map-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---- Feature banners & brand highlights ---- */
.banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.banner img { inline-size: 100%; block-size: 100%; display: block; object-fit: cover; }
@media (max-width: 767px) {
  .banner { aspect-ratio: 16 / 9; }
}

.brand-highlight {
  display: grid; gap: 16px;
}
@media (min-width: 768px) {
  .brand-highlight { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.brand-highlight .brand-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.brand-highlight .media {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.brand-highlight .media img { inline-size: 100%; block-size: 100%; display: block; object-fit: cover; }
@media (max-width: 767px) {
  .brand-highlight .media { aspect-ratio: 4 / 3; }
}
.brand-highlight .logo-row { display: flex; align-items: center; gap: 12px; margin-block-end: 8px; }
.brand-highlight .logo-row img { inline-size: 120px; block-size: auto; display: block; }
.brand-highlight h3 { margin: 0 0 6px 0; font-size: clamp(18px, 2.8vw, 22px); }
.brand-highlight p { margin: 0; }
.badge {
  display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 0.2px;
  background: color-mix(in oklab, var(--gold) 18%, transparent);
  border: 1px solid var(--line);
}

/* ---- RTL tuning ---- */
/* Because we use logical properties, most flips automatically. These rules nudge details. */
html[dir="rtl"] .topbar { direction: rtl; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }

/* Align body text based on direction while keeping hero centered */
body { text-align: start; }
.hero { text-align: center; }

/* Map title */
.map-title { margin: 0 0 8px 0; font-weight: 700; color: var(--text); }

/* Map actions */
.map-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-block-end: 16px;
}
.map-actions .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding-block: 8px; padding-inline: 12px;
  font-size: 14px; font-weight: 600;
}

/* ---- Utilities ---- */
.hidden { display: none !important; }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- Print tweaks ---- */
@media print {
  header, .cta, .row { display: none !important; }
  section { border: none; padding-block: 12px; }
  .card { box-shadow: none; }
}


