/* === Orlando 2026 — Trip Website === */

/* --- Custom Properties --- */
:root {
  --navy: #1a2744;
  --navy-light: #2a3d5e;
  --coral: #ff6b6b;
  --coral-dark: #e05555;
  --orange: #f39c12;
  --cream: #faf8f5;
  --sand: #f0ebe3;
  --green: #27ae60;
  --blue: #3498db;
  --purple: #8e44ad;
  --red: #e74c3c;
  --text: #2c2c2c;
  --text-light: #666;
  --text-muted: #999;
  --border: #e0dcd5;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --nav-height: 56px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  padding-top: var(--nav-height);
}

img { max-width: 100%; height: auto; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1 { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 0.75rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:nth-child(even) td { background: var(--sand); }

/* --- PIN Gate --- */
.pin-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}

.pin-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pin-card {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 360px;
  width: 100%;
}

.pin-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pin-card h1 {
  margin-bottom: 0.25rem;
}

.pin-card .subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.pin-input {
  display: block;
  width: 160px;
  margin: 0 auto 1rem;
  padding: 12px;
  font-size: 1.5rem;
  font-family: var(--font);
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.pin-input:focus {
  border-color: var(--coral);
}

.pin-input.error {
  border-color: var(--red);
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.pin-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.pin-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.pin-crew {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-brand:hover { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Days dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  padding: 8px 0;
  z-index: 910;
  max-height: 400px;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--sand);
  color: var(--navy);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 8px 20px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 899;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-mobile-menu a:hover { color: white; }

.nav-mobile-menu .mobile-section-title {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 0 4px;
  border: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: white;
  padding: 3rem 20px 2.5rem;
  text-align: center;
  margin: calc(-1 * var(--nav-height)) -20px 0;
  padding-top: calc(var(--nav-height) + 3rem);
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.hero .hero-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero .hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.hero .hero-flights {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.card h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.card .card-emoji {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Celebrations --- */
.celebrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.celebration {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
}

.celebration .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.celebration .event {
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.25rem;
}

/* --- Schedule --- */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  border-left: 4px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.schedule-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.schedule-item.type-park { border-left-color: var(--green); }
.schedule-item.type-rest { border-left-color: var(--blue); }
.schedule-item.type-activity { border-left-color: var(--orange); }
.schedule-item.type-flex { border-left-color: var(--purple); }
.schedule-item.type-travel { border-left-color: var(--text-muted); }

.schedule-item .day-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 50px;
}

.schedule-item .day-emoji {
  font-size: 1.3rem;
  min-width: 30px;
  text-align: center;
}

.schedule-item .day-info {
  flex: 1;
}

.schedule-item .day-title {
  font-weight: 600;
  color: var(--navy);
}

.schedule-item .day-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.schedule-item .day-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* --- Quick Links --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 3rem;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.quick-link .ql-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.quick-link .ql-label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* --- Day Page --- */
.day-header {
  background: var(--navy);
  color: white;
  padding: 2rem 20px 1.5rem;
  margin: calc(-1 * var(--nav-height)) -20px 2rem;
  padding-top: calc(var(--nav-height) + 2rem);
}

.day-header .day-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.day-header h1 {
  color: white;
  margin: 0.25rem 0 0.5rem;
}

.day-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-badge.park { background: var(--green); color: white; }
.day-badge.rest { background: var(--blue); color: white; }
.day-badge.activity { background: var(--orange); color: white; }
.day-badge.flex { background: var(--purple); color: white; }
.day-badge.travel { background: var(--text-muted); color: white; }

.day-content {
  padding-bottom: 2rem;
}

.day-content h2 {
  border-bottom: 2px solid var(--sand);
  padding-bottom: 0.5rem;
}

.day-content ol {
  padding-left: 1.25rem;
}

.day-content ol li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Callout boxes */
.callout {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.callout.tip {
  border-left: 4px solid var(--green);
}

.callout.note {
  border-left: 4px solid var(--blue);
}

.callout.warning {
  border-left: 4px solid var(--orange);
}

.callout.family {
  border-left: 4px solid var(--purple);
  font-style: italic;
}

.callout strong {
  color: var(--navy);
}

/* --- Day Navigation --- */
.day-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--sand);
}

.day-nav a {
  display: block;
  padding: 12px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s;
  max-width: 48%;
}

.day-nav a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.day-nav .prev { text-align: left; }
.day-nav .next { text-align: right; margin-left: auto; }

.day-nav .nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Checklist --- */
.checklist-section {
  margin-bottom: 2rem;
}

.checklist-progress {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.3s;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-item label {
  cursor: pointer;
  flex: 1;
  line-height: 1.5;
}

.checklist-item.checked label {
  text-decoration: line-through;
  opacity: 0.5;
}

/* --- Height Guide Colours --- */
.height-yes { color: var(--green); font-weight: 600; }
.height-no { color: var(--red); font-weight: 600; }
.height-maybe { color: var(--orange); font-weight: 600; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.15s;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--navy-light);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .day-nav { flex-direction: column; }
  .day-nav a { max-width: 100%; }
}
