/* ========================================
   KazaAlkis - Professional Styling
   ======================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background:
    linear-gradient(rgba(249, 249, 249, 0.94), rgba(249, 249, 249, 0.94)),
    var(--page-bg, none);
  background-attachment: fixed;
  background-color: #f9f9f9;
  background-position: center;
  background-size: cover;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  font-size: 2.5em;
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.1em;
  opacity: 0.9;
  font-weight: 300;
}

/* Navigation Bar */
.navbar {
  background-color: #34495e;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-menu li {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.nav-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  background-color: #2c3e50;
}

/* Main Content */
.main-content {
  padding: 40px 20px;
  min-height: 60vh;
}

.site-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(rgba(23, 77, 59, 0.9), rgba(44, 62, 80, 0.88)),
    var(--hero-bg, none),
    linear-gradient(135deg, #174d3b 0%, #2c3e50 100%);
  background-position: center;
  background-size: cover;
}

.hero-panel {
  background: #fffdf8;
  border: 1px solid #e5ddce;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 32px rgba(39, 55, 47, 0.08);
}

.hero-panel h2 {
  color: #174d3b;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 12px;
}

.eyebrow,
.card-kicker {
  color: #8a6333;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-block;
  background: #edf5ef;
  border: 1px solid #c9ddcf;
  border-radius: 999px;
  color: #315b43;
  font-size: 0.9rem;
  margin-top: 14px;
  padding: 7px 12px;
}

.vase-banner {
  background: #1f2925;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(39, 55, 47, 0.16);
  color: white;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  margin-top: 24px;
  min-height: 420px;
  overflow: hidden;
}

.vase-media {
  background: #111;
  min-height: 420px;
  position: relative;
}

.vase-media::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(31, 41, 37, 0.35));
  content: "";
  inset: 0;
  position: absolute;
}

.vase-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.vase-copy {
  align-self: center;
  padding: 34px;
}

.vase-copy h2 {
  color: #fff7e6;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.vase-copy h3 {
  color: #f0cf91;
  margin: 18px 0 10px;
}

.vase-copy p {
  color: #f4efe5;
  margin-bottom: 13px;
}

.vase-copy .eyebrow,
.vase-copy .muted {
  color: #f0cf91;
}

.vase-copy a {
  background: #f0cf91;
  border-radius: 999px;
  color: #1f2925;
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
  padding: 10px 15px;
}

.vase-copy a:hover {
  background: #fff7e6;
  color: #1f2925;
  text-decoration: none;
}

.vase-fallback .vase-media {
  display: none;
}

.vase-fallback {
  grid-template-columns: 1fr;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.dashboard-grid .card {
  margin: 0;
}

.wide-card {
  grid-column: 1 / -1;
}

.feature-card {
  min-height: 230px;
}

.dashboard-grid .card {
  border: 1px solid #e5ddce;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
}

.dashboard-grid .card h2 {
  border-bottom-color: #d6c4a4;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.name-pill {
  background: rgba(255, 250, 239, 0.9);
  border: 1px solid rgba(214, 196, 164, 0.9);
  border-radius: 999px;
  color: #4d351b;
  display: inline-block;
  font-weight: 700;
  padding: 8px 12px;
}

.sky-summary {
  align-items: flex-start;
  display: grid;
  gap: 8px;
}

.moon-symbol {
  font-size: 3rem;
  line-height: 1;
}

.sky-line {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 4px;
}

.muted {
  color: #69756f;
}

.stacked-text p,
.tradition-item p {
  margin-bottom: 12px;
}

.tradition-item {
  border-left: 4px solid #d6c4a4;
  padding-left: 14px;
}

.recipe-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(241, 234, 220, 0.92));
  border-left: 5px solid #8a6333;
}

.recipe-content h3 {
  color: #174d3b;
  margin-bottom: 10px;
}

.recipe-content a {
  background: #174d3b;
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
  padding: 9px 14px;
}

.recipe-content a:hover {
  background: #12634a;
  color: white;
  text-decoration: none;
}

.field-content {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  margin-top: auto;
  padding: 16px;
  backdrop-filter: blur(3px);
}

.traditions-card .field-content,
.moon-card .field-content {
  margin-top: 12px;
}

.message-card,
.opt-in-card {
  max-width: 1000px;
}

/* Cards */
.card {
  background: white;
  margin: 25px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8em;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.card h3 {
  color: #34495e;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.card p {
  margin-bottom: 15px;
  color: #555;
}

.card ul {
  margin: 15px 0;
  padding-left: 25px;
}

.card li {
  margin-bottom: 10px;
  color: #555;
}

/* Image-backed homepage fields. Keep this after the generic .card background rule. */
.card.image-card {
  aspect-ratio: 3 / 2;
  background-color: #fffdf8;
  background-position: center;
  background-size: cover;
  min-height: 360px;
  position: relative;
}

.card.image-card.wide-card {
  aspect-ratio: 3 / 1.25;
  min-height: 420px;
}

.card.image-card::before {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(255, 253, 248, 0.1) 42%, rgba(255, 253, 248, 0.7) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.card.image-card > * {
  position: relative;
  z-index: 1;
}

.card.nameday-card {
  background-image: url("assets/backgrounds/names%20day.png");
  background-position: center 38%;
}

.card.moon-card {
  background-image: url("assets/backgrounds/moonphase.png");
  background-position: center 42%;
}

.card.traditions-card {
  background-image: url("assets/backgrounds/ancient%20greek%20traditions.png");
  background-position: center 38%;
}

/* Highlighted Card */
.highlight {
  background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
  border-left: 5px solid #3498db;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.service-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ecf0f1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.95em;
  color: #666;
}

/* Important Notice Boxes */
.important-notice {
  background-color: #e8f4f8;
  border-left: 5px solid #3498db;
  padding: 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.notice-title {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.important-notice p {
  margin-bottom: 0;
  color: #333;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.checklist li {
  padding: 10px 0;
  padding-left: 25px;
  color: #555;
  position: relative;
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* Contact Box */
.contact-box {
  background: #f0f8ff;
  border: 2px solid #3498db;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  text-align: center;
}

.contact-box p {
  font-size: 1.1em;
  margin-bottom: 0;
}

.contact-box a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Policy Links */
.policy-links {
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #ecf0f1;
  border-bottom: 1px solid #ecf0f1;
}

.policy-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Policy Page Styling */
.policy-page {
  background: white;
  margin: 20px auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.policy-page h1 {
  color: #2c3e50;
  font-size: 2em;
  margin-bottom: 10px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

.last-updated {
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 30px;
}

.policy-section {
  margin-bottom: 40px;
  line-height: 1.8;
}

.policy-section h2 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 10px;
}

.policy-section h3 {
  color: #34495e;
  font-size: 1.15em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.policy-section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.policy-section li {
  margin-bottom: 12px;
  color: #555;
}

.policy-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #ecf0f1;
}

.policy-footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
}

.policy-footer a:hover {
  text-decoration: underline;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 3px solid #3498db;
}

.footer p {
  margin-bottom: 10px;
  font-size: 0.95em;
}

.footer a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer a:hover {
  color: #3498db;
  text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  /* Header */
  .logo h1 {
    font-size: 1.8em;
  }

  .tagline {
    font-size: 1em;
  }

  /* Navigation */
  .nav-menu {
    gap: 0;
  }

  .nav-menu li {
    min-width: 100px;
  }

  .nav-menu a {
    padding: 12px;
    font-size: 0.9em;
  }

  /* Card */
  .card {
    padding: 20px;
    margin: 20px 0;
  }

  .card h2 {
    font-size: 1.4em;
  }

  /* Service Grid */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 24px;
  }

  .vase-banner {
    grid-template-columns: 1fr;
  }

  .vase-media {
    min-height: 300px;
  }

  .vase-copy {
    padding: 24px;
  }

  /* Policy Page */
  .policy-page {
    padding: 20px;
  }

  .policy-page h1 {
    font-size: 1.6em;
  }

  .policy-section h2 {
    font-size: 1.3em;
  }

  /* Main Content */
  .main-content {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  /* Header */
  .logo h1 {
    font-size: 1.5em;
    letter-spacing: 0;
  }

  .tagline {
    font-size: 0.9em;
  }

  /* Navigation */
  .nav-menu {
    flex-direction: row;
  }

  .nav-menu li {
    min-width: auto;
    flex: 1;
  }

  .nav-menu a {
    padding: 10px 5px;
    font-size: 0.85em;
  }

  /* Container */
  .container {
    padding: 0 10px;
  }

  /* Card */
  .card {
    padding: 15px;
    margin: 15px 0;
  }

  .card h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  .card h3 {
    font-size: 1em;
  }

  /* Important Notice */
  .important-notice {
    padding: 15px;
  }

  /* Contact Box */
  .contact-box {
    padding: 15px;
  }

  .contact-box p {
    font-size: 1em;
  }

  /* Policy Page */
  .policy-page {
    padding: 15px;
  }

  .policy-page h1 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .policy-section h2 {
    font-size: 1.15em;
    margin-top: 20px;
  }

  /* List */
  .card ul,
  .policy-section ul {
    padding-left: 20px;
  }

  .card li,
  .policy-section li {
    font-size: 0.95em;
  }

  /* Footer */
  .footer {
    padding: 20px 10px;
  }

  .footer p {
    font-size: 0.9em;
    margin-bottom: 8px;
  }
}

/* ========================================
   Accessibility
   ======================================== */

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .card {
    border: 2px solid #2c3e50;
  }

  .important-notice {
    border: 2px solid #2c3e50;
  }

  .contact-box {
    border: 3px solid #2c3e50;
  }
}
