/**
 * Loumeno Main Stylesheet
 * Simplified version combining all essential styles
 * Created: 2025-08-04
 */

/* ==========================================================================
   0. Font Definitions
   ========================================================================== */

/* Nohemi font removed - using Arial instead */

/* Ivy Presto for decorative quotes */
@font-face {
  font-family: "ivypresto";
  src: url("/fonts/ivy-presto-headline-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. CSS Variables & Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #38432a;
  --color-secondary: #cdd1be;
  --color-accent: #a36a79;
  --color-success: #13ae6f;
  --color-background: #FEF5ED;
  --color-text: #333333;
  --color-text-light: #f7f5e5;
  --color-text-muted: #999;
  --color-border: #ececec;

  /* Typography */
  --font-primary: Arial, sans-serif;
  --font-heading: Arial, sans-serif;

  /* Spacing */
  --radius: 0;
  --radius-modal: 20px;
}



/* ==========================================================================
   3. Bootstrap Overrides
   ========================================================================== */

/* Buttons */
.btn {
  font-weight: 400;
  padding: 6px 12px;
  transition: 0.2s ease;
}

/* Cards */

.article-card {
  padding: 30px;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  background-color: rgba(254, 245, 237, 1);
}

.navigation .navbar {
  padding: 25px 0;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* Hero Sections */
.section.hero {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  color: white !important;
  text-align: center !important;
  position: relative !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(53, 68, 41, 0.7), rgba(53, 68, 41, 0.2));
  pointer-events: none;
}

.hero-overlay-event {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(53, 68, 41, 0.7);
}

/* Hero Content Responsive Styles */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 64px;
  color: white;
}

.hero-content h3 {
  font-size: 24px;
  line-height: 36px;
  color: white;
}

.hero-content p {
  font-size: 16.8px;
  line-height: 25.2px;
  color: white;
}

/* Hide line breaks on mobile for responsive text flow */
@media (max-width: 768px) {
  .section.hero {
    height: 60vh !important;
    min-height: 400px !important;
  }

  .hero-content br {
    display: none;
  }

  .hero-content h1 {
    font-size: 40px !important;
    line-height: 48px !important;
  }

  .hero-content h3 {
    font-size: 24px !important;
    line-height: 36px !important;
  }

  .hero-content p {
    font-size: 16px !important;
    line-height: 24px !important;
    padding: 0 1rem;
  }
}

/* Article Page Top Section */
.pagetop {
  background: no-repeat center center/cover;
  height: 40vh;
  min-height: 370px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.pagetop-event {
  background-color: #282c18 !important;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.pagetop .container {
  position: relative;
  z-index: 2;
}

.pagetop h1 {
  color: white !important;
}

.pagetop h2 {
  color: white !important;
  font-size: 36px;
  font-weight: 400;
  text-align: left;
  z-index: 2;
  position: relative;
  margin: 0;
  padding: 0;
}

.pagetop h3 {
  color: white !important;
}
/* Company Logo */
.company_logo {
  max-height: 40px;
  max-width: 150px;
}

/* Pagination */
.pagination .page-link {
  border-radius: 0;
  margin: 0 4px;
  color: #333333;
}

.pagination .page-item.active .page-link {
  background: #38432a;
  border-color: #38432a;
}

/* ==========================================================================
   5. Assessment Modal
   ========================================================================== */

.assessment {
  --assessment-color-primary: var(--color-primary);
  --assessment-color-secondary: var(--color-secondary);
  --assessment-color-background: #e8e6db;
  --assessment-border-radius: var(--radius-modal);
  --assessment-button-height: 150px;
}

.assessment__demographics-container {
  padding-top: 2rem;
}

.assessment__demographics-title {
  margin-top: 1rem;
}

.assessment__answer-btn {
  background-color: var(--assessment-color-secondary);
  border-radius: var(--assessment-border-radius);
  font-weight: bold;
  padding: 100px 20px 20px;
  height: var(--assessment-button-height);
  border: none;
  color: var(--color-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.assessment__answer-btn:hover {
  background-color: var(--assessment-color-primary);
  color: var(--color-text-light);
}

/* ==========================================================================
   6. Animations
   ========================================================================== */

.parent {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.parent.show {
  opacity: 1;
  transform: translateY(0);
}

.parent > br {
  margin-top: 1.5rem;
}

.child {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.child[data-direction="left"] { transform: translateX(-200px); }
.child[data-direction="right"] { transform: translateX(200px); }
.child[data-direction="up"] { transform: translateY(240px); }
.child[data-direction="down"] { transform: translateY(-40px); }

.child.visible {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================================================
   7. Utilities
   ========================================================================== */

.text-primary { color: var(--color-accent) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-dark { background-color: #131313 !important; }


/* Event content paragraph fix */
.event-content p {
  font-size: 16.8px;
  line-height: 25.2px;
}

/* ==========================================================================
   8. Layout Template Styles (from site.group/styles.css)
   ========================================================================== */

/* Color Sections */
.color1 { background-color: #ced1be; color: #38432A; }
.color2 { background-color: #f7f6f2; color: #38432A; }
.color3 { background-color: #1d2916; color: #f7f6f2; }
.color4 { background-color: #38432b; color: #f7f6f2; }
.color6 { background-color: #e8e6db; color: #1d2916; }

/* Section Heights */
.section { min-height: 50vh; }
.height-full { min-height: 100vh; display: flex; align-items: center; }

/* Buttons */
.button-white {
  background-color: transparent;
  border: 1px solid #fff;
  padding: 0 30px;
  line-height: 50px;
  color: #fff;
  transition: all 0.3s ease;
}

.button-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Photo Cards */
.photoplaceholder {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #939379;
}

.photo-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}

.photoplaceholder:hover .photo-background {
  transform: scale(1.1);
}

/* Title Overlays */
.title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  transition: all 0.3s ease;
}

/* Aspect Ratio Helpers */
.size-1-1 { aspect-ratio: 1 / 1; }
.size-4-3 { aspect-ratio: 4 / 3; }
.size-16-9 { aspect-ratio: 16 / 9; }

/* Steps */
.circle {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.circle.active {
  background-color: #1d2916;
}

/* Footer */
.footer {
  background-color: #282c18;
  color: white;
  min-height: 30vh;
}

/* Close Button */
.btn-close {
  border: 0;
  width: 25px;
  height: 25px;
  background: url(/images/close_icon.png) no-repeat center;
  background-size: cover;
}

.modal-header .btn-close-modal {
  opacity: 1;
  padding: 0;
  border-radius: initial;
  margin-right: 0;
}

/* Sign In Card (from styles____.css) */
.sign-in-card {
  background-color: #fff;
  padding: 20px;
}

/* App layout styles moved from templates */
.app-layout .main-content {
    min-height: 80vh;
}

/* Footer styles moved from site.group/footer.html */
.footer .list-unstyled li a {
  color:#fff;
  opacity:0.7;
}
.footer .list-unstyled li a:hover {
  opacity:1;
}

/* Event box styles moved from app/mypage.html */
.event-box {
  border:2px solid #38432A;
  background-color:#CDD1BE;
  padding:10px 10px;
  line-height: 18px;
}

/* Register form styles moved from app/register.html */
.poweredby {
  width:100%;
  text-align:center;
  font-size:12px;
  color:#999;
  line-height:40px;
}
.error {
  color:red !important;
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
}
.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Tracker overlay styles moved from tracker_card_small.html */
.tracker-overlay {
  background-color: rgba(0,0,0,0.2);
  position: absolute;
  line-height: 40px;
  width: 100%;
  bottom: 0px;
  color: #fff;
  font-size: 16px;
  padding-left: 10px;
  padding-bottom: 10px;
}

/* Event styles moved from app/mypage.html */
.event-date-box {
  min-width: 55px !important;
  margin-right: 10px;
}
.event-month {
  background-color: #202c19;
  color: #dfe1da;
}
.event-day {
  border: 1px solid #202c19 !important;
  font-weight: 800;
}
.event-icon {
  color: #202c19;
  padding: 0px 10px;
}
.fs-8 { 
  font-size: 0.8em !important; 
}