/* ===========================================
   SHARED STYLES - Common across all pages
   Matches the index.html navy+gold theme
   =========================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Navy Dark Theme */
  --background: hsl(243 51% 15%);
  --foreground: hsl(210 40% 96%);
  --card: hsl(220 35% 10%);
  --card-foreground: hsl(210 40% 96%);

  /* Gold Accent */
  --primary: hsl(38 51% 62%);
  --primary-foreground: hsl(220 40% 6%);

  --secondary: hsl(220 30% 16%);
  --secondary-foreground: hsl(210 40% 96%);

  --muted: hsl(220 25% 18%);
  --muted-foreground: hsl(215 20% 60%);

  --accent: hsl(220 30% 14%);
  --accent-foreground: hsl(210 40% 96%);
						

  --border: hsl(220 25% 20%);
  --input: hsl(220 25% 18%);
  --ring: hsl(42 65% 58%);

  /* Custom Colors */
  --navy-900: hsl(243 51% 15%);
  --navy-800: hsl(220 35% 10%);
  --navy-700: hsl(220 30% 14%);
  --navy-600: hsl(220 25% 20%);
  --gold: hsl(38 51% 62%);
  --gold-light: hsl(42 70% 70%);
  --gold-dark: hsl(42 60% 45%);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, hsl(42 65% 58%), hsl(42 70% 70%));
  --gradient-navy: linear-gradient(180deg, hsl(220 40% 6%), hsl(220 35% 10%));
  --gradient-card: linear-gradient(145deg, hsl(220 35% 12%), hsl(220 35% 8%));
  --gradient-shield: radial-gradient(ellipse at 50% 0%, hsl(42 65% 58% / 0.1) 0%, transparent 60%);

  /* Shadows */
  --shadow-gold: 0 4px 30px -5px hsl(42 65% 58% / 0.3);
  --shadow-card: 0 8px 40px -10px hsl(0 0% 0% / 0.5);
  --shadow-nav: 0 2px 20px -5px hsl(0 0% 0% / 0.4);

  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===========================================
   Utility Classes
   =========================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(42 65% 58%), hsl(42 70% 75%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--muted-foreground);
}

.hidden {
  display: none !important;
}

.full-width {
  width: 100%;
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s ease;			   
  white-space: nowrap;
  cursor: pointer;
}

.btn-hero {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px -5px hsl(42 65% 58% / 0.4);
}

.btn-hero-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-hero-outline:hover {
  background: hsl(42 65% 58% / 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);											 
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: none;
}

.btn-ghost:hover {
  color: var(--foreground);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* ===========================================
   HEADER / NAVIGATION
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(243 51% 15% / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(220 25% 20% / 0.5);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

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

.logo-img {
  height: 5rem;
  width: auto;
}

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

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

.auth-buttons {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .auth-buttons {
    display: flex;
  }
}

.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);				  
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(220 25% 20% / 0.5);
  animation: fadeIn 0.3s ease;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(220 25% 20% / 0.5);
}

/* ===========================================
   PAGE HERO (shared across pricing, about, contact)
   =========================================== */
.page-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--background) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(42 65% 58% / 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(42 65% 58% / 0.1);
  border: 1px solid hsl(42 65% 58% / 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3.5rem;
  }
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--navy-900);
  border-top: 1px solid hsl(220 25% 20% / 0.3);					   
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo svg {
  color: var(--navy-900);
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.newsletter {
  max-width: 28rem;
}

.newsletter-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid hsl(220 25% 20% / 0.5);
						
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;								
}

.footer-column ul {				   
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: hsl(42 65% 58% / 0.2);
}

.social-link svg {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.social-link:hover svg {
  color: var(--primary);
}

.social-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(220 25% 20% / 0.3);
  display: flex;
  flex-direction: column;			
  align-items: center;
  gap: 1rem;												 
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-legal a {
  transition: color 0.3s ease;			
}

.footer-legal a:hover {
  color: var(--primary);							
}

.separator {
  display: none;
}

@media (min-width: 768px) {
  .separator {
    display: inline;
  }
}

/* ===========================================
   BACK TO TOP
   =========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-gold);
  border: none;
  border-radius: 50%;
  color: var(--primary-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
   
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===========================================
   CARDS
   =========================================== */
.card {
  background: var(--gradient-card);
  border: 1px solid hsl(220 25% 20% / 0.5);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: hsl(42 65% 58% / 0.3);
  transform: translateY(-4px);
}

/* ===========================================
   FORM ELEMENTS
   =========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--navy-800);
  border: 1px solid hsl(220 25% 20% / 0.5);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--navy-800);
  border: 1px solid hsl(220 25% 20% / 0.5);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
