/*
Theme Name: AmaLabs Theme
Theme URI: http://eduardovianna.com/vtis/amalabs
Author: Eduardo Vianna
Author URI: http://eduardovianna.com
Description: Tema personalizado para AmaLabs - Laboratório de Análises Clínicas. Design limpo, médico e profissional.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: health, medical, laboratory, responsive, clean
*/

:root {
    --primary-color: #00b894;
    /* Medical Green */
    --secondary-color: #0984e3;
    /* Trust Blue */
    --accent-color: #55efc4;
    /* Light Green */
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

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

a:hover {
    color: var(--primary-color);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    flex-direction: column;
    /* Stack top and bottom rows */
    justify-content: center;
    height: auto;
    padding: 0;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    gap: 20px;
}

.header-bottom-row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    padding: 0;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* Custom Logo Image */
.site-branding .custom-logo-link img,
.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    /* Center menu items */
    gap: 30px;
    margin: 0;
    padding: 15px 0;
    /* Add padding to row */
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.05) 0%, rgba(0, 184, 148, 0.1) 100%);
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    /* Context for overlay */
}

/* Hero Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: var(--hero-overlay-opacity, 0);
    /* Dynamic Opacity */
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Lift above overlay */
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--hero-text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: var(--hero-text-color);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f0f4f8;
    /* Very light blueish grey */
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

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

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: #2d3436;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.footer-widget p {
    color: #b2bec3;
    font-size: 15px;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #636e72;
}

.site-info {
    color: #b2bec3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #00a884;
    /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .main-navigation {
        display: none;
        /* Mobile menu would require JS implementation or plugin */
    }
}

/* Hero Specific Button Styles */
.hero-section .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.hero-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-section .btn-secondary {
    border-color: var(--hero-text-color);
    color: var(--hero-text-color);
}

.hero-section .btn-secondary:hover {
    background-color: var(--hero-text-color);
    color: var(--secondary-color);
}

/* Header Actions / Cart */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-cart {
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart:hover {
    color: var(--primary-color);
}

.cart-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 2px solid var(--white);
}

@media (max-width: 768px) {
    .header-actions {
        margin-left: auto;
        /* Push to right on mobile if nav is hidden */
    }
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

.products-section .woocommerce ul.products li.product {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.products-section .woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.products-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 15px 0 10px;
    padding: 0;
}

.products-section .woocommerce ul.products li.product .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.products-section .woocommerce ul.products li.product .button {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.products-section .woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header Search */
.header-search {
    flex-grow: 1;
    margin: 0 40px;
    max-width: 600px;
}

.woocommerce-product-search {
    display: flex;
    position: relative;
    width: 100%;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 44px;
}

.header-search .search-field::placeholder {
    color: #b2bec3;
}

.header-search .search-field:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(9, 132, 227, 0.1);
}

.header-search button[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    height: 44px;
    width: 44px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-search button[type="submit"]:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Button */
#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    margin-left: 20px;
}

@media (max-width: 900px) {
    #mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        padding: 15px 30px;
        /* Increased horizontal padding */
    }

    .header-top-row {
        flex-wrap: wrap;
        /* Allow searching to drop */
    }

    .site-branding {
        flex: 1;
        /* Logo takes available left space */
    }

    .header-actions {
        order: 2;
        /* Logo (1), Actions (2) */
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 15px 0 0;
        flex-basis: 100%;
        /* Force new line */
    }

    .header-bottom-row {
        border-top: none;
        /* remove separator on mobile if stacked */
    }

    /* Mobile Navigation */
    .main-navigation {
        display: none;
        width: 100%;
        background: var(--white);
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .main-navigation a {
        display: block;
        padding: 15px;
    }
}

/* Ajax Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid #dfe6e9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.search-results-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-dropdown li {
    border-bottom: 1px solid #f1f2f6;
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.search-results-dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.search-thumb {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-title {
    font-size: 14px;
    font-weight: 500;
}

.search-loading,
.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Product Page Layout */
.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
    width: 25%;
    display: inline-block;
}

.woocommerce div.product .product_title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.woocommerce div.product p.price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.woocommerce div.product form.cart .button {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #00a884;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.woocommerce div.product .woocommerce-tabs .panel {
    border-radius: 0;
    box-shadow: none;
    padding: 30px 0;
}

/* Related Products */
.related.products h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* UI Improvements */
.section-content-narrow {
    max-width: 700px !important;
    margin: 0 auto;
    line-height: 1.8;
}

.modern-card {
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

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

.modern-card.bg-white {
    background-color: #ffffff;
}

.modern-card.bg-gray {
    background-color: #f8f9fa;
}

.hero-text-shadow h1,
.hero-text-shadow p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cta-grid {
    align-items: center;
}