/* ============================================================
   ZAREYA — Base Styles
   Reset, typography, global utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--size-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--sans); border: none; background: none; }
input, textarea, select { font-family: var(--sans); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: 2px; }

/* ── SELECTION ───────────────────────────────────────────── */
::selection { background: var(--rose-18); color: var(--rose); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.d-xl {
  font-family: var(--serif); font-size: var(--size-xl);
  font-weight: 400; line-height: 1.05; letter-spacing: -1px; color: var(--text);
}
.d-lg {
  font-family: var(--serif); font-size: var(--size-lg);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.5px; color: var(--text);
}
.d-md {
  font-family: var(--serif); font-size: var(--size-md);
  font-weight: 400; line-height: 1.2; color: var(--text);
}
.d-sm {
  font-family: var(--serif); font-size: var(--size-sm);
  font-weight: 400; line-height: 1.3; color: var(--text);
}
.em { font-style: italic; color: var(--rose); }
.eyebrow {
  font-family: var(--sans); font-size: var(--size-label);
  font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose);
}
.body-l { font-size: var(--size-body-l); font-weight: 300; color: var(--text-2); line-height: 1.82; }
.body   { font-size: var(--size-body);   font-weight: 300; color: var(--text-2); line-height: 1.78; }
.body-s { font-size: var(--size-body-s); font-weight: 400; color: var(--text-2); line-height: 1.72; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: var(--section) 0; }
.section-sm { padding: var(--section-sm) 0; }
.divider    { height: 1px; background: var(--border); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }

/* Spacing helpers */
.mb-8  { margin-bottom: 8px;  } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }   .mt-32 { margin-top: 32px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rose); color: #ffffff;
  padding: 14px 30px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background var(--duration-sm) var(--ease);
}
.btn-primary:hover { background: var(--rose-hover); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--text);
  padding: 13px 28px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border-2); border-radius: var(--radius); cursor: pointer;
  transition: all var(--duration-sm) var(--ease);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: gap var(--duration-sm) var(--ease);
}
.btn-link:hover { gap: 11px; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-lg) var(--ease), transform var(--duration-lg) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── MISC ────────────────────────────────────────────────── */
.hero-line {
  display: inline-block; width: 44px; height: 1px;
  background: var(--rose); vertical-align: middle; margin-right: 12px;
}
.v-block {
  background: var(--bg-2); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.v-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, var(--rose-10), transparent 60%);
}

/* ── SERVICE TAG (used on work cards and modals) ──────────── */
.service-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rose); background: var(--rose-10);
  border: 1px solid var(--rose-18); border-radius: var(--radius);
  white-space: nowrap;
}
.service-tags-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .flex-between { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
