/*
Theme Name: Curasio Custom Theme
Theme URI: https://curasio.com.br
Author: Your Name
Description: 专为 CURASiO 定制的巴西风格高自由度 WordPress 主题。
Version: 1.8
Text Domain: curasio
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    line-height: 1.7;
    background: linear-gradient(135deg, #f4f7f6 0%, #ebf1f5 100%);
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ================= 1. 头部 Header & 汉堡菜单 ================= */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #002776;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 39, 118, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    padding: 0;
    z-index: 1100;
}
.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #002776;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle-btn:hover span {
    background-color: #009b3a;
}

.site-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.main-navigation ul { display: flex; gap: 25px; }
.main-navigation a { font-weight: 600; color: #002776; font-size: 14px; }
.main-navigation a:hover { color: #009b3a; }

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 1200;
    transition: left 0.3s ease-in-out;
    padding: 30px 20px;
}
.mobile-drawer.open { left: 0; }
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #002776;
    padding-bottom: 10px;
}
.drawer-header h3 { font-size: 16px; color: #002776; }
.drawer-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}
.drawer-menu li { margin-bottom: 15px; }
.drawer-menu a {
    font-size: 15px;
    font-weight: 600;
    color: #002776;
    display: block;
    padding: 5px 0;
}
.drawer-menu a:hover { color: #009b3a; }

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1150;
    display: none;
}
.drawer-overlay.active { display: block; }


/* ================= 2. 首页核心板块 ================= */
.home-section { padding: 40px 0; }
.home-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #002776;
    border-left: 5px solid #009b3a;
    padding-left: 12px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.solution-card-link { display: block; text-decoration: none; }
.solution-card {
    background: #55acee; /* 图二的淡蓝色背景 */
    border: 1px solid #4196d4;
    border-radius: 8px;
    padding: 22px 10px; /* 纵向拉长 1/2 */
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.solution-card:hover {
    transform: translateY(-5px);
    border-color: #fedf00;
    box-shadow: 0 10px 20px rgba(0, 39, 118, 0.15);
}
.solution-card img {
    width: 68px; /* 图标放大 1/2 */
    height: 68px; /* 图标放大 1/2 */
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}
.solution-card:hover img { transform: scale(1.08); }
.solution-card h3 { 
    font-family: '兰亭黑简', -apple-system, BlinkMacSystemFont, sans-serif; 
    font-size: 20px; /* 适中的字号：比第一版大，比第二版小 */
    color: #ffffff; 
    font-weight: 600;
    line-height: 1.35;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.team-member {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    align-items: center;
}
.team-member img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #009b3a;
    flex-shrink: 0;
}
.team-info h3 { color: #002776; margin-bottom: 6px; font-size: 17px; }
.team-info p { font-size: 12px; color: #4a5568; line-height: 1.5; }

/* 关于 Curasio 模块样式 */
.about-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.about-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* ================= 3. 页脚上方独立 Menu 栏 ================= */
.pre-footer-menu {
    background: #002157;
    border-top: 2px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.pre-footer-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.pre-footer-title {
    color: #fedf00;
    font-size: 15px;
    font-weight: bold;
}
.pre-footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.pre-footer-links a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.pre-footer-links a:hover {
    color: #fedf00;
}


/* ================= 4. 页脚 Footer (四列并排) ================= */
.site-footer {
    background: #001848;
    color: #cbd5e1;
    padding: 40px 0 20px;
    border-top: 4px solid #fedf00;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 2px solid #009b3a;
    padding-bottom: 4px;
    display: inline-block;
}
.footer-col p, .footer-col li { font-size: 12px; margin-bottom: 6px; }
.footer-col ul li a:hover { color: #fedf00; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 11px;
    color: #94a3b8;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .solutions-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pre-footer-menu-container { flex-direction: column; align-items: flex-start; }
}