/* ===================================
   SGCube Consultants — Global Styles (Dark Theme)
   =================================== */

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

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

:root {
  /* Gold stays the star */
  --gold:        #C9A052;
  --gold-dark:   #A8833E;
  --gold-light:  #D4B06A;
  --gold-bright: #D4B06A;
  --gold-dim:    rgba(201, 160, 82, 0.15);
  --gold-glow:   rgba(201, 160, 82, 0.15);
  --gold-border: rgba(201, 160, 82, 0.2);
  --gold-border-hover: rgba(201, 160, 82, 0.5);

  /* Dark backgrounds — remapped from light originals */
  --cream:       #0B0E17;
  --white:       #1A1F35;
  --charcoal:    #F5F0E8;
  --charcoal-80: rgba(232, 228, 220, 0.88);
  --charcoal-50: #A9A39A;
  --border:      rgba(201, 160, 82, 0.2);

  /* Explicit dark theme variables */
  --bg-primary:   #0B0E17;
  --bg-secondary: #12162B;
  --bg-card:      #1A1F35;
  --bg-deep:      #080B14;
  --bg-code:      #1E2340;

  /* Text */
  --text-primary:   #E8E4DC;
  --text-secondary: #A9A39A;
  --text-heading:   #F5F0E8;
  --text-muted:     #6B6760;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Poppins', -apple-system, sans-serif;
  --transition:   0.3s ease;
  --max-width:    1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { font-size: 1rem; color: var(--text-primary); }

.gold { color: var(--gold); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

/* --- Gold Divider --- */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0 2rem;
}

.gold-line.center {
  margin: 1.2rem auto 2rem;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(8, 11, 20, 0.95);
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-logo-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.05em;
  line-height: 1;
}

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

.nav-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
}

/* ===================================
   PAGE HERO (inner pages — old class)
   =================================== */
.page-hero {
  padding: 180px 0 100px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--gold-border);
  text-align: center;
}

.page-hero .section-label {
  margin-bottom: 0.8rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-border);
  padding: 60px 0 30px;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0;
  max-width: 280px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.footer-contact-item span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
}

.footer-contact-item span:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 160, 82, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom p:last-child {
  color: var(--gold);
}

/* ===================================
   HOME — HERO (old class, kept for compat)
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,160,82,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,160,82,0.04) 0%, transparent 60%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,160,82,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,160,82,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease both;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.15s ease both;
  color: var(--text-heading);
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ===================================
   HOME — STATS
   =================================== */
.stats-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===================================
   HOME — INTRO
   =================================== */
.intro-section {
  background: var(--bg-secondary);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-text h2 {
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.intro-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  padding: 2.5rem;
  position: relative;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.intro-card-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-heading);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.intro-card-attr {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}

/* ===================================
   HOME — SERVICES PREVIEW
   =================================== */
.services-preview {
  background: var(--bg-primary);
}

.section-header {
  margin-bottom: 4rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--gold-border);
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}

.service-card:hover {
  background: var(--bg-secondary);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===================================
   HOME — CTA BAND
   =================================== */
.cta-band {
  background: var(--bg-deep);
  border-top: 3px solid var(--gold);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.cta-band p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

.cta-band .section-label {
  color: var(--gold-light);
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-story {
  background: var(--bg-primary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-story p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.about-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.2rem;
  margin-bottom: 1.5rem;
}

.about-highlight-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.about-highlight-box p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

.values-section {
  background: var(--bg-secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(201, 160, 82, 0.1);
}

.value-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(201, 160, 82, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--text-heading);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===================================
   SERVICES PAGE
   =================================== */
.services-detail-section {
  background: var(--bg-primary);
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 3.5rem;
  margin-bottom: 2px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  transition: border-color var(--transition);
  align-items: start;
}

.service-detail-card:hover {
  border-color: var(--gold);
}

.service-detail-left {
  position: sticky;
  top: 6rem;
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-detail-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.service-detail-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.service-detail-right p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-feature-item::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.approach-section {
  background: var(--bg-secondary);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.approach-step {
  padding: 2.5rem;
  border-right: 1px solid var(--gold-border);
  position: relative;
}

.approach-step:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: rgba(201, 160, 82, 0.20);
  line-height: 1;
  margin-bottom: 1rem;
}

.approach-step h4 {
  color: var(--text-heading);
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.approach-step p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-info-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.contact-info-value a {
  color: var(--text-primary);
  transition: color var(--transition);
}

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

.contact-form-wrap h2 {
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.contact-form-wrap > p {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  background: rgba(201, 160, 82, 0.08);
  border: 1px solid var(--gold-border);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gold);
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hours-table td {
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(201,160,82,0.1);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-primary);
}

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

/* Map embed */
.map-embed {
  width: 100%;
  height: 350px;
  border: 1.5px solid var(--gold-border);
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }

  .intro-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-left {
    position: static;
  }

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

  .approach-step {
    border-bottom: 1px solid var(--gold-border);
    border-right: none;
  }

  .approach-step:nth-child(odd) {
    border-right: 1px solid var(--gold-border);
  }

  .approach-step:last-child,
  .approach-step:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .navbar .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .stat-item {
    border-bottom: 1px solid var(--gold-border);
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .approach-step {
    border-right: none;
    border-bottom: 1px solid var(--gold-border);
  }

  .approach-step:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-features {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   NEW PAGE COMPONENTS
   =================================== */

/* ---- Keyframes ---- */
@keyframes sgFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sgBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes sgMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Galaxy Hero ---- */
.sg-hero {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

#galaxy-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.sg-hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: sgFadeUp 0.9s ease both;
  text-shadow: 0 0 40px rgba(201, 160, 82, 0.12);
}

.sg-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.78;
  animation: sgFadeUp 0.9s 0.2s ease both;
}

.sg-scroll-arrow {
  margin-top: 3rem;
  color: var(--gold);
  animation: sgFadeUp 0.9s 0.4s ease forwards, sgBounce 1.8s 1.4s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s 1.5s ease both;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ---- Marquee ---- */
.sg-marquee-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 13px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.sg-marquee-inner {
  display: flex;
  width: max-content;
  animation: sgMarquee 34s linear infinite;
}

.sg-marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.sg-marquee-group span {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.85;
  padding: 0 1.6rem;
}

.sg-diamond {
  font-size: 0.42rem !important;
  color: var(--gold) !important;
  opacity: 0.7 !important;
  padding: 0 0.3rem !important;
  vertical-align: middle;
}

/* ---- Pillar cards (What We Do) ---- */
.sg-pillars {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.sg-section-header { margin-bottom: 3.5rem; }

.sg-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

.sg-section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.65;
}

.sg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sg-pillar-card {
  display: block;
  text-decoration: none;
  padding: 2.4rem 2rem;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sg-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(201,160,82,0.12);
}

.sg-pillar-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}

.sg-pillar-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sg-pillar-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- How We Work ---- */
.sg-how {
  background: var(--bg-primary);
  padding: 100px 0;
}

.sg-how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sg-principles {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sg-principle {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.sg-principle-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sg-principle-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.sg-principle-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

.sg-how-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.sg-how-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* Orbit canvas container */
.orbit-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Who We Are teaser ---- */
.sg-who {
  background: var(--bg-secondary);
  padding: 100px 0;
  text-align: center;
}

.sg-who-inner {
  max-width: 620px;
  margin: 0 auto;
}

.sg-who-inner p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-top: 1rem;
}

/* ---- CTA Banner ---- */
.sg-cta-banner {
  background: var(--bg-deep);
  padding: 80px 0;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.sg-cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.sg-cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* ---- Page Header (inner pages) ---- */
.sg-page-header {
  background: var(--bg-secondary);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sg-page-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,160,82,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.sg-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.sg-page-header p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.78;
}

/* ---- Tabs (services page) ---- */
.sg-tabs-section {
  background: var(--bg-primary);
  padding: 80px 0 100px;
}

.sg-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 0;
}

.sg-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.sg-tab-btn:hover { color: var(--text-primary); }

.sg-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.sg-tab-panel         { display: none; }
.sg-tab-panel.active  { display: block; }

/* ---- Service cards ---- */
.sg-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sg-svc-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  padding: 2.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sg-svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(201,160,82,0.12);
}

.sg-svc-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.sg-svc-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.sg-svc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

/* ---- About page divider ---- */
.about-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
  margin: 0;
}

/* ---- About copy ---- */
.sg-about-copy {
  background: var(--bg-primary);
  padding: 100px 0;
}

.sg-about-inner {
  max-width: 780px;
  margin: 0 auto;
}

.sg-about-inner p {
  font-size: 1.08rem;
  color: var(--text-primary);
  line-height: 1.92;
  margin-bottom: 1.8rem;
}

.sg-about-inner p:last-child { margin-bottom: 0; }

/* ---- Values (about page) ---- */
.sg-values-section {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.sg-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.sg-value-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-top: 3px solid var(--gold);
  padding: 2.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sg-value-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201,160,82,0.1);
}

.sg-value-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.sg-value-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.sg-value-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

/* ---- Scroll reveal ---- */
.sg-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sg-reveal.sg-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll animation (Phase 5) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   BLOG COMPONENTS
   =================================== */

/* Blog listing hero */
.blog-hero {
  background: var(--bg-deep);
  border-bottom: 2px solid var(--gold);
}

.blog-hero h1 { color: var(--text-heading); }
.blog-hero p { color: var(--text-secondary); }

/* Blog grid section */
.blog-grid-section {
  background: var(--bg-primary);
}

/* Blog cards */
.blog-card {
  background: var(--bg-card);
  border-color: var(--gold-border);
  opacity: 0;
  transform: translateY(32px);
}

.blog-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.blog-card h2 { color: var(--text-heading); }
.blog-card h2:hover { color: var(--gold); }
.blog-card-excerpt { color: var(--text-secondary); }
.blog-card-meta { color: var(--text-muted); }

/* Blog CTA banner */
.blog-cta-banner {
  background: var(--bg-deep);
}

.blog-cta-banner h2 { color: var(--text-heading); }
.blog-cta-banner p { color: var(--text-secondary); }

/* ===================================
   BLOG POST — MID-ARTICLE CTA
   =================================== */
.blog-cta {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.blog-cta h3 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.blog-cta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-cta a.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.blog-cta a.cta-button:hover {
  background: var(--gold-bright);
}

/* ===================================
   FLOATING BLOG NAVIGATION
   =================================== */
.blog-float-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  background: rgba(18, 22, 43, 0.95);
  border-right: 1px solid var(--gold-border);
  border-top: 1px solid rgba(201, 160, 82, 0.1);
  border-bottom: 1px solid rgba(201, 160, 82, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 14px;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.3);
  max-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-float-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.float-nav-back:hover { color: var(--gold); }

.float-nav-divider {
  height: 1px;
  background: var(--gold-border);
  margin: 10px 0;
}

.float-nav-next {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.float-nav-label-small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.float-nav-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: 3px;
}

.float-nav-next:hover .float-nav-title { color: var(--gold); }

@media (max-width: 768px) {
  .blog-float-nav {
    top: auto;
    bottom: 20px;
    left: 12px;
    transform: none;
    max-width: 180px;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid var(--gold);
  }
}

/* ===================================
   RESPONSIVE ADDITIONS
   =================================== */
@media (max-width: 1024px) {
  .sg-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-svc-grid     { grid-template-columns: repeat(2, 1fr); }
  .sg-values-grid  { grid-template-columns: repeat(2, 1fr); }
  .sg-how-layout   { grid-template-columns: 1fr; gap: 3rem; }
  .sg-how-visual   { display: none; }
  .orbit-container { max-width: 320px; }
}

@media (max-width: 768px) {
  .sg-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sg-svc-grid     { grid-template-columns: 1fr; }
  .sg-values-grid  { grid-template-columns: 1fr; }
  .sg-page-header  { padding: 120px 0 60px; }
  .sg-tab-btn      { padding: 0.75rem 0.9rem; font-size: 0.72rem; }
  .orbit-container { max-width: 260px; margin: 2rem auto 0; }
}
