/* ============ VARIABLES ============ */
:root {
  --primary: #8B6914;
  --primary-light: #C4A249;
  --primary-dark: #6B4F10;
  --warm-bg: #FDF8F0;
  --warm-card: #FFFFFF;
  --warm-border: #E8DCC8;
  --text-dark: #3A2E1E;
  --text-medium: #6B5B45;
  --text-light: #9B8B6F;
  --accent-green: #5A7A3A;
  --accent-red: #A0422A;
  --accent-orange: #C8842A;
  --accent-blue: #4A6FA5;
  --shadow: 0 2px 12px rgba(58, 46, 30, 0.08);
  --shadow-lg: 0 8px 32px rgba(58, 46, 30, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--warm-bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ============ HEADER ============ */
.hero {
  color: white;
  text-align: center;
  padding: 3rem 1rem 4rem;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(58, 46, 30, 0.85) 0%, rgba(107, 79, 16, 0.75) 50%, rgba(139, 105, 20, 0.7) 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-image {
  display: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.hero .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero .address {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: var(--primary-dark);
}

/* ============ NAV ============ */
.nav {
  background: white;
  border-bottom: 1px solid var(--warm-border);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-medium);
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============ SECTIONS ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

section { padding: 3rem 0; }

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ============ INFO CARDS ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.info-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.info-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ CALENDAR ============ */
#calendar-section { background: white; border-top: 1px solid var(--warm-border); border-bottom: 1px solid var(--warm-border); }

.calendar-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calendar-nav button {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav button:hover { background: var(--primary-dark); }

.calendar-nav h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid .day-header {
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.5rem;
}

.calendar-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: default;
  position: relative;
  transition: all 0.15s;
  font-weight: 500;
}

.calendar-grid .day.empty { background: transparent; }

.calendar-grid .day.free {
  background: #F0F7EC;
  color: var(--accent-green);
  cursor: pointer;
}

.calendar-grid .day.free:hover {
  background: #D4ECCC;
  transform: scale(1.05);
}

.calendar-grid .day.free.selected {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(139, 105, 20, 0.3);
}

.calendar-grid .day.booked {
  background: #FAE8E4;
  color: var(--accent-red);
}

.calendar-grid .day.requested {
  background: #FFF3E0;
  color: var(--accent-orange);
}

.calendar-grid .day.blocked {
  background: #E8E8E8;
  color: #999;
}

.calendar-grid .day.past {
  background: #F5F5F5;
  color: #CCC;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-medium);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-dot.free { background: #D4ECCC; }
.legend-dot.booked { background: #FAE8E4; }
.legend-dot.requested { background: #FFF3E0; }
.legend-dot.blocked { background: #E8E8E8; }

/* ============ BOOKING FORM ============ */
.booking-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--warm-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.selected-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 32px;
}

.selected-date-tag {
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.selected-date-tag .remove {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.selected-date-tag .remove:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-success { background: var(--accent-green); color: white; }
.btn-success:hover { background: #4A6A2A; }

.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: #8A3220; }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ ALERTS ============ */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: none;
}

.alert.show { display: block; }

.alert-success { background: #F0F7EC; color: var(--accent-green); border: 1px solid #C8E6B8; }
.alert-error { background: #FAE8E4; color: var(--accent-red); border: 1px solid #F0C8BC; }

/* ============ EXTRAS ============ */
.extras-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.extras-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--warm-bg);
  border: 1.5px solid var(--warm-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.extras-item:hover {
  border-color: var(--primary-light);
  background: #FBF6ED;
}

.extras-item input[type="checkbox"] {
  display: none;
}

.extras-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--warm-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.extras-item input[type="checkbox"]:checked + .extras-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.extras-item input[type="checkbox"]:checked + .extras-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
}

.extras-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.extras-label strong {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.extras-price {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.extras-item-count {
  flex-wrap: wrap;
}

.extras-count-input {
  width: 80px !important;
  padding: 0.4rem 0.6rem !important;
  text-align: center;
  margin-left: auto;
}

.extras-count-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ PRICE SUMMARY ============ */
.price-summary {
  background: linear-gradient(135deg, #FBF6ED 0%, #F5EFE3 100%);
  border: 1.5px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.price-summary h4 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.price-row.price-total {
  border-top: 1.5px solid var(--warm-border);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.price-row.price-total span:last-child {
  color: var(--primary);
}

/* ============ CONTACT ============ */
.hero-small {
  padding: 2rem 1rem 2.5rem;
}

.hero-small h1 {
  font-size: 2rem;
}

.hero-small .hero-icon {
  font-size: 3rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.math-challenge {
  background: var(--warm-bg);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-border);
}

.math-challenge label {
  margin-bottom: 0.5rem;
}

.math-challenge #math-question {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    order: 2;
  }
}

/* ============ LOCATION ============ */
#location {
  background: white;
  border-top: 1px solid var(--warm-border);
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  background: var(--warm-bg);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.location-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.location-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer a { color: rgba(255,255,255,0.9); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1.2rem; }
  .hero { padding: 2rem 1rem 3rem; }
  .hero-icon { font-size: 3rem; }
  .info-grid { grid-template-columns: 1fr; }
  .calendar-grid .day { font-size: 0.8rem; }
  .calendar-legend { gap: 0.8rem; }
  .nav-inner { gap: 1rem; }
  .nav a { font-size: 0.9rem; }
  .form-card { padding: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .location-wrapper { grid-template-columns: 1fr; }
  .map-container iframe { height: 300px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .calendar-grid { gap: 2px; }
  .calendar-grid .day { font-size: 0.75rem; border-radius: 4px; }
  .calendar-nav h3 { font-size: 1.1rem; }
}
