/* ============================================
   Pyrate — Elite Founder Coaching & Advisory
   styles.css
   ============================================ */

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

::selection {
  background: #611427;
  color: #e3e3e3;
}

:root {
  --bg: #0c0c0c;
  --text: #e3e3e3;
  --accent: #611427;
  --accent-hover: #7a1a32;
  --muted: #888888;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
  max-width: 600px;
  font-size: 1rem;
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in.delay-1 { transition-delay: 0.15s; }
.fade-in.delay-2 { transition-delay: 0.3s; }
.fade-in.delay-3 { transition-delay: 0.45s; }
.fade-in.delay-4 { transition-delay: 0.6s; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.6rem 0;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
}

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

.logo a {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a:hover {
  color: var(--text);
}

.logo .logo-nav {
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

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

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ---------- Main Content ---------- */
main {
  flex: 1;
  padding-top: 140px;
  padding-bottom: 100px;
}

/* ---------- Hero (Home) ---------- */
.hero {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.hero-logo {
  max-width: min(380px, 75vw);
  height: auto;
  margin-bottom: 2rem;
}

/* Newsletter stacked form */
.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.newsletter-fields input {
  width: 100%;
  max-width: 400px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.newsletter-fields input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-fields input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.hero .tagline {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero .invite-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem auto;
  opacity: 0.6;
}

/* ---------- Page Sections ---------- */
.page-section {
  max-width: 680px;
  margin: 0 auto;
}

.page-section h2 {
  margin-bottom: 2rem;
}

.page-section p {
  margin-bottom: 1.4rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem 0;
  opacity: 0.5;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  max-width: 400px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Newsletter inline form */
.newsletter-form {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  max-width: 320px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Form messages */
.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-message.show {
  opacity: 1;
}

.form-message.success {
  color: var(--accent-hover);
}

/* Blog coming soon */
.coming-soon {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.coming-soon p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Contact email link */
.email-link {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.email-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- Policies ---------- */
.policy-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 640px;
}

.policy-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

.policy-content li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.policy-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.policy-section {
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 auto;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1px;
}

.site-footer a:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 105;
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  nav a {
    font-size: 1rem;
  }

  main {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .container {
    padding: 0 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    max-width: 100%;
  }

  .newsletter-fields input {
    max-width: 100%;
  }

  .form-group input {
    max-width: 100%;
  }

  .hero {
    min-height: calc(100vh - 80px);
    padding-bottom: 30px;
  }

  .hero-logo {
    max-width: min(280px, 65vw);
  }

  .page-section {
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  main {
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .hero {
    min-height: calc(100vh - 70px);
    padding-bottom: 20px;
  }

  .hero h1 {
    letter-spacing: 0.08em;
  }

  .hero-logo {
    max-width: min(240px, 60vw);
  }

  .site-header {
    padding: 1rem 0;
  }

  .site-header.scrolled {
    padding: 0.7rem 0;
  }
}
