@import url("fontface.css");

:root {
    --primary-color: #2d9d3e;
    --secondary-color: #2fa642;
    --dark-green: #1a6600;
    --text-color: #898989;
    --heading-color: #2d9d3e;
    --bg-color: #fafafa;
    --white: #ffffff;
    --grey-light: #ededed;
    --grey-dark: #323232;

    --font-main: 'Roboto', sans-serif;
    --font-heading: 'titilliumregular', sans-serif;

    --container-width: 1200px;
    --spacing-unit: 2rem;
    /* Increased margin for readability */
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: normal;
    text-transform: uppercase;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    width: 100%;
}

.grid {
    display: grid;
    gap: var(--spacing-unit);
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

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

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

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 80px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    /* Slightly reduced padding */
    border-radius: 4px;
    font-size: 15px;
    /* Slightly reduced font size for better fit */
}

nav a:hover,
nav a.active {
    background-color: #1a6600;
    color: var(--white);
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero / Parallax Section */
.hero {
    width: 100%;
    height: 450px;
    position: relative;
    background-image: url('../images/hero-desktop-large.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* PNG fallback for browsers that don't support WebP */
.no-webp .hero {
    background-image: url('../images/hero-desktop-large.png');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(250, 250, 250, 0.3) 100%);
}

/* Tablet Landscape Specific Fix */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        height: 400px;
        background-image: url('../images/hero-tablet-landscape.webp');
        background-attachment: scroll;
        background-position: center;
    }

    .no-webp .hero {
        background-image: url('../images/hero-tablet-landscape.png');
    }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
    .hero {
        height: 350px;
        background-image: url('../images/hero-mobile-portrait.webp');
        background-attachment: scroll;
        background-position: center bottom;
    }

    .no-webp .hero {
        background-image: url('../images/hero-mobile-portrait.png');
    }
}

/* Therapist Info Section */
.therapist-section {
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.therapist-grid>div {
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.therapist-grid strong,
.therapist-grid p,
.therapist-grid a {
    color: #1a1a1a;
}

.therapist-grid a:hover {
    color: var(--dark-green);
}

@media (max-width: 768px) {
    .therapist-section {
        padding: 0 1rem;
    }

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

/* Content Sections */
.main-content {
    padding: 2rem 0;
}

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

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    margin-bottom: 1rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--grey-light);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

/* Responsive Adjustments */
/* Only switch to burger menu on smaller screens (< 992px) */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        text-align: center;
        margin-bottom: 1rem;
    }

    .logo img {
        margin: 0 auto;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--grey-light);
    }
}