/*
Theme Name: Ridge & Roam - Astra Child
Theme URI: https://ridgeandroam.com
Description: Custom child theme for Ridge & Roam mountain biking ecommerce store
Author: Ridge & Roam Team
Author URI: https://ridgeandroam.com
Template: astra
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: ridge-roam-child
*/

/* ==========================================================================
   Ridge & Roam Custom Styles
   ========================================================================== */

/* Color Variables */
:root {
    --rr-primary-green: #2d7a4f;
    --rr-primary-blue: #1e5a8e;
    --rr-dark-green: #1f5438;
    --rr-light-green: #4a9d6f;
    --rr-accent-blue: #3498db;
    --rr-text-dark: #2c3e50;
    --rr-text-light: #7f8c8d;
    --rr-background: #ffffff;
    --rr-background-alt: #f8f9fa;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--rr-text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--rr-text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Header Styles */
.site-header {
    background: var(--rr-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navigation a {
    color: var(--rr-text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--rr-primary-green);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--rr-primary-blue) 0%, var(--rr-primary-green) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.1" d="M0,0 L1200,0 L1200,60 Q900,90 600,60 T0,60 Z"></path></svg>') repeat-x bottom;
    background-size: 100% 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--rr-primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--rr-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 122, 79, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--rr-primary-blue);
}

.btn-secondary:hover {
    background: var(--rr-background-alt);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--rr-background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rr-primary-green), var(--rr-primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
}

.feature-card h3 {
    color: var(--rr-primary-blue);
    margin-bottom: 15px;
}

/* Social Proof Section */
.social-proof {
    padding: 60px 20px;
    text-align: center;
    background: white;
}

.testimonials {
    max-width: 900px;
    margin: 40px auto;
}

.testimonial {
    background: var(--rr-background-alt);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--rr-primary-green);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--rr-text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--rr-primary-blue);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--rr-text-dark);
}

.product-price {
    font-size: 1.5rem;
    color: var(--rr-primary-green);
    font-weight: 700;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    color: var(--rr-text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-title a {
    color: var(--rr-text-dark);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--rr-primary-blue);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rr-text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rr-primary-green);
}

/* Footer */
.site-footer {
    background: var(--rr-text-dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-widget h3 {
    color: var(--rr-primary-green);
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

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

.footer-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--rr-light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .features-grid,
    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--rr-primary-blue);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--rr-text-light);
    font-size: 1.1rem;
}

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

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
