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

:root {
  /* Color Foundation - Deep, sophisticated navy palette */
  --bg-deep: #070b14;
  --bg-page: #0a1020;
  --bg-elevated: #0f172a;
  --bg-card: #131c30;
  --bg-card-hover: #182342;

  /* Borders - refined definition */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(201, 169, 98, 0.25);
  --border-accent: rgba(201, 169, 98, 0.4);

  /* Text hierarchy - refined contrast */
  --text-primary: #f8fafc;
  --text-secondary: #a3b3c6;
  --text-muted: #64748b;
  --text-faint: #475569;

  /* Accent - Refined champagne gold */
  --accent: #d4af5c;
  --accent-light: #e8c876;
  --accent-dim: rgba(212, 175, 92, 0.12);
  --accent-glow: rgba(212, 175, 92, 0.06);
  --accent-strong: rgba(212, 175, 92, 0.25);

  /* Typography - Editorial sophistication */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing - 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Shadows - layered for depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
}

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

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Refined background with premium gradient and subtle grain */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(20, 40, 80, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(30, 50, 100, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 50%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Subtle grain overlay for texture */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

header.scrolled {
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-header {
  height: 32px;
  width: auto;
  opacity: 0.95;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-header:hover {
  opacity: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

nav a.active::after {
  width: 100%;
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
}

/* Hero Section */
/* Brand / Logo Styling */
.logo-header {
  height: 32px;
  width: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-header:hover {
  opacity: 0.8;
}

.logo-text {
  fill: var(--text-primary);
}

.logo-mark path {
  fill: var(--text-primary);
}

.logo-accent {
  fill: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-12) 0 var(--space-16);
  position: relative;
}

/* Aesthetic Background "Photo" Replacement - Abstract Mesh */
.hero::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(212, 175, 92, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(34, 155, 221, 0.05), transparent 25%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.1s forwards;
  letter-spacing: -0.02em;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  background: linear-gradient(180deg, var(--text-primary) 0%, #a3b3c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo-art {
  position: relative;
  height: 200px;
  width: auto;
  z-index: 2;
  border-radius: 4px;
  /* Elegant reflection */
  -webkit-box-reflect: below 8px linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(255,255,255,0.12));
  filter: drop-shadow(0 0 30px rgba(212, 175, 92, 0.25)) drop-shadow(0 0 60px rgba(0,0,0,0.4));
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.hero-logo-art:hover {
  transform: scale(1.04) translateY(-4px);
  filter: drop-shadow(0 0 40px rgba(212, 175, 92, 0.35)) drop-shadow(0 0 80px rgba(0,0,0,0.5));
}

.logo-artistic-container {
  position: relative;
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}

.logo-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-dim) 0%, rgba(212, 175, 92, 0.04) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-12);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.25s forwards;
  line-height: 1.6;
}

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

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-20);
  margin-top: var(--space-8);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.55s forwards;
}

.stat {
  text-align: center;
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: calc(-1 * var(--space-10));
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--border-default), transparent);
}

.stat:last-child::after {
  display: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* Section Styling */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Philosophy Cards Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.philosophy-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(19, 28, 48, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.philosophy-card:hover {
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, rgba(24, 35, 66, 0.7) 100%);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--border-hover);
}

.philosophy-card:hover::before {
  opacity: 1;
}

.philosophy-card .card-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.philosophy-card p {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
}

/* Approach Section */
.approach-section {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: var(--space-16) calc(-50vw + 50%);
  padding: var(--space-24) calc(50vw - 50%);
  position: relative;
}

.approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.approach-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.approach-content h2 {
  margin-bottom: var(--space-6);
}

.approach-content .lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.approach-content .body-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
}

/* Decorative Divider */
.disclaimer-card::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto var(--space-10);
  opacity: 0.5;
}

/* Disclaimer Card */
.disclaimer-card {
  background: linear-gradient(135deg, rgba(19, 28, 48, 0.3) 0%, rgba(15, 23, 42, 0.2) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-8) var(--space-10);
  max-width: 680px;
  margin: var(--space-12) auto 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.disclaimer-card p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Contact Page */
.contact-hero {
  text-align: center;
  padding: var(--space-20) 0 var(--space-12);
}

.contact-hero h1 {
  margin-bottom: var(--space-5);
}

.contact-hero p {
  font-size: 1rem;
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Contact Form Card */
.contact-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(19, 28, 48, 0.5) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-10);
  max-width: 500px;
  margin: 0 auto;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.15);
  position: relative;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  gap: var(--space-4);
}

.success-message svg {
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.success-message h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.success-message p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* Form Styling */
.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

input,
textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
  font-weight: 300;
}

input:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: rgba(7, 11, 20, 0.8);
}

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

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 4px;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s var(--ease-out);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(212, 175, 92, 0.3),
    0 8px 32px rgba(212, 175, 92, 0.15);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  transform: translateY(0);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.form-group .g-recaptcha {
  display: flex;
  justify-content: center;
}

/* Footer */
footer {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 20, 0.5) 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.4;
  margin-bottom: var(--space-4);
  filter: grayscale(100%);
  transition: opacity var(--duration-normal) var(--ease-out), filter var(--duration-normal) var(--ease-out);
}

.footer-logo:hover {
  opacity: 0.6;
  filter: grayscale(0%);
}

.footer-text {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.footer-links {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-8);
}

.footer-links a {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-deep) inset;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: var(--space-4) var(--space-5);
  }

  nav {
    gap: var(--space-6);
  }

  nav a {
    font-size: 11px;
  }

  main {
    padding: var(--space-20) var(--space-5);
  }

  .hero {
    min-height: 65vh;
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero .logo-main {
    height: 100px;
  }

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

  .hero .tagline {
    font-size: 1rem;
    padding: 0 var(--space-4);
  }

  .stats-row {
    flex-direction: column;
    gap: var(--space-6);
  }

  .stat::after {
    display: none;
  }

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

  .stat-label {
    font-size: 9px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .philosophy-card {
    padding: var(--space-6);
  }

  .philosophy-card .card-number {
    font-size: 1.75rem;
  }

  .philosophy-card h3 {
    font-size: 1.15rem;
  }

  .approach-section {
    padding: var(--space-16) var(--space-5);
    margin: var(--space-12) calc(-50vw + 50%);
  }

  .approach-content h2 {
    font-size: 1.5rem;
  }

  .approach-content .lead {
    font-size: 1rem;
  }

  .contact-hero {
    padding: var(--space-16) 0 var(--space-8);
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

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

  .contact-card {
    padding: var(--space-6);
  }

  .disclaimer-card {
    padding: var(--space-6) var(--space-5);
    margin: var(--space-8) auto 0;
  }

  .disclaimer-card::before {
    margin-bottom: var(--space-6);
  }

  .disclaimer-card p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero .logo-main {
    height: 80px;
  }

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

  .philosophy-card {
    padding: var(--space-5);
  }

  .btn-submit {
    width: 100%;
  }

  .form-actions {
    justify-content: stretch;
  }
}
