/* B-Agency Theme Custom CSS */
:root {
	--ag-primary: #2563eb;
	--ag-primary-dark: #1d4ed8;
	--ag-primary-light: #dbeafe;
	--ag-text: #1e293b;
	--ag-text-light: #64748b;
	--ag-bg: #f8fafc;
	--ag-white: #ffffff;
	--ag-border: #e2e8f0;
	--ag-radius: 12px;
	--ag-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ===== Global ===== */
.ag-fp-wrap *, .ag-fp-wrap *::before, .ag-fp-wrap *::after { box-sizing: border-box; }
.ag-fp-wrap img { max-width: 100%; height: auto; }
.ag-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ag-section { padding: 80px 0; }
.ag-section-alt { background: var(--ag-bg); }
.ag-section-title { text-align: center; font-size: 32px; font-weight: 800; color: var(--ag-text); margin: 0 0 8px; line-height: 1.3; }
.ag-section-sub { text-align: center; font-size: 16px; color: var(--ag-text-light); margin: 0 0 48px; line-height: 1.5; }

/* ===== Navbar ===== */
.ag-nav { background: #fff; border-bottom: 1px solid var(--ag-border); position: sticky; top: 0; z-index: 1000; }
.ag-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ag-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ag-text); font-size: 18px; font-weight: 800; }
.ag-nav-logo { height: 36px; width: auto; }
.ag-nav-links { display: flex; align-items: center; gap: 8px; }
.ag-nav-links a { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ag-text-light); text-decoration: none; border-radius: 8px; transition: all .2s; }
.ag-nav-links a:hover { color: var(--ag-primary); background: var(--ag-primary-light); }
.ag-nav-cta { background: var(--ag-primary) !important; color: #fff !important; border-radius: 8px !important; padding: 8px 20px !important; }
.ag-nav-cta:hover { background: var(--ag-primary-dark) !important; }

/* ===== Hero ===== */
.ag-hero { padding: 100px 0 80px; text-align: center; color: #fff; }
.ag-hero h1 { font-size: 48px; font-weight: 900; margin: 0 0 16px; letter-spacing: -1px; color: #fff; line-height: 1.2; }
.ag-hero-sub { font-size: 18px; opacity: .85; max-width: 600px; margin: 0 auto 32px; line-height: 1.6; color: rgba(255,255,255,.85); }
.ag-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ag-btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; transition: all .2s; text-align: center; line-height: 1.4; font-weight: 700; border-radius: 8px; }
.ag-btn-white { background: #fff; color: var(--ag-primary); padding: 14px 28px; font-size: 15px; }
.ag-btn-white:hover { background: #f1f5f9; color: var(--ag-primary-dark); }
.ag-btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); padding: 12px 28px; font-size: 15px; }
.ag-btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.ag-btn-primary { background: var(--ag-primary); color: #fff; padding: 14px 28px; font-size: 15px; }
.ag-btn-primary:hover { background: var(--ag-primary-dark); color: #fff; }
.ag-btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }

/* ===== Services Grid ===== */
.ag-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-service-card { background: var(--ag-white); border: 1px solid var(--ag-border); border-radius: var(--ag-radius); padding: 32px 24px; text-align: center; transition: all .3s; position: relative; overflow: hidden; }
.ag-service-card:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); border-color: var(--ag-primary); }
.ag-service-icon { font-size: 40px; margin-bottom: 16px; line-height: 1; }
.ag-service-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--ag-text); }
.ag-service-price { font-size: 24px; font-weight: 900; color: var(--ag-primary); margin-bottom: 12px; line-height: 1.3; }
.ag-service-price span { font-size: 14px; font-weight: 500; color: var(--ag-text-light); }
.ag-service-desc { font-size: 14px; color: var(--ag-text-light); line-height: 1.6; margin: 0 0 12px; }
.ag-service-features { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.ag-service-features li { font-size: 13px; color: var(--ag-text); padding: 4px 0; line-height: 1.4; }
.ag-service-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--ag-primary-light); color: var(--ag-primary); margin-bottom: 16px; }
.ag-service-card { display: flex; flex-direction: column; }
.ag-service-actions { display: flex; gap: 8px; margin-top: auto; }
.ag-btn-outline-sm { display: inline-flex; align-items: center; justify-content: center; flex: 1; padding: 8px 12px; border: 2px solid var(--ag-border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ag-text-light); text-decoration: none; transition: all .2s; }
.ag-btn-outline-sm:hover { border-color: var(--ag-primary); color: var(--ag-primary); background: var(--ag-primary-light); }
.ag-btn-primary-sm { display: inline-flex; align-items: center; justify-content: center; flex: 1; padding: 8px 12px; border: 2px solid var(--ag-primary); border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; background: var(--ag-primary); text-decoration: none; transition: all .2s; }
.ag-btn-primary-sm:hover { background: var(--ag-primary-dark); border-color: var(--ag-primary-dark); color: #fff; }

/* ===== Features Grid ===== */
.ag-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-feature { background: var(--ag-white); border: 1px solid var(--ag-border); border-radius: var(--ag-radius); padding: 28px 24px; text-align: center; transition: all .3s; }
.ag-feature:hover { transform: translateY(-2px); box-shadow: var(--ag-shadow); }
.ag-feature > span { font-size: 36px; display: block; margin-bottom: 12px; line-height: 1; }
.ag-feature h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--ag-text); }
.ag-feature p { font-size: 14px; color: var(--ag-text-light); margin: 0; line-height: 1.5; }

/* ===== CTA Card ===== */
.ag-cta-card { background: linear-gradient(135deg, var(--ag-primary), var(--ag-primary-dark)); border-radius: 16px; padding: 48px; text-align: center; color: #fff; }
.ag-cta-card h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.ag-cta-card p { font-size: 16px; opacity: .85; margin: 0 0 24px; color: rgba(255,255,255,.85); }
.ag-cta-card .ag-btn-primary { background: #fff; color: var(--ag-primary); }
.ag-cta-card .ag-btn-primary:hover { background: #f1f5f9; color: var(--ag-primary-dark); }

/* ===== Contact ===== */
.ag-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.ag-contact-item { text-align: center; padding: 24px; background: var(--ag-white); border: 1px solid var(--ag-border); border-radius: var(--ag-radius); }
.ag-contact-item > span { font-size: 32px; display: block; margin-bottom: 8px; line-height: 1; }
.ag-contact-item h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--ag-text); }
.ag-contact-item a { color: var(--ag-primary); text-decoration: none; font-size: 14px; word-break: break-all; }

/* ===== Footer ===== */
.ag-footer { background: #1e293b; color: #cbd5e1; padding: 48px 0 0; }
.ag-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.ag-footer h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.ag-footer p { font-size: 14px; line-height: 1.6; margin: 0; color: #cbd5e1; }
.ag-footer ul { list-style: none; padding: 0; margin: 0; }
.ag-footer li { padding: 3px 0; font-size: 14px; }
.ag-footer a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.ag-footer a:hover { color: #fff; }
.ag-footer-bottom { border-top: 1px solid #334155; padding: 16px 0; text-align: center; }
.ag-footer-bottom p { font-size: 13px; color: #64748b; margin: 0; }

/* ===== Portal Layout ===== */
.ag-portal-layout { min-height: 100vh; }
.ag-portal-nav { background: var(--ag-white); border-bottom: 1px solid var(--ag-border); position: sticky; top: 0; z-index: 100; }
.ag-portal-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.ag-portal-brand { display: flex; flex-direction: column; }
.ag-portal-brand strong { font-size: 15px; color: var(--ag-text); line-height: 1.2; }
.ag-portal-brand span { font-size: 11px; color: var(--ag-text-light); }
.ag-portal-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.ag-portal-menu a { display: block; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ag-text-light); text-decoration: none; border-radius: 8px; transition: all .2s; }
.ag-portal-menu a:hover, .ag-portal-menu a.active { background: var(--ag-primary-light); color: var(--ag-primary); }
.ag-portal-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ag-portal-user span { color: var(--ag-text); font-weight: 600; }
.ag-portal-logout { color: var(--ag-text-light); text-decoration: none; font-size: 12px; }
.ag-portal-logout:hover { color: #ef4444; }
.ag-portal-main { padding: 32px 0; }

/* ===== Invoice Page ===== */
.ag-invoice-page { padding: 24px 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.ag-nav-inner { height: auto; padding: 12px 24px; flex-wrap: wrap; gap: 8px; }
	.ag-nav-links { flex-wrap: wrap; gap: 4px; }
	.ag-nav-links a { padding: 6px 12px; font-size: 13px; }
	.ag-hero { padding: 60px 0 48px; }
	.ag-hero h1 { font-size: 32px; }
	.ag-hero-sub { font-size: 15px; }
	.ag-section { padding: 48px 0; }
	.ag-section-title { font-size: 24px; }
	.ag-services-grid { grid-template-columns: 1fr; }
	.ag-features-grid { grid-template-columns: 1fr; }
	.ag-contact-grid { grid-template-columns: 1fr; }
	.ag-footer-grid { grid-template-columns: 1fr; }
	.ag-cta-card { padding: 32px 20px; }
	.ag-cta-card h2 { font-size: 22px; }
	.ag-portal-nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
	.ag-portal-menu { flex-wrap: wrap; }
	.ag-portal-menu a { padding: 6px 10px; font-size: 12px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
	.ag-services-grid { grid-template-columns: repeat(2, 1fr); }
	.ag-features-grid { grid-template-columns: repeat(2, 1fr); }
}
