/* Stoic Dog - Greek-inspired geometric minimal design */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --greek-blue: #146DA0;
  --coin-gold: #D4AF37;
  --marble-white: #F7F5F2;
  --text-dark: #1A1A1A;
  --text-muted: #5A5A5A;
  --terracotta: #8B4513;
  --blue-light: rgba(20, 109, 160, 0.08);
  --gold-light: rgba(212, 175, 55, 0.12);
  --shadow-soft: rgba(26, 26, 26, 0.08);
  --border-light: rgba(26, 26, 26, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--marble-white);
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header */
header {
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--greek-blue) 0%, var(--terracotta) 50%, transparent 100%);
}

header h1 {
  font-family: 'Crimson Text', serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--greek-blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

header h1 a {
  color: var(--greek-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

header h1 a:visited {
  color: var(--greek-blue);
}

header h1 a:hover {
  color: var(--coin-gold);
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 0 1rem;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

.tagline {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Philosophy cards */
.philosophy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px var(--shadow-soft);
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--greek-blue), var(--terracotta));
  border-radius: 8px 8px 0 0;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 109, 160, 0.15);
  border-color: var(--greek-blue);
}

.philosophy-card h3 {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--greek-blue);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Apps section (for future use) */
.apps {
  margin: 5rem 0;
}

.apps h2 {
  font-family: 'Crimson Text', serif;
  font-size: 2.2rem;
  color: var(--greek-blue);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.08em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.app-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--greek-blue), var(--terracotta));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.app-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.9);
}

.app-card h3 {
  font-family: 'Crimson Text', serif;
  font-size: 1.5rem;
  color: var(--greek-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.app-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.app-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--greek-blue);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.app-link:hover {
  background: var(--coin-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0 1.5rem;
  text-align: center;
  margin-top: auto;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--greek-blue) 25%, var(--terracotta) 75%, transparent 100%);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--greek-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--coin-gold);
}

.footer-links a:visited {
  color: var(--greek-blue);
}

.footer-links a:visited:hover {
  color: var(--coin-gold);
}

footer p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.contact a {
  color: var(--greek-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: var(--coin-gold);
}

.contact a:visited {
  color: var(--greek-blue);
}

.contact a:visited:hover {
  color: var(--coin-gold);
}

/* Global link styling */
a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

/* Legal pages and support styling */
.legal {
  max-width: 700px;
  margin: 0 auto;
}

.legal h2 {
  font-family: 'Crimson Text', serif;
  font-size: 2.2rem;
  color: var(--greek-blue);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.legal section {
  margin-bottom: 2rem;
}

.legal h3 {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  color: var(--greek-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal a {
  color: var(--greek-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: var(--coin-gold);
}

.legal a:visited {
  color: var(--greek-blue);
}

.legal a:visited:hover {
  color: var(--coin-gold);
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem !important;
  font-style: italic;
}

/* Support page specific */
main h2 {
  font-family: 'Crimson Text', serif;
  font-size: 2.2rem;
  color: var(--greek-blue);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.support-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.general-support {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.general-support h3 {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
  color: var(--greek-blue);
  margin-bottom: 1rem;
}

.general-support a {
  color: var(--greek-blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.general-support a:hover {
  border-bottom-color: var(--coin-gold);
  color: var(--coin-gold);
}

/* Support card grid (for future use) */
.app-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.support-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: var(--greek-blue);
  box-shadow: 0 4px 16px var(--shadow-soft);
}

.support-card h3 {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  color: var(--greek-blue);
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  header {
    padding: 3rem 0 2rem;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    margin-bottom: 3rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .philosophy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .philosophy-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  footer {
    padding: 2rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2.2rem;
    letter-spacing: 0.08em;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .philosophy-card {
    padding: 1.8rem 1.2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
