/* Healing Platform - Global Styles */

/* Import Quando font (brand typography) */
@import url('https://fonts.googleapis.com/css2?family=Quando&display=swap');

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

:root {
    /* Healing Platform Brand Colors */
    --primary-teal: #50948C;        /* Main Teal - RGB: 80-148-140 */
    --dark-teal: #30717A;           /* Dark Teal - RGB: 48-113-122 */
    --sage-green: #AEBF81;          /* Sage Green - RGB: 174-191-129 */
    --terracotta: #A97C50;          /* Terracotta/Brown - RGB: 169-124-80 */
    --olive-green: #8EAB68;         /* Olive Green - RGB: 142-171-104 */

    /* Legacy variable names mapped to new brand colors */
    --primary-green: #50948C;       /* Maps to primary-teal */
    --dark-green: #30717A;          /* Maps to dark-teal */
    --light-green: #AEBF81;         /* Maps to sage-green */

    /* Neutral colors */
    --cream: #f8faf9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
}

body {
    font-family: 'Quando', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(80, 148, 140, 0.85), rgba(174, 191, 129, 0.75)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero .credentials {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--dark-green);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    color: var(--dark-teal);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--cream);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: var(--primary-teal);
    margin-bottom: 0.875rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
}

.content-section:nth-child(even) {
    background: var(--cream);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Media Section */
.social-media {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.social-media h4 {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--dark-green);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #d5d5d5;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-green);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    border-width: 2px;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(95, 169, 141, 0.15), 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 0.8;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-teal), var(--sage-green));
    color: var(--white);
    padding: 1.25rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(80, 148, 140, 0.35);
    margin-top: 1rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(80, 148, 140, 0.45);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form container styling */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem 3.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

#contact-form {
    position: relative;
}

@media (min-width: 769px) {
    button[type="submit"] {
        width: auto;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2.5rem 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem 1.25rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    button[type="submit"] {
        padding: 1.125rem 2.5rem;
        font-size: 1rem;
    }
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sticky Phone Button */
.phone-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-teal);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(80, 148, 140, 0.4);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-button:hover {
    background: var(--dark-teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(80, 148, 140, 0.5);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--dark-teal);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 150px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    background: var(--primary-teal);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.25rem;
    text-align: center;
}

.video-info h3 {
    color: var(--primary-teal);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Testimonials */
.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

/* Newsletter Box */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary-teal), var(--sage-green));
    color: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 40px rgba(80, 148, 140, 0.3);
}

.newsletter-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.newsletter-box p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2.5rem auto 0;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 1.125rem 1.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.newsletter-form input:focus::placeholder {
    color: #999;
}

.newsletter-form button {
    background: var(--white);
    color: var(--dark-green);
    padding: 1.125rem 2.75rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.newsletter-form button:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .logo-img {
        height: 150px;
        width: auto;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--cream);
    }

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

    .hero {
        height: 500px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }

    .newsletter-box {
        padding: 3rem 2rem;
    }

    .newsletter-box h3 {
        font-size: 2rem;
    }

    .newsletter-box p {
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 1rem 1.5rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .phone-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
