/* ================================================
   VETRINA WHITE — Pure minimal, all white, black type
   ================================================ */

:root {
    --black: #000;
    --dark: #111;
    --gray: #666;
    --light: #999;
    --border: #e0e0e0;
    --white: #fff;
    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --max-w: 1100px;
    --transition: 0.25s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}
a { color: var(--dark); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ===========================
   NAVBAR — thin, white, fixed
   =========================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 2.5rem;
}
.nav-brand {
    font-size: 0.9rem; font-weight: 600; color: var(--black);
    text-decoration: none; letter-spacing: -0.01em;
}
.nav-logo { height: 28px; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-size: 0.8rem; color: var(--gray); font-weight: 400;
    transition: color var(--transition);
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--black); }

/* Hamburger — two lines */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 24px; height: 16px; position: relative; padding: 0;
}
.nav-toggle span {
    display: block; width: 100%; height: 1.5px; background: var(--black);
    position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }
.nav-toggle.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; background: var(--white); z-index: 99;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner { text-align: center; }
.mobile-menu-inner a {
    display: block; font-size: 1.5rem; font-weight: 300;
    color: var(--dark); padding: 0.8rem 0;
    transition: opacity var(--transition);
    letter-spacing: -0.02em;
}
.mobile-menu-inner a:hover { opacity: 0.4; }

/* ===========================
   HERO — big type, white bg
   =========================== */
.hero {
    padding: 10rem 0 6rem;
    border-bottom: 1px solid var(--border);
    background: url('/media/site/hero.jpg') center/cover no-repeat;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero .btn {
    background: #fff;
    color: var(--black);
    border-color: #fff;
}
.hero .btn:hover {
    background: transparent;
    color: #fff;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    max-width: 700px;
    margin-bottom: 1.5rem;
    color: #fff;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* === Button === */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.btn:hover {
    background: var(--white);
    color: var(--black);
}
.btn-outline {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--black);
}

/* === Sections === */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}
.label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--light);
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--black);
}
.body-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.link-arrow {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--black);
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
    transition: opacity var(--transition);
}
.link-arrow:hover { opacity: 0.5; }

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* === Services — numbered list === */
.services-list {
    margin-top: 1rem;
}
.service-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-num {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--light);
    min-width: 2rem;
    padding-top: 0.2rem;
    font-variant-numeric: tabular-nums;
}
.service-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.service-desc {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
}

/* === Team === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}
.team-photo {
    margin-bottom: 1rem;
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}
.team-photo:hover img { filter: grayscale(0%); }
.team-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}
.team-role {
    font-size: 0.8rem;
    color: var(--light);
}

/* === CTA === */
.section-cta {
    border-bottom: none;
    text-align: center;
    padding: 6rem 0;
}
.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--black);
}

/* === Page header (inner pages) === */
.page-header {
    padding: 8rem 0 3rem;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* === Footer === */
.footer {
    padding: 3rem 0 0;
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem 2rem;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 1.5rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand { font-size: 0.9rem; font-weight: 600; color: var(--black); }
.footer-tagline { font-size: 0.8rem; color: var(--light); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.78rem; color: var(--gray);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--black); }
.footer-bottom {
    max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 2.5rem;
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--border);
    font-size: 0.72rem; color: var(--light);
}
.footer-bottom a { color: var(--light); }
.footer-bottom a:hover { color: var(--dark); }

/* === WhatsApp FAB === */
.whatsapp-fab {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 90; transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* === Contact form === */
.contact-form { max-width: 500px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.4rem; color: var(--gray);
}
.form-group input, .form-group textarea {
    width: 100%; padding: 0.6rem 0; font-family: var(--font);
    font-size: 0.9rem; border: none; border-bottom: 1px solid var(--border);
    background: transparent; color: var(--dark); outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-feedback { display: none; padding: 0.75rem; margin-top: 1rem; font-size: 0.82rem; }
.form-feedback.success { color: #2d7d46; background: #f0faf0; }
.form-feedback.error { color: #c62828; background: #fef0f0; }

/* === Responsive === */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .nav-inner { padding: 0 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero { padding: 7rem 0 4rem; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 0.95rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.6rem; }
    .service-row { gap: 1.2rem; padding: 1.5rem 0; }
    .service-title { font-size: 1rem; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .page-header { padding: 6rem 0 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .footer-inner { flex-direction: column; padding: 0 1.5rem 1.5rem; }
    .footer-bottom { padding: 1.5rem; }
    .cta-title { font-size: 1.8rem; }
    .section-cta { padding: 4rem 0; }
    .mobile-menu-inner a { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .nav-inner { padding: 0 1.25rem; height: 48px; }
    .hero { padding: 6rem 0 3rem; }
    .hero-title { font-size: 1.7rem; }
    .section { padding: 3rem 0; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-inner { padding: 0 1.25rem 1.25rem; }
    .footer-bottom { padding: 1.25rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* === Page content (inner pages) === */
.page-content { max-width: var(--max-w); margin: 0 auto; padding: 3rem 2.5rem; }
.page-content h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 2rem 0 0.75rem; }
.page-content h3 { font-size: 1.15rem; font-weight: 500; margin: 1.5rem 0 0.5rem; }
.page-content p { color: var(--gray); line-height: 1.8; margin-bottom: 1.25rem; font-size: 0.95rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-desc { font-size: 0.95rem; line-height: 1.8; color: var(--gray); margin-bottom: 1.5rem; }
.values-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.value-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.8rem; border: 1px solid var(--border); color: var(--gray); }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.location-card { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.location-name { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; }
.location-address, .location-detail { font-size: 0.88rem; color: var(--gray); margin-bottom: 0.25rem; }
.team-card { text-align: left; }
.team-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 1/1; background: #f5f5f5;
    font-size: 2rem; color: var(--light);
}

@media (max-width: 768px) {
    .about-preview { grid-template-columns: 1fr; gap: 1.5rem; }
    .page-content { padding: 2.5rem 1.5rem; }
}

/* === Anti-overflow: prevent horizontal scroll on mobile === */
main { overflow-x: hidden; max-width: 100vw; }
canvas { max-width: 100% !important; height: auto !important; }
table { max-width: 100%; overflow-x: auto; display: block; }
iframe { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; }
.chart-container, [class*="chart"] { max-width: 100%; overflow: hidden; }

/* === Responsive overrides for AI-generated inline styles === */
@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(3"],[style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    [style*="padding:36px 32px"],[style*="padding: 36px 32px"],
    [style*="padding:32px"],[style*="padding: 32px"] { padding: 16px 12px !important; }
    [style*="padding:24px 28px"],[style*="padding: 24px 28px"] { padding: 16px 14px !important; }
    [style*="font-size:2.5rem"],[style*="font-size: 2.5rem"] { font-size: 1.6rem !important; }
    [style*="font-size:2.2rem"],[style*="font-size: 2.2rem"] { font-size: 1.4rem !important; }
    [style*="display:flex"],[style*="display: flex"] { flex-wrap: wrap !important; }
    table { display: block !important; overflow-x: auto !important; max-width: 100% !important; }
    div[style*="max-width:1200px"],div[style*="max-width: 1200px"] { padding-left: 16px !important; padding-right: 16px !important; }
    canvas { max-width: 100% !important; height: auto !important; }
}

/* === Table mobile font reduction === */
@media (max-width: 768px) {
    table th, table td { font-size: 0.7rem !important; padding: 8px 6px !important; }
}
@media (max-width: 480px) {
    table th, table td { font-size: 0.6rem !important; padding: 6px 4px !important; }
}
