/*
Theme Name: Disneyland Grad Nite
Theme URI: https://example.com
Author: Your School District
Author URI: https://example.com
Description: An informational WordPress theme for school Grad Nite trips to Disneyland Resort. Includes ready-made pages for Disneyland Information, Bus Signup, FAQ, School Security Screening, and Questions/Contact Us.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gradnite
*/

/* ==========================================================================
   1. Variables & Base
   ========================================================================== */
:root {
  --navy: #0b1f3a;
  --navy-light: #13305a;
  --gold: #ffcd3c;
  --gold-dark: #e0a800;
  --red: #c8102e;
  --cream: #fff8ea;
  --gray-100: #f5f6f8;
  --gray-300: #d9dee5;
  --gray-600: #5a6472;
  --gray-900: #1c2430;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(11, 31, 58, 0.12);
  --max-width: 1100px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

ul.plain { list-style: none; margin: 0; padding: 0; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--gold-dark);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   2. Site Header
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding .custom-logo { max-height: 48px; width: auto; }

.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  letter-spacing: .5px;
}
.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; }

.site-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Primary nav */
.main-navigation { }
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255, 205, 60, 0.18);
  color: var(--gold);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; }
}

/* ==========================================================================
   3. Hero / Page Header
   ========================================================================== */
.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(255,205,60,0.15), transparent 55%),
              linear-gradient(135deg, var(--navy) 0%, #1a3a66 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero .stars {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 10px;
  margin-bottom: 10px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 10px;
}
.page-hero p.subtitle {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  color: #fff;
}

/* ==========================================================================
   4. Content Layout
   ========================================================================== */
.content-wrap {
  padding: 48px 24px 72px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin-bottom: 28px;
  border: 1px solid var(--gray-300);
}

.card h2 {
  border-bottom: 3px solid var(--gold);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.card h3 { margin-top: 22px; color: var(--navy-light); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.info-item {
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 18px 20px;
}
.info-item h3 { margin-top: 0; color: var(--navy); font-size: 1.05rem; }
.info-item p { margin-bottom: 0; color: var(--gray-600); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

table.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
table.info-table th, table.info-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-300);
}
table.info-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
}
table.info-table tr:nth-child(even) { background: var(--gray-100); }

.alert {
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  border-left: 5px solid;
}
.alert-info { background: #eaf2fb; border-color: #3d7bd9; }
.alert-warning { background: #fff6e0; border-color: var(--gold-dark); }
.alert-danger { background: #fdeaec; border-color: var(--red); }
.alert strong { display: block; margin-bottom: 4px; }

/* Timeline (bus schedule etc.) */
.timeline { border-left: 3px solid var(--gold); margin-left: 10px; padding-left: 24px; }
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
}
.timeline-item .time { font-weight: 700; color: var(--navy); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question:hover { background: #fdeecb; }
.faq-question .icon { transition: transform .2s ease; font-size: 1.2rem; color: var(--gold-dark); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: #fff;
}
.faq-answer-inner { padding: 4px 20px 18px; color: var(--gray-600); }
.faq-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-size: 1rem;
  margin-bottom: 22px;
}

/* Security screening steps */
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 20px 48px;
  border-left: 2px dashed var(--gray-300);
  margin-left: 17px;
}
.step-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list h4 { margin: 0 0 4px; color: var(--navy); }
.step-list p { margin: 0; color: var(--gray-600); }

.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.prohibited-item {
  background: #fdeaec;
  border: 1px solid #f3c1c9;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .92rem;
}
.prohibited-item strong { color: var(--red); display: block; margin-bottom: 4px; }

.allowed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.allowed-item {
  background: #eafaf0;
  border: 1px solid #bfe9cf;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .92rem;
}
.allowed-item strong { color: #1a7f4b; display: block; margin-bottom: 4px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 18px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .required { color: var(--red); }
.form-note { font-size: .85rem; color: var(--gray-600); margin-top: -10px; margin-bottom: 18px; }

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
}
.contact-info-card h3 { color: var(--gold); margin-bottom: 4px; }
.contact-info-card .contact-line { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .contact-line .label { color: var(--gray-300); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; display:block; }
.contact-info-card .contact-line a { color: #fff; font-weight: 600; }
.contact-info-card hr { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 20px 0; }

.form-success {
  background: #eafaf0;
  border: 1px solid #bfe9cf;
  color: #1a7f4b;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Quick links / page nav cards on front page */
.page-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.page-nav-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  border-top: 5px solid var(--gold);
  transition: transform .15s ease;
}
.page-nav-card:hover { transform: translateY(-4px); }
.page-nav-card .emoji { font-size: 2rem; margin-bottom: 10px; }
.page-nav-card h3 { margin-bottom: 8px; }
.page-nav-card p { color: var(--gray-600); font-size: .92rem; margin-bottom: 14px; }
.page-nav-card a.btn { padding: 8px 18px; font-size: .9rem; }

/* Breadcrumb-ish page title bar for default page.php */
.entry-content { }
.entry-content > .card:first-child { margin-top: 0; }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 40px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: var(--gold); font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--gray-300); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  text-align: center;
  font-size: .82rem;
  color: var(--gray-300);
}
.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 12px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,0.55);
}
