/* Custom Styles for Eudaimonia Corporate Theme */

:root {
  --navy: #23184f;
  --accent: #f3b624;
  --base: #fafafa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif JP', serif;
  background-color: var(--base);
  color: var(--navy);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

/* Container Fix */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 182, 36, 0.3);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* WordPress Admin Bar Fix */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* Prose Styles for Content */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  font-weight: 700;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.25em;
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Video Background Fix */
video {
  object-fit: cover;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Link Hover Effects */
a {
  transition: color 0.2s ease;
}

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


/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .text-5xl {
    font-size: 2.5rem !important;
  }
  
  .text-4xl {
    font-size: 2rem !important;
  }
  
  .text-3xl {
    font-size: 1.75rem !important;
  }
  
  .text-2xl {
    font-size: 1.5rem !important;
  }
  
  .text-xl {
    font-size: 1.25rem !important;
  }
}

/* Responsive Padding */
@media (max-width: 768px) {
  .py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Responsive Grid */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 50;
  }
  
  #mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Responsive Card Spacing */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
  
  .space-y-6 > * + * {
    margin-top: 1rem !important;
  }
  
  .gap-8 {
    gap: 1rem !important;
  }
}

/* Full Width Sections on Mobile */
@media (max-width: 768px) {
  section {
    overflow-x: hidden;
  }
}


/* Footer Styles */
footer {
  background-color: var(--navy) !important;
  color: white !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

footer .grid {
  display: grid;
  gap: 2rem;
}

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

/* Footer Logo - No filter needed as logo already has navy background */
