/*
Theme Name: Gold's Bean Theme
Theme URI: https://goldsbean.com
Author: Antigravity AI
Description: Custom corporate theme for Gold's Bean FX Learning Platform.
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: goldsbean
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    /* Corporate Palette */
    --color-bg: #FFFFFF;
    --color-text-primary: #333333;
    --color-text-secondary: #555555;

    /* Accents */
    --color-gold: #C5A028;
    /* Professional Gold */
    --color-gold-light: #F4E4BC;
    /* Peacock Green: Deep, rich teal-green */
    --color-green: #005F55;
    --color-green-accent: #004d45;
    --color-gray-dark: #2C2C2C;
    --color-gray-light: #F5F5F5;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--color-text-primary);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Control Custom Logo Size */
.logo img,
.logo .custom-logo,
.custom-logo-link img {
    max-height: 25px !important;
    /* User preferred size */
    width: auto !important;
    height: auto !important;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* WordPress Dropdown Menus */
.nav-links li {
    position: relative;
    padding: 10px 0;
    /* Adjust tap target */
}

/* Hide sub-menu by default */
.nav-links ul.sub-menu,
.nav-links ul.children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--color-gold);
    padding: 10px 0;
    z-index: 999;
}

/* Show sub-menu on hover */
.nav-links li:hover>ul.sub-menu,
.nav-links li:hover>ul.children {
    display: block;
}

/* Sub-menu links styling */
.nav-links ul.sub-menu li,
.nav-links ul.children li {
    padding: 0;
}

.nav-links ul.sub-menu a,
.nav-links ul.children a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.nav-links ul.sub-menu a:hover,
.nav-links ul.children a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-gold);
}

/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none;
    /* Hide on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        /* Above nav */
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 70px;
        /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: center;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
        /* Show when toggled */
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    /* Sub-menu on mobile (always expanded or indent) */
    .nav-links ul.sub-menu,
    .nav-links ul.children {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        display: none;
    }

    .nav-links li:hover>ul.sub-menu {
        display: block;
    }

    .header-inner .btn-primary {
        display: none;
        /* Optional: Hide CTA on mobile header to save space, or move it */
    }
}


.btn-primary {
    background-color: var(--color-gold);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    /* Slight round, mostly square for corporate */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #b08d1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 40, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(197, 160, 40, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 77, 37, 0.03), transparent 40%);
}

.hero-subtitle {
    color: var(--color-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 2.8rem;
    /* Large but elegant */
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Features / Services */
.features-section {
    padding: var(--section-padding);
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-green);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* About / Philosophy Stripe */
.philosophy-section {
    background-color: var(--color-gray-dark);
    color: #fff;
    padding: var(--section-padding);
    text-align: center;
}

.philosophy-section h2 {
    color: #fff;
    margin-bottom: 30px;
}

.philosophy-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 0 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-green);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
}