/*
Theme Name: Yellow Thinking Child
Theme URI: https://www.yellowthinking.com
Template: astra
Description: Yellow Thinking custom child theme based on Astra. Brand color: #FFAA00. Designed for corporate businesses in the Greater Toronto Hamilton Area.
Author: Yellow Thinking
Author URI: https://www.yellowthinking.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yellowthinking-child
Tags: corporate, video-production, branding, GTHA, Toronto
*/

/* ============================================================
   YELLOW THINKING BRAND VARIABLES
   ============================================================ */
:root {
    --yt-yellow: #FFAA00;
    --yt-yellow-dark: #e69900;
    --yt-yellow-light: #FFD166;
    --yt-black: #1a1a1a;
    --yt-dark-grey: #2d2d2d;
    --yt-mid-grey: #555555;
    --yt-light-grey: #f5f5f5;
    --yt-white: #ffffff;
    --yt-font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --yt-font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --yt-border-radius: 4px;
    --yt-transition: all 0.3s ease;
    --yt-shadow: 0 4px 20px rgba(0,0,0,0.12);
    --yt-shadow-hover: 0 8px 40px rgba(0,0,0,0.2);
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--yt-font-primary);
    color: var(--yt-black);
    background-color: var(--yt-white);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--yt-yellow);
    text-decoration: none;
    transition: var(--yt-transition);
}

a:hover {
    color: var(--yt-yellow-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--yt-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--yt-black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--yt-mid-grey);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header,
#masthead {
    background-color: var(--yt-black) !important;
    border-bottom: 3px solid var(--yt-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
    color: var(--yt-white) !important;
    font-weight: 700;
}

/* Top bar */
.ast-above-header-bar {
    background-color: var(--yt-yellow) !important;
    color: var(--yt-black) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.ast-above-header-bar a {
    color: var(--yt-black) !important;
}

/* Navigation menu */
.main-header-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a {
    color: var(--yt-white) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    transition: var(--yt-transition);
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a,
.main-header-menu .menu-item.current-menu-parent > a {
    color: var(--yt-yellow) !important;
}

/* Dropdown menus */
.main-header-menu .sub-menu {
    background-color: var(--yt-black) !important;
    border-top: 3px solid var(--yt-yellow);
    box-shadow: var(--yt-shadow);
}

.main-header-menu .sub-menu .menu-item > a {
    color: var(--yt-white) !important;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-header-menu .sub-menu .menu-item > a:hover {
    color: var(--yt-yellow) !important;
    background-color: rgba(255,170,0,0.1) !important;
}

/* CTA button in nav */
.ast-header-cta-button,
.menu-item.ast-header-cta > a {
    background-color: var(--yt-yellow) !important;
    color: var(--yt-black) !important;
    border-radius: var(--yt-border-radius) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    transition: var(--yt-transition) !important;
}

.ast-header-cta-button:hover,
.menu-item.ast-header-cta > a:hover {
    background-color: var(--yt-yellow-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,170,0,0.4) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background-color: var(--yt-black);
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,170,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section h1 {
    color: var(--yt-white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ============================================================
   PAGE HERO (SERVICE PAGES)
   ============================================================ */
.page-hero {
    background-color: var(--yt-black);
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 40px;
    text-align: center;
}

.page-hero h1 {
    color: var(--yt-yellow);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
.wp-block-button a,
button,
input[type="submit"],
.yt-btn {
    background-color: var(--yt-yellow) !important;
    color: var(--yt-black) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 32px !important;
    border-radius: var(--yt-border-radius) !important;
    border: none !important;
    cursor: pointer;
    transition: var(--yt-transition) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.wp-block-button__link:hover,
.wp-block-button a:hover,
button:hover,
input[type="submit"]:hover,
.yt-btn:hover {
    background-color: var(--yt-yellow-dark) !important;
    color: var(--yt-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,170,0,0.4) !important;
}

/* Secondary button */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    border: 2px solid var(--yt-yellow) !important;
    color: var(--yt-yellow) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--yt-yellow) !important;
    color: var(--yt-black) !important;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    padding: 80px 40px;
    background-color: var(--yt-white);
}

.services-grid h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.services-grid h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--yt-yellow);
    margin: 16px auto 0;
    border-radius: 2px;
}

.services-grid .wp-block-column {
    background-color: var(--yt-light-grey);
    padding: 32px 28px;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    transition: var(--yt-transition);
    margin-bottom: 24px;
}

.services-grid .wp-block-column:hover {
    border-bottom-color: var(--yt-yellow);
    box-shadow: var(--yt-shadow-hover);
    transform: translateY(-4px);
}

.services-grid h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.services-grid h3 a {
    color: var(--yt-yellow) !important;
}

.services-grid p {
    font-size: 0.95rem;
    color: var(--yt-mid-grey);
    margin-bottom: 0;
}

/* ============================================================
   SERVICE CONTENT PAGES
   ============================================================ */
.service-content {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-content h2 {
    color: var(--yt-black);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--yt-yellow);
    display: inline-block;
}

.service-content h3 {
    color: var(--yt-yellow);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-content .wp-block-column {
    padding: 24px;
    background-color: var(--yt-light-grey);
    border-radius: 8px;
    border-left: 4px solid var(--yt-yellow);
    margin-bottom: 16px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-intro {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-intro h2 span {
    color: var(--yt-yellow);
}

.about-content {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background-color: var(--yt-yellow) !important;
    padding: 80px 40px;
    text-align: center;
}

.cta-section h2 {
    color: var(--yt-black) !important;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(0,0,0,0.75) !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .wp-block-button__link {
    background-color: var(--yt-black) !important;
    color: var(--yt-yellow) !important;
}

.cta-section .wp-block-button__link:hover {
    background-color: var(--yt-dark-grey) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

/* ============================================================
   WHY YELLOW THINKING SECTION
   ============================================================ */
.why-yt {
    background-color: var(--yt-light-grey) !important;
    padding: 60px 40px;
    border-radius: 8px;
    margin: 40px 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-content {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content h3 {
    color: var(--yt-yellow);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Form 7 Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--yt-border-radius);
    font-size: 1rem;
    font-family: var(--yt-font-primary);
    transition: var(--yt-transition);
    background-color: var(--yt-white);
    color: var(--yt-black);
    margin-bottom: 16px;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--yt-yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,170,0,0.15);
}

.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--yt-yellow) !important;
    color: var(--yt-black) !important;
    font-weight: 700 !important;
    padding: 14px 40px !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: var(--yt-border-radius) !important;
    cursor: pointer;
    transition: var(--yt-transition) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--yt-yellow-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,170,0,0.4) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
#colophon {
    background-color: var(--yt-black) !important;
    color: var(--yt-white) !important;
    padding: 60px 40px 30px;
}

.site-footer a,
#colophon a {
    color: var(--yt-yellow) !important;
}

.site-footer a:hover,
#colophon a:hover {
    color: var(--yt-yellow-light) !important;
}

.ast-footer-copyright {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.85rem;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

/* Footer widgets */
.footer-widget-area {
    background-color: var(--yt-black) !important;
}

.footer-widget-area .widget-title {
    color: var(--yt-yellow) !important;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yt-yellow);
}

.footer-widget-area p,
.footer-widget-area li,
.footer-widget-area address {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-widget-area .menu li a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem;
    padding: 4px 0;
    display: block;
    transition: var(--yt-transition);
}

.footer-widget-area .menu li a:hover {
    color: var(--yt-yellow) !important;
    padding-left: 8px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ast-breadcrumbs-wrapper {
    background-color: var(--yt-light-grey);
    padding: 12px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.ast-breadcrumbs-wrapper a {
    color: var(--yt-yellow);
}

/* ============================================================
   SCHEMA / LOCAL SEO STRUCTURED DATA VISUAL HINTS
   ============================================================ */
.yt-address-block {
    background-color: var(--yt-light-grey);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--yt-yellow);
    margin: 24px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-section,
    .page-hero {
        padding: 60px 20px;
    }

    .services-grid,
    .service-content,
    .about-intro,
    .about-content,
    .contact-content,
    .cta-section {
        padding: 60px 20px;
    }

    .services-grid .wp-block-columns,
    .service-content .wp-block-columns {
        flex-direction: column;
    }

    .services-grid .wp-block-column,
    .service-content .wp-block-column {
        width: 100% !important;
        margin-bottom: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .wp-block-button__link {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================================
   ASTRA THEME OVERRIDES
   ============================================================ */
.ast-container {
    max-width: 1280px;
}

/* Remove Astra default padding on content area */
.ast-page-builder-template .entry-content {
    padding: 0;
}

/* Astra primary color override */
:root {
    --ast-global-color-0: #FFAA00;
    --ast-global-color-1: #1a1a1a;
    --ast-global-color-2: #2d2d2d;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.yt-yellow { color: var(--yt-yellow) !important; }
.yt-bg-yellow { background-color: var(--yt-yellow) !important; }
.yt-bg-black { background-color: var(--yt-black) !important; }
.yt-bg-light { background-color: var(--yt-light-grey) !important; }
.yt-text-center { text-align: center; }
.yt-mt-40 { margin-top: 40px; }
.yt-mb-40 { margin-bottom: 40px; }
.yt-section { padding: 80px 40px; }
