/* ============================================
   Avocado Domains - Main Stylesheet
   Clean, professional, trust-focused design
   ============================================ */

/* === CSS Variables (Light & Dark Mode) === */
:root {
  --color-primary: #1F3D2B;
  --color-accent: #A8C66C;
  --color-bg: #FAF8F2;
  --color-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #5B6B60;
  --color-border: #E5E5E5;
  
  --radius-card: 16px;
  --radius-button: 10px;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #A8C66C;
    --color-accent: #6B8F3E;
    --color-bg: #1A1A1A;
    --color-card: #2A2A2A;
    --color-text: #FAFAFA;
    --color-text-secondary: #B0B0B0;
    --color-border: #404040;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

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

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

/* === Header (Sticky Navigation) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white !important;
  border-radius: var(--radius-button);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  opacity: 1;
  color: white !important;
}

.btn:active {
  transform: translateY(0);
}

/* Ensure button text is always visible in nav */
.nav-links .btn,
.mobile-nav .btn {
  color: white !important;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem;
  color: var(--color-text);
  border-radius: var(--radius-button);
}

.mobile-nav a:hover {
  background: var(--color-bg);
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin: 0 auto 2rem;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* === Domains Section === */
.domains-section {
  background: var(--color-card);
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
}

.search-input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.chip.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Domain Cards Grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

@media (min-width: 1024px) {
  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.domain-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

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

.domain-card-sold {
  opacity: 0.7;
  position: relative;
}

.domain-card-sold:hover {
  transform: none;
  box-shadow: var(--shadow-light);
}

.domain-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.domain-card:hover .domain-status {
  opacity: 0;
  pointer-events: none;
}

.domain-status.available {
  background: #E8F5E9;
  color: #2E7D32;
}

.domain-status.under-offer {
  background: #FFF3E0;
  color: #E65100;
}

.domain-status.sold {
  background: #FFEBEE;
  color: #C62828;
  font-weight: 600;
}

.domain-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  word-break: break-word;
  cursor: pointer;
  user-select: all;
}

.domain-name:hover {
  opacity: 0.7;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.domain-tag {
  padding: 0.25rem 0.5rem;
  background: var(--color-bg);
  border-radius: 6px;
}

.domain-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.domain-price {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.domain-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.channel-badge.btc {
  background: #FFF8E1;
  border-color: #FFB300;
  color: #E65100;
  font-weight: 600;
}

.domain-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.domain-actions .btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.btn-platform {
  background: var(--color-bg);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-platform:hover {
  background: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
}

.load-more {
  text-align: center;
  margin-top: 2rem;
}

/* Contact Card (always last in grid) */
.contact-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d5940 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  cursor: default;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(31, 61, 43, 0.2);
}

.contact-card-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.contact-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.contact-card-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card .btn {
  background: white;
  color: var(--color-primary) !important;
  font-weight: 600;
}

.contact-card .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.domains-footer-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* === How It Works === */
.how-it-works {
  background: var(--color-bg);
}

.timeline {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

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

.timeline-step {
  text-align: center;
  padding: 1.5rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Ways to Buy Cards */
.ways-to-buy {
  margin-top: 3rem;
}

.ways-to-buy h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.payment-methods {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .payment-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payment-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
}

.payment-card h4 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.payment-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* === Why Buy From Us === */
.why-buy {
  background: var(--color-card);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* === About === */
.about {
  background: var(--color-bg);
  text-align: center;
}

.about .container {
  max-width: 800px;
}

.about h2 {
  margin-bottom: 1.5rem;
}

.about p {
  margin: 0 auto 1rem;
  font-size: 1.05rem;
}

.about .manager-name {
  font-weight: 600;
  color: var(--color-primary);
}

/* === FAQ === */
.faq {
  background: var(--color-card);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

details {
  cursor: pointer;
}

summary {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

/* === Contact CTA === */
.contact-cta {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.contact-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-cta h2 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: var(--radius-button);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.contact-note {
  font-size: 0.95rem;
  opacity: 0.9;
  text-align: center;
  margin: 0;
}

/* === Footer === */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer-bottom p {
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* === Noscript Fallback === */
.noscript-message {
  background: #FFF3CD;
  color: #856404;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #FFEAA7;
}

/* === Copy Feedback === */
.copy-feedback {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}
