/* ==========================================================================
   Rolim Instrumentos Musicais — global.css
   Base compartilhada: paleta clássica, tipografia, cabeçalho, rodapé,
   botões, botão flutuante de WhatsApp e utilitários.
   ========================================================================== */

/* ----- Paleta e fontes ------------------------------------------------- */
:root {
    --amber:       #BC5D19;             /* acentos, botões, filetes        */
    --amber-light:  #D97E3D;             /* hover dos botões                */
    --brown:       #4D2102;             /* títulos                         */
    --ink:         #3A2A1B;             /* texto corrente                  */
    --ivory:       #F7F1E5;             /* fundo geral (marfim)             */
    --paper:       #FFFDF5;             /* cartões                         */
    --dark:        #241409;             /* faixas escuras / footer          */
    --line:        rgba(77, 33, 2, .15); /* filetes finos                    */
    --wa:          #25D366;             /* verde WhatsApp                   */
    --wa-dark:     #1DA851;

    --font-title: "Cormorant Garamond", Georgia, serif;
    --font-body:  "Lora", Georgia, serif;
    --font-hand:  "Parisienne", cursive;
}

/* ----- Reset e base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover, a:focus { color: var(--amber-light); }

p { margin: 0 0 1.25em; }

/* ----- Tipografia -------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--brown);
    line-height: 1.2;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }

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

/* Rótulo de seção: caixa alta com espaçamento largo */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: .6rem;
    text-align: center;
}

/* Filete duplo fino clássico */
.rule {
    border: 0;
    margin: 3rem auto;
    width: min(100%, 920px);
    text-align: center;
    overflow: visible;
}
.rule::before {
    content: "";
    display: block;
    height: 3px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Losango separador ◆ */
.diamond {
    color: var(--amber);
    font-size: .9rem;
    letter-spacing: .6em;
    text-align: center;
    margin: 2.5rem 0;
    user-select: none;
}

.text-hand {
    font-family: var(--font-hand);
    font-size: 2.2rem;
    color: var(--brown);
    font-weight: 400;
}

/* Moldura creme estilo programa de concerto */
.frame {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(36, 20, 9, .12);
}
.frame img { width: 100%; height: auto; }

/* ----- Layout ------------------------------------------------------------ */
.center {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* ----- Topbar ------------------------------------------------------------- */
.topbar {
    background: var(--dark);
    color: rgba(247, 241, 229, .85);
    font-size: .85rem;
}
.topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 42px;
    flex-wrap: wrap;
}
.topbar-phone a { color: inherit; }
.topbar-phone a:hover { color: #fff; }

.social-mini {
    display: inline-flex;
    gap: .9rem;
}
.social-mini a {
    color: inherit;
    display: inline-flex;
    padding: .35rem 0;
}
.social-mini a:hover { color: var(--amber-light); }
.social-mini svg { width: 17px; height: 17px; fill: currentColor; }

/* ----- Cabeçalho / navegação ---------------------------------------------- */
.site-header {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 40;
}
.nav-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .9rem 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    flex-shrink: 0;
}
.brand img { height: 64px; width: auto; }

.main-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 2.2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
    padding: .6rem .1rem;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--amber);
}
.main-nav a[aria-current="page"] {
    color: var(--brown);
    border-bottom-color: var(--amber);
}

/* Botão hambúrguer (mobile) */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .55rem .7rem;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brown);
    margin: 4px 0;
}
.nav-toggle .menu-opened {
    display: none;
}

/* ----- Botões -------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .95rem 2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary {
    background: var(--amber);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--amber-light);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--brown);
    border-color: var(--amber);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--amber);
    color: #fff;
}
.btn-wa {
    background: var(--wa);
    color: #fff;
}
.btn-wa:hover, .btn-wa:focus-visible {
    background: var(--wa-dark);
    color: #fff;
}

/* ----- Botão flutuante de WhatsApp ---------------------------------------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(36, 20, 9, .35);
    transition: background-color .25s ease, transform .25s ease;
}
.wa-float:hover, .wa-float:focus-visible {
    background: var(--wa-dark);
    transform: scale(1.06);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ----- Rodapé --------------------------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: rgba(247, 241, 229, .82);
    font-size: .92rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
.site-footer h3, .site-footer .footer-heading {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin: 0 0 1.1rem;
    font-weight: 600;
}
.footer-logo img { max-width: 150px; height: auto; opacity: .9; }
.footer-about p { margin-top: 1.2rem; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer a { color: rgba(247, 241, 229, .82); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--amber-light); }
.footer-links a {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.footer-links a:hover { border-bottom-color: var(--amber-light); }

.social-list {
    display: flex;
    gap: 1rem;
    margin-top: .4rem;
}
.social-list a {
    display: inline-flex;
    padding: .4rem;
    border: 1px solid rgba(247, 241, 229, .35);
    border-radius: 50%;
    color: rgba(247, 241, 229, .85);
}
.social-list a:hover, .social-list a:focus-visible {
    border-color: var(--amber-light);
    color: var(--amber-light);
}
.social-list svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
    border-top: 1px solid rgba(247, 241, 229, .15);
    padding: 1.3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    font-size: .82rem;
    flex-direction: column;
}
.footer-bottom a { color: var(--amber-light); }

/* ----- Utilitários --------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

/* ----- Responsivo ----------------------------------------------------------- */
@media (max-width: 760px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(36, 20, 9, .14);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: visibility 0s .25s, opacity .25s ease, transform .25s ease;
    }
    .main-nav.open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: .6rem 0;
    }
    .main-nav li { border-top: 1px solid var(--line); }
    .main-nav li:first-child { border-top: 0; }
    .main-nav a {
        display: block;
        padding: 1rem 1.6rem;
        border-bottom: 0;
        letter-spacing: .16em;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
    .topbar-in { justify-content: center; }
}

/* ----- Movimento reduzido ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
