/* ==========================================================================
   Al Haramain Golf — Luxury Light & Gold Design System
   Matches Saudi Vision 2030 / Royal Makkah Institutional Aesthetic
   ========================================================================== */

:root {
  --bgMain: #F8FAFC;
  --bgSec: #F1F5F9;
  --bgCard: #FFFFFF;
  --border: #E2E8F0;
  --borderStrong: #CBD5E1;
  --gold: #B8860B;
  --goldDark: #8F640C;
  --goldHover: #C59B27;
  --goldLight: #FBF7EE;
  --goldBorder: rgba(184, 134, 11, 0.35);
  --primaryGreen: #0F5B47;

  --primary: #B8860B;
  --primary-dark: #8F640C;
  --primary-soft: rgba(184, 134, 11, 0.12);

  --ink: #0F172A;
  --canvas: #F8FAFC;
  --canvas-soft: #F1F5F9;
  --card: #FFFFFF;
  --muted: #64748B;
  --faint: #94A3B8;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --font-sans: 'Cairo', 'Outfit', 'Noto Nastaliq Urdu', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-2: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-3: 0 20px 30px -8px rgba(0, 0, 0, 0.1), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 8px 24px -4px rgba(184, 134, 11, 0.25);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  --nav-h: 74px;
  --container: 1240px;
}

html[lang='ur'] {
  --font-sans: 'Noto Nastaliq Urdu', 'Cairo', system-ui, sans-serif;
}
html[lang='ur'] body {
  line-height: 2;
  font-size: 17px;
}

html[lang='hi'] {
  --font-sans: 'Noto Sans Devanagari', 'Cairo', system-ui, sans-serif;
}

/* ------------------------------------------------------------------- Reset */

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bgMain);
  color: #1E293B;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: #1E293B;
  background-color: var(--bgMain);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background-color: var(--gold); color: #FFFFFF; }

/* Custom Luxury Light Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B8860B; }

/* ------------------------------------------------------------- Typography */

.t-hero { font-size: clamp(28px, 4.5vw, 48px); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; color: #0F172A; }
.t-h1 { font-size: clamp(26px, 3.8vw, 38px); line-height: 1.3; font-weight: 800; color: #0F172A; }
.t-h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.35; font-weight: 800; color: #0F172A; }
.t-h3 { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.4; font-weight: 700; color: #0F172A; }
.t-body { font-size: 15px; line-height: 1.7; color: #475569; }
.t-cap { font-size: 13px; line-height: 1.5; font-weight: 500; color: #64748B; }

.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--goldLight);
  border: 1px solid var(--goldBorder);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.text-gold { color: var(--gold); }
.text-muted { color: #64748B; }
.text-faint { color: #94A3B8; }
.text-dark { color: #0F172A; }
.text-primary { color: var(--gold); }
.text-center { text-align: center; }
.ltr { unicode-bidi: isolate; direction: ltr; }

/* Ensure icons and text inside hovered cards & accordions switch cleanly to pure white */
.group:hover .group-hover\:text-white,
.group:hover .group-hover\:text-white svg,
.group:hover [class*="group-hover:text-white"],
.group:hover [class*="group-hover:text-white"] svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.group:hover .group-hover\:bg-\[\#B8860B\],
.group:hover .group-hover\:bg-\[\#B8860B\] svg,
.group:hover [class*="group-hover:bg-[#B8860B]"],
.group:hover [class*="group-hover:bg-[#B8860B]"] svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  border-color: #B8860B !important;
}

.group .transition,
.group svg {
  transition-property: color, stroke, background-color, border-color, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* ----------------------------------------------------------------- Layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.section { padding-block: 72px; position: relative; }
.section--soft { background-color: var(--bgSec); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding-block: 48px; }

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-head p { color: #64748B; font-size: 15px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 56px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .section { padding-block: 44px; }
}

.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 36px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 36px; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Ensure all white-text elements, buttons, and badges retain 100% pure white text on hover */
.text-white,
a.text-white,
button.text-white,
.btn-primary,
.btn-whatsapp {
  color: #FFFFFF !important;
}

.text-white:hover,
a.text-white:hover,
button.text-white:hover,
.btn-primary:hover,
.btn-whatsapp:hover {
  color: #FFFFFF !important;
}

.btn-primary {
  background: linear-gradient(135deg, #B8860B 0%, #D4A738 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #C59B27 0%, #E5BF55 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.38);
}

.btn-outline {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
}
.btn-outline:hover {
  background: #FBF7EE;
  border-color: #B8860B;
  color: #8F640C;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1EBE5D !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* ----------------------------------------------------------------- Cards */

.card {
  position: relative;
  background: var(--bgCard);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: all var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--goldBorder);
}

.icon-bubble {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--goldLight);
  color: var(--gold);
  border: 1px solid var(--goldBorder);
  margin-bottom: 16px;
  transition: all var(--dur) var(--ease);
}
.icon-bubble .icon { width: 26px; height: 26px; }
.card:hover .icon-bubble {
  background: var(--gold);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* ------------------------------------------------------------------- Forms */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 700; color: #334155; }
.field__control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #F8FAFC;
  color: #0F172A;
  font-size: 14px;
  transition: all var(--dur-fast) var(--ease);
}
.field__control:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}
textarea.field__control { min-height: 120px; resize: vertical; }

.field.has-error .field__control { border-color: var(--danger); }
.field__error { display: none; font-size: 12px; font-weight: 700; color: #E11D48; }
.field.has-error .field__error { display: block; }

.alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
}
.alert.is-visible { display: flex; }
.alert--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert--error { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* -------------------------------------------------------------- Prose */

.dark-prose, .prose {
  font-size: 16px;
  line-height: 1.9;
  color: #334155;
}
.dark-prose > * + *, .prose > * + * { margin-block-start: 20px; }
.dark-prose h2, .prose h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  color: #0F172A;
  margin-block: 36px 16px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--gold);
}
.dark-prose h3, .prose h3 { font-size: 20px; font-weight: 800; color: #0F172A; margin-block: 26px 12px; }
.dark-prose p, .dark-prose li, .prose p, .prose li { color: #475569; }
.dark-prose ul, .dark-prose ol, .prose ul, .prose ol { padding-inline-start: 24px; display: grid; gap: 8px; }
.dark-prose strong, .prose strong { color: #0F172A; font-weight: 800; }
.dark-prose a, .prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dark-prose table, .prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.dark-prose th, .prose th { background: #F1F5F9; color: var(--gold); text-align: start; font-weight: 800; padding: 12px 16px; }
.dark-prose td, .prose td { padding: 12px 16px; border: 1px solid var(--border); color: #334155; }
.dark-prose tr:nth-child(even) td, .prose tr:nth-child(even) td { background: #F8FAFC; }
.dark-prose blockquote, .prose blockquote {
  border-inline-start: 4px solid var(--gold);
  background: var(--goldLight);
  border: 1px solid var(--goldBorder);
  border-inline-start-width: 4px;
  border-inline-start-color: var(--gold);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  color: #0F172A;
  font-style: italic;
}
