/* ============================================================
   Services Pages Styles - The Podiatrists of Mona Vale
   Shared by services.html and the four service detail pages.
   ============================================================ */

/* --- Skip to Content --- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 8px 16px;
    background: #2fb8bd;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2fb8bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #249a9e;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

h1 {
    font-size: 32px;
    font-weight: 300;
    line-height: 50px;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================================
   TOP HEADER BAR
   ============================================================ */
.top-header {
    background-color: #2fb8bd;
    padding: 8px 0;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.top-header-phone,
.top-header-email {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.top-header-phone {
    text-decoration: none;
}

.top-header-phone:hover,
.top-header-email:hover {
    color: #ffffff;
    opacity: 0.85;
}


/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 100;
}

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

.logo img {
    width: 140px;
    height: 65px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #2fb8bd;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #666;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

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


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    background-image: url('images/therapist-12-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    background: radial-gradient(circle at top left, rgba(238, 238, 238, 0.50) 50%, rgba(238, 238, 238, 0.40) 100%);
    padding: 60px 0 80px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    font-weight: 300;
    line-height: 1.4em;
    color: #333;
    text-align: center;
}

.hero-tagline {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: 8px auto 0;
    max-width: 700px;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   SERVICES GRID (services.html)
   ============================================================ */
.services-grid-section {
    background-color: #ffffff;
    padding: 46px 0 54px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    display: block;
    background-color: #f7f9fc;
    border-radius: 4px;
    padding: 35px 30px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.service-card:hover {
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
}

.service-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

.service-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2fb8bd;
}

.service-card:hover .service-card-link {
    color: #249a9e;
}

/* Rebates note under the grid */
.services-note {
    margin-top: 35px;
    text-align: center;
    font-size: 14px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   SERVICE DETAIL CONTENT
   ============================================================ */
.service-detail-section {
    background-color: #ffffff;
    padding: 46px 0 54px;
}

.service-detail {
    max-width: 800px;
    margin: 0 auto;
}

.service-detail h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 12px;
}

.service-detail h2:first-child {
    margin-top: 0;
}

.service-detail p {
    font-size: 15px;
    line-height: 1.9;
}

.service-detail ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1em;
    font-size: 15px;
    line-height: 1.9;
}

.service-detail ul li {
    margin-bottom: 4px;
}

/* Related services links */
.related-services {
    max-width: 800px;
    margin: 35px auto 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 14px;
}


/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-wrapper {
    text-align: center;
    padding-top: 40px;
}

.btn-cta {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background-color: #27b5bb;
    border: 2px solid #27b5bb;
    border-radius: 100px;
    padding: 16px 30px;
    box-shadow: 0px 12px 18px -6px rgba(127, 141, 255, 0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #27b5bb;
    border-color: #27b5bb;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #666666;
    color: #ffffff;
    padding: 40px 0 0;
}

.footer-columns {
    display: flex;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-col-map {
    flex: 1.2;
}

.footer-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2fb8bd;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #2fb8bd;
}

/* Footer Map */
.footer-map {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 200px;
    border: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #cccccc;
    margin: 0;
}

.footer-bottom a {
    color: #2fb8bd;
}

.footer-bottom a:hover {
    color: #ffffff;
}


/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Tablet (max-width: 980px) */
@media (max-width: 980px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Mobile Nav */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 100;
    }

    .main-nav.open {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    /* Hero Title */
    .hero-title {
        font-size: 40px;
    }

    /* Footer Columns Stack */
    .footer-columns {
        flex-direction: column;
        gap: 25px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    .top-header-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-header-phone,
    .top-header-email {
        font-size: 14px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3em;
    }

    .hero-overlay {
        padding: 45px 0 70px;
    }

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

    .services-grid-section,
    .service-detail-section {
        padding: 30px 0 40px;
    }

    .btn-cta {
        padding: 14px 25px;
        font-size: 13px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    .hero-title {
        font-size: 28px;
    }

    .container {
        padding: 0 15px;
    }

    .service-card {
        padding: 28px 20px;
    }
}

/* Fix parallax on touch devices */
@media (hover: none) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
