:root {
  --bg-100: #cf7171;
  --bg-200: #bdbfc2;
  --bg-300: #75bb75;
  --card: #ffffff;
  --accent: #75bb75;
  --muted: #628162;
  --accent2: #cf7171;
  --muted2: #b36262;
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 10px;
  --gap: 12px;
}

* { box-sizing: border-box; }

html, body {
  height: 130%;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-200), var(--bg-300));
  color: #628162;
  -webkit-font-smoothing: antialiased;
}

.dois {
  background: linear-gradient(180deg, var(--bg-200), var(--bg-100));
  color: #cf7171;
}

img { max-width: 100%; display: block; }

section {
    padding: 40px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow:
        0 0 10px rgba(58, 168, 55, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
    cursor: default;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.viewgift {
  justify-content: center;
  align-items: center;
  position: sticky;
}

.contact {
  box-shadow:
        0 0 10px rgba(168, 55, 55, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
}

.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #75bb75;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid;
}

.brand2 {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #f3b8b8;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid;
}

.main-nav { display: flex; gap: 8px; }

.nav-btn {
  background: transparent;
  border: 2px solid;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.nav-btn.active {
  background: var(--accent);
  color: #071020;
  font-weight: 700;
}

.nav-btn2 {
  background: transparent;
  border: 2px solid;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted2);
  text-decoration: none;
}

.nav-btn2.active {
  background: var(--accent2);
  color: #071020;
  font-weight: 700;
}

/* Calendar hero */
.calendar-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 12px;
  position: relative;
}

.calendar-image {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  object-fit: contain;
  display: block;
  pointer-events: none;
  cursor: default;
}

.daily-hero {
  display: flex;
  justify-content: right;
  align-items: right;
  margin: 18px 12px;
  position: relative;
}

/* Controls */
.daily-gift {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color:#ffffff;
  font-size: 40px;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  border-radius: 10px;
}

.controls input[type=number] {
  width: 80px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  color: inherit;
}

.btn {
  background: var(--accent);
  color: #071020;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--muted);
}

form {
    display: flex;
    flex-direction: column;
}

.forml {
  color: #cf7171;
}

label {
    margin: 10px 0 5px;
    color: black;
    font-weight: 500;
}

input, textarea {
    padding: 12px;
    border: 2px solid #965f5f;
    border-radius: 6px;
    background: #ffffff;
    color: black;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

button {
    padding: 15px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(45deg, #ce7070, #e68b8b);
    color: #fcfcfc;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}


/* Modal */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(255, 255, 255), rgb(204, 95, 95));
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-img {
  max-width: calc(100% - 60px);
  max-height: calc(100% - 120px);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--muted);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.modal-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.daily-gift button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.daily-gift button:hover {
  transform: scale(1.08);
}

.daily-gift img {
  width: 300px;
  height: auto;
}

.daily-gift span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}


#snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500; /* abaixo do modal (999) */
  overflow: hidden;
}

/* base de cada floco */
.snowflake {
  position: absolute;
  top: -10%;
  color: #fff;
  font-size: var(--flake-size);
  opacity: 0.9;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
  will-change: transform, opacity;
  user-select: none;
}

/* animações */
@keyframes snowFall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.9; }
}

@keyframes snowDrift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(14px); }
  100% { transform: translateX(0); }
}

.snowflake.s-low   { animation: snowFall var(--fall-dur) linear var(--fall-delay) forwards; }
.snowflake.s-drift { animation: snowFall var(--fall-dur) linear var(--fall-delay) forwards, snowDrift var(--drift-dur) ease-in-out var(--drift-delay) infinite; }
.snowflake.s-fade  { opacity: 0.8; transition: opacity 2s; }

@media (min-width: 769px) {
    section.contact-section,
    section:last-of-type {
        max-width: 800px;
        width: 800px;
        margin: 40px auto;
        padding: 40px 30px;
        box-sizing: border-box;
    }

    section.contact-section input,
    section.contact-section textarea,
    section.contact-section button {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsividade */
@media (max-width: 600px) {
  .calendar-image { max-width: 92%; }
  .brand { font-size: 18px; padding: 5px 8px; }
  .controls { flex-wrap: wrap; gap: 6px; padding: 0 8px; }
  .today-message { font-size: 1rem; padding: 6px 10px; }

  .site-header {
    flex-direction: column;
    gap: 8px;
  }

  .daily-gift {
    height: 120px;
  }
  .daily-gift img {
  width: auto;
  height: 80px;
  }
  html, body {
    height: 100%;
  }

  section {
        max-width: 100vw !important;
        width: 80% !important;
        margin: 0 auto 40px auto;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
}