/* ===========================
   AstroFirm — style.css
   =========================== */

:root {
  --navy: #0f1f4e;
  --navy-dark: #0a1535;
  --navy-mid: #12225a;
  --white: #ffffff;
  --off-white: #f4f5f9;
  --text-dark: #1a2a5e;
  --text-muted: #5a6a8a;
  --accent: #c8a96e;
  --border: rgba(18, 34, 90, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(15, 31, 78, 0.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white) url("/static/website-logo.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.brand-icon svg {
  display: none;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5% 70px;
  background: var(--white);
  gap: 40px;
  min-height: calc(100vh - 72px);
  max-height: 780px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--navy);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: 6px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(15, 31, 78, 0.2);
}

.hero-btn:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 31, 78, 0.28);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
}

.zodiac-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  /* Removed rotating animation */
  mix-blend-mode: multiply; /* Makes white background transparent, blends with site bg */
}

/* Removed @keyframes slowSpin */

/* ===== CALCULATORS SECTION ===== */
.calculators {
  padding: 70px 5% 80px;
  background: var(--off-white);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.section-title .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: 200px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.calc-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 22px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.calc-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 36px rgba(15, 31, 78, 0.3);
}

.card-num {
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.card-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 4px;
}

.card-label {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 52px 5% 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url("/static/website-logo.jpeg") center / cover no-repeat;
  flex-shrink: 0;
}

.footer-brand .footer-logo svg {
  display: none;
}

.footer-brand .footer-logo span {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 240px;
  color: rgba(255,255,255,0.6);
}

.social-links {
  display: none;
  gap: 14px;
  margin-top: 20px;
}

.social-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding: 18px 5%;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

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

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
    max-height: none;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub br { display: none; }

  .zodiac-img {
    max-width: 300px;
  }

  .calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
}
