@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #0077b6; /* Azul do mar profundo */
    --primary-hover: #023e8a;
    --secondary: #fb8500; /* Pôr do sol Laranja */
    --secondary-hover: #e85d04;
    --accent: #ffb703; /* Amarelo sol */
    --bg-main: #f9fafb; /* Fundo muito claro, neutro */
    --bg-sand: #fdf0d5; /* Fundo areia/bege suave */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

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

/* ------------------- HEADER ------------------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-my { color: var(--text-main); }
.logo-commerce { color: var(--secondary); }

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 20px;
    display: none; /* Só mostra no desktop / escondido no mobile na home, ou mostrar condicional */
}
.header-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--bg-main);
    outline: none;
    font-family: 'Inter', sans-serif;
}
.header-search input:focus {
    border-color: var(--primary);
    background-color: var(--white);
}
.header-search::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.location-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}
.location-selector:hover { color: var(--primary); }
.location-selector .icon { color: var(--secondary); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-login { font-weight: 600; color: var(--text-main); }
.btn-login:hover { color: var(--primary); }
.btn-register { font-weight: 600; color: var(--text-muted); }
.btn-register:hover { color: var(--primary); }
.btn-announce {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(251, 133, 0, 0.3);
    transition: all 0.2s;
}
.btn-announce:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    color: var(--white);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* ------------------- HERO ------------------- */
.hero {
    position: relative;
    background-image: url('../img/pipa-hero-bg.jpg'); /* placeholder ideal, mas usaremos linear gradient se n tiver */
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    color: var(--white);
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.9) 0%, rgba(2, 62, 138, 0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}
.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
.hero-search-box {
    display: flex;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}
.hero-search-box input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    border-radius: 50px 0 0 50px;
    outline: none;
    color: var(--text-main);
}
.hero-search-box button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0 40px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-search-box button:hover {
    background: var(--secondary-hover);
}
.hero-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}
.hero-tags a { color: var(--white); }
.hero-tags a:hover { color: var(--accent); text-decoration: underline;}

/* ------------------- SECTIONS ------------------- */
.section-padding { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ------------------- CATEGORIES (CARDS) ------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    transition: all 0.3s;
}
.cat-card:hover .cat-icon-wrapper {
    background: var(--primary);
    color: var(--white);
}
.cat-card span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-main);
}

/* ------------------- FEATURED CARDS ------------------- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.f-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.f-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.f-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
    position: relative;
}
.f-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}
.f-card-body {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.f-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.f-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.f-status {
    font-weight: 700;
    font-size: 0.8rem;
}
.status-open { color: #10b981; }
.status-closed { color: #ef4444; }
.f-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}
.btn-view {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.f-card:hover .btn-view {
    background: var(--primary);
    color: var(--white);
}

/* ------------------- NEAR YOU ------------------- */
.near-you {
    background-color: var(--bg-sand);
}
.btn-location-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.3s;
}
.btn-location-action:hover { background: var(--primary-hover); }

/* ------------------- EXPERIENCES ------------------- */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.exp-card {
    height: 250px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    text-decoration: none;
}
.exp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.exp-card h3 {
    position: relative;
    z-index: 10;
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.exp-card:hover h3 { transform: translateY(-5px); }

/* ------------------- CLASSIFIEDS CTA ------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #ffb703 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 35px; opacity: 0.9;}
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;}
.btn-solid-white {
    background: var(--white);
    color: var(--secondary);
    padding: 15px 35px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}
.btn-solid-white:hover { background: var(--bg-main); transform: translateY(-2px); }
.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 35px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ------------------- FOOTER ------------------- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 20px;}
.footer-brand .logo-commerce { color: var(--secondary); }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 25px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 15px; }
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ------------------- MOBILE FIRST RESPONSIVE ------------------- */
@media (max-width: 992px) {
    .exp-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-nav, .header-search, .location-selector { display: none; }
    .menu-toggle { display: block; }
    
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-search-box { flex-direction: column; border-radius: var(--radius-md); background: transparent; box-shadow: none; padding: 0;}
    .hero-search-box input { border-radius: var(--radius-md); margin-bottom: 10px; padding: 18px; box-shadow: var(--shadow-sm);}
    .hero-search-box button { border-radius: var(--radius-md); padding: 18px; }
    
    .section-padding { padding: 50px 0; }
    .section-header h2 { font-size: 1.8rem; }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr; }
    
    .cta-banner { padding: 40px 20px; }
    .cta-banner h2 { font-size: 1.8rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px;}
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 400px) {
    .cta-actions .btn-solid-white, .cta-actions .btn-outline-white { width: 100%; }
}
