/* ════════════════════════════════════════════════════════════
   style.css  –  Josiah Guenther Magic Website
   ════════════════════════════════════════════════════════════
   Site-wide stylesheet. Loaded by templates/base.html on every page.

   COLOR THEME — Gray / Silver / Blue (defined as CSS variables below)
   Look for the ":root" block to change the color palette site-wide.
   ════════════════════════════════════════════════════════════ */

/* ─── Color & Design Tokens ──────────────────────────────────
   Change any value here to re-theme the entire site at once.
──────────────────────────────────────────────────────────────── */
:root {
  --navy:    #0e1117;   /* deep background */
  --ink:     #141a26;   /* card / section background */
  --steel:   #1e2a3a;   /* elevated surfaces */
  --silver:  #8fa8c4;   /* midtone silver-blue (secondary text) */
  --mist:    #c8d0dc;   /* body text */
  --chrome:  #d4dce8;   /* light headings */
  --ice:     #e8eef5;   /* near-white (high-emphasis text) */
  --accent:  #4a90c8;   /* electric blue accent */
  --accent-deep: #2a5a8a; /* deeper blue for gradients */
  --gold:    #9ab4cc;   /* subtle highlight */
  --error:   #e05555;   /* form error red */
  --success: #6acc8a;   /* success green */

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--mist);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── Navigation Bar ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(14, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 144, 200, 0.18);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--chrome);
  text-transform: uppercase;
  cursor: pointer;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 8px; }
.nav-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  display: inline-block;
}
.nav-btn:hover,
.nav-btn.active {
  color: var(--ice);
  border-color: rgba(74, 144, 200, 0.5);
  background: rgba(74, 144, 200, 0.08);
}

/* Push page content below the fixed nav */
main { padding-top: 0; }

/* ─── Generic Sections & Layout ─────────────────────────────── */
section { padding: 80px 0; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 200, 0.25), transparent);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 144, 200, 0.4), transparent);
}
.section-label span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════════ */

/* ─── Hero Banner ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.7);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 17, 23, 0.15) 0%,
    rgba(14, 17, 23, 0.08) 40%,
    rgba(14, 17, 23, 0.7) 85%,
    var(--navy) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--accent), transparent); }
.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--ice);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 40px rgba(74, 144, 200, 0.35);
  margin-bottom: 18px;
}
.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ice);
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  border: none;
  padding: 16px 42px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(74, 144, 200, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 144, 200, 0.5);
}

/* ─── Bio Section ─────────────────────────────────────────── */
.bio-section { background: var(--navy); }
.bio-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--chrome);
  margin-bottom: 28px;
  line-height: 1.25;
}
.bio-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gold);
}
.bio-section p + p { margin-top: 18px; }
/* About section layout */
.bio-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.about-container {
    max-width: 1350px;
}

.bio-image {
    flex: 0 0 300px;
}

.bio-image img {
    width: 100%;
    border-radius: 2px;
    display: block;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.bio-content {
    flex: 2;
    min-width: 0;
}
/* ─── Video Section ───────────────────────────────────────── */
.video-section { background: var(--ink); }
.video-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--chrome);
  margin-bottom: 32px;
  text-align: center;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(74, 144, 200, 0.2);
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* ─── Mid Two-Column Text ─────────────────────────────────── */
.mid-text-section { background: var(--navy); }
.mid-text-section .mid-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 60px;
  align-items: start;
}
.mid-text-section .vdivider {
  background: linear-gradient(180deg, transparent, rgba(74, 144, 200, 0.3), transparent);
  height: 100%;
}
.mid-text-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.mid-text-section p {
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--silver);
}

/* ─── Image Pair (shared by Home & Services) ──────────────── */
.image-section { background: var(--ink); padding: 56px 0; }
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.image-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  filter: saturate(0.75) brightness(0.92);
  transition: filter 0.4s;
}
.image-pair img:hover { filter: saturate(1) brightness(1); }

/* ─── Reviews / Carousel ──────────────────────────────────── */
.reviews-section { background: var(--ink); overflow: hidden; }
.reviews-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--chrome);
  text-align: center;
  margin-bottom: 48px;
}
.carousel-track-wrapper { overflow: hidden; position: relative; }
.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.carousel-track-wrapper::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.carousel-track-wrapper::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.review-card {
  flex: 0 0 320px;
  background: var(--steel);
  border: 1px solid rgba(74, 144, 200, 0.15);
  border-radius: 4px;
  padding: 32px 28px;
}
.stars { display: flex; gap: 4px; margin-bottom: 18px; }
.stars span { color: var(--accent); font-size: 1.1rem; }
.review-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gold);
  margin-bottom: 22px;
  font-style: italic;
}
.review-author {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #6a8aaa;
  text-transform: uppercase;
}
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2a3a50;
  border: 1px solid rgba(74, 144, 200, 0.3);
  cursor: pointer;
  transition: background 0.25s;
  padding: 0;
}
.carousel-dot.active { background: var(--accent); }

/* ─── Book CTA Section (shared by Home & Services) ────────── */
.book-cta-section { background: var(--navy); text-align: center; }
.book-cta-section .cta-box {
  padding: 60px 40px;
  border: 1px solid rgba(74, 144, 200, 0.15);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--steel) 100%);
  position: relative;
  overflow: hidden;
}
.book-cta-section .cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(74, 144, 200, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.cta-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a8aaa;
  margin-bottom: 28px;
}
.book-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ice);
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  border: none;
  padding: 20px 64px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 28px rgba(74, 144, 200, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(74, 144, 200, 0.55);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE
═══════════════════════════════════════════════════════════ */

.services-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 68px; /* offset for fixed nav */
}
.services-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.6);
}
.services-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.1) 0%, rgba(14, 17, 23, 0.65) 80%, var(--navy) 100%);
}
.services-hero-content { position: relative; z-index: 2; text-align: center; }
.services-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  color: var(--chrome);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.services-hero-content p {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.services-text-section { background: var(--navy); }
.services-text-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--chrome);
  margin-bottom: 28px;
}
.services-text-section p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--silver);
  max-width: 760px;
}
.services-text-section p + p { margin-top: 18px; }

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--ink);
  border: 1px solid rgba(74, 144, 200, 0.15);
  border-radius: 3px;
  padding: 28px 24px;
}
.service-card .sc-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.service-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6a8aaa;
}

.services-images { background: var(--ink); padding: 72px 0; }

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */

.contact-hero {
  text-align: center;
  padding: 140px 40px 60px; /* extra top padding clears the fixed nav */
}
.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--chrome);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.contact-hero p {
  font-size: 0.95rem;
  color: #6a8aaa;
  letter-spacing: 0.08em;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-group input,
.form-group textarea {
  background: var(--ink);
  border: 1px solid rgba(74, 144, 200, 0.2);
  border-radius: 2px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(74, 144, 200, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 144, 200, 0.08);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  animation: shake 0.3s ease;
}
.form-group textarea { resize: vertical; min-height: 150px; }

.error-msg {
  font-size: 0.72rem;
  color: var(--error);
  letter-spacing: 0.05em;
  display: none;
}
.error-msg.visible { display: block; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.submit-btn {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ice);
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  border: none;
  padding: 18px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(74, 144, 200, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 10px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(74, 144, 200, 0.5); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.success-banner {
  background: linear-gradient(135deg, #1a3a1a, #1e4a1e);
  border: 1px solid rgba(74, 200, 120, 0.3);
  border-radius: 3px;
  padding: 20px 24px;
  text-align: center;
  display: none;
  margin-top: 24px;
}
.success-banner.visible { display: block; }
.success-banner p {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--success);
}

.server-error-banner {
  background: linear-gradient(135deg, #3a1a1a, #4a1e1e);
  border: 1px solid rgba(224, 85, 85, 0.35);
  border-radius: 3px;
  padding: 20px 24px;
  text-align: center;
  display: none;
  margin-top: 24px;
}
.server-error-banner.visible { display: block; }
.server-error-banner p {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--error);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER (all pages)
═══════════════════════════════════════════════════════════ */
footer {
    background: #070a0f;
    border-top: 1px solid rgba(74,144,200,.15);

    padding: 70px 30px 50px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.footer-name{
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--chrome);
    letter-spacing: .08em;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.footer-tagline{

    font-family: var(--font-body);

    color: var(--accent);

    letter-spacing: .28em;

    text-transform: uppercase;

    font-size: .8rem;

    margin-bottom: 34px;

}

.footer-contact{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-bottom:34px;

}

.footer-contact p{

    color:var(--gold);

    font-size:1rem;

}

.footer-social{

    display:flex;

    gap:26px;

    margin-bottom:34px;

}

.footer-social a{

    color:#5d7fa3;

    transition:.25s;

}

.footer-social a:hover{

    color:var(--accent);

    transform:translateY(-2px);

}

.footer-social svg{

    width:28px;

    height:28px;

    fill:currentColor;

}

.footer-copy{

    color:#425468;

    font-size:.75rem;

    letter-spacing:.08em;

}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE  (tablet & mobile)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-btn { padding: 7px 12px; font-size: 0.7rem; }
  .container { padding: 0 20px; }
  section { padding: 56px 0; }

  .mid-text-section .mid-cols { grid-template-columns: 1fr; gap: 32px 0; }
  .mid-text-section .vdivider { display: none; }

  .image-pair { grid-template-columns: 1fr; }
  .services-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 280px; }

  .contact-hero { padding: 120px 24px 48px; }
     .bio-layout {
      flex-direction: column;
      text-align: center;
      gap: 35px;
  }

  .bio-image {
      width: 250px;
      flex: none;
  }

  .bio-section p {
      max-width: 100%;
  }
}
