/* ===== Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #222;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: 0.15s; }
.fade-up.d2 { transition-delay: 0.3s; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.d1 { transition-delay: 0.12s; }
.reveal.shown { opacity: 1; transform: none; }

/* ===== Navbar ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid #0d8a8a;
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img { height: 46px; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    padding: 7px 16px;
    position: relative;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #1a0a4e;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-link:hover { color: #1a0a4e; }
.nav-link.active {
    color: #1a0a4e;
    font-weight: 600;
}
.nav-link.active::after {
    transform: scaleX(1);
}

/* Hamburger */
.menu-btn {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
    display: block; width: 100%; height: 2px;
    background: #1a0a4e;
    position: absolute; left: 0;
    transition: 0.3s ease;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }
.menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile overlay + menu */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 98;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 300px; max-width: 80vw;
    height: 100vh; height: 100dvh;
    background: #fff;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.mobile-menu.open { transform: none; }
.mobile-menu-top { padding: 22px 28px; border-bottom: 1px solid #eee; }
.mobile-logo { height: 38px; }
.mobile-links { padding: 16px 0; }
.mobile-links a {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    transition: background 0.2s;
}
.mobile-links a:hover { background: #f5f4fa; color: #1a0a4e; }

/* ===== Hero ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92vh;
    margin-top: 76px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url('../images/hero.jpg') center/cover no-repeat;
    filter: blur(4px);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(26,10,78,0.68);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    padding: 60px 24px;
    color: #fff;
}
.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 14px;
}
.hero-desc {
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 300;
    opacity: 0.65;
}
.hero-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 40px;
    border: 1.5px solid #fff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.25s, color 0.25s;
}
.hero-btn:hover {
    background: #fff;
    color: #1a0a4e;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-gray { background: #f5f4f8; }
.section-light { background: #eeedf3; }
.section-dark { background: #151527; color: #fff; }

.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #1a0a4e;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 1px;
}
.section-title-left { text-align: left; }
.section-dark .section-title { color: #fff; }

.section-text {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 15px;
    color: #666;
    line-height: 1.85;
}

/* ===== About Cards ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
    margin: 0 auto;
}
.card {
    padding: 56px 40px;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
}
.card-purple { background: #3a2a74; }
.card-navy { background: #1a0a4e; }

.card h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.card-line {
    display: block;
    width: 40px;
    height: 1.5px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 20px;
}
.card p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
}

/* ===== Expertise ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.expertise-sub {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.expertise-right p {
    font-size: 15px;
    color: #666;
    line-height: 1.85;
    margin-bottom: 28px;
}
.btn {
    display: inline-block;
    padding: 16px 44px;
    background: #1a0a4e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s, transform 0.25s;
}
.btn:hover {
    background: #2c1a6c;
    transform: translateY(-1px);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 64px;
    max-width: 820px;
    margin: 36px auto 0;
}
.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    transition: padding-left 0.25s ease;
}
.service-item:hover {
    padding-left: 8px;
}
.arrow {
    color: #1a0a4e;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}
.service-item span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #1a0a4e;
}

/* ===== Why Choose ===== */
.why-list {
    max-width: 760px;
    margin: 48px auto 0;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 44px;
}
.why-item:last-child { margin-bottom: 0; }

.why-left { justify-content: flex-start; }
.why-right { justify-content: flex-end; }

.why-num {
    width: 72px; height: 72px;
    min-width: 72px;
    border-radius: 50%;
    background: #1a0a4e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-item:hover .why-num {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(26,10,78,0.2);
}
.why-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a0a4e;
    margin-bottom: 6px;
}
.why-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    max-width: 340px;
}

/* ===== Contact ===== */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}
.contact-left h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-left p {
    font-size: 15px;
    opacity: 0.6;
}
.contact-find {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 16px;
}
.socials { display: flex; gap: 12px; }
.social-link {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.social-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    background: #151527;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo { height: 40px; }
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .expertise-grid { gap: 36px; }
    .why-right { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .nav-links { display: none; }
    .menu-btn { display: block; }

    .hero { min-height: 75vh; }
    .section { padding: 72px 0; }

    .two-col { grid-template-columns: 1fr; }
    .card { padding: 40px 28px; }

    .expertise-grid { grid-template-columns: 1fr; gap: 20px; }

    .services-grid { grid-template-columns: 1fr; gap: 6px; }

    .why-num { width: 60px; height: 60px; min-width: 60px; font-size: 24px; }

    .contact-row { flex-direction: column; gap: 32px; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-inner { padding: 0 16px; height: 66px; }
    .logo-img { height: 38px; }

    .hero { min-height: 70vh; margin-top: 66px; }
    .hero h1 { font-size: 30px; }

    .section { padding: 56px 0; }
    .section-title { font-size: 22px; margin-bottom: 20px; }
    .section-text { font-size: 14px; margin-bottom: 40px; }

    .card { padding: 32px 20px; }
    .card h3 { font-size: 13px; }
    .card p { font-size: 13px; }

    .services-grid { margin-top: 24px; }
    .service-item span:last-child { font-size: 14px; }

    .why-list { margin-top: 32px; }
    .why-item { gap: 16px; margin-bottom: 32px; }
    .why-num { width: 52px; height: 52px; min-width: 52px; font-size: 20px; }
    .why-item h3 { font-size: 15px; }
    .why-item p { font-size: 13px; }

    .contact-left h2 { font-size: 26px; }
    .social-link { width: 42px; height: 42px; }

    .footer-logo { height: 34px; }
    .footer-copy { font-size: 12px; }

    .btn { padding: 14px 32px; font-size: 13px; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 26px; }
    .why-item { flex-direction: column; align-items: center; text-align: center; }
    .why-item p { max-width: 100%; }
}

/* ===== Blog ===== */
.blog-hero {
    padding: 140px 0 60px;
    background: #f5f4f8;
    margin-top: 76px;
}
.blog-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #1a0a4e;
    margin-bottom: 12px;
}
.blog-hero p {
    font-size: 15px;
    color: #666;
    max-width: 520px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.blog-card {
    display: block;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.blog-card-body {
    padding: 28px 28px 24px;
}
.blog-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0d8a8a;
    margin-bottom: 12px;
}
.blog-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a0a4e;
    line-height: 1.4;
    margin-bottom: 10px;
}
.blog-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
.blog-card-meta .author-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.blog-card-meta .author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.blog-card-meta .author-name {
    font-weight: 600;
    color: #444;
}
.blog-card-meta .author-title {
    font-size: 11px;
    color: #aaa;
}

/* Post Page */
.post-page {
    padding: 120px 0 80px;
    margin-top: 76px;
}
.post-page .post-back {
    opacity: 0;
    transform: translateX(-12px);
    animation: postSlideRight 0.5s ease 0.1s forwards;
}
.post-page .blog-card-tag {
    opacity: 0;
    transform: translateY(16px);
    animation: postFadeUp 0.5s ease 0.2s forwards;
}
.post-page h1 {
    opacity: 0;
    transform: translateY(16px);
    animation: postFadeUp 0.6s ease 0.3s forwards;
}
.post-page .post-date {
    opacity: 0;
    animation: postFade 0.5s ease 0.4s forwards;
}
.post-page .post-img {
    opacity: 0;
    transform: translateY(20px);
    animation: postFadeUp 0.6s ease 0.5s forwards;
}
.post-page .post-content p,
.post-page .post-content ul {
    opacity: 0;
    transform: translateY(14px);
    animation: postFadeUp 0.5s ease forwards;
}
.post-page .post-content p:nth-of-type(1) { animation-delay: 0.55s; }
.post-page .post-content p:nth-of-type(2) { animation-delay: 0.6s; }
.post-page .post-content p:nth-of-type(3) { animation-delay: 0.65s; }
.post-page .post-content p:nth-of-type(4) { animation-delay: 0.7s; }
.post-page .post-content p:nth-of-type(5) { animation-delay: 0.75s; }
.post-page .post-content p:nth-of-type(6) { animation-delay: 0.8s; }
.post-page .post-content p:nth-of-type(7) { animation-delay: 0.85s; }
.post-page .post-content ul { animation-delay: 0.7s; }

@keyframes postFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes postFade {
    to { opacity: 1; }
}
@keyframes postSlideRight {
    to { opacity: 1; transform: translateX(0); }
}
.post-back {
    display: block;
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 13px;
    font-weight: 600;
    color: #1a0a4e;
}
.post-back:hover { opacity: 0.6; }
.post-content {
    max-width: 680px;
    margin: 0 auto;
}
.post-content h1 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: #1a0a4e;
    line-height: 1.3;
    margin-bottom: 12px;
}
.post-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.post-img {
    width: 100%;
    margin-bottom: 32px;
    border: 1px solid #eee;
}
.post-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.85;
    margin-bottom: 16px;
}
.blog-list {
    margin: 12px 0 14px;
    padding-left: 20px;
    list-style: disc;
}
.blog-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .blog-hero { padding: 110px 0 48px; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .post-page { padding: 80px 0 60px; }
}
@media (max-width: 480px) {
    .blog-hero { margin-top: 66px; padding: 96px 0 40px; }
    .blog-hero h1 { font-size: 24px; }
    .blog-card h2 { font-size: 16px; }
    .blog-card-body { padding: 20px 20px 18px; }
    .blog-card-meta { flex-wrap: wrap; gap: 8px; }
    .blog-card-meta .author-info { min-width: 0; }

    .post-page { padding: 60px 0 48px; margin-top: 66px; }
    .post-content h1 { font-size: 22px; }
    .post-content p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up, .reveal { opacity: 1; transform: none; transition: none; }
    .post-page .post-back,
    .post-page .blog-card-tag,
    .post-page h1,
    .post-page .post-date,
    .post-page .post-img,
    .post-page .post-content p,
    .post-page .post-content ul {
        opacity: 1; transform: none; animation: none;
    }
}
