/* ==========================================================================
   Rolim Instrumentos — home.css
   Página inicial: hero, fatos, sobre, modelos + modal, avaliações, redes, CTA.
   ========================================================================== */

/* ----- Hero -------------------------------------------------------------- */
.hero {
    position: relative;
    height: clamp(540px, 92vh, 860px);
    overflow: hidden;
    background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero-slides img.active { opacity: 1; }

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 20, 9, .55) 0%, rgba(36, 20, 9, .35) 45%, rgba(36, 20, 9, .82) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F7F1E5;
    padding: 2rem 20px;
}
.hero-brand {
    margin: 0 0 .4rem;
    line-height: 1;
}
.hero-brand .hero-rolim {
    font-family: var(--font-hand);
    font-size: clamp(4rem, 10vw, 6.5rem);
    color: #F7F1E5;
    display: block;
    text-shadow: 0 2px 18px rgba(36, 20, 9, .5);
}
.hero-name {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    letter-spacing: .45em;
    text-transform: uppercase;
    text-indent: .45em;
    margin: 0 0 1.4rem;
}
.hero-tagline {
    max-width: 620px;
    margin: 0 0 2.4rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(247, 241, 229, .4);
    border-bottom: 1px solid rgba(247, 241, 229, .4);
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(247, 241, 229, .95);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.hero .btn-primary { background: var(--amber); }
.hero .btn-outline {
    color: #F7F1E5;
    border-color: rgba(247, 241, 229, .65);
}
.hero .btn-outline:hover, .hero .btn-outline:focus-visible {
    background: #F7F1E5;
    color: var(--brown);
}

.hero-dots {
    position: absolute;
    z-index: 1;
    bottom: 1.6rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.1rem;
}
.hero-dots button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: .3rem;
    color: rgba(247, 241, 229, .55);
    font-size: .8rem;
    line-height: 1;
    transition: color .25s ease;
}
.hero-dots button::before { content: "◆"; }
.hero-dots button.active, .hero-dots button:hover { color: var(--amber-light); }
.hero-dots button:focus-visible { outline: 1px dashed rgba(247, 241, 229, .7); outline-offset: 2px; }

/* ----- Faixa de fatos ------------------------------------------------------ */
.facts {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.facts ul {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 0;
    text-align: center;
}
.facts li {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brown);
    padding: 0 1.4rem;
    position: relative;
}
.facts li + li::before {
    content: "◆";
    position: absolute;
    left: -.55em;
    top: .1em;
    color: var(--amber);
    font-size: .7rem;
}

/* ----- Cabeçalho de seção ---------------------------------------------------- */
.section-pad { padding: 4.2rem 0; }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-head h2 { margin-bottom: .8rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ----- Sobre ------------------------------------------------------------------ */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-text p { text-align: justify; }
.about-text .lead {
    font-size: 1.12rem;
    color: var(--brown);
}

.logo-oval {
    width: min(300px, 70%);
    margin: 0 auto;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 14px 40px rgba(36, 20, 9, .16);
}
.logo-oval img {
    width: 100%;
    border-radius: 50%;
    display: block;
}

.signature {
    text-align: center;
    margin-top: 2.2rem;
}
.signature .signature-name {
    font-family: var(--font-hand);
    font-size: 2.8rem;
    color: var(--brown);
    margin: 0;
    line-height: 1.1;
}
.signature .signature-role {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--amber);
    margin: .3rem 0 0;
}

/* ----- Modelos ------------------------------------------------------------------ */
.models { background: #F2EADA; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}
.model-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.2rem 1.2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.model-card:hover, .model-card:focus-within {
    box-shadow: 0 16px 36px rgba(36, 20, 9, .14);
    transform: translateY(-4px);
}
.model-card-img {
    background: var(--ivory);
    border: 1px solid var(--line);
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.1rem;
}
.model-card-img img {
    max-width: 88%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.model-card h3 {
    font-size: 1.25rem;
    margin: 0 0 .3rem;
}
.model-card .model-level {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 1.1rem;
}
.model-card .btn { margin-top: auto; font-size: .72rem; padding: .8rem 1.2rem; }

/* ----- Modal de modelos ----------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(36, 20, 9, .78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.modal {
    background: var(--paper);
    border-top: 4px solid var(--amber);
    width: min(880px, 100%);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 2.4rem 2.4rem 2rem;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.modal-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--brown);
    cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { background: var(--amber); border-color: var(--amber); color: #fff; }

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2.2rem;
    align-items: start;
}
.modal-img {
    border: 1px solid var(--line);
    background: var(--ivory);
    padding: 10px;
}
.modal-img img { width: 100%; display: block; }
.modal h3 {
    font-size: 1.7rem;
    margin: 0 0 .9rem;
}
.modal-counter {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 .4rem;
}
.modal .modal-instruments {
    font-style: italic;
    margin-bottom: 1.2rem;
}
.modal .modal-level { margin-bottom: 1.6rem; }
.modal h4 {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 .8rem;
}
.modal ul.materials {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}
.modal ul.materials li {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(77, 33, 2, .1);
    font-size: .95rem;
}
.modal ul.materials li strong { color: var(--brown); }
.modal-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}
.modal-nav button {
    background: none;
    border: 1px solid var(--amber);
    color: var(--brown);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .75rem 1.4rem;
    cursor: pointer;
}
.modal-nav button:hover, .modal-nav button:focus-visible {
    background: var(--amber);
    color: #fff;
}
body.modal-open { overflow: hidden; }

/* ----- Avaliações -------------------------------------------------------------------- */
.reviews { background: var(--ivory); }
.carousel {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.review { display: none; }
.review.active { display: block; animation: review-in .45s ease; }
@keyframes review-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.review blockquote {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 2.7vw, 1.7rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--brown);
    quotes: none;
}
.review blockquote::before {
    content: "“";
    display: block;
    font-size: 4.5rem;
    line-height: .6;
    color: var(--amber);
    margin-bottom: 1.1rem;
}
.review figcaption, .review .review-source {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber);
    margin-top: 1.6rem;
}
.review figcaption::before, .review .review-source::before {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    border-top: 1px solid var(--amber);
    border-bottom: 1px solid var(--line);
    margin: 0 auto .9rem;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2.4rem;
}
.carousel-controls button.arrow {
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    color: var(--brown);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.carousel-controls button.arrow:hover, .carousel-controls button.arrow:focus-visible {
    border-color: var(--amber);
    color: var(--amber);
}
.carousel-dots {
    display: flex;
    gap: 1rem;
}
.carousel-dots button {
    background: none;
    border: 0;
    padding: .3rem;
    cursor: pointer;
    color: rgba(77, 33, 2, .35);
    font-size: .72rem;
    line-height: 1;
}
.carousel-dots button::before { content: "◆"; }
.carousel-dots button.active { color: var(--amber); }

/* ----- Faixa de redes (escura) --------------------------------------------------------- */
.social-strip {
    background: var(--dark);
    color: rgba(247, 241, 229, .85);
    text-align: center;
}
.social-strip .section-label { color: var(--amber-light); }
.social-strip .section-head h2 { color: #F7F1E5; }
.social-strip .section-head p { color: rgba(247, 241, 229, .8); }
.social-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    max-width: 880px;
    margin: 0 auto;
}
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    padding: 2.2rem 1.6rem;
    border: 1px solid rgba(247, 241, 229, .25);
    color: inherit;
    transition: border-color .25s ease, background .25s ease;
}
.social-card:hover, .social-card:focus-visible {
    border-color: var(--amber-light);
    background: rgba(247, 241, 229, .05);
    color: #F7F1E5;
}
.social-card svg { width: 30px; height: 30px; fill: var(--amber-light); }
.social-card span {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
}

/* ----- CTA final ------------------------------------------------------------------------ */
.cta-final { text-align: center; padding: 4.8rem 0 5.2rem; }
.cta-final .cta-question {
    font-family: var(--font-title);
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    font-weight: 600;
    font-style: italic;
    color: var(--brown);
    margin: 0 0 1rem;
}
.cta-final .section-label { margin-bottom: 1rem; }
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.2rem;
}

/* ----- Responsivo --------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .models-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.6rem; }
    .logo-oval { width: min(240px, 60%); }
    .section-pad { padding: 3rem 0; }
    .section-head { margin-bottom: 2.2rem; }
}

@media (max-width: 520px) {
    .models-grid { grid-template-columns: 1fr; }
    .social-cards { grid-template-columns: 1fr; max-width: 340px; }
    .facts li { padding: 0 .8rem; letter-spacing: .14em; }
    .facts li + li::before { left: -.7em; }
    .modal { padding: 1.8rem 1.4rem 1.6rem; }
}
