/* 
 * GuardPrivacy.org - Corporate Privacy-First Design
 * Pure white background with enterprise-grade styling
 * 
 * ASSET IMPORT NOTES:
 * - Logo: /images/guardprivacy.png (same path as before)
 * - Header banner: https://guardprivacy.org/images/header.jpg (same URL)
 * - EFF logo: https://www.eff.org/sites/all/modules/custom/eff_library/images/eff-logo-1color-blue.svg
 * 
 * TOKEN ADJUSTMENT:
 * Update CSS custom properties in :root to modify brand colors
 */

:root {
  /* Brand Tokens - Pure White Theme */
  --page-bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text: #0F172A;
  --muted: #475569;
  --accent: #176EA5;
  --accent-strong: #0E4F78;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  --shadow-hover: 0 12px 32px rgba(2, 6, 23, 0.1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--page-bg) !important;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Card Component */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

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

.nav-link.active {
  color: var(--accent);
  background: rgba(23, 110, 165, 0.05);
}

.nav-link.cta-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.nav-link.cta-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: var(--space-2xl) 0;
  background: var(--surface);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-banner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Step Cards */
.step-card {
  text-align: center;
  position: relative;
  padding-top: var(--space-xl);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Feature Cards */
.feature-card {
  text-align: center;
}

.feature-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.feature-card h4 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

/* Contact Cards */
.contact-card {
  text-align: center;
  padding: var(--space-xl);
}

.contact-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.contact-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.contact-card p {
  margin-bottom: var(--space-lg);
  color: var(--muted);
}

/* CTA Card */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: var(--space-lg);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(23, 110, 165, 0.05);
}

.faq-question[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer[aria-hidden="false"] {
  padding: var(--space-lg);
  max-height: 500px;
}

.faq-answer p {
  color: var(--muted);
}

/* WHOIS Example */
.whois-example {
  margin: var(--space-lg) 0;
}

.whois-details {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.whois-field {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
}

.whois-field:last-child {
  border-bottom: none;
}

.whois-note {
  margin-top: var(--space-md);
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

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

.eff-logo img {
  height: 40px;
  width: auto;
  margin-top: var(--space-md);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Cookie Banner - FIXED VERSION */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(2, 6, 23, 0.1);
    z-index: 1000;
    padding: var(--space-md) 0;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Icons (using Unicode/Emoji as fallback) */
.icon-shield::before { content: "🛡️"; }
.icon-eye-off::before { content: "👁️"; }
.icon-domain::before { content: "🌐"; }
.icon-mask::before { content: "🎭"; }
.icon-mail::before { content: "✉️"; }
.icon-gdpr::before { content: "📋"; }
.icon-icann::before { content: "🏛️"; }
.icon-law::before { content: "⚖️"; }
.icon-whois::before { content: "🔍"; }
.icon-global::before { content: "🌍"; }
.icon-sync::before { content: "🔄"; }
.icon-email::before { content: "📧"; }
.icon-shield-check::before { content: "✅"; }
.icon-support::before { content: "🛟"; }
.icon-alert::before { content: "⚠️"; }
.icon-chevron::before { content: "⌄"; }

/* Grid Utilities */
.grid {
  display: grid;
}

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

.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Background Utilities */
.bg-gray-50 { background: #f9fafb; }

/* Prose for content */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 2rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--text);
}

.prose h3 {
  font-size: 1.5rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--text);
}

.prose p {
  margin-bottom: var(--space-md);
  color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .cta-card {
    padding: var(--space-lg);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .nav-link.cta-primary:hover {
    transform: none;
  }
}

/* Magic.css integration for hero subtitle */
.magic {
  animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}