/* Co-gency Corporate Finance: components added on top of the shared Co-gency template (style.css).
   Colours come from the --tg-* variables in style.css, so the palette only lives in one place. */

.cf-section { padding: 100px 0; }
.cf-section.alt { background: var(--tg-section-background); }
.cf-eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-primary-color); margin-bottom: 12px; }
.cf-h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; color: var(--tg-heading-font-color); margin-bottom: 18px; }
.cf-lead { font-size: 18px; line-height: 1.75; color: var(--tg-paragraph-color); max-width: 760px; }
.cf-center { text-align: center; margin-left: auto; margin-right: auto; }
.cf-banner-intro { color: rgba(255,255,255,.9); max-width: 720px; margin: 18px auto 0; font-size: 17px; }

/* Home hero */
.cf-hero { position: relative; overflow: hidden; padding: 130px 0 120px; color: #fff;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(16,233,168,.22), transparent 60%),
                linear-gradient(135deg, var(--tg-secondary-color) 0%, #002a7a 55%, var(--tg-blue) 100%); }
.cf-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.12; font-weight: 700; margin-bottom: 22px; max-width: 820px; }
.cf-hero p { color: rgba(255,255,255,.88); font-size: 19px; line-height: 1.7; max-width: 640px; margin-bottom: 34px; }
.cf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cf-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding: 0; list-style: none; color: rgba(255,255,255,.85); font-size: 15px; }
.cf-hero-trust li > i { color: #1dd3b0; margin-right: 8px; }
.cf-hero-bars { position: absolute; right: 6%; bottom: 0; display: flex; align-items: flex-end; gap: 22px; opacity: .16; pointer-events: none; }
.cf-hero-bars span { width: 70px; border: 10px solid #1dd3b0; border-bottom: 0; border-radius: 10px 10px 0 0; }
@media (max-width: 991px) { .cf-hero-bars { display: none; } .cf-hero { padding: 90px 0 80px; } }

.btn-cf-light { background: #fff; color: var(--tg-secondary-color) !important; border-radius: 999px; padding: 16px 28px; font-weight: 600; }
.btn-cf-light:hover { background: #1dd3b0; }
.btn-cf-outline { border: 2px solid rgba(255,255,255,.7); color: #fff !important; border-radius: 999px; padding: 14px 26px; font-weight: 600; background: transparent; }
.btn-cf-outline:hover { background: rgba(255,255,255,.1); }

/* Three pathways: buy / sell / finance */
.cf-paths { margin-top: -70px; position: relative; z-index: 2; }
.cf-path { background: #fff; border-radius: 18px; padding: 34px 30px; box-shadow: 0 24px 60px rgba(0,25,76,.12); height: 100%; border-top: 4px solid var(--tg-primary-color); display: flex; flex-direction: column; }
.cf-path > i { font-size: 30px; color: var(--tg-primary-color); margin-bottom: 18px; }
.cf-path h2, .cf-path h3 { font-size: 24px; margin-bottom: 6px; }
.cf-path .cf-path-tag { font-weight: 600; color: var(--tg-primary-color); margin-bottom: 12px; }
.cf-path p { flex: 1; }
.cf-path a { font-weight: 600; color: var(--tg-secondary-color); }
.cf-path a:hover { color: var(--tg-primary-color); }

/* Generic card grid (services, values, trust points) */
.cf-card { background: #fff; border: 1px solid var(--tg-border-color); border-radius: 16px; padding: 30px 28px; height: 100%; transition: transform .2s, box-shadow .2s; }
.cf-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,25,76,.08); }
.cf-card > i { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tg-lavender); color: var(--tg-primary-color); font-size: 22px; margin-bottom: 18px; }
.cf-card h3 { font-size: 20px; margin-bottom: 10px; }
.cf-card p { margin-bottom: 0; }
.cf-card a.cf-more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--tg-primary-color); }
a.cf-card { display: block; color: inherit; }

.cf-stat { text-align: center; }
.cf-stat strong { display: block; font-size: 44px; font-weight: 700; color: var(--tg-primary-color); line-height: 1.1; }
.cf-stat span { color: var(--tg-paragraph-color); }

/* Fee structure / highlighted panel */
.cf-panel { background: var(--tg-secondary-color); color: rgba(255,255,255,.88); border-radius: 22px; padding: 50px; }
.cf-panel h2, .cf-panel h3 { color: #fff; }
.cf-panel ul { padding-left: 0; list-style: none; }
.cf-panel li { padding-left: 32px; position: relative; margin-bottom: 14px; }
.cf-panel li i { position: absolute; left: 0; top: 5px; color: #1dd3b0; }
@media (max-width: 767px) { .cf-panel { padding: 32px 22px; } }

/* Team */
.cf-team-card { text-align: center; background: #fff; border: 1px solid var(--tg-border-color); border-radius: 18px; padding: 32px 22px; height: 100%; }
.cf-team-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 18px; background: var(--tg-lavender); }
.cf-team-card h3 { font-size: 21px; margin-bottom: 4px; }
.cf-team-card .role { color: var(--tg-primary-color); font-weight: 600; margin-bottom: 12px; }
.cf-team-card a.li { color: var(--tg-gray-four); }
.cf-team-card a.li:hover { color: var(--tg-primary-color); }
.cf-bio { background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,25,76,.06); }

/* Insights */
.cf-post-card { background: #fff; border: 1px solid var(--tg-border-color); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.cf-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tg-lavender); }
.cf-post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cf-post-card .meta { font-size: 14px; color: var(--tg-gray-four); margin-bottom: 8px; }
.cf-post-card h2, .cf-post-card h3 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.cf-post-card h2 a, .cf-post-card h3 a { color: var(--tg-heading-font-color); }
.cf-post-card h2 a:hover, .cf-post-card h3 a:hover { color: var(--tg-primary-color); }
.cf-post-card p { flex: 1; }

.cf-article { max-width: 780px; margin: 0 auto; }
.cf-article .cf-article-meta { color: var(--tg-gray-four); margin-bottom: 26px; }
.cf-article .cf-article-hero { width: 100%; border-radius: 18px; margin-bottom: 34px; }
.cf-prose { font-size: 17.5px; line-height: 1.8; color: var(--tg-paragraph-color); }
.cf-prose h2 { font-size: 28px; margin: 42px 0 14px; }
.cf-prose h3 { font-size: 22px; margin: 32px 0 12px; }
.cf-prose p, .cf-prose ul, .cf-prose ol { margin-bottom: 20px; }
.cf-prose ul, .cf-prose ol { padding-left: 24px; }
.cf-prose ul { list-style: disc; }
.cf-prose ol { list-style: decimal; }
.cf-prose li { margin-bottom: 8px; }
.cf-prose a { color: var(--tg-primary-color); text-decoration: underline; text-underline-offset: 3px; }
.cf-prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.cf-prose blockquote { border-left: 4px solid var(--tg-primary-color); padding: 6px 0 6px 20px; font-style: italic; }
.cf-prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cf-prose th, .cf-prose td { border: 1px solid var(--tg-border-color); padding: 10px; }

.footer-sister { color: #5b6474; font-size: 15px; }
.footer-sister a { color: var(--tg-primary-color); font-weight: 600; }

/* Pagination (Laravel default bootstrap-free markup) */
.cf-pagination nav { display: flex; justify-content: center; }
.cf-pagination svg { width: 18px; height: 18px; }

/* Template .btn adds its own arrow; keep CF hero buttons plain */
.cf-hero-actions .btn::before, .cf-hero-actions .btn::after { display: none; }
.cf-hero-actions .btn { text-transform: none; font-size: 16px; }

/* Insights card without a photo: branded panel */
.cf-post-thumb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; aspect-ratio: 16 / 10; padding: 22px 24px; overflow: hidden; color: #fff;
    background: radial-gradient(500px 220px at 90% -20%, rgba(29,211,176,.25), transparent 60%), linear-gradient(135deg, var(--tg-secondary-color) 0%, #002a7a 55%, var(--tg-blue) 100%); }
.cf-post-thumb:hover { color: #fff; }
.cf-post-thumb-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1dd3b0; position: relative; z-index: 1; }
.cf-post-thumb-title { font-size: 19px; font-weight: 700; line-height: 1.3; max-width: 85%; position: relative; z-index: 1; }
.cf-post-thumb-bars { position: absolute; right: 20px; top: 18px; display: flex; align-items: flex-end; gap: 7px; opacity: .22; }
.cf-post-thumb-bars i { display: block; width: 18px; border: 4px solid #1dd3b0; border-bottom: 0; border-radius: 4px 4px 0 0; }
.cf-post-thumb-bars i:nth-child(1) { height: 26px; } .cf-post-thumb-bars i:nth-child(2) { height: 40px; } .cf-post-thumb-bars i:nth-child(3) { height: 56px; }

/* Team member without a photo: initials */
.cf-avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    font-size: 46px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--tg-secondary-color), var(--tg-primary-color)); }
