/* Autonomous stylesheet for Alvioday (alvioday.shop) */
:root {
  --av-bg: #faf7f2;
  --av-surface: #ffffff;
  --av-card: #ffffff;
  --av-alt: #f0fdfa;
  --av-primary: #0f766e;
  --av-primary-hover: #115e59;
  --av-accent: #b45309;
  --av-text: #1f2937;
  --av-muted: #4b5563;
  --av-border: #e5e0d8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.av-body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--av-bg);
  color: var(--av-text);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, .av-logo {
  font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  line-height: 1.25;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.av-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.av-hidden { display: none !important; }

/* Header */
.av-header {
  background: #ffffff;
  border-bottom: 1px solid var(--av-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.av-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.av-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.av-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.av-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.av-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--av-text);
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}
.av-nav-link:hover { color: var(--av-primary); opacity: 1; }

/* Buttons */
.av-btn-primary {
  display: inline-block;
  background: var(--av-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.av-btn-primary:hover { background: var(--av-primary-hover); }
.av-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--av-primary);
  border: 1.5px solid var(--av-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
}
.av-btn-outline:hover { background: var(--av-primary); color: #ffffff; }

/* Subpages & Forms */
.av-subpage-section { padding: 48px 0 64px; }
.av-subpage-box {
  background: var(--av-card);
  border: 1px solid var(--av-border);
  border-radius: 18px;
  padding: 36px;
  max-width: 920px;
}
.av-subpage-h1 { font-size: 30px; margin-bottom: 12px; color: var(--av-text); }
.av-subpage-lead { font-size: 17px; color: var(--av-muted); margin-bottom: 24px; }
.av-subpage-h2 { font-size: 20px; margin: 24px 0 10px; color: var(--av-primary); }
.av-subpage-p { margin-bottom: 12px; color: var(--av-text); }
.av-subpage-list { margin: 10px 0 16px 20px; }
.av-subpage-list li { margin-bottom: 8px; }
.av-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.av-contact-card {
  background: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: 18px;
  padding: 24px;
}
.av-form { display: flex; flex-direction: column; gap: 10px; }
.av-label { font-size: 14px; font-weight: 600; color: var(--av-text); }
.av-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--av-border);
  border-radius: 18px;
  background: var(--av-bg);
  color: var(--av-text);
  font-size: 15px;
}

/* Modal */
.av-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.av-modal-box {
  background: var(--av-card);
  color: var(--av-text);
  border: 1px solid var(--av-border);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.av-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--av-muted);
}
.av-modal-title { font-size: 22px; margin-bottom: 6px; }
.av-modal-selected { font-size: 14px; color: var(--av-primary); font-weight: 600; margin-bottom: 16px; }
.av-success-box {
  padding: 16px;
  border-radius: 18px;
  background: var(--av-alt);
  color: var(--av-text);
  border: 1px solid var(--av-primary);
  font-weight: 600;
  margin-top: 10px;
}
.av-error-box {
  border-color: #dc2626 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}
.av-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.av-btn-full { width: 100%; margin-top: 8px; }
.av-center-box { text-align: center; padding: 32px 12px; }
.av-err-code { font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--av-primary); }

/* Footer */
.av-footer {
  background: #171717;
  color: #e5e5e5;
  padding: 44px 0 28px;
  margin-top: 40px;
}
.av-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.av-footer-logo-link { display: inline-block; margin-bottom: 12px; line-height: 0; }
.av-footer-logo-img { height: 36px; width: auto; display: block; }
.av-footer-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #a3a3a3; margin-bottom: 10px; }
.av-footer-text { font-size: 14px; color: #d4d4d4; margin-bottom: 6px; }
.av-footer-links { display: flex; flex-direction: column; gap: 6px; }
.av-footer-link { font-size: 14px; color: #e5e5e5; }
.av-footer-link:hover { text-decoration: underline; }
.av-disclaimer { font-size: 12.5px; color: #a3a3a3; margin-top: 20px; line-height: 1.55; }
.av-copyright { font-size: 13px; color: #8c8c8c; margin-top: 12px; }

@media (max-width: 820px) {
  .av-footer-grid, .av-contact-grid { grid-template-columns: 1fr; }
  .av-subpage-box { padding: 22px; }
  .av-subpage-h1 { font-size: 24px; }
}

.av-hero { padding: 48px 0; }
.av-hero-frame { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: center; }
.av-hero-frame img { border-radius: 14px; }
.av-h1 { font-size: 34px; margin-bottom: 14px; }
.av-sec { padding: 46px 0; }
.av-sec-tint { padding: 46px 0; background: var(--av-alt); border-top: 1px solid var(--av-border); border-bottom: 1px solid var(--av-border); }
.av-h2 { font-size: 28px; text-align: center; margin-bottom: 10px; }
.av-sub { text-align: center; color: var(--av-muted); max-width: 680px; margin: 0 auto 28px; }
.av-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.av-card { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 16px; padding: 24px; text-align: center; }
.av-circle-img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--av-border); }
.av-order-card { max-width: 640px; margin: 0 auto; background: var(--av-surface); border: 2px solid var(--av-primary); border-radius: 18px; padding: 32px; }
.av-radio-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--av-border); border-radius: 10px; cursor: pointer; font-weight: 600; }
@media (max-width: 820px) {
  .av-hero-frame, .av-grid-3 { grid-template-columns: 1fr; }
  .av-h1 { font-size: 27px; }
}

