/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark Modern Luxury Palette */
  --bg: #050505;
  --bg-offset: #0f0f12;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #d4af37; /* Gold accent */
  --accent-silver: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.5);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Inter Tight', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  font-size: 15px; /* High density */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 80px; /* Space for bottom nav */
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === BACKGROUND TEXTURE & BLOBS === */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  border-radius: 50%;
  animation: move 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, rgba(0,0,0,0) 70%); }
.blob-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(148, 163, 184, 0.05) 0%, rgba(0,0,0,0) 70%); animation-delay: -5s; }

@keyframes move {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10%, 10%) scale(1.1); }
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  padding: 60px 0; /* Dense spacing */
  position: relative;
  overflow: hidden;
}

/* Concave Dividers */
section::before, section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--bg);
  z-index: 2;
}

.section-alt {
  background: linear-gradient(2deg, var(--bg-offset), #1a1a1e);
}

.section-alt::before {
  top: -20px;
  border-radius: 0 0 50% 50%;
}

.section-alt::after {
  bottom: -20px;
  border-radius: 50% 50% 0 0;
}

/* === NAVIGATION === */
/* Floating Pill Nav (Top) */
.top-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
}

.pill-nav {
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 8px 24px;
  border-radius: 50px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-glass);
}

.pill-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pill-nav a:hover, .pill-nav a.active {
  color: var(--accent);
}

/* Bottom App-style Nav Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item i {
  font-size: 20px;
}

.nav-item.active {
  color: var(--accent);
}

/* === UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
}

/* Decorative Stroke Text */
.stroke-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 10vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.05);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
}

/* === HERO === */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, var(--bg) 100%);
}

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

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === GRID LAYOUTS === */
.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Overlapping Strategy */
.overlap-container {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .overlap-card {
    margin-top: -40px;
    z-index: 10;
  }
}

/* === INTERACTIVE: BEFORE/AFTER SLIDER === */
.ba-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.ba-before, .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-after {
  width: 50%;
  border-right: 2px solid var(--accent);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.ba-handle::after {
  content: '\f07e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* === SECTIONS === */
.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* Testimonials */
.testimonials-list {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author span {
  color: var(--accent);
  font-weight: 600;
}

/* Awards Bar */
.awards-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
}

.award-item {
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.award-item:hover { opacity: 1; }

.award-item i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 10px;
}

.award-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* Case Study */
.case-study {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .case-study { grid-template-columns: 1fr 1fr; align-items: center; }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.metric-card {
  padding: 15px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 2px solid var(--accent);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* === FOOTER === */
footer {
  background: #000;
  padding: 60px 0 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form input {
  background: var(--bg-offset);
  border: 1px solid var(--glass-border);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  color: #fff;
  flex: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* === INNER PAGES === */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--accent);
}

.inner-hero {
  padding: 80px 0 40px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 40px 0;
}

.image-strip img {
  aspect-ratio: 16/9;
}

/* Article Styling */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.article-content h2, .article-content h3 {
  margin: 40px 0 20px;
  color: var(--text);
}

.article-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 30px 0;
}

/* Team */
.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-card {
  text-align: center;
}

.team-img {
  width: 100%;
  aspect-ratio: 4/5;
  margin-bottom: 15px;
}

.team-info h4 {
  font-size: 1.4rem;
}

.team-info p {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* FAQ */
.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--glass-bg);
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 20px;
}

.faq-item.active i {
  transform: rotate(180deg);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .pill-nav {
    display: none; /* Mobile uses bottom bar only */
  }

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

  .section-title h2 {
    font-size: 2.2rem;
  }

  .image-strip {
    grid-template-columns: 1fr;
  }

  .ba-slider {
    height: 300px;
  }
}
