/*
Theme Name: RBMHC Holdings
Theme URI: https://rbmhcholdings.com
Author: RBMHC Holdings LLC
Author URI: https://rbmhcholdings.com
Description: A professional WordPress theme for RBMHC Holdings LLC, focused on investment management and e-commerce consulting services.
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: rbmhc
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2c6a9e;
    --accent-color: #4a90c2;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --max-width: 1400px;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* Base Typography - Mobile First */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header Styles - Mobile First */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.site-logo a {
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.site-logo a:hover {
    opacity: 0.8;
}

/* Hamburger Menu - Mobile First */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation - Mobile First */
.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation.active {
    max-height: 500px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
}

.main-navigation ul li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.main-navigation ul li:last-child {
    border-bottom: none;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    padding: var(--spacing-md) 0;
    text-align: left;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-xs);
}

.main-navigation a::after {
    display: none;
}

/* Hero Section - Mobile First */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center bottom;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Container - Mobile First */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Content Sections - Mobile First */
.content-section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Values Section - Mobile First */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.value-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.value-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

/* Philosophy Section - Mobile First */
.philosophy-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.philosophy-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.philosophy-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.philosophy-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 77, 122, 0.1) 100%);
    pointer-events: none;
}

.philosophy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.philosophy-card-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.philosophy-card-content p {
    color: var(--text-light);
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    line-height: 1.6;
    flex: 1;
}

/* Services Section - Mobile First */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.service-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card > *:not(.service-card-image) {
    padding: 0 var(--spacing-lg);
}

.service-card > h3 {
    padding-top: var(--spacing-lg);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.service-card > ul {
    padding-bottom: var(--spacing-lg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: var(--spacing-md);
}

.service-card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
    position: relative;
    padding-left: var(--spacing-md);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* About Section - Mobile First */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 800px;
    height: 250px;
    margin: 0 auto var(--spacing-xl);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Contact Section - Mobile First */
.contact-section {
    background-color: var(--bg-light);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-top: var(--spacing-lg);
}

.contact-info p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Footer - Mobile First */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xs);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--white);
}

/* Buttons - Mobile First */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 120px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--white);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
    .header-container {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
        max-height: none;
        box-shadow: none;
        background: transparent;
    }

    .main-navigation ul {
        flex-direction: row;
        gap: var(--spacing-lg);
        padding: 0;
    }

    .main-navigation ul li {
        width: auto;
        border-bottom: none;
    }

    .main-navigation a {
        padding: var(--spacing-xs) 0;
        text-align: center;
        min-height: auto;
        display: block;
    }

    .main-navigation a:hover {
        padding-left: 0;
    }

    .main-navigation a::after {
        display: block;
    }

    .hero-section {
        padding: var(--spacing-xxl) var(--spacing-lg);
        min-height: 70vh;
    }

    .content-section {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .container {
        padding: 0 var(--spacing-lg);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .about-image {
        height: 350px;
    }

    .btn {
        width: auto;
    }

    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .value-card:hover .value-card-image img {
        transform: scale(1.05);
    }

    .philosophy-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border-top-color: var(--primary-color);
    }

    .philosophy-card:hover .philosophy-card-image img {
        transform: scale(1.1);
    }

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .service-card:hover .service-card-image img {
        transform: scale(1.1);
    }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    .hero-section {
        padding: 6rem var(--spacing-lg);
        background-attachment: fixed;
    }

    .content-section {
        padding: 5rem var(--spacing-lg);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .philosophy-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }

    .about-image {
        height: 400px;
    }

    body {
        font-size: 18px;
    }
}

/* Large Desktop Styles (1200px+) */
@media (min-width: 1200px) {
    .philosophy-grid {
        gap: var(--spacing-lg);
    }

    .header-container {
        padding: var(--spacing-sm) var(--spacing-xl);
    }

    .hero-section {
        padding: 6rem var(--spacing-xl);
    }

    .content-section {
        padding: 5rem var(--spacing-xl);
    }
}
