/* ==========================================================================
   areallyneatguy.com — Consolidated Theme + Styles (Light + Dark)
   - Light mode is default (soft + bright, not blinding)
   - Dark mode: <html data-theme="dark">
   - System preference honored ONLY when you have not set data-theme
   - Hero text forced white in both themes (image/overlay doesn't change)
   ========================================================================== */

/* --- Theme Tokens (Light defaults: bright but not blinding) --- */
:root {
  /* Page background (soft, not pure white) */
  --bg-main: #f7f9fc;

  /* Sections / cards */
  --bg-surface: #dcebff;
  --bg-surface-hover: #f0f4f8;

  /* Accent section band */
  --bg-accent-blue: #e6f2fb;

  /* Text (soft slate, not near-black) */
  --text-primary: #1e293b;
  --text-secondary: #64748b;

  /* Brand (a bit more lively) */
  --primary-blue: #1ea7ff;

  /* Borders & depth (lighter/airier) */
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.04);

  /* Inputs */
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.15);
  --placeholder: rgba(15, 23, 42, 0.40);

  /* Navbar/footer */
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(15, 23, 42, 0.08);

  --footer-bg: #0b2c44;
  --footer-border: rgba(30, 167, 255, 0.35);

  /* Hero */
  --hero-text: #f8fafc;

  /* system UI */
  color-scheme: light;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* --- Dark theme overrides (your original palette) --- */
html[data-theme="dark"] {
  --bg-main: #121212;
  --bg-surface: #2D2D2D;
  --bg-surface-hover: #383838;
  --bg-accent-blue: #024f87;

  --text-primary: #E8EAED;
  --text-secondary: #B0B0B0;

  --primary-blue: #29B6F6;

  --border: rgba(232, 234, 237, 0.14);
  --border-strong: rgba(232, 234, 237, 0.20);
  --shadow-soft: 0 10px 20px rgba(0,0,0,0.22), 0 6px 6px rgba(0,0,0,0.26);

  --input-bg: #121212;
  --input-border: rgba(232, 234, 237, 0.20);
  --placeholder: rgba(232, 234, 237, 0.45);

  --nav-bg: #121212;
  --nav-border: rgba(232, 234, 237, 0.12);

  --footer-bg: #002f52;
  --footer-border: #024f87;

  --hero-text: #f8fafc;

  color-scheme: dark;
}

/* Optional: auto-follow system setting if you haven't set data-theme */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg-main: #121212;
    --bg-surface: #2D2D2D;
    --bg-surface-hover: #383838;
    --bg-accent-blue: #024f87;

    --text-primary: #E8EAED;
    --text-secondary: #B0B0B0;

    --primary-blue: #29B6F6;

    --border: rgba(232, 234, 237, 0.14);
    --border-strong: rgba(232, 234, 237, 0.20);
    --shadow-soft: 0 10px 20px rgba(0,0,0,0.22), 0 6px 6px rgba(0,0,0,0.26);

    --input-bg: #121212;
    --input-border: rgba(232, 234, 237, 0.20);
    --placeholder: rgba(232, 234, 237, 0.45);

    --nav-bg: #121212;
    --nav-border: rgba(232, 234, 237, 0.12);

    --footer-bg: #002f52;
    --footer-border: #024f87;

    --hero-text: #f8fafc;

    color-scheme: dark;
  }
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* --- Subtle section variance (light theme feels layered) --- */
/* Works best if your main content uses <section> elements */
section:nth-of-type(even) { background: var(--bg-surface); }
section:nth-of-type(odd)  { background: var(--bg-main); }

/* --- Typography & Utilities --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding { padding: 80px 0; }

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-blue);
}

/* Formerly bg-light-blue */
.bg-light-blue { background-color: var(--bg-surface); }

.bg-dark-blue {
  background-color: var(--bg-accent-blue);
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #0b1220; /* consistent readable text on bright blue */
  border: 2px solid var(--primary-blue);
  box-shadow: 0 6px 14px rgba(30, 167, 255, 0.25);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-main);
}

.btn-nav {
  background-color: var(--primary-blue);
  color: #0b1220;
  padding: 8px 20px;
  box-shadow: 0 6px 14px rgba(30, 167, 255, 0.20);
}

.btn-nav:hover {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 6px 18px;
}

/* --- Navigation --- */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--nav-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight { color: var(--primary-blue); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link:hover { color: var(--primary-blue); }

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle .bar {
  background-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  /* slightly softened overlay so it's less intense */
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(2, 80, 135, 0.35)),
    url('images/frank-bright-magician.png');
  background-size: cover;
  background-position: center;
  height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Hero always uses its own text color */
  color: var(--hero-text);

  /*border-bottom: 2px solid var(--bg-surface);*/
  border-top: 4px solid var(--primary-blue);
  border-bottom: 4px solid var(--primary-blue)
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--hero-text);
  text-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--hero-text);
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* --- About Section --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-text strong,
.about-text em {
  color: var(--text-primary);
}

.about-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(2, 6, 23, 0.10);
}

/* Optional: Center alignment on mobile if your grid doesn't do it automatically */
@media (max-width: 768px) {
  .about-image {
    margin-top: 20px;
    text-align: center;
  }
}

.img-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.feature-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* --- Services Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.card h3 { color: var(--primary-blue); }
.card p { color: var(--text-secondary); }

.card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-hover);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.10), 0 6px 10px rgba(2, 6, 23, 0.06);
}

/* --- Card Images --- */
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
}

.card:hover .card-img {
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

/* --- Client Logos Marquee --- */
.logo-track {
  gap: 60px;
  align-items: center;
}

.client-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

#clients {
  padding-top: 20px;
  padding-bottom: 20px;
}

#clients .marquee-wrapper { padding: 10px 0; }

#clients .section-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .client-logo { height: 50px; }
  .logo-track { gap: 40px; }
}

/* --- Testimonials --- */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.testimonial {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 700px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-blue);
  opacity: 0.25;
  font-family: serif;
  line-height: 1;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.testimonial h4 {
  margin-top: 20px;
  color: var(--primary-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Infinite Marquee Reviews --- */
.container-fluid {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  align-items: stretch;
  animation: scroll 60s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
  cursor: grab;
}

.review-card {
  width: 350px;
  min-width: 350px;
  height: auto;
  background: var(--bg-main);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.review-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-top: auto;
}

.review-role {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: block;
  margin-top: 2px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .review-card {
    width: 280px;
    min-width: 280px;
    padding: 20px;
  }
}

/* --- Platform Badges --- */
.reviews-slider .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.gigsalad { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #2e7d32; }
.google  { background-color: #e3f2fd; color: #1565c0; border: 1px solid #1565c0; }
.bark    { background-color: #c4cfff; color: #181bc2; border: 1px solid #181bc2; }

@media (max-width: 768px) {
  .slider-btn { display: none; }
  .reviews-slider { padding-left: 20px; }
}

/* --- FAQ Section --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.05);
}

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.faq-item[open] summary::after { content: '-'; }

.faq-item p {
  padding: 10px 20px 20px 20px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* --- Contact Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 { color: var(--text-primary); }

.contact-info p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-form {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 15px; }

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--placeholder);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.full-width { width: 100%; }

/* --- Footer --- */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--footer-border);
}

/* --- Social Media Links --- */
.social-links-container {
  text-align: center;
  margin-top: 30px;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.06);
}

/* --- Brand Color Hover Effects --- */
.social-btn.facebook:hover {
  background-color: #1877F2;
  color: white;
  transform: translateY(-3px);
}

.social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  transform: translateY(-3px);
}

.social-btn.youtube:hover {
  background-color: #FF0000;
  color: white;
  transform: translateY(-3px);
}

.social-btn.linkedin:hover {
  background-color: #0077b5;
  color: white;
  transform: translateY(-3px);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: 0.3s;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-main);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    transition: 0.3s;
    border-bottom: 1px solid var(--nav-border);
  }

  .nav-menu.active { left: 0; }
  .nav-menu li { margin: 15px 0; }

  .grid-2, .contact-wrapper { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 2.5rem; }

  .contact-form { padding: 20px; }
}

/* --- Responsive Video Container --- */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Animate only the hero headline that says “Making Your Event Unforgettable” */
h1 {
  opacity: 0;
  transform: translateY(14px);
  animation: heroPopIn 3000ms ease-out 120ms forwards;
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
  h1 {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes heroPopIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
