/* ============================================
   GRACE CONSULTING — STYLE SYSTEM
   Refined institutional luxury
   Navy + Gold + Cream
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0B1D3A;
  --navy-deep: #071428;
  --navy-light: #132B50;
  --gold: #C9A84C;
  --gold-light: #D4B968;
  --gold-dark: #B8953D;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border-light: rgba(11, 29, 58, 0.08);
  --border-gold: rgba(201, 168, 76, 0.3);
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 29, 58, 0.12);
  --shadow-xl: 0 16px 48px rgba(11, 29, 58, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Defaults --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-size: 2.75rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 20, 40, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.88rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 20, 40, 0.98);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow-y: auto;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  text-align: center;
}

.nav-mobile a:hover {
  color: var(--gold);
}

.nav-mobile .btn {
  margin-top: 24px;
  width: 100%;
  max-width: 300px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(19, 43, 80, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-size: 3.8rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(10px);
  margin-top: auto;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1320px;
  margin: 0 auto;
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(201, 168, 76, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Hero wrapper to stack content + stats */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

/* ============================================
   EXPERTISE SECTION (Tabbed Cards)
   ============================================ */
.expertise {
  background: var(--white);
}

.expertise-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0;
}

.expertise-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.expertise-tab:hover {
  color: var(--navy);
}

.expertise-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.expertise-panel {
  display: none;
}

.expertise-panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.expertise-list {
  list-style: none;
}

.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 0.75rem;
  margin-top: 2px;
}

.expertise-visual {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.expertise-visual h4 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.expertise-visual p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.expertise-visual-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Software Row */
.software-row {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

.software-row h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.software-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.software-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}

.software-badge:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.software-badge .sw-icon {
  font-size: 1.1rem;
}

/* ============================================
   FRACTIONAL CONTROLLER SECTION
   ============================================ */
.controller {
  background: var(--cream);
  position: relative;
}

.controller::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.controller-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

/* Connector line */
.controller-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0.3;
}

.controller-step {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.controller-step:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 2;
}

.controller-step h4 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.controller-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.controller-cta {
  text-align: center;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card .service-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card .service-for {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular::before {
  content: 'POPULAR';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.pricing-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.pricing-features .pf-check {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.85rem;
}

.pricing-recommended {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Property Management Callout */
.pricing-callout {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  color: var(--white);
}

.pricing-callout h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.pricing-callout .callout-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pricing-callout p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 580px;
}

.callout-stat {
  text-align: center;
  padding: 32px 40px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.05);
}

.callout-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.callout-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================
   DELIVERY MODEL
   ============================================ */
.delivery {
  background: var(--white);
}

.delivery-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 56px;
}

.delivery-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.delivery-node {
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  min-width: 180px;
  transition: var(--transition);
}

.delivery-node.client {
  background: var(--cream);
  border: 2px solid var(--gold);
}

.delivery-node.controller {
  background: var(--navy);
  color: var(--white);
  min-width: 220px;
}

.delivery-node.team {
  background: var(--cream);
  border: 1px solid var(--border-light);
  min-width: 280px;
}

.delivery-node h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.delivery-node.controller h4 {
  color: var(--gold);
}

.delivery-node p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.delivery-node.controller p {
  color: rgba(255, 255, 255, 0.6);
}

.delivery-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

.delivery-team-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.delivery-role {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: var(--white);
  border-radius: 100px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-weight: 500;
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.ai-section .section-label {
  color: var(--gold);
}

.ai-section .section-title {
  color: var(--white);
}

.ai-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.ai-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.ai-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
}

.ai-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.ai-card h4 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ============================================
   DIFFERENTIATORS TABLE
   ============================================ */
.differentiators {
  background: var(--white);
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.diff-table thead {
  background: var(--navy);
}

.diff-table th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  padding: 18px 24px;
  text-align: left;
}

.diff-table th:nth-child(2),
.diff-table th:nth-child(3) {
  text-align: center;
}

.diff-table td {
  padding: 18px 24px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}

.diff-table td:nth-child(2),
.diff-table td:nth-child(3) {
  text-align: center;
}

.diff-table tbody tr {
  background: var(--white);
  transition: var(--transition);
}

.diff-table tbody tr:hover {
  background: var(--cream);
}

.diff-table tbody tr:last-child td {
  border-bottom: none;
}

.diff-yes {
  color: var(--gold-dark);
  font-weight: 700;
}

.diff-no {
  color: var(--text-light);
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-studies {
  background: var(--cream);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card .case-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.case-stat {
  text-align: center;
  padding: 16px 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.case-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.case-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
  background: var(--white);
}

.team-founder {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-info h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 1rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.founder-bio {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.founder-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.credential-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--cream);
  border-radius: 100px;
  color: var(--navy);
  border: 1px solid var(--border-light);
}

.founder-clients {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.founder-clients h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-tag {
  font-size: 0.8rem;
  padding: 5px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Offshore Team */
.team-offshore {
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

.team-offshore h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 32px;
}

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

.offshore-card {
  padding: 28px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.offshore-card h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.offshore-card .offshore-exp {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   TRUSTED BY
   ============================================ */
.trusted {
  background: var(--cream);
  padding: 60px 0;
}

.trusted-inner {
  text-align: center;
}

.trusted-inner h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.trusted-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.5;
  transition: var(--transition);
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.trusted-logo:hover {
  opacity: 1;
  border-color: var(--border-light);
}

/* ============================================
   WHY GRACE
   ============================================ */
.why-grace {
  background: var(--white);
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-item {
  text-align: center;
  padding: 32px 20px;
}

.why-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.why-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact .section-title {
  color: var(--white);
  margin-bottom: 48px;
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.contact-step {
  text-align: center;
}

.contact-step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-step h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}

.contact-step p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-info {
  margin-bottom: 32px;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--gold);
}

.contact-info span {
  margin: 0 16px;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .services-grid,
  .pricing-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-founder {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-photo {
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .pricing-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .delivery-diagram {
    flex-direction: column;
  }

  .delivery-arrow {
    transform: rotate(90deg);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .pricing-grid,
  .case-grid,
  .controller-steps,
  .contact-steps {
    grid-template-columns: 1fr;
  }

  .controller-steps::before {
    display: none;
  }

  .expertise-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .expertise-tabs::-webkit-scrollbar {
    display: none;
  }

  .diff-table {
    font-size: 0.85rem;
  }

  .diff-table th,
  .diff-table td {
    padding: 14px 12px;
  }

  .offshore-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: 20px 16px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-callout {
    padding: 32px 24px;
  }

  .callout-stat-value {
    font-size: 2.2rem;
  }
}
