/* =============================================================
   Custom overrides — Marcelo Frau personal site
   Palette:
     Terracotta  #B85C38  — primary accent
     Terracotta dark #8C3F22 — hover variant
     Blue        #1A6B9A  — complementary
     Frost       #E8F4F8  — very light blue (icon bg)
   ============================================================= */

/* ── Typography — Fraunces (display) + Inter (body) ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

body,
p, li, span, div,
input, textarea, button {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4,
.site-title,
.hp-main-title,
.item-title,
.section-title {
    font-family: 'Fraunces', Georgia, serif !important;
    letter-spacing: -0.02em;
}

.site-title {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 700;
}

.hp-main-title {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 700;
    font-size: 2.8em;
}

.sp-subtitle {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85em;
    color: #B85C38 !important;
}

#nav li a {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8em;
}

.section-title {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600;
}

.block-title h3 {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9em;
}

.item-title {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600;
}

.item-period {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 300;
    font-size: 0.85em;
}

.skills-info h4 {
    font-family: 'Bricolage Grotesque', Helvetica, sans-serif !important;
    font-weight: 500;
    font-size: 0.85em;
}

.ci-text h4 {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600;
}

/* ── Buttons ── */
.btn-primary {
    background-color: #B85C38 !important;
    border-color: #B85C38 !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #8C3F22 !important;
    border-color: #8C3F22 !important;
    color: #fff !important;
}

/* ── Nav menu active + hover ── */
#nav li.active a,
#nav li a:hover {
    border-right-color: #B85C38 !important;
    color: #B85C38 !important;
}
.site-main-menu li.active a:after {
    background-color: #B85C38 !important;
}

/* ── Social links hover ── */
.header .social-links a:hover {
    background-color: #B85C38 !important;
    color: #fff !important;
}

/* ── Subtitle (rotating text) ── */
.sp-subtitle {
    color: #B85C38 !important;
}

/* ── Section headings h3 — blue left border ── */
.block-title h3 {
    border-left: 4px solid #1A6B9A;
    padding-left: 10px;
    color: #1A6B9A;
}

/* ── h3 underline bar ── */
.block-title h3:after,
h3.comment-reply-title:after {
    background-color: #B85C38 !important;
}

/* ── Section title h2 ── */
.section-title {
    color: #1A6B9A;
}
.section-title-block h2::after {
    background-color: #B85C38 !important;
}

/* ── Competency icon backgrounds ── */
.ci-icon img {
    border-radius: 50%;
    padding: 12px;
    background-color: #E8F4F8;
    box-sizing: content-box;
    box-shadow: 0 2px 8px rgba(26, 107, 154, 0.15);
    transform: scale(0.72);
    transform-origin: left center;
}

/* ── Coding skill bars ── */
.skill-percentage {
    background-color: #B85C38 !important;
}
.skills-second-style .skill-container {
    border-color: #B85C38 !important;
}

/* ── Timeline ── */
.timeline::before {
    background-color: #1A6B9A !important;
}
.timeline-item::before {
    background-color: #B85C38 !important;
    border-color: #1A6B9A !important;
}
.timeline-second-style .divider:after {
    border-color: #B85C38 !important;
}

/* ── Contact info block ── */
.lm-info-block i { color: #1A6B9A; }
.lm-info-block h4 { color: #1A6B9A; }

/* ── Experience company name ── */
.item-company { color: #1A6B9A; }

/* ── Bullet markers — círculo terracota ── */
.professional-summary,
.professional-summary li {
    list-style: none !important;
    list-style-type: none !important;
}
.professional-summary { padding-left: 1.4em; }
.professional-summary li { position: relative; }
.professional-summary li::before {
    content: "";
    position: absolute;
    left: -1.2em;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #B85C38;
}

/* ── Form focus ── */
.form-control + .form-control-border { background: #B85C38 !important; }
input:focus, textarea:focus {
    border-bottom-color: #B85C38 !important;
}

/* ── Preloader spinner — azul ── */
.preloader-spinner {
    background-color: transparent !important;
    border: 3px solid #E8F4F8 !important;
    border-top-color: #1A6B9A !important;
    border-radius: 50% !important;
    animation: spinnerRotate 0.8s linear infinite !important;
}
@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar-thumb { background: #1A6B9A; }
::-webkit-scrollbar-thumb:hover { background: #B85C38; }

/* =============================================================
   Animations & Transitions
   ============================================================= */

/* ── Global smooth transitions on interactive elements ── */
a, .btn, .btn-primary, .social-links a, .lm-info-block,
.info-block-w-icon, .ci-icon img, .skill-percentage,
#nav li a {
    transition: all 0.25s ease !important;
}

/* ── Buttons — lift on hover ── */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.35) !important;
}

/* ── Social icons — scale on hover ── */
.social-links a:hover {
    transform: scale(1.15) !important;
}

/* ── Competency blocks — lift on hover ── */
.info-block-w-icon {
    border-radius: 6px;
    padding: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease !important;
}
.info-block-w-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26, 107, 154, 0.12);
}
.info-block-w-icon:hover .ci-icon img {
    transform: scale(0.82) !important;
}

/* ── Elements hidden before anim-ready ── */
.info-block-w-icon,
.timeline-item,
.block-title h3,
.section-title,
.lm-info-block,
.professional-summary li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* ── anim-ready: element becomes visible ── */
.anim-ready {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Skill bars — só cor, sem forçar width ── */
.skill-percentage {
    transition: background-color 0.3s ease !important;
}

/* ── Profile photo ── */
.my-photo img {
    transition: box-shadow 0.3s ease;
}
.my-photo img:hover {
    box-shadow: 0 0 0 4px #B85C38, 0 0 0 8px rgba(184,92,56,0.15);
}

/* ── lm-info-block (contact) — lift on hover ── */
.lm-info-block:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(26, 107, 154, 0.12);
}

