/* Coffee Fountain - Dark Hardwood Modern Responsive Stylesheet */
/* Test edit: confirming edit tool is working */
/* Version 1.0 - Mobile-first, ADA-compliant, AdSense-optimized */
/* ============================================ */

/* CSS Custom Properties (Variables) for Consistent Theming */
:root {
  /* Color Palette - Dark Hardwood Theme */
  --color-bg-primary: #1a1410;
  --color-bg-secondary: #2d1f16;
  --color-bg-card: #3d2b1f;
  --color-bg-elevated: #4a3323;
  --color-wood-dark: #0f0a08;
  --color-wood-medium: #2a1d15;
  --color-wood-light: #5d4037;
  
  /* Text Colors - WCAG AA Compliant Contrast */
  --color-text-primary: #f5f0e8;
  --color-text-secondary: #c9b99a;
  --color-text-muted: #8a7b6b;
  --color-text-on-accent: #1a1410;
  
  /* Accent Colors - Coffee-inspired */
  --color-accent: #c4956a;
  --color-accent-hover: #d4a57a;
  --color-accent-light: #e8d5b5;
  
  /* Borders & Dividers */
  --color-border: #5d4037;
  --color-border-subtle: #3d2817;
  --color-border-focus: #c4956a;
  
  /* Typography */
  --font-heading: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 4rem;
  
  /* Container Widths */
  --container-max: 1200px;
  --container-narrow: 800px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(196, 149, 106, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Focus Ring for Accessibility */
  --focus-ring: 0 0 0 3px rgba(196, 149, 106, 0.5);
}

/* ============================================ */
/* RESET & BASE STYLES */
/* ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-image: 
    linear-gradient(135deg, rgba(45, 31, 22, 0.6) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(93, 64, 55, 0.03) 2px,
      rgba(93, 64, 55, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(93, 64, 55, 0.03) 2px,
      rgba(93, 64, 55, 0.03) 4px
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================ */
/* ACCESSIBILITY - Skip Link */
/* ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-normal);
}

.skip-link:focus {
  top: var(--space-md);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================ */
/* TYPOGRAPHY */
/* ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  max-width: 70ch;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ============================================ */
/* LAYOUT - Container */
/* ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */
.site-header {
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, var(--color-bg-secondary) 100%);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  gap: 5px;
  flex-direction: column;
}

.mobile-menu-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero {
  padding: var(--space-xxxl) 0;
  background: 
    linear-gradient(135deg, rgba(45, 31, 22, 0.7) 0%, rgba(26, 20, 16, 0.9) 100%),
    var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4956a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.1; }
.hero-tagline { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--color-accent); font-style: italic; margin-bottom: var(--space-lg); }
.hero-description { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--color-text-secondary); margin-bottom: var(--space-xl); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) var(--space-lg); font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.btn-primary { background: var(--color-accent); color: var(--color-text-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-text-on-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: var(--color-text-on-accent); }

/* Features Section */
.features { padding: var(--space-xxxl) 0; background: var(--color-bg-secondary); }
.section-title { text-align: center; margin-bottom: var(--space-xxl); color: var(--color-text-primary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
.feature-card { background: var(--color-bg-card); padding: var(--space-xl); border-radius: var(--radius-lg); border: 1px solid var(--color-border); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.feature-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.feature-title { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.feature-title a { color: var(--color-text-primary); }
.feature-title a:hover { color: var(--color-accent); text-decoration: none; }
.feature-description { color: var(--color-text-secondary); margin-bottom: 0; }

/* Ad Containers */
.ad-container { background: var(--color-bg-secondary); padding: var(--space-md) 0; text-align: center; }
.ad-top { border-bottom: 1px solid var(--color-border); }
.ad-inline { margin: var(--space-xxl) 0; padding: var(--space-lg); background: var(--color-bg-card); border-radius: var(--radius-md); }

/* Footer */
.site-footer { background: var(--color-wood-dark); border-top: 2px solid var(--color-border); padding: var(--space-xxl) 0 var(--space-lg); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-section h3 { font-size: 1.25rem; margin-bottom: var(--space-md); color: var(--color-accent); }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: var(--space-xs); }
.footer-section a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-section a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; padding-top: var(--space-lg); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.875rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
.mobile-menu-toggle { display: flex; }
.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-secondary); border-bottom: 2px solid var(--color-border); max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); }
.main-nav.active { max-height: 300px; }
.nav-list { flex-direction: column; padding: var(--space-md); gap: var(--space-md); }
.hero .container { grid-template-columns: 1fr; text-align: center; }
.hero-image { order: -1; margin-bottom: var(--space-lg); }
.hero-description { margin-left: auto; margin-right: auto; }
.hero-cta { justify-content: center; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus Visible for keyboard navigation */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Print Styles */
@media print {
.ad-container, .mobile-menu-toggle, .site-header, .site-footer { display: none; }
body { background: white; color: black; }
}

/* ============================================ */
/* UPSCALE BUSINESS ENHANCEMENTS - v2.0 */
/* Premium feel, sophisticated interactions */
/* ============================================ */

/* Enhanced Typography - Editorial Quality */
.hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Glassmorphism Header */
.site-header {
  background: rgba(15, 10, 8, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 149, 106, 0.2);
}

/* Premium Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  box-shadow: 0 4px 15px rgba(196, 149, 106, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(196, 149, 106, 0.4);
}

/* Sophisticated Feature Cards */
.feature-card {
  position: relative;
  background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(61, 43, 31, 0.8) 100%);
  border: 1px solid rgba(196, 149, 106, 0.1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent, var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Section Image Styling */
.section-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26, 20, 16, 0.8) 100%);
  pointer-events: none;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.section-image:hover img {
  transform: scale(1.05);
}

/* Newsletter Section - Premium */
.newsletter {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-wood-medium) 50%, var(--color-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196, 149, 106, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(196, 149, 106, 0.05);
  box-shadow: var(--shadow-glow);
}

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

/* Enhanced Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, #0a0604 100%);
}

.footer-section h3 {
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

/* Decorative Elements */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin: var(--space-lg) 0;
}

.section-subtitle {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Image Gallery Grid for Content Pages */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xxl) 0;
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-card:hover img {
  transform: scale(1.08);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(15, 10, 8, 0.95), transparent);
}

.image-overlay h4 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

/* Smooth Page Load Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
