/* 
   CONSTRUFORTE BAHIA - STYLE.CSS
   Mobile First Methodology
   Variables, Reset, Typography, Utilities, Components
*/

:root {
    /* Colors */
    --primary-color: #0d1926;
    /* Dark Blue - Official Primary */
    --secondary-color: #f68d21;
    /* Orange - Official Secondary */
    --accent-color: #f68d21;
    /* Orange - Highlights */
    --text-color: #333333;
    /* Dark Grey - Readability */
    --text-light: #F5F5F5;
    /* Light Grey - Backgrounds/Text */
    --white: #ffffff;
    /* Base White */
    --black: #000000;
    --grey-light: #E0E0E0;
    --grey-dark: #666666;

    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    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);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: #d67616;
    /* Darker Orange */
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #1a334d;
    /* Lighter Blue for visibility */
    transform: translateY(-2px);
}

.section {
    padding: var(--spacing-lg) 0;
}

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

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

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

/* =========================================
   COMPONENTS
   ========================================= */

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation - Mobile First */
.nav__toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    display: flex;
    gap: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav__menu.active {
    left: 0;
}

.nav__link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav__link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    /* Offset fixed header */
    background: linear-gradient(rgba(13, 25, 38, 0.9), rgba(13, 25, 38, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero__title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

/* Services Cards */
.services-grid {
    grid-template-columns: 1fr;
}

.card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    border-bottom: 4px solid var(--secondary-color);
}

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

.card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.card__title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

/* Features / Differentials */
.features {
    background-color: var(--text-light);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Product of Entry (Portão Airless) */
.highlight-product {
    background-color: var(--primary-color);
    color: var(--white);
}

.highlight-product h2 {
    color: var(--white);
}

.highlight-product .btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.highlight-product .btn:hover {
    background-color: #d67616;
}

/* Portfolio Gallery */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--grey-light);
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer__links li {
    margin-bottom: var(--spacing-xs);
}

.footer__links a:hover {
    color: var(--accent-color);
}

.footer__bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 30px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 70px;
}

.page-header h1 {
    color: var(--white);
}

/* Utilities Extended */
.bg-light {
    background-color: var(--grey-light);
}

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

.card-primary .card__title {
    color: var(--white);
}

.link-more {
    color: var(--secondary-color);
    /* Changed to secondary for better visibility/action */
    font-weight: bold;
    margin-top: 1rem;
    display: block;
}

.link-more:hover {
    text-decoration: underline;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }

    .hero__title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}