/* style.css - Unified Styles for Nueva Vida */

/* === GLOBAL VARIABLES & RESET === */
:root {
    --stone: #F8F6F2;
    --charcoal: #2A2A2A;
    --terracotta: #C44536;
    --sage: #8A9B8A;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--stone);
    color: var(--charcoal);
    line-height: 1.6;
    padding-top: 80px; /* Prevents content from hiding under fixed header */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
}

/* === HEADER & NAVIGATION (UNIFIED) === */
header {
    background-color: rgba(248, 246, 242, 0.92);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(42, 42, 42, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

/* Logo Brand */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.brand-name, .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--terracotta);
}

/* Mobile Navigation Styles */
.mobile-nav,
.mobile-menu-toggle,
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--charcoal);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: var(--stone);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--charcoal);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-nav-links {
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    color: var(--charcoal);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--terracotta);
}

.mobile-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
    text-decoration: none;
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    text-align: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation for hamburger to X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background-color: var(--terracotta);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--terracotta);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 69, 54, 0.15);
}

.book-btn {
    background: var(--terracotta);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--terracotta);
}

.book-btn:hover {
    background-color: transparent;
    color: var(--terracotta);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-secondary:hover {
    background: var(--terracotta);
    color: white;
}

/* === PAGE HEADERS === */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

/* === HERO SECTIONS === */
.hero {
    background: linear-gradient(135deg, rgba(248, 246, 242, 0.95) 0%, rgba(138, 155, 138, 0.15) 100%);
    text-align: center;
    padding: 10rem 0 6rem;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #555;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Special hero classes for other pages */
.contact-hero,
.services-hero,
.testimonials-hero {
    background: linear-gradient(135deg, rgba(248, 246, 242, 0.95) 0%, rgba(138, 155, 138, 0.15) 100%);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

/* === PHILOSOPHY SECTION === */
.philosophy {
    background-color: white;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.science-side, .wisdom-side {
    padding: 2.5rem;
    border-radius: 12px;
}

.science-side {
    background-color: rgba(138, 155, 138, 0.08);
    border-left: 4px solid var(--sage);
}

.wisdom-side {
    background-color: rgba(196, 69, 54, 0.05);
    border-left: 4px solid var(--terracotta);
}

.science-side h3, .wisdom-side h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
}

.philosophy ul {
    list-style: none;
}

.philosophy li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.08);
    font-size: 1.1rem;
}

.philosophy li:last-child {
    border-bottom: none;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.8rem 2.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    border-top: 4px solid var(--terracotta);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--terracotta);
    margin: 1rem 0;
}

/* === CONTACT INFO === */
.contact-info {
    padding: 4rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.info-item {
    text-align: center;
    padding: 2rem;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--terracotta);
}

/* === TESTIMONIAL CAROUSEL === */
.testimonial-carousel {
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.client-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 2rem;
    position: relative;
}

.client-quote:before, .client-quote:after {
    content: '"';
    font-size: 3rem;
    color: var(--terracotta);
    opacity: 0.2;
    position: absolute;
}

.client-quote:before {
    top: -20px;
    left: -10px;
}

.client-quote:after {
    bottom: -40px;
    right: -10px;
}

.client-info {
    margin-top: 2rem;
}

.client-name {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.client-service {
    color: var(--sage);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--terracotta);
}

.nav-btn {
    background: var(--sage);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: var(--terracotta);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
    display: none;
}

/* === FOOTER === */
footer {
    background-color: var(--charcoal);
    color: #ddd;
    padding: 4rem 0 2.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.95rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
   
    .mobile-menu-toggle {
        display: block;
    }
   
    .header-container {
        padding: 1rem 0;
    }
   
    .hero, .contact-hero, .services-hero, .testimonials-hero {
        padding: 6rem 0 3rem;
        margin-top: 70px;
    }
   
    .brand-name, .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero h1, .hero-content h1 {
        font-size: 2.5rem;
    }
   
    .page-header h1 {
        font-size: 2.2rem;
    }
   
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
   
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
   
    .mobile-nav-header {
        padding: 1rem;
    }
   
    .mobile-nav-links {
        padding: 1.5rem 1rem;
    }
   
    .testimonial-slide {
        padding: 2rem;
    }
   
    .client-quote {
        font-size: 1.1rem;
    }
   
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Button Stack Fix */
@media (max-width: 768px) {
    /* Target buttons that are direct children of containers with centered text */
    .hero-content > .btn,
    .hero-content > .btn-secondary,
    .container[style*="text-align: center"] > .btn {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1rem !important;
    }
   
    /* Remove bottom margin from last button */
    .hero-content > .btn:last-child,
    .hero-content > .btn-secondary:last-child,
    .container[style*="text-align: center"] > .btn:last-child {
        margin-bottom: 0 !important;
    }
   
    /* Clear any inline styles that cause issues */
    .btn[style*="margin-right"] {
        margin-right: 0 !important;
    }
}