/* ==========================================================================
Fonte Da Vida - Contact Page Styles
Description: Specific styles for the Contact page, including headers,
general contact overrides, and the team department cards.
========================================================================== */

/* --------------------------------------------------------------------------
Page Header & Layout Adjustments
-------------------------------------------------------------------------- */
.page-header.animated-header {
    position: relative;
    overflow: hidden;
    padding: 200px 24px 140px;
    z-index: 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ph-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -99;
    transform: scale(1.0);
    animation: slowPan 25s linear infinite alternate;
}

@keyframes slowPan {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.15) translate(-1%, 1%); }
}

.ph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -98;
}

.ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.ph-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.ph-breadcrumb a:hover {
    color: #fff;
}

.ph-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ph-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ph-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force white text and white logo when navbar is transparent at top, in BOTH modes */
.navbar:not(.scrolled) .logo-light { display: none !important; }
.navbar:not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .btn-ghost,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-btn .lang-text {
    color: #ffffff !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.navbar:not(.scrolled) .nav-links a { display: inline-block; }
.navbar:not(.scrolled) .lang-btn { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .theme-toggle { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .btn-ghost { background: transparent !important; }
.navbar:not(.scrolled) .nav-toggle span { background: #ffffff !important; }

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .btn-ghost:hover,
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    background: transparent !important;
}
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace; 
    position: relative; 
    z-index: 1;
}

.breadcrumb a { 
    color: var(--text-muted); 
    transition: color 0.3s; 
}

.breadcrumb a:hover { 
    color: var(--text-primary); 
}

.breadcrumb .bc-sep { 
    opacity: 0.4; 
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
}
/* --------------------------------------------------------------------------
02. Department Grid Section
-------------------------------------------------------------------------- */
.team-contact-section {
background: linear-gradient(180deg, var(--deep-space) 0%, var(--surface-1) 100%);
border-top: 1px solid var(--border-subtle);
padding-bottom: 120px;
}
.department-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.dept-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-mode .dept-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* The glare sweep pseudo-element */
.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    pointer-events: none;
    z-index: 10;
}

.light-mode .dept-card::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6) 50%, transparent);
}

.dept-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.15);
}

.light-mode .dept-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 30px 60px rgba(15, 23, 42, 0.1), 0 0 30px rgba(59, 130, 246, 0.1);
}

.dept-card:hover::before {
    left: 150%;
}
/* Card Header */
.dept-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.light-mode .dept-header {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.dept-avatar {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 10px rgba(59, 130, 246, 0.2), 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.light-mode .dept-avatar {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.5));
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(59, 130, 246, 0.1);
}

.dept-card:hover .dept-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: inset 0 2px 15px rgba(59, 130, 246, 0.4), 0 15px 30px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}
.avatar-initials {
color: var(--accent);
font-weight: 800;
font-size: 16px;
letter-spacing: 0.05em;
font-family: 'JetBrains Mono', monospace;
}
.dept-info h3 {
font-size: 18px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 4px;
}
.dept-info span {
font-size: 12.5px;
color: var(--text-muted);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
font-family: 'JetBrains Mono', monospace;
display: block;
}
/* Card Body */
.dept-body {
flex: 1;
display: flex;
flex-direction: column;
}
.dept-desc {
font-size: 14.5px;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 24px;
flex: 1;
}
.dept-links {
display: flex;
flex-direction: column;
gap: 10px;
}
.dept-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.light-mode .dept-link {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}

.dept-link svg {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dept-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.light-mode .dept-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.dept-link:hover svg {
    transform: scale(1.2) rotate(-10deg);
    color: #60A5FA;
}
/* --------------------------------------------------------------------------
03. Copy Toast Notification
-------------------------------------------------------------------------- */
.copy-toast {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: var(--surface-1);
border: 1px solid var(--border-subtle);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
padding: 12px 20px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 9999;
white-space: nowrap;
min-width: 180px;
justify-content: center;
}
.light-mode .copy-toast {
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.copy-toast svg {
color: var(--green);
}
.copy-toast.show {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
/* --------------------------------------------------------------------------
04. Responsive Adjustments
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
.department-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.dept-card:last-child:nth-child(odd) {
grid-column: 1 / -1;
justify-self: center;
width: calc(50% - 12px);
}
}
@media (max-width: 768px) {
.page-header { padding: 130px 0 60px; }
.department-grid {
grid-template-columns: 1fr;
max-width: 450px;
margin: 0 auto;
}
}