/*
Theme Name: Sapphire Health and Wellness
Theme URI: https://sapphirehw.com/
Author: Sapphire Health & Wellness
Description: Custom theme preserving the original Sapphire Health & Wellness HTML website design.
Version: 1.4.0
Text Domain: sapphire-health-wellness
*/

/* ==========================
   SAPPHIRE HEALTH & WELLNESS
   GLOBAL STYLES
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#333;
    background:#fff;
    line-height:1.7;
}

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

/* HEADER */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    z-index:1000;
}

.header-inner{
    width:90%;
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}

.logo img{
    height:75px;
}

nav ul{
    list-style:none;
    display:flex;
}

nav li{
    margin-left:25px;
}

nav a{
    text-decoration:none;
    color:#2c3e50;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#2f7dd8;
}

/* HERO */

.hero{
    min-height:40vh;
    background:
    linear-gradient(
        rgba(25,60,110,.55),
        rgba(25,60,110,.45)
    ),
    url('images/clinica.jpg');

    background-size:cover;
    background-position:center 25%;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    padding-top:100px;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    color:#fff;
    font-size:58px;
    line-height:1.15;
    margin-bottom:20px;
}

.hero p{
    color:#fff;
    font-size:20px;
    margin-bottom:30px;
}

/* BUTTONS */

.btn{
    display:inline-block;
    background:#2f7dd8;
    color:#fff;
    text-decoration:none;
    padding:14px 30px;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#1c5fae;
}

.btn-light{
    background:white;
    color:#2f7dd8;
}

/* SECTIONS */

.section{
    padding:90px 0;
}

.section-title{
    text-align:center;
    font-size:42px;
    color:#2f7dd8;
    margin-bottom:20px;
}

.section-intro{
    text-align:center;
    max-width:800px;
    margin:0 auto 50px;
    color:#666;
}

/* CARDS */

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

.card{
    background:white;
    border-radius:20px;
    padding:35px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.card h3{
    color:#2f7dd8;
    margin-bottom:15px;
}

/* ABOUT */

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:20px;
}

/* CTA */

.cta{
    background:linear-gradient(135deg,#2f7dd8,#67c6ff);
    color:white;
    text-align:center;
    padding:80px 20px;
}

.cta h2{
    font-size:40px;
    margin-bottom:15px;
}

.cta p{
    max-width:700px;
    margin:auto auto 30px;
}

/* FOOTER */

footer{
    background:#16334d;
    color:white;
    padding:50px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.footer-logo{
    max-height:80px;
    margin-bottom:15px;
}

footer a{
    color:white;
    text-decoration:none;
}

footer ul{
    list-style:none;
}

footer li{
    margin-bottom:10px;
}

.copyright{
    text-align:center;
    margin-top:30px;
    border-top:1px solid rgba(255,255,255,.15);
    padding-top:20px;
}

/* CONTACT */

.contact-box{
    background:#f7fbff;
    border-radius:20px;
    padding:40px;
}

.contact-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:30px;
}

.contact-card{
    background:white;
    padding:25px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

/* FLOATING CALL */

.floating-call{
    position:fixed;
    right:20px;
    bottom:20px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#2f7dd8;
    color:white;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    z-index:9999;
}

/* SERVICE CARDS */

.service-card{
    overflow:hidden;
    transition:all .3s ease;
}

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

.service-image{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:20px;
}

.btn-small{
    display:inline-block;
    margin-top:15px;
    padding:10px 22px;
    background:#2f7dd8;
    color:#fff;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    transition:.3s;
}

.btn-small:hover{
    background:#1c5fae;
}

/* LANGUAGE BADGE */

.language-badge{
    display:inline-block;
    background:#2f7dd8;
    color:#ffffff;
    padding:12px 22px;
    border-radius:30px;
    margin-bottom:25px;
    font-weight:600;
    font-size:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.20);
}

/* RESPONSIVE */

@media(max-width:900px){

    .hero h1{
        font-size:40px;
    }

    /* Tablet: keep service/core cards in 2 columns */
    .grid-3{
        grid-template-columns:repeat(2,1fr);
    }

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

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

    .contact-info{
        grid-template-columns:1fr;
    }

    .service-image{
        height:220px;
    }

    .language-badge{
        font-size:14px;
        padding:10px 18px;
    }
}

@media(max-width:600px){

    /* Phones: cards become one column */
    .grid-3{
        grid-template-columns:1fr;
    }
}

/* ==========================
MINIMAL FOOTER
========================== */

footer{
    background:#16334d;
    color:#ffffff;
    padding:12px 0 6px;
}

.footer-contact-center{
    text-align:center;
    font-size:14px;
    line-height:1.3;
}

.footer-contact-center p{
    margin:2px 0;
}

.footer-label{
    font-weight:700;
    color:#ffffff;
}

.copyright{
    text-align:center;
    margin-top:6px;
    padding-top:6px;
    border-top:1px solid rgba(255,255,255,.10);
    font-size:12px;
}
/* ==========================
   SERVICES PAGE
========================== */

nav a.active{
    color:#2f7dd8;
    font-weight:700;
}

.services-hero{
    min-height:500px;
    background:
        linear-gradient(
            rgba(20,58,92,.68),
            rgba(20,58,92,.58)
        ),
        url('images/clinica.jpg');

    background-size:cover;
    background-position:center 25%;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    padding:150px 0 80px;
}

.services-hero-content{
    text-align:center;
    max-width:850px;
}

.services-hero h1{
    color:#ffffff;
    font-size:54px;
    line-height:1.15;
    margin-bottom:20px;
}

.services-hero p{
    color:#ffffff;
    font-size:19px;
    max-width:720px;
    margin:0 auto 30px;
}

.services-introduction{
    background:#f7fbff;
}

.services-benefits{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:55px;
}

.service-benefit{
    display:flex;
    align-items:flex-start;
    gap:15px;
    background:#ffffff;
    padding:24px;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(0,0,0,.06);
}

.benefit-icon{
    color:#2f7dd8;
    font-size:24px;
    line-height:1;
}

.service-benefit h3{
    color:#16334d;
    font-size:18px;
    margin-bottom:5px;
}

.service-benefit p{
    color:#666666;
    font-size:14px;
    line-height:1.5;
}

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

.service-page-card{
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 28px rgba(22,51,77,.10);
    transition:transform .3s ease, box-shadow .3s ease;
    display:flex;
    flex-direction:column;
}

.service-page-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 36px rgba(22,51,77,.16);
}

.service-page-image{
    width:100%;
    height:310px;
    object-fit:cover;
    display:block;
}

.service-page-content{
    padding:30px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    flex:1;
}

.service-page-content h2{
    color:#2f7dd8;
    font-size:25px;
    line-height:1.3;
    margin-bottom:15px;
}

.service-page-content p{
    color:#555555;
    margin-bottom:5px;
}

.service-page-content .btn-small{
    margin-top:auto;
    padding-top:10px;
}

.service-disclaimer{
    background:#eef7fd;
    padding:30px 0;
}

.service-disclaimer p{
    max-width:950px;
    margin:auto;
    text-align:center;
    color:#555555;
    font-size:14px;
}

.footer-label{
    color:#ffffff;
    font-weight:700;
}


/* TABLETS */

@media(max-width:900px){

    .services-hero{
        min-height:440px;
        padding:170px 0 70px;
    }

    .services-hero h1{
        font-size:42px;
    }

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

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

    .service-page-image{
        height:290px;
    }

}


/* MOBILE PHONES */

@media(max-width:600px){

    .services-hero{
        min-height:420px;
        padding:190px 0 60px;
    }

    .services-hero h1{
        font-size:34px;
    }

    .services-hero p{
        font-size:17px;
    }

    .section{
        padding:65px 0;
    }

    .section-title{
        font-size:34px;
    }

    .service-page-image{
        height:230px;
    }

    .service-page-content{
        padding:24px;
    }

    .service-page-content h2{
        font-size:22px;
    }

}
/* =====================================================
   MOBILE HAMBURGER MENU
===================================================== */

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    padding:7px;
    margin:0;
    background:transparent;
    border:0;
    cursor:pointer;
    flex-shrink:0;
}

.menu-toggle span{
    display:block;
    width:28px;
    height:3px;
    margin:5px auto;
    background:#2f7dd8;
    border-radius:3px;
    transition:transform .25s ease, opacity .25s ease;
}

/* TABLET / MOBILE NAVIGATION */

@media(max-width:850px){

    header{
        overflow:visible;
    }

    .header-inner{
        width:90%;
        min-height:84px;
        padding:7px 0;
        position:relative;
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }

    .logo{
        display:flex;
        align-items:center;
        flex-shrink:0;
    }

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

    .menu-toggle{
        display:block;
        margin-left:auto;
        position:relative;
        z-index:10002;
    }

    /* Hide the menu until the hamburger is clicked.
       Works with <nav id="mainNav"> or a normal <nav>. */
    .header-inner nav,
    #mainNav{
        display:none;
        position:absolute;
        top:100%;
        left:50%;
        transform:translateX(-50%);
        width:100vw;
        background:#ffffff;
        box-shadow:0 12px 24px rgba(0,0,0,.12);
        z-index:10001;
    }

    .header-inner nav.open,
    #mainNav.open{
        display:block;
    }

    .header-inner nav ul,
    #mainNav ul{
        display:flex;
        flex-direction:column;
        flex-wrap:nowrap;
        justify-content:flex-start;
        align-items:stretch;
        width:100%;
        margin:0;
        padding:8px 0 12px;
    }

    .header-inner nav li,
    #mainNav li{
        display:block;
        width:100%;
        margin:0;
    }

    .header-inner nav a,
    #mainNav a{
        display:block;
        width:100%;
        padding:14px 24px;
        text-align:center;
        color:#2c3e50;
        border-bottom:1px solid #eef2f5;
    }

    .header-inner nav li:last-child a,
    #mainNav li:last-child a{
        border-bottom:none;
    }

    .header-inner nav a:hover,
    #mainNav a:hover{
        color:#2f7dd8;
        background:#f7fbff;
    }

    /* Hamburger changes to X when active */
    .menu-toggle.active span:nth-child(1){
        transform:translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3){
        transform:translateY(-8px) rotate(-45deg);
    }

    /* Fixed header is now much shorter on mobile */
    .hero{
        padding-top:105px;
    }

    .services-hero{
        min-height:420px;
        padding:125px 0 60px;
    }
}

/* SMALL PHONES */

@media(max-width:600px){

    .header-inner{
        min-height:76px;
        padding:6px 0;
    }

    .logo img{
        height:56px;
    }

    .menu-toggle{
        width:42px;
        height:42px;
    }

    .hero{
        padding-top:95px;
    }

    .services-hero{
        min-height:390px;
        padding:110px 0 50px;
    }

    .services-hero h1{
        font-size:34px;
    }

    .services-hero p{
        font-size:17px;
    }

}
