/* 
 * Rancho Los Robles - Main CSS Styles
 * A modern design for an event venue website
 */

/* ---------- Reset & Base Styles ---------- */
:root {
    /* Color scheme */
    --primary-color: #3a845d;      /* Dark green */
    --primary-light: #5ba97e;      /* Lighter green */
    --primary-dark: #26613e;       /* Darker green */
    --secondary-color: #a98e63;    /* Gold/brown accent */
    --text-dark: #333333;          /* Dark text */
    --text-light: #ffffff;         /* Light text */
    --gray-light: #f5f5f5;         /* Light background */
    --gray-medium: #e0e0e0;        /* Medium background */
    --gray-dark: #666666;          /* Dark gray text */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #8e7853;
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 60px;
    width: auto;
}

.main-nav .menu {
    display: flex;
}

.main-nav .menu li {
    margin-left: var(--spacing-md);
}

.main-nav .menu a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav .menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .menu a:hover:after,
.main-nav .menu .active a:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Scrolled header */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.scrolled .logo-image {
    max-height: 50px;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    color: var(--text-light);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-home {
    /* background-image: url('../images/backgrounds/hero-home.jpg'); */
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
    
}

.hero-about {
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
}

.hero-location {
    background-image: url('https://www.hotelesmision.com.mx/Hoteles-Mision-Destinos-Estado-de-Mexico-Valle-de-Bravo.jpg');
}

.hero-services {
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
}

.hero-directions {
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
}

.hero-gallery {
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
}

.hero-contact {
    background-image: url('https://images.squarespace-cdn.com/content/v1/562c6ec9e4b02f107e18873b/1521091078497-8EMTAYCKOL1O1QHNLT5U/_MG_5200__.JPG?format=2500w');
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-section .tagline {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---------- Main Content Sections ---------- */
.section {
    padding: var(--spacing-xl) 0;
}

.section-bg-light {
    background-color: var(--gray-light);
}

.section-bg-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-bg-primary h2,
.section-bg-primary h3 {
    color: var(--text-light);
}

/* Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.column {
    padding: 0 15px;
    margin-bottom: var(--spacing-md);
}

.column-1-2 {
    width: 50%;
}

.column-1-3 {
    width: 33.333%;
}

.column-2-3 {
    width: 66.666%;
}

.column-1-4 {
    width: 25%;
}

.column-3-4 {
    width: 75%;
}

/* ---------- Features Section ---------- */
.features {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.feature-card {
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
    padding: var(--spacing-md);
    text-align: center;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    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.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    margin-bottom: 0;
}

/* ---------- About Section ---------- */
.about-content {
    display: flex;
    align-items: center;
}

.about-text {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ---------- Services Section ---------- */
.services-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.service-card {
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    margin-bottom: var(--spacing-sm);
}

.service-content p {
    margin-bottom: var(--spacing-sm);
}

/* ---------- Testimonials ---------- */
.testimonials-slider {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.testimonial {
    text-align: center;
    padding: 0 var(--spacing-lg);
}

.testimonial-content {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-meta {
    color: var(--gray-dark);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%;
    border-radius: var(--border-radius);
}

.gallery-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- Contact Section ---------- */
.contact-form {
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
    margin-top: 4px;
}

.map-container {
    height: 450px;
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #222;
    color: #fff;
    padding-top: var(--spacing-xl);
}

.footer-top {
    padding-bottom: var(--spacing-lg);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-widget {
    width: calc(33.333% - 30px);
    margin: 0 15px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    position: relative;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--primary-light);
}

.footer-widget .contact-info li {
    display: flex;
    align-items: flex-start;
}

.footer-widget .contact-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-cta {
    margin-top: var(--spacing-md);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
}