/*
Theme Name:  Shooting Stars
Theme URI:   https://shooting-stars.ca
Author:      Shooting Stars Photo Booth Ltd.
Author URI:  https://shooting-stars.ca
Description: Custom theme matching shooting-stars.ca design system.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: shooting-stars
*/

/* ===== DESIGN SYSTEM VARIABLES ===== */
:root {
  --teal: #50C7C7;
  --white: #FFFFFF;
  --dark-bg: rgba(0, 0, 0, 0.9);
  --section-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --callout-bg: #e0f7fa;
  --callout-border: #50C7C7;
  --dark-teal: #00796b;
  --f4f4f4: #f4f4f4;
  --f9f9f9: #f9f9f9;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background-color: var(--section-bg);
  font-size: 16px;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute; top: -40px; left: 10px;
  background: var(--teal); color: white;
  padding: 10px 15px; border-radius: 4px; z-index: 1000;
  transition: top 0.3s ease; clip: rect(1px,1px,1px,1px); overflow: hidden;
}
.skip-link:focus { top: 10px; clip: auto; overflow: visible; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 20px; z-index: 100;
  transition: all 0.3s ease; background-color: transparent;
}
.navbar.scrolled { background-color: var(--dark-bg); padding: 15px 20px; }

.navbar-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
}

.logo img {
  height: 60px; width: auto; max-width: 180px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}
.logo img:hover { transform: scale(1.05); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
  padding: 0; z-index: 101;
}
.hamburger-box { width: 24px; height: 24px; display: inline-block; position: relative; }
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px; height: 2px; background-color: var(--white); border-radius: 4px;
  position: absolute; transition: transform 0.15s ease;
}
.hamburger-inner::before, .hamburger-inner::after { content: ""; display: block; }
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after  { bottom: -8px; }
.hamburger.active .hamburger-inner { transform: rotate(45deg); }
.hamburger.active .hamburger-inner::before { transform: rotate(-90deg) translate(-8px,0); }
.hamburger.active .hamburger-inner::after  { opacity: 0; }

/* ===== NAV MENU ===== */
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0 15px; }
.nav-item a {
  color: var(--white); text-decoration: none; font-size: 1rem;
  padding: 8px 12px; position: relative; transition: color 0.3s ease;
}
.nav-item a::after {
  content: ''; position: absolute; bottom: 0; left: 12px;
  width: calc(100% - 24px); height: 2px; background-color: var(--teal);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-item a:hover::after { transform: scaleX(1); }
.nav-item.active a { color: var(--teal); }

/* ===== MOBILE MENU ===== */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background-color: rgba(0,0,0,0.95); flex-direction: column;
    justify-content: flex-start; padding-top: 20px;
    transition: right 0.4s cubic-bezier(0.22,0.61,0.36,1);
  }
  .nav-menu.active { right: 0; }
  .mobile-menu-header {
    padding: 20px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px;
  }
  .mobile-menu-logo {
    width: 80%; max-width: 220px; height: auto;
    filter: drop-shadow(0 0 8px rgba(80,199,199,0.6));
  }
  .nav-item { margin: 0; opacity: 0; transform: translateX(20px); transition: all 0.4s ease; }
  .nav-menu.active .nav-item { opacity: 1; transform: translateX(0); }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.25s; }
  .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.35s; }
  .nav-menu.active .nav-item:nth-child(8) { transition-delay: 0.4s; }
  .nav-item a {
    display: block; padding: 15px 30px; font-size: 1.1rem;
    position: relative; transition: all 0.3s ease;
  }
  .nav-item a:hover { color: var(--teal); background: rgba(80,199,199,0.1); padding-left: 35px; }
  .nav-item a::before {
    content: ''; position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%); width: 8px; height: 8px;
    background: var(--teal); border-radius: 50%; opacity: 0; transition: all 0.3s ease;
  }
  .nav-item a:hover::before { opacity: 1; left: 25px; }
  .mobile-menu-footer {
    margin-top: auto; padding: 30px 20px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease 0.4s;
  }
  .nav-menu.active .mobile-menu-footer { opacity: 1; transform: translateY(0); }
  .social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
  .social-icons a { color: #fff; font-size: 1.4rem; transition: color 0.3s ease, transform 0.3s ease; }
  .social-icons a:hover { color: var(--teal); transform: translateY(-3px); }
  .mobile-menu-footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
}
@media (min-width: 993px) {
  .mobile-menu-header, .mobile-menu-footer { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; width: 100%;
  margin-top: 0; overflow: hidden;
  background: linear-gradient(135deg, #006666 0%, #004d4d 50%, #003333 100%);
}
.hero.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; }

.video-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;
}
.video-container video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  object-fit: cover; object-position: center;
}

.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center; width: 100%; padding: 0 20px; z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem,5vw,3.5rem); margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero p {
  font-size: clamp(1rem,2.5vw,1.4rem); margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); color: rgba(255,255,255,0.9);
}

/* ===== CTA BUTTONS ===== */
.cta-button {
  display: inline-block; padding: 15px 40px;
  background-color: transparent; color: var(--teal);
  border: 2px solid var(--teal); border-radius: 30px;
  font-size: 1.1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.cta-button:hover {
  background-color: var(--teal); color: var(--white);
  transform: translateY(-3px); box-shadow: 0 10px 20px rgba(80,199,199,0.3);
}
.cta-button.secondary { background: white; color: var(--teal); border: 2px solid white; }
.cta-button.secondary:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ===== CONTENT SECTION ===== */
.content-section {
  background-color: #ffffff; padding: 80px 20px; color: var(--text-dark);
}
.content-section .container { max-width: 1200px; margin: 0 auto; }

.content-section h2 {
  font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 600; margin-bottom: 40px;
  color: var(--teal); position: relative; display: inline-block; text-align: center; width: 100%;
}
.content-section h2::after {
  content: ''; position: absolute; bottom: -15px; left: 50%;
  transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--teal);
}

/* ===== BLOG POST CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e8e8; display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.post-card-image {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.post-card-image-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
  display: flex; align-items: center; justify-content: center;
}
.post-card-image-placeholder span {
  font-size: 3rem; opacity: 0.5;
}
.post-card-body {
  padding: 25px; flex: 1; display: flex; flex-direction: column;
  color: var(--text-dark);
}
.post-card-meta {
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
  flex-wrap: wrap;
}
.post-card-category {
  display: inline-block; padding: 4px 12px;
  background: var(--callout-bg); color: var(--dark-teal);
  border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
}
.post-card-date { font-size: 0.82rem; color: var(--text-light); }
.post-card h2 {
  font-size: 1.2rem; font-weight: 600; margin-bottom: 10px;
  color: var(--text-dark); line-height: 1.4; display: inline; width: auto;
}
.post-card h2::after { display: none; }
.post-card h2 a { color: var(--text-dark); text-decoration: none; transition: color 0.2s; }
.post-card h2 a:hover { color: var(--teal); }
.post-card-excerpt {
  font-size: 0.95rem; color: var(--text-light);
  line-height: 1.6; margin-bottom: 20px; flex: 1;
}
.post-card .cta-button {
  font-size: 0.85rem; padding: 10px 24px; align-self: flex-start;
}

/* ===== SINGLE POST ===== */
.post-content {
  max-width: 1200px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8; color: var(--text-dark);
}
.post-content h1, .post-content h2, .post-content h3 { color: var(--text-dark); margin: 1.5em 0 0.5em; }
.post-content h2::after { display: none; }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--teal); }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.post-content blockquote {
  background: var(--callout-bg); border-left: 4px solid var(--teal);
  padding: 20px 25px; margin: 1.5em 0; border-radius: 4px; font-style: italic;
}
.post-meta-bar {
  display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
  color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px;
}
.post-back-link { margin-top: 50px; padding-top: 30px; border-top: 1px solid #e8e8e8; }

/* ===== BREADCRUMB BAR ===== */
.post-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 20px;
}
.post-breadcrumb-bar .container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  font-size: 0.9rem; color: var(--text-light);
}
.post-breadcrumb-bar a {
  color: var(--text-light); text-decoration: none; transition: color 0.2s;
}
.post-breadcrumb-bar a:hover { color: var(--teal); }
.post-breadcrumb-bar .bc-sep { margin: 0 8px; }
.post-breadcrumb-bar .bc-current { color: var(--text-dark); }

/* ===== NO POSTS MESSAGE ===== */
.no-posts {
  text-align: center; padding: 60px 20px; color: var(--text-light); grid-column: 1/-1;
}
.no-posts h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 15px; }

/* ===== PAGINATION ===== */
.blog-pagination {
  display: flex; justify-content: center; gap: 10px;
  margin: 50px auto 0; flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  padding: 10px 18px; border: 2px solid var(--teal); border-radius: 30px;
  color: var(--teal); text-decoration: none; font-weight: 600;
  transition: all 0.3s ease; font-size: 0.95rem;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--teal); color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--text-dark); color: var(--white); padding: 80px 20px;
}
.footer-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 40px; max-width: 1200px; margin: 0 auto;
}
.footer-column { display: flex; flex-direction: column; text-align: center; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand .footer-logo img { width: 200px; height: auto; }
.footer-column h3 { font-size: 1.2rem; font-weight: 600; color: var(--teal); margin-bottom: 20px; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 1rem; transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--teal); text-decoration: underline; }
.footer-contact p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 20px; }
.footer-contact form { display: flex; flex-direction: column; gap: 15px; }
.footer-contact input {
  padding: 12px 15px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: var(--white); font-size: 1rem;
}
.footer-contact input::placeholder { color: rgba(255,255,255,0.5); }
.footer-contact .cta-button { width: 100%; }
.social-icons { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 10px; }
.social-icons .follow-text { color: var(--white); font-weight: 600; font-size: 1rem; }
.social-icons a { color: var(--white); font-size: 1.4rem; transition: color 0.3s, transform 0.3s; }
.social-icons a:hover { color: var(--teal); transform: translateY(-3px); }
.footer-ribbon {
  background-color: #000; color: rgba(255,255,255,0.5);
  text-align: center; padding: 15px 20px; font-size: 0.8rem;
}
.footer-ribbon a { color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.footer-ribbon a:hover { color: var(--teal); }
.footer-field { display: flex; flex-direction: column; gap: 4px; }
.footer-field label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.phone-field { position: relative; }
.phone-field .phone-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.88rem; pointer-events: none; user-select: none;
}
.phone-field input { padding-left: 34px !important; }

@media (min-width: 992px) {
  .footer-container { grid-template-columns: repeat(5,1fr); gap: 40px; }
  .footer-column { text-align: left; align-items: flex-start; }
}

/* ===== WORDPRESS DEFAULTS ===== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 5px; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
