/* ============================================================
   Royal Grace — Main Stylesheet
   Exact match of Replit design (Cormorant Garamond + Inter)
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Palette — matching Replit HSL values exactly */
  --rg-navy:       #1A2B5E;   /* hsl(225 57% 24%) — primary */
  --rg-gold:       #C9A84C;   /* hsl(44 56% 54%)  — accent  */
  --rg-cream:      #F8F6F1;   /* hsl(43 33% 96%)  — background */
  --rg-border:     #E3DECE;   /* hsl(43 20% 88%)  */
  --rg-ink:        #1A1A2E;   /* hsl(240 28% 14%) — foreground */
  --rg-mute:       #52526A;   /* improved contrast on cream — was #6B6B7E */
  --rg-white:      #FFFFFF;
  --rg-contact-bg: #1A2B5E;   /* same as primary — matches Replit bg-primary */

  /* Typography — Cormorant Garamond matches Replit exactly */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: clamp(64px, 8vw, 96px);

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(26, 43, 94, 0.08);
  --shadow-card-lg: 0 8px 40px rgba(26, 43, 94, 0.14);

  /* Border radius — rounded-2xl = 16px, rounded-sm = 2px */
  --radius-sm:  2px;
  --radius-md:  8px;
  --radius-lg:  16px;   /* rounded-2xl */
  --radius-full: 9999px;

  /* Transition */
  --transition: 0.3s ease;
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */

/* Ensure [hidden] attribute always wins over any CSS display rule */
[hidden] { display: none !important; }

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

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

body.rg-site {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rg-ink);
  background: var(--rg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeSpeed;         /* body text: speed > legibility */
}

img, svg { display: block; max-width: 100%; }
a        { text-decoration: none; color: inherit; }
ul       { list-style: none; }
button   { cursor: pointer; border: none; background: none; }

/* ── 3. LAYOUT ──────────────────────────────────────────────── */
.rg-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 64px);
}

/* ── 4. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;             /* crisp glyph scaling at display sizes */
  text-rendering: optimizeLegibility;   /* enable kerning & ligatures */
  font-feature-settings: 'liga' 1, 'kern' 1, 'calt' 1;
}

/* ── 5. BUTTONS ─────────────────────────────────────────────── */
.rg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2rem;
  height: 3.5rem;          /* h-14 = 56px */
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.rg-btn--primary {
  background: var(--rg-navy);
  color: var(--rg-white);
  border: 2px solid var(--rg-navy);
}
.rg-btn--primary:hover {
  background: rgba(26, 43, 94, 0.9);
  border-color: rgba(26, 43, 94, 0.9);
}

.rg-btn--outline {
  background: transparent;
  color: var(--rg-ink);
  border: 2px solid var(--rg-border);
}
.rg-btn--outline:hover {
  background: rgba(0, 0, 0, 0.05);
}

.rg-btn--sm {
  height: 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
}

/* ── 6. HERO BADGE ──────────────────────────────────────────── */
/* Matches Replit: rounded-full gold border + gold bg/5 + gold text + pulsing dot */
.rg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.05);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-gold);
  margin-bottom: 32px;
}

.rg-hero-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rg-gold);
  flex-shrink: 0;
  animation: rg-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes rg-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── 7. SECTION HEADING ─────────────────────────────────────── */
.rg-section-header {
  margin-bottom: 40px;
}
.rg-section-header--center {
  text-align: center;
}

.rg-section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;          /* was 0.7rem (11.2px) — 12.5px min legibility for all-caps */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-gold);
  margin-bottom: 16px;
}

.rg-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.1;
  letter-spacing: -0.025em;    /* tighter tracking for large section titles */
}

/* ── 8. ICONS ───────────────────────────────────────────────── */
.rg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rg-icon svg { width: 20px; height: 20px; }

/* ── 9. GOLD DIVIDER ────────────────────────────────────────── */
/* Matches Replit GoldDivider component */
.rg-gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.rg-gold-divider__line    { height: 1px; flex: 1; background: rgba(201, 168, 76, 0.2); }
.rg-gold-divider__line-sm { height: 1px; width: 48px; background: rgba(201, 168, 76, 0.6); }
.rg-gold-divider__diamond {
  width: 6px;
  height: 6px;
  background: var(--rg-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── 10. FADE-IN ────────────────────────────────────────────── */
.rg-fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rg-fade-in.rg-visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.rg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}
.rg-nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rg-border);
  box-shadow: 0 2px 16px rgba(26, 43, 94, 0.06);
  padding: 12px 0;
}

.rg-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo in nav — just the image */
.rg-nav__logo-link {
  display: flex;
  align-items: center;
}

/* Nav links */
.rg-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.rg-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rg-ink);
  transition: color var(--transition);
}
.rg-nav__links a:hover { color: var(--rg-gold); }
.rg-nav__links .rg-btn { margin-left: 8px; }

/* Burger (mobile) */
.rg-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.rg-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rg-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu */
.rg-nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--rg-white);
  border-top: 1px solid var(--rg-border);
}
.rg-nav__mobile a {
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--rg-ink);
  border-bottom: 1px solid var(--rg-border);
  transition: color var(--transition);
}
.rg-nav__mobile a:last-child { border-bottom: none; }
.rg-nav__mobile a:hover { color: var(--rg-gold); }


/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.rg-hero {
  background: var(--rg-cream);
  padding-top: calc(68px + 48px);
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

/* Subtle background glows — matches Replit */
.rg-hero::before {
  content: '';
  position: absolute;
  top: -5%; right: -8%;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.05);
  filter: blur(130px);
  pointer-events: none;
}
.rg-hero::after {
  content: '';
  position: absolute;
  bottom: 5%; left: -8%;
  width: 35vw; height: 35vw;
  border-radius: 50%;
  background: rgba(26, 43, 94, 0.05);
  filter: blur(100px);
  pointer-events: none;
}

/* Dot grid overlay */
.rg-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(#1A2B5E 1px, transparent 1px),
    linear-gradient(90deg, #1A2B5E 1px, transparent 1px);
  background-size: 60px 60px;
}

.rg-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  min-height: 560px;
  position: relative;
  z-index: 1;
}

/* Left */
.rg-hero__left { padding-bottom: 48px; }

.rg-hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.03;           /* tighter — editorial display type at large sizes */
  margin-bottom: 32px;
  letter-spacing: -0.03em;     /* tighter tracking for large display serif */
}
.rg-hero__heading em {
  font-style: italic;
  color: var(--rg-gold);
  font-weight: 400;
}

.rg-hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--rg-mute);
  max-width: 520px;
  margin-bottom: 48px;
}

.rg-hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right — Finance illustration */
.rg-hero__right {
  position: relative;
  display: block;
}

.rg-hero__illustration {
  position: relative;
}

.rg-hero__illustration-bg {
  position: absolute;
  inset: -16px;
  background: rgba(201, 168, 76, 0.05);
  border-radius: var(--radius-sm);
}

.rg-hero__illustration-card {
  position: relative;
  border: 1px solid rgba(227, 222, 206, 0.6);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 24px;
  box-shadow: var(--shadow-card-lg);
}

.rg-hero__illustration-label {
  position: absolute;
  top: 16px; right: 16px;
  text-align: right;
}
.rg-hero__illustration-label-brand {
  display: block;
  font-size: 0.7rem;           /* was 0.625rem — 10px is min for micro labels */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rg-gold);
  line-height: 1;
}
.rg-hero__illustration-label-sub {
  display: block;
  font-size: 0.625rem;         /* was 0.5625rem (9px) — bumped to 10px */
  color: var(--rg-mute);
  letter-spacing: 0.04em;
}

/* UAE badge — floating bottom-left */
.rg-compliance-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--rg-navy);
  color: var(--rg-white);
  padding: 20px 24px;
  box-shadow: var(--shadow-card-lg);
}
.rg-compliance-badge__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--rg-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.rg-compliance-badge__sub {
  font-size: 0.65rem;          /* was 0.6rem */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Dashboard chart (the SVG itself) ────────────────────────── */
.rg-dashboard__chart { width: 100%; height: auto; display: block; }


/* ══════════════════════════════════════════════════════════════
   DUBAI SKYLINE
══════════════════════════════════════════════════════════════ */
.rg-skyline {
  background: var(--rg-cream);
  line-height: 0;
  margin-top: 32px;
  opacity: 0.2;
}
.rg-skyline__svg { width: 100%; height: auto; display: block; }


/* ══════════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════════ */
.rg-stats {
  background: var(--rg-navy);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

/* Dot pattern overlay */
.rg-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#C9A84C 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.rg-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.rg-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--rg-white);
}

.rg-stat .rg-icon { color: var(--rg-gold); }
.rg-stat .rg-icon svg { width: 20px; height: 20px; }

.rg-stat__text { display: flex; flex-direction: column; }

.rg-stat__value {
  font-family: var(--font-serif);       /* serif — matches Replit */
  font-size: 1.25rem;
  font-weight: 600;            /* was 400 — bolder value carries more authority */
  color: var(--rg-white);
  line-height: 1.2;
}

.rg-stat__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;           /* was 0.6rem — 9.6px is too small for all-caps labels */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT — WHO WE ARE
══════════════════════════════════════════════════════════════ */
.rg-about {
  background: var(--rg-cream);
  padding: var(--section-py) 0;
  overflow-x: clip;            /* prevent accent box from bleeding horizontally */
}

.rg-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Left */
.rg-about__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.rg-about__desc {
  color: var(--rg-mute);
  line-height: 1.7;
  font-size: 1.0625rem;
  max-width: 520px;
}

/* Mission / Vision cards — border-left + rounded-r */
.rg-about-card {
  padding: 28px;
  margin-bottom: 16px;
  border-left: 4px solid var(--rg-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;   /* rounded-r-2xl */
  transition: transform var(--transition);
}
.rg-about-card:hover { transform: translateY(-2px); }

.rg-about-card--mission {
  background: var(--rg-white);
  box-shadow: var(--shadow-card);
}
.rg-about-card--vision {
  background: var(--rg-navy);
  color: var(--rg-white);
}

.rg-about-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rg-about-card--mission .rg-about-card__icon-row .rg-icon { color: var(--rg-gold); }
.rg-about-card--vision  .rg-about-card__icon-row .rg-icon { color: var(--rg-gold); }

.rg-about-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.2;
}
.rg-about-card--vision .rg-about-card__title { color: var(--rg-white); }

.rg-about-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--rg-mute);
}
.rg-about-card--vision .rg-about-card__text { color: rgba(255, 255, 255, 0.85); }

/* Right panel — logo centred with corner decorations */
.rg-about__right { position: relative; }

.rg-about__brand-panel {
  background: var(--rg-white);
  border: 1px solid var(--rg-border);
  box-shadow: var(--shadow-card-lg);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Blurred glows */
.rg-about__brand-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 256px; height: 256px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  filter: blur(70px);
  pointer-events: none;
}
.rg-about__brand-panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 192px; height: 192px;
  border-radius: 50%;
  background: rgba(26, 43, 94, 0.08);
  filter: blur(50px);
  pointer-events: none;
}

/* Grid overlay */
.rg-about__brand-panel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(#1A2B5E 1px, transparent 1px),
    linear-gradient(90deg, #1A2B5E 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Corner decorations */
.rg-about__corner {
  position: absolute;
  width: 32px; height: 32px;
  border-color: rgba(201, 168, 76, 0.4);
  border-style: solid;
}
.rg-about__corner--tl { top: 20px; left: 20px;  border-width: 1px 0 0 1px; }
.rg-about__corner--tr { top: 20px; right: 20px; border-width: 1px 1px 0 0; }
.rg-about__corner--bl { bottom: 20px; left: 20px;  border-width: 0 0 1px 1px; }
.rg-about__corner--br { bottom: 20px; right: 20px; border-width: 0 1px 1px 0; }

/* Logo + quote */
.rg-about__brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rg-about__brand-content img {
  width: 224px;   /* w-56 */
  height: auto;
  margin-bottom: 24px;
}

.rg-about__brand-divider {
  height: 1px;
  width: 96px;
  background: rgba(201, 168, 76, 0.4);
  margin-bottom: 24px;
}

.rg-about__quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--rg-navy);
  line-height: 1.5;
  max-width: 240px;
  font-style: normal;
}

.rg-about__brand-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.rg-about__brand-tagline .rg-tag-line { height: 1px; width: 40px; background: rgba(201, 168, 76, 0.3); }
.rg-about__brand-tagline span {
  font-size: 0.7rem;           /* was 0.625rem */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rg-gold);
}

/* Accent offset box */
.rg-about__accent-box {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 128px; height: 128px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  z-index: -1;
}


/* ══════════════════════════════════════════════════════════════
   SERVICES — OUR EXPERTISE
══════════════════════════════════════════════════════════════ */
.rg-services {
  background: var(--rg-white);
  padding: clamp(56px, 7vw, 80px) 0;
  position: relative;
  overflow: hidden;
}

/* Dot pattern right side */
.rg-services::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 33%;
  opacity: 0.03;
  background-image: radial-gradient(#1A2B5E 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Featured service card */
.rg-service-featured {
  position: relative;
  background: var(--rg-navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Glow top-right */
.rg-service-featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 384px; height: 384px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  filter: blur(80px);
  transform: translate(33%, -50%);
  pointer-events: none;
}

/* Dot grid overlay */
.rg-service-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(#C9A84C 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.rg-service-featured__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.rg-service-featured__icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--rg-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rg-navy);
}
.rg-service-featured__icon-wrap .rg-icon svg { width: 28px; height: 28px; }

.rg-service-featured__body { flex: 1; min-width: 0; }

.rg-service-featured__badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.65rem;          /* was 0.6rem */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.2);
  color: var(--rg-gold);
  border-radius: 4px;
  margin-bottom: 10px;
}

.rg-service-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2rem);  /* was clamp(1.3,2.5vw,1.6rem) — featured card deserves bigger title */
  font-weight: 600;
  color: var(--rg-white);
  margin-bottom: 10px;
  line-height: 1.15;
}

.rg-service-featured__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 580px;
}

.rg-service-featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rg-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}
.rg-check-item .rg-icon { color: var(--rg-gold); }
.rg-check-item .rg-icon svg { width: 16px; height: 16px; }

/* Bar-chart bg icon (large, rightmost) */
.rg-service-featured__bg-icon {
  display: none;   /* visible on xl */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.2;
  color: var(--rg-gold);
}
.rg-service-featured__bg-icon .rg-icon svg { width: 64px; height: 64px; }

/* 2×2 grid */
.rg-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rg-service-card {
  background: var(--rg-cream);
  border: 1px solid var(--rg-border);
  border-radius: var(--radius-lg);    /* rounded-2xl */
  padding: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.rg-service-card:hover {
  box-shadow: var(--shadow-card-lg);
  border-color: rgba(201, 168, 76, 0.4);
}

.rg-service-card__icon-wrap {
  width: 40px; height: 40px;
  border: 1px solid var(--rg-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rg-gold);
  margin-bottom: 12px;
  transition: border-color var(--transition), background var(--transition);
}
.rg-service-card:hover .rg-service-card__icon-wrap {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.05);
}
.rg-service-card__icon-wrap .rg-icon svg { width: 20px; height: 20px; }

.rg-service-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;         /* was 1rem — give card h3s proper hierarchy */
  font-weight: 600;
  color: var(--rg-navy);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rg-service-card__desc {
  font-size: 0.875rem;         /* was 0.8rem (12.8px) — 14px is minimum for body */
  color: var(--rg-mute);
  line-height: 1.65;
  margin-bottom: 14px;
}

.rg-service-card__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;         /* was 0.8rem */
  color: rgba(26, 26, 46, 0.75);
  padding: 3px 0;
}
.rg-service-card__list li .rg-icon { color: var(--rg-gold); }
.rg-service-card__list li .rg-icon svg { width: 12px; height: 12px; }


/* ══════════════════════════════════════════════════════════════
   WHY US — THE ROYAL GRACE ADVANTAGE
══════════════════════════════════════════════════════════════ */
.rg-why {
  background: var(--rg-cream);
  padding: var(--section-py) 0;
  overflow-x: clip;            /* prevent accent box from bleeding horizontally */
}

.rg-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.rg-why__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--rg-navy);
  margin-bottom: 18px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.rg-why__desc {
  color: var(--rg-mute);
  line-height: 1.7;
  font-size: 1.0625rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.rg-why__features { display: flex; flex-direction: column; gap: 28px; }

.rg-feature { display: flex; gap: 20px; align-items: flex-start; }

.rg-feature__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rg-gold);
  margin-top: 2px;
}
.rg-feature__icon .rg-icon svg { width: 20px; height: 20px; }

.rg-feature__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;          /* slightly larger for better separation from body */
  font-weight: 600;
  color: var(--rg-navy);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: 0.01em;      /* added — distinguishes from surrounding body text */
}
.rg-feature__desc {
  font-size: 0.9375rem;        /* was 0.9rem — 15px is comfortable body text */
  color: var(--rg-mute);
  line-height: 1.7;
}

/* Right — navy panel matching bg-primary in Replit */
.rg-why__right { position: relative; }

.rg-uae-card {
  background: var(--rg-navy);         /* bg-primary = #1A2B5E — NOT the old muted blue */
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dot grid */
.rg-uae-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#C9A84C 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Diagonal lines SVG overlay */
.rg-uae-card__diagonals {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

/* Logo watermark */
.rg-uae-card__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  pointer-events: none;
}
.rg-uae-card__watermark img {
  width: 288px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Content */
.rg-uae-card__content {
  position: relative;
  z-index: 1;
  padding: 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.rg-uae-card__top { flex: 1; }

.rg-uae-card__location {
  font-size: 0.7rem;           /* was 0.6rem */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rg-gold);
  margin-bottom: 24px;
  display: block;
}

.rg-uae-card__watermark-text {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: rgba(201, 168, 76, 0.3);
  line-height: 1;
  margin-bottom: 8px;
  pointer-events: none;
  user-select: none;
}

.rg-uae-card__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--rg-white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rg-uae-card__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.rg-uae-card__list { display: flex; flex-direction: column; gap: 12px; }

.rg-uae-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.rg-uae-card__list li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rg-gold);
  flex-shrink: 0;
}

/* Offset accent box */
.rg-why__accent-box {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 96px; height: 96px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.3);
  z-index: -1;
}


/* ══════════════════════════════════════════════════════════════
   CONTACT — GET IN TOUCH
══════════════════════════════════════════════════════════════ */
.rg-contact {
  background: var(--rg-contact-bg);   /* #1A2B5E — same as primary */
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  color: var(--rg-white);
}

.rg-contact::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background: rgba(201, 168, 76, 0.1);
  filter: blur(100px);
  pointer-events: none;
}

.rg-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(#C9A84C 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.rg-contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Logo watermark at top */
.rg-contact__logo-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0.2;
}
.rg-contact__logo-mark img {
  height: 96px;
  width: auto;
  filter: brightness(0) invert(1);
}

.rg-contact__tag {
  display: block;
  font-size: 0.75rem;          /* was 0.7rem */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-gold);
  margin-bottom: 16px;
}

.rg-contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--rg-white);
  margin-bottom: 20px;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rg-contact__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.rg-contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.rg-contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.rg-contact-card:hover { transform: translateY(-4px); }

/* Top accent line on hover */
.rg-contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(201, 168, 76, 0);
  transition: background var(--transition);
}
.rg-contact-card:hover::before { background: rgba(201, 168, 76, 0.5); }

.rg-contact-card .rg-icon { color: var(--rg-gold); margin-bottom: 0; }
.rg-contact-card .rg-icon svg { width: 28px; height: 28px; }

.rg-contact-card__label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--rg-white);
  margin: 20px 0 12px;
}

.rg-contact-card__info {
  font-size: 0.9375rem;        /* was 0.9rem */
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.rg-contact-card__info a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.rg-contact-card__info a:hover { color: var(--rg-gold); }

.rg-contact__website {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(201, 168, 76, 0.7);
  transition: color var(--transition);
}
.rg-contact__website:hover { color: var(--rg-gold); }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.rg-footer {
  background: var(--rg-cream);
  border-top: 1px solid var(--rg-border);
  padding: 40px 0;
}

.rg-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rg-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rg-footer__name {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rg-navy);
}

.rg-footer__copy {
  font-size: 0.8rem;
  color: var(--rg-mute);
  text-align: center;
  flex: 1;
}

.rg-footer__web {
  font-size: 0.875rem;
  color: var(--rg-mute);
  font-weight: 500;
  transition: color var(--transition);
}
.rg-footer__web:hover { color: var(--rg-navy); }


/* ══════════════════════════════════════════════════════════════
   XL — show bg icon in featured service
══════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .rg-service-featured__bg-icon { display: flex; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .rg-hero__inner,
  .rg-about__inner,
  .rg-why__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rg-hero__right { display: none; }
  .rg-hero__left  { padding-bottom: 0; }

  .rg-why__right { position: static; }
  .rg-uae-card   { min-height: 400px; }

  .rg-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .rg-contact__cards {
    grid-template-columns: 1fr 1fr;    /* keep 2-col on tablet — 3 in a row is too tight */
    max-width: 680px;
  }

  .rg-service-featured__inner { flex-direction: column; gap: 20px; }
  .rg-service-featured__bg-icon { display: none !important; }
  .rg-service-featured__grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  .rg-nav__links  { display: none; }
  .rg-nav__burger { display: flex; }

  .rg-hero { padding-top: calc(68px + 24px); }
  .rg-hero__heading {
    font-size: clamp(2rem, 9vw, 2.6rem);   /* fluid on small phones */
    letter-spacing: -0.02em;               /* slightly less tight on small screens */
    line-height: 1.06;
  }

  .rg-stats__inner { grid-template-columns: 1fr 1fr; gap: 20px; }

  .rg-services__grid { grid-template-columns: 1fr; }

  .rg-about__brand-panel { aspect-ratio: auto; min-height: 360px; }
  .rg-about__brand-content img { width: 160px; }

  .rg-uae-card__content { padding: 32px 24px; }
  .rg-uae-card__watermark-text { font-size: 3rem; }

  .rg-contact__cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .rg-footer__inner { flex-direction: column; text-align: center; }
  .rg-footer__copy { order: 3; }
}
