/*
 * Theme Name: Jersey City Music Lessons
 * Description: Child theme for jerseycitymusiclessons.com - modern, full-width redesign
 * Template: generatepress
 * Version: 1.0.0
 * Author: JCML
 */

/* =============================================
   GLOBAL BASE
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #F7F7F7;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

a { color: #CC2222; text-decoration: none; }
a:hover { color: #AA1A1A; text-decoration: underline; }

/* =============================================
   HEADER & NAV - STACKED LAYOUT
   ============================================= */

.site-header {
    background-color: #2D2D2D !important;
    border-bottom: 3px solid #CC2222;
    padding: 0;
}

/* Stack logo and nav vertically */
.inside-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 !important;
}

/* Logo row - centered, padded */
.site-branding,
.site-logo {
    padding: 18px 20px 12px;
    text-align: center;
    width: 100%;
}

.site-logo img,
.main-title img { width: 60%; max-width: 500px; height: auto; }

.main-title a,
.main-title a:hover { color: #ffffff !important; text-decoration: none; }

/* Nav row - full width, centered, subtle top border */
.main-navigation {
    background-color: #2D2D2D !important;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul ul { background-color: #2D2D2D !important; }

.main-navigation .main-nav ul {
    display: flex;
    justify-content: center;
}

.main-navigation .main-nav ul li a {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    letter-spacing: 0.3px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #CC2222 !important;
    text-decoration: none;
}

/* CTA nav button */
.main-navigation .main-nav ul li.nav-cta > a {
    background-color: #CC2222 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 8px 22px !important;
    margin: 4px 0 4px 8px;
    font-weight: 600;
}
.main-navigation .main-nav ul li.nav-cta > a:hover {
    background-color: #AA1A1A !important;
    color: #ffffff !important;
}

/* Mobile nav toggle */
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus,
button.menu-toggle {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer,
.site-info {
    background-color: #2D2D2D !important;
    color: rgba(255,255,255,0.75) !important;
    padding: 30px 0 !important;
    font-size: 14px;
}

.site-footer a,
.site-info a { color: rgba(255,255,255,0.85) !important; }

.site-footer a:hover,
.site-info a:hover { color: #CC2222 !important; text-decoration: none; }

/* =============================================
   HIDE SIDEBAR GLOBALLY - FULL WIDTH LAYOUT
   ============================================= */

.widget-area,
.sidebar { display: none !important; }

.content-area,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* =============================================
   STANDARD PAGE CONTENT (non-homepage pages)
   ============================================= */

.entry-title {
    color: #2D2D2D;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.entry-content h2 {
    color: #2D2D2D;
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    border-bottom: 2px solid #CC2222;
    padding-bottom: 6px;
}

.entry-content h3 {
    color: #2D2D2D;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 1.4em;
}

.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }

.entry-content li { margin-bottom: 0.4em; }

/* General button */
.wp-block-button__link,
.button,
.btn {
    background-color: #CC2222;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.wp-block-button__link:hover,
.button:hover,
.btn:hover { background-color: #AA1A1A; color: #ffffff !important; }

/* =============================================
   JCML BUTTON VARIANTS
   ============================================= */

.jcml-btn {
    display: inline-block;
    background-color: #CC2222;
    color: #ffffff !important;
    padding: 16px 36px;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
}
.jcml-btn:hover {
    background-color: #AA1A1A;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.jcml-btn-white {
    background-color: #ffffff;
    color: #CC2222 !important;
}
.jcml-btn-white:hover {
    background-color: #f0f0f0;
    color: #AA1A1A !important;
}
.jcml-btn-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
}
.jcml-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff !important;
}

/* =============================================
   HOMEPAGE - HIDE DEFAULT PAGE ELEMENTS
   ============================================= */

.jcml-homepage .entry-header,
.jcml-homepage .page-header { display: none; }

.jcml-homepage .content-area,
.jcml-homepage .entry-content,
.jcml-homepage .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.jcml-homepage .inside-page-header { display: none !important; }

/* =============================================
   HOMEPAGE - SECTION BASE
   ============================================= */

.jcml-section { padding: 70px 20px; }

.jcml-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.jcml-section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: #2D2D2D;
    margin: 0 0 10px;
}

.jcml-section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.05em;
    margin: 0 auto 50px;
    max-width: 600px;
}

/* =============================================
   HOMEPAGE - HERO
   ============================================= */

.jcml-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    text-align: center;
    padding: 80px 20px;
}

.jcml-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.jcml-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.jcml-hero h1 {
    color: #ffffff;
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.jcml-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* =============================================
   HOMEPAGE - SERVICES SECTION
   ============================================= */

.jcml-section-services { background-color: #ffffff; }

.jcml-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 0;
}

.jcml-service-card {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    border-top: 4px solid #CC2222;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.jcml-service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.jcml-service-icon {
    font-size: 2.8em;
    margin-bottom: 16px;
    display: block;
}

.jcml-service-card h3 {
    color: #2D2D2D;
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 10px;
}

.jcml-service-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 20px;
}

.jcml-service-card a {
    color: #CC2222;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
}
.jcml-service-card a:hover {
    color: #AA1A1A;
    text-decoration: underline;
}

/* =============================================
   HOMEPAGE - WHY JCML SECTION
   ============================================= */

.jcml-section-why { background-color: #F7F7F7; }

.jcml-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 0;
}

.jcml-why-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 28px;
}

.jcml-why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #CC2222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    color: #ffffff;
}

.jcml-why-text h4 {
    color: #2D2D2D;
    font-size: 1.05em;
    font-weight: 700;
    margin: 4px 0 6px;
}

.jcml-why-text p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.55;
    margin: 0;
}

/* =============================================
   HOMEPAGE - TESTIMONIALS SECTION
   ============================================= */

.jcml-section-testimonials {
    background-color: #2D2D2D;
    padding: 70px 20px;
}

.jcml-section-testimonials .jcml-section-title { color: #ffffff; }

.jcml-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 0;
}

.jcml-testimonial {
    background: rgba(255,255,255,0.07);
    border-left: 4px solid #CC2222;
    border-radius: 4px;
    padding: 28px 32px;
}

.jcml-testimonial blockquote {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    font-size: 1.05em;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

.jcml-testimonial cite {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    font-style: normal;
    font-weight: 600;
}

/* =============================================
   HOMEPAGE - MEET MIKE SECTION
   ============================================= */

.jcml-section-bio { background-color: #ffffff; }

.jcml-bio-layout {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 880px;
    margin: 0 auto;
}

.jcml-bio-photo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #CC2222;
    display: block;
}

.jcml-bio-placeholder {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #F7F7F7;
    border: 4px solid #CC2222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: #CC2222;
}

.jcml-bio-text h3 {
    color: #2D2D2D;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 14px;
}

.jcml-bio-text p {
    color: #444;
    font-size: 1em;
    line-height: 1.75;
    margin: 0 0 22px;
}

/* =============================================
   HOMEPAGE - FOOTER CTA SECTION
   ============================================= */

.jcml-section-cta {
    background-color: #CC2222;
    padding: 70px 20px;
    text-align: center;
}

.jcml-section-cta h2 {
    color: #ffffff;
    font-size: 2.1em;
    font-weight: 800;
    margin: 0 0 14px;
}

.jcml-section-cta p {
    color: rgba(255,255,255,0.92);
    font-size: 1.1em;
    margin: 0 0 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.jcml-contact-info {
    margin-top: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
}

.jcml-contact-info a {
    color: rgba(255,255,255,0.95) !important;
    text-decoration: underline;
}
.jcml-contact-info a:hover { color: #ffffff !important; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
    .jcml-services-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .jcml-why-grid { grid-template-columns: 1fr; }
    .jcml-testimonials-grid { grid-template-columns: 1fr; }
    .jcml-bio-layout { flex-direction: column; text-align: center; gap: 32px; }
    .jcml-hero h1 { font-size: 2.1em; }
}

@media (max-width: 600px) {
    .jcml-hero { min-height: 420px; padding: 60px 16px; }
    .jcml-hero h1 { font-size: 1.75em; }
    .jcml-hero p { font-size: 1em; }
    .jcml-section { padding: 50px 16px; }
    .jcml-section-title { font-size: 1.65em; }
    .jcml-btn { padding: 14px 28px; font-size: 1em; }
    .jcml-section-cta h2 { font-size: 1.6em; }
    .jcml-bio-photo,
    .jcml-bio-placeholder { width: 160px; height: 160px; }
    .jcml-why-item { flex-direction: column; }
}
