/* 
 * Torkeluvianin - Hydratatie Website
 * Main CSS file
 */

/* ---------- GLOBAL STYLES ---------- */
:root {
    /* Color variables */
    --primary: #00AEEF;
    --primary-dark: #0085C7;
    --primary-light: #E5F7FB;
    --accent: #4ECDC4;
    --white: #FFFFFF;
    --light-gray: #F7F9FA;
    --gray: #7E8C9A;
    --dark-gray: #394A59;
    --black: #222831;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin: -2rem auto 3rem;
    max-width: 700px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 174, 239, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 174, 239, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

textarea {
    resize: vertical;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark-gray);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background-color: var(--primary-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.water-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
}

/* ---------- WHY SECTION ---------- */
.why-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--white), var(--primary-light) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.why-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.why-card p {
    margin-bottom: 0;
    color: var(--gray);
}

/* ---------- HOW SECTION ---------- */
.how-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.body-interactive {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3rem;
}

.body-silhouette {
    position: relative;
    flex: 1;
    min-width: 300px;
    height: 600px;
}

.body-image {
    height: 100%;
    display: block;
    margin: 0 auto;
}

.body-info {
    flex: 1;
    min-width: 300px;
}

.hotspot {
    position: absolute;
    cursor: pointer;
}

.hotspot-dot {
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px rgba(0, 174, 239, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 174, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
    }
}

.hotspot-content {
    position: absolute;
    width: 250px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.hotspot:hover .hotspot-content {
    opacity: 1;
    visibility: visible;
}

.hotspot-brain {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.hotspot-brain .hotspot-content {
    top: 30px;
    left: -100px;
}

.hotspot-gut {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.hotspot-gut .hotspot-content {
    top: 30px;
    left: -100px;
}

.hotspot-muscle {
    bottom: 30%;
    left: 70%;
}

.hotspot-muscle .hotspot-content {
    top: -50px;
    left: 30px;
}

/* ---------- HABITS SECTION ---------- */
.habits-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.habit-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.habit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.habit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.habit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.habit-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.habit-card p {
    margin-bottom: 0;
    color: var(--gray);
}

/* ---------- APPROACH SECTION ---------- */
.approach-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.approach-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.approach-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.approach-step {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.approach-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    z-index: 2;
}

.step-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.step-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

/* ---------- MENTORS SECTION ---------- */
.mentors-section {
    padding: 6rem 0;
    background-color: var(--primary-light);
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.mentor-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mentor-image {
    height: 250px;
    overflow: hidden;
}

.mentor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mentor-card:hover .mentor-image img {
    transform: scale(1.05);
}

.mentor-card h3, .mentor-card p {
    padding: 0 1.5rem;
}

.mentor-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
}

.mentor-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.mentor-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ---------- PRICING SECTION ---------- */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: var(--radius-sm);
}

.pricing-header {
    background-color: var(--primary-light);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pricing-header h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.pricing-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.pricing-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary);
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    color: var(--black);
}

.contact-text p {
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.map-container {
    margin-top: 4rem;
}

.map-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.google-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #ced4da;
}

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 0.75rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #ced4da;
    transition: color 0.3s ease, padding 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-form .form-group {
    display: flex;
}

.newsletter-form input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin-bottom: 0;
    color: #ced4da;
}

.footer-legal ul {
    display: flex;
}

.footer-legal ul li {
    margin-left: 1.5rem;
}

.footer-legal ul li a {
    color: #ced4da;
    font-size: 0.9rem;
}

.footer-legal ul li a:hover {
    color: var(--white);
}

/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--black);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes for AOS library */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(90deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 1280px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 960px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-inner {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        padding: 1rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    .nav-list.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .why-grid,
    .habits-grid,
    .mentors-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-legal ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-legal ul li {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--radius-sm);
        border-right: 1px solid #ddd;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: var(--radius-sm);
    }
}