/**
 * Jawhara Establishment Luxury Website - Base & Reset CSS
 * مؤسسة جوهرة للمقاولات والتشطيبات الفاخرة — الأساسيات والمعايير المعمارية
 */

/* ==========================================================================
   CSS Reset & Box Model
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--color-marble-black);
  color: var(--color-greige-offwhite);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.75;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Scrollbar & Selection Styling
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-marble-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-marble-border);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-marble-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-warm);
}

::selection {
  background-color: var(--color-gold-radiant);
  color: var(--color-marble-black);
}

/* ==========================================================================
   Typography Defaults
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-greige-offwhite);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--font-size-hero);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  color: var(--color-greige-stone);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

button {
  cursor: pointer;
  user-select: none;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tabular Numbers for Pricing & Specs */
.num,
.stat-number,
.price-value,
.calc-result-value,
.badge-number {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ==========================================================================
   Reusable Utilities & Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}

.section-dark {
  background-color: var(--color-marble-dark);
}

.section-surface {
  background-color: var(--color-marble-surface);
}

/* Gold Gradient Accents */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-highlight) 0%, var(--color-gold-radiant) 50%, var(--color-gold-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-highlight) 0%, var(--color-gold-radiant) 60%, var(--color-gold-warm) 100%);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-gold-glow);
  color: var(--color-gold-highlight);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
}

/* Luxury Divider */
.gold-divider {
  width: 80px;
  height: 3px;
  margin: 1.25rem auto;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold-radiant) 50%, transparent 100%);
  border-radius: var(--radius-full);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-highlight) 0%, var(--color-gold-radiant) 70%, var(--color-gold-warm) 100%);
  color: var(--color-marble-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-greige-offwhite);
  border: 1px solid var(--color-marble-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold-radiant);
  color: var(--color-gold-highlight);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold-highlight);
  outline-offset: 3px;
}

/* Glass Card Baseline */
.glass-card {
  background: var(--color-marble-surface);
  border: 1px solid var(--color-marble-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-gold-dark);
  box-shadow: var(--shadow-elevated);
}
