/* ============================================================
   CALCULATED CO. — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --steel-blue:       #1F3864;
  --gold:             #C9A84C;
  --light-gold:       #FDF3D8;
  --light-steel-blue: #D6E0F0;
  --light-gray:       #F2F2F2;
  --white:            #FFFFFF;
  --text-dark:        #111827;
  --text-mid:         #4B5563;
  --text-light:       #6B7280;

  --font-display: 'Montserrat', sans-serif;
  --font-serif:   'Lora', serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(31,56,100,0.08);
  --shadow-md:  0 6px 24px rgba(31,56,100,0.14);
  --shadow-lg:  0 16px 48px rgba(31,56,100,0.18);

  --max-width: 1200px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--light-steel-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--steel-blue) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #b8942f !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.page-content { padding-top: var(--nav-height); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--steel-blue);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--steel-blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8942f;
  border-color: #b8942f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--steel-blue);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--steel-blue);
  border-color: var(--steel-blue);
}
.btn-outline-blue:hover {
  background: var(--steel-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; }

.gold-divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.25rem 0 2rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.badge-free { background: #D1FAE5; color: #065F46; }
.badge-paid { background: var(--light-gold); color: #7C5900; }

/* ── Footer ── */
footer {
  background: var(--steel-blue);
  color: var(--light-steel-blue);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--light-steel-blue);
  font-family: var(--font-serif);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--light-steel-blue);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(214,224,240,0.15);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(214,224,240,0.6);
}

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--steel-blue);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { transform: translateY(0); opacity: 1; }

  .nav-links a {
    padding: 0.875rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(214,224,240,0.1);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin: 0.75rem 2rem;
    width: calc(100% - 4rem);
    justify-content: center;
    display: flex !important;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-up { animation: none; opacity: 1; }
}
