/*
Theme Name: GregorioDev
Theme URI: https://gregoriodev.cl
Author: Gregório
Author URI: https://gregoriodev.cl
Description: Tema personalizado para portfólio de desenvolvimento web com cores chilenas.
Version: 1.0
License: GPL v2 or later
Text Domain: gregoriodev
*/

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    color: #1E293B;
    line-height: 1.6;
}

a {
    color: #0A2B5E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E63946;
}

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

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

/* ----- Header ----- */
.site-header {
    background-color: #0A2B5E;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.site-branding .logo span {
    color: #E63946;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    border-bottom-color: #E63946;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ----- Hero (Página Inicial) ----- */
.hero {
    background: linear-gradient(135deg, #0A2B5E 0%, #1A3F7A 100%);
    color: #FFFFFF;
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #E63946;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #E63946;
    color: #FFFFFF;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #C62828;
    transform: scale(1.03);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #FFFFFF;
    color: #0A2B5E;
}

/* ----- Seções Genéricas ----- */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #0A2B5E;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748B;
    margin-bottom: 50px;
}

/* ----- Serviços / Cards ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #FFFFFF;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #E63946;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 43, 94, 0.15);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0A2B5E;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0A2B5E;
}

/* ----- Projetos / Portfolio ----- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item .info {
    padding: 20px;
}

.portfolio-item .info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #0A2B5E;
}

/* ----- Footer ----- */
.site-footer {
    background-color: #0A2B5E;
    color: #FFFFFF;
    padding: 50px 0 20px;
}

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

.site-footer .footer-widgets h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #E63946;
}

.site-footer .footer-widgets ul {
    list-style: none;
}

.site-footer .footer-widgets ul li {
    margin-bottom: 10px;
}

.site-footer .footer-widgets ul li a {
    color: #CBD5E1;
}

.site-footer .footer-widgets ul li a:hover {
    color: #E63946;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #94A3B8;
}

.site-footer .footer-bottom span {
    color: #E63946;
}

/* ----- Responsividade ----- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
        background: #0A2B5E;
        padding: 15px 0;
        border-radius: 8px;
    }
    .main-navigation ul.show {
        display: flex;
    }
    .main-navigation ul li {
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }
    .btn-outline {
        margin-left: auto;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
}