/* ============================================================
   Celestine Capital — Main Stylesheet
   ============================================================ */

:root {
  --black:   #0a0a0a;
  --white:   #f5f5f0;
  --off:     #1a1a1a;
  --mid:     #2a2a2a;
  --muted:   #6b6b6b;
  --accent:  #c9a96e;
  --border:  rgba(255,255,255,0.08);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography ─────────────────────────────────────────── */

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 13px 35px;
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

/* ── Navigation ──────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245,245,240,0.7);
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 8px 22px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.98);
  border-top: 1px solid var(--border);
  padding: 24px 40px 32px;
  gap: 20px;
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(245,245,240,0.8);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open { display: flex; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(201,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: var(--nav-h);
  animation: fadeUp 1s var(--ease) both;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 800px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245,245,240,0.65);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Marquee ─────────────────────────────────────────────── */

.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 0;
}

/* ── About ───────────────────────────────────────────────── */

.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-right p {
  color: rgba(245,245,240,0.7);
  margin-bottom: 20px;
  font-size: 0.97rem;
  font-weight: 300;
}

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Sectors ─────────────────────────────────────────────── */

.sectors {
  padding: 120px 0;
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.sector-card {
  background: var(--black);
  padding: 52px 48px;
  transition: background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.sector-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.sector-card:hover::after { width: 100%; }
.sector-card:hover { background: #111; }

.sector-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 28px;
}

.sector-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.sector-card p {
  font-size: 0.92rem;
  color: rgba(245,245,240,0.6);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
}

.sector-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

/* ── Portfolio ───────────────────────────────────────────── */

.portfolio {
  padding: 120px 0;
  text-align: center;
}

.portfolio-desc {
  max-width: 620px;
  margin: 0 auto 60px;
  color: rgba(245,245,240,0.6);
  font-size: 0.97rem;
  line-height: 1.8;
  font-weight: 300;
}

.portfolio-sectors {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.portfolio-sector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(245,245,240,0.75);
}

.psi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.portfolio-cta {
  border-top: 1px solid var(--border);
  padding-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.portfolio-cta p {
  color: rgba(245,245,240,0.55);
  font-size: 0.97rem;
}

/* ── Process ─────────────────────────────────────────────── */

.process {
  padding: 120px 0;
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.process-step {
  padding: 40px 36px;
  background: var(--black);
  transition: background 0.3s;
}

.process-step:hover { background: #111; }

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: rgba(201,169,110,0.2);
  line-height: 1;
  margin-bottom: 24px;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.process-step p {
  font-size: 0.875rem;
  color: rgba(245,245,240,0.55);
  line-height: 1.75;
  font-weight: 300;
}

/* ── Contact ─────────────────────────────────────────────── */

.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-left p {
  color: rgba(245,245,240,0.6);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ci-value {
  font-size: 0.97rem;
  color: rgba(245,245,240,0.85);
  font-weight: 300;
  line-height: 1.6;
}

.ci-link {
  color: var(--accent);
  transition: opacity 0.2s;
}

.ci-link:hover { opacity: 0.75; }

/* Contact Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201,169,110,0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--off);
  color: var(--white);
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left .logo {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-left p,
.footer-right p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-right {
  text-align: right;
}

/* ── Animations ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 0 24px; }

  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-scroll { display: none; }

  .sectors-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .portfolio-cta { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 480px) {
  .sector-card { padding: 36px 28px; }
  .process-step { padding: 28px 24px; }
  .about { padding: 80px 0; }
  .sectors, .portfolio, .process, .contact { padding: 80px 0; }
}
