/*
Theme Name: Modern GOJU Karate
Theme URI: https://moderngojudotorg.wordpress.com/
Description: A custom WordPress theme for Modern GOJU Karate of Palm Bay, FL. Dark, Japanese-inspired design with vermillion and gold accents.
Version: 1.0
Author: Custom Design
Author URI: https://moderngojudotorg.wordpress.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-goju
*/

:root {
    --ink: #0a0a0a;
    --paper: #f5f0e8;
    --vermillion: #c0392b;
    --vermillion-dark: #962d22;
    --gold: #c49b2a;
    --gold-light: #e8c95a;
    --charcoal: #1a1a1a;
    --warm-gray: #3a3530;
    --light-gray: #d6d0c4;
    --cream: #faf6ee;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ink);
    color: var(--paper);
    overflow-x: hidden;
  }

  /* ─── NOISE TEXTURE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
  }

  .nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-logo img {
    height: 56px;
    width: auto;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermillion);
    transition: width 0.3s ease;
  }

  .nav-links a:hover { color: var(--vermillion); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--vermillion);
    color: var(--paper) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background 0.3s, transform 0.3s !important;
  }

  .nav-cta::after { display: none !important; }
  .nav-cta:hover { background: var(--vermillion-dark); transform: translateY(-1px); }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

  .hamburger span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
  }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(192,57,43,0.12) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 30%, rgba(196,155,42,0.08) 0%, transparent 50%),
      var(--ink);
  }

  /* Japanese brushstroke-inspired decorative element */
  .hero-brush {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 55%;
    height: 80%;
    opacity: 0.04;
    background: linear-gradient(135deg, var(--vermillion), transparent);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem 4rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-text { animation: fadeInUp 1s ease 0.3s both; }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
  }

  .hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
  }

  .hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--paper);
  }

  .hero h1 span {
    display: block;
    color: var(--vermillion);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    margin-top: 0.25rem;
  }

  .hero-sub {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(245,240,232,0.7);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-weight: 300;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--vermillion);
    color: var(--paper);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
  }

  .btn-primary:hover { background: var(--vermillion-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(192,57,43,0.3); }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--gold);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s;
  }

  .btn-outline:hover { background: rgba(196,155,42,0.1); transform: translateY(-2px); }

  /* Hero visual - Kanji-style accent */
  .hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.6s both;
  }

  .kanji-display {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(14rem, 22vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196,155,42,0.15);
    line-height: 0.85;
    text-align: center;
    user-select: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(196,155,42,0.15);
  }

  .stat-item { text-align: center; }

  .stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--vermillion);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    margin-top: 0.25rem;
  }

  /* ─── SECTION STYLES ─── */
  section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  .section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
  }

  .section-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }

  .section-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245,240,232,0.65);
    max-width: 600px;
    font-weight: 300;
  }

  /* ─── BENEFITS ─── */
  .benefits {
    position: relative;
  }

  .benefits::before {
    content: '';
    position: absolute;
    left: -10%;
    top: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(180deg, rgba(196,155,42,0.03) 0%, transparent 100%);
    pointer-events: none;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .benefit-card {
    background: rgba(245,240,232,0.03);
    border: 1px solid rgba(245,240,232,0.06);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
  }

  .benefit-card:hover {
    background: rgba(245,240,232,0.06);
    border-color: rgba(196,155,42,0.2);
    transform: translateY(-4px);
  }

  .benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--vermillion);
    transition: height 0.4s ease;
  }

  .benefit-card:hover::before { height: 100%; }

  .benefit-icon {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    display: block;
  }

  .benefit-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--paper);
  }

  .benefit-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245,240,232,0.55);
    font-weight: 300;
  }

  /* ─── ABOUT / HISTORY ─── */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .timeline {
    margin-top: 2.5rem;
    position: relative;
    padding-left: 2rem;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--vermillion), rgba(196,155,42,0.2));
  }

  .timeline-item {
    position: relative;
    padding-bottom: 2rem;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--vermillion);
    border-radius: 50%;
    transform: translateX(-50%);
    margin-left: 0.5px;
  }

  .timeline-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
  }

  .timeline-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245,240,232,0.6);
    font-weight: 300;
  }

  .about-right {
    position: relative;
  }

  .about-quote {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: rgba(192,57,43,0.06);
    border-left: 3px solid var(--vermillion);
  }

  .about-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--gold);
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .instructor-card {
    background: rgba(245,240,232,0.03);
    border: 1px solid rgba(245,240,232,0.06);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .instructor-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--vermillion), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--paper);
    flex-shrink: 0;
  }

  .instructor-info h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
  }

  .instructor-info p {
    font-size: 0.85rem;
    color: rgba(245,240,232,0.55);
    line-height: 1.6;
  }

  /* ─── SCHEDULE ─── */
  .schedule-section {
    text-align: center;
    position: relative;
  }

  .schedule-section .section-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .schedule-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .schedule-card {
    background: rgba(245,240,232,0.03);
    border: 1px solid rgba(245,240,232,0.08);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
  }

  .schedule-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vermillion), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
  }

  .schedule-card:hover { transform: translateY(-4px); border-color: rgba(196,155,42,0.2); }
  .schedule-card:hover::after { transform: scaleX(1); }

  .schedule-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }

  .schedule-ages {
    font-size: 0.85rem;
    color: rgba(245,240,232,0.5);
    margin-bottom: 1.5rem;
  }

  .schedule-days {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .schedule-time {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--vermillion);
    letter-spacing: 0.05em;
  }

  /* ─── FAQ ─── */
  .faq-section { }

  .faq-grid {
    margin-top: 3rem;
    display: grid;
    gap: 0;
  }

  .faq-item {
    border-bottom: 1px solid rgba(245,240,232,0.08);
    overflow: hidden;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--paper);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: color 0.3s;
  }

  .faq-question:hover { color: var(--gold); }

  .faq-toggle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--vermillion);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .faq-answer-inner {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(245,240,232,0.6);
    font-weight: 300;
    max-width: 800px;
  }

  .faq-item.active .faq-toggle { transform: rotate(45deg); }
  .faq-item.active .faq-answer { max-height: 300px; }

  /* ─── CONTACT ─── */
  .contact-section {
    position: relative;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
  }

  .contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .contact-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.25rem;
  }

  .contact-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(245,240,232,0.6);
  }

  .contact-item a {
    color: var(--paper);
    text-decoration: none;
    transition: color 0.3s;
  }

  .contact-item a:hover { color: var(--gold); }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-row { display: flex; gap: 1rem; }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    background: rgba(245,240,232,0.04);
    border: 1px solid rgba(245,240,232,0.1);
    color: var(--paper);
    padding: 1rem 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--gold);
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: rgba(245,240,232,0.35);
  }

  .contact-form textarea { resize: vertical; min-height: 120px; }

  /* ─── FOOTER ─── */
  footer {
    border-top: 1px solid rgba(245,240,232,0.06);
    padding: 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.15em;
    color: var(--gold);
  }

  .footer-text {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.35);
  }

  .footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .footer-links a {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
  }

  .footer-links a:hover { color: var(--gold); }

  /* ─── DIVIDER ─── */
  .section-divider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
  }

  .section-divider hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,155,42,0.2), transparent);
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .about { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    section { padding: 4rem 2rem; }
    nav { padding: 1rem 2rem; }
    footer { padding: 2rem; }
    .section-divider { padding: 0 2rem; }
  }

  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      padding: 2rem;
      gap: 1.5rem;
      border-bottom: 1px solid rgba(0,0,0,0.08);
      box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .hero-content { padding: 7rem 2rem 3rem; }
    .schedule-cards { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
  }
