@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #1a1a1a;
    --secondary: #a68a61; /* Subtle Gold/Brass */
    --bg: #ffffff;
    --surface: #fdfdfd;
    --text: #4a4a4a;
    --border: #eeeeee;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased; 
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary); 
    font-weight: 400; 
    letter-spacing: -0.5px;
}

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

/* Header & Nav */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

nav ul { display: flex; list-style: none; gap: 2.5rem; align-items: center; }

nav ul li a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

nav ul li a:hover { color: var(--secondary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    min-width: 200px;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.dropdown:hover.dropdown-content { display: block; }
.dropdown-content a {
    display: block;
    padding: 0.5rem 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}
.dropdown-content a:hover { background: var(--surface); color: var(--secondary); }

/* Main Layout */
main { max-width: 900px; margin: 5rem auto; padding: 0 2rem; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 5rem; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1rem; color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text); max-width: 600px; margin: 0 auto 2.5rem auto; font-weight: 300;}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--bg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary);
}
.btn:hover { background: transparent; color: var(--primary); }

/* Grid & Cards */
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem;}

.section-card {
    background: var(--surface);
    padding: 3.5rem 2.5rem;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}
.section-card:hover { transform: translateY(-5px); }
.section-card h2,.section-card h3 { margin-bottom: 1rem; font-size: 1.6rem; }
.section-card p { margin-bottom: 1.5rem; }

.link-arrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.comparison-table th,.comparison-table td { padding: 1.2rem; border-bottom: 1px solid var(--border); text-align: left; }
.comparison-table th { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--primary); }

/* Comparador Selectors */
.selector-container { display: flex; gap: 2rem; margin-bottom: 3rem; }
.select-group { flex: 1; }
.select-group label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; color: var(--secondary); }
select { width: 100%; padding: 1rem; border: 1px solid var(--border); background: var(--bg); font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--primary); outline: none; transition: border-color 0.3s; }
select:focus { border-color: var(--secondary); }

.string-data-card { background: var(--surface); padding: 3rem; border: 1px solid var(--border); }
.string-data-card h3 { margin-bottom: 2rem; border-bottom: 1px solid var(--secondary); padding-bottom: 1rem;}
.stat-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.stat-label { font-weight: 500; color: var(--primary); }

/* Visualizador PDF */
.pdf-container { width: 100%; height: 600px; border: 1px solid var(--border); margin-bottom: 2rem; background: var(--surface); }

/* Footer & WhatsApp Monograma Chic */
footer { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--border); margin-top: 5rem; font-size: 0.85rem; color: #999; }

.whatsapp-float {
    position: fixed; bottom: 35px; right: 35px; width: 55px; height: 55px;
    background: var(--primary); color: var(--bg); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-style: italic; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s; z-index: 9999;
}
.whatsapp-float:hover { transform: scale(1.05); background: var(--secondary); }

/* Responsividade */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 1rem; }
    nav ul { margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
   .grid-layout,.selector-container,.comparison-table { grid-template-columns: 1fr; flex-direction: column; display: block; }
   .hero h1 { font-size: 2.2rem; }
   .comparison-table td,.comparison-table th { display: block; width: 100%; }
}