/* =========================================================
   Corporate Advisory theme stylesheet
   ========================================================= */

:root {
	--color-navy: #1b2b3a;
	--color-navy-light: #243746;
	--color-accent: #c8952b;
	--color-accent-light: #e0b45a;
	--color-text: #333f48;
	--color-muted: #6b7a86;
	--color-border: #e5e9ec;
	--color-bg-soft: #f6f8f9;
	--radius: 10px;
	--width-container: 1200px;
	--font-base: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	line-height: 1.65;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--color-navy); margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.width-container { max-width: var(--width-container); margin: 0 auto; padding: 0 20px; }

.btn {
	display: inline-block;
	width: fit-content;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	border: 1px solid var(--color-navy);
	color: var(--color-navy);
	background: transparent;
	transition: all .2s ease;
}
.btn:hover { background: var(--color-navy); color: #fff; }
.gradient-btn {
	background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
	border: none;
	color: #fff !important;
}
.gradient-btn:hover { filter: brightness(1.05); color: #fff; }
.w-full { width: 100%; text-align: center; }

.ca-img-placeholder {
	display: block;
	width: 100%;
	min-height: 200px;
	background: repeating-linear-gradient(45deg, #eef1f3, #eef1f3 12px, #e4e8eb 12px, #e4e8eb 24px);
	border-radius: var(--radius);
}
.icon-placeholder { min-height: 40px; width: 40px; height: 40px; border-radius: 50%; }

.service-icon-fa {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-bg-soft);
	color: var(--color-accent);
	flex-shrink: 0;
}
.service-icon-fa i { font-size: 1.15em; }

/* ---------------- Header ---------------- */
#site-header { position: relative; z-index: 50; }
.header-top-bar { background: #fff; border-bottom: 1px solid var(--color-border); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 14px 20px; }
.site-logo-text { font-size: 1.4rem; font-weight: 800; color: var(--color-navy); }
.top-bar-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-pill { display: flex; align-items: center; gap: 10px; }
.contact-pill-icon { font-size: 1.2rem; color: var(--color-accent); }
.contact-pill-text { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; }
.contact-pill-text strong { font-weight: 600; color: var(--color-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.contact-pill-text span:last-child { color: var(--color-navy); font-weight: 600; }

.main-navbar { background: var(--color-navy); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: relative; }
.navbar-toggler { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 16px 0; }
.navbar-toggler span { width: 26px; height: 2px; background: #fff; display: block; }

.navbar-nav { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link, .nav-link-wrapper { display: flex; align-items: center; gap: 6px; }
.nav-link {
	display: block;
	padding: 16px 14px;
	color: #fff;
	font-weight: 500;
	font-size: .95rem;
	white-space: nowrap;
}
.nav-link:hover, .nav-item.dropdown:hover > .nav-link, .nav-item.dropdown:hover > .nav-link-wrapper .nav-link { color: var(--color-accent-light); }
.nav-link-wrapper { padding: 0 4px 0 14px; }
.nav-link-wrapper .nav-link { padding: 16px 0; }
.dropdown-toggle {
	display: inline-block;
	width: 0; height: 0;
	margin: 0 10px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid rgba(255,255,255,.7);
	cursor: pointer;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(20, 30, 40, .18);
	border-radius: 0 0 8px 8px;
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s ease;
	z-index: 60;
}
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown.is-open > .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.dropdown-item { display: block; padding: 10px 20px; color: var(--color-navy); font-size: .92rem; }
.dropdown-item:hover { background: var(--color-bg-soft); color: var(--color-accent); }

.header-social-icons { display: flex; align-items: center; gap: 10px; }
.header-social-icons a {
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.12); color: #fff; font-size: .7rem; text-transform: uppercase;
}
.header-social-icons a:hover { background: var(--color-accent); }

.page-header-strip { padding: 16px 20px; font-size: .85rem; color: var(--color-muted); }
.page-header-strip a { color: var(--color-accent); }

/* ---------------- Hero ----------------
   The banner image is a full-bleed background for the whole section;
   the title/CTA/service-icon row is overlaid on top of it (not stacked
   below), so the service list sits directly under the header exactly
   like the reference layout. .hero-banner-content's normal-flow height
   (it is NOT absolutely positioned) sets the section's height, so the
   image always covers however tall the content needs to be - including
   when the icon row wraps to extra lines on narrow screens. */
.hero-banner { position: relative; color: #fff; overflow: hidden; }
.hero-banner-media { position: absolute; inset: 0; z-index: 0; }
.hero-banner-media .hero-banner-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-banner-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,32,44,.92), rgba(20,32,44,.55)); }
.hero-banner-content { position: relative; z-index: 1; padding: 70px 20px 50px; min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--color-accent-light); }
.eyebrow-line { width: 34px; height: 2px; background: var(--color-accent-light); display: inline-block; }
.hero-banner-content h1 { color: #fff; max-width: 700px; }
.hero-banner-content h4 { color: rgba(255,255,255,.85); font-weight: 400; margin-bottom: 22px; }

.hero-service-icons {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-top: 42px;
	width: 100%;
}
.hero-service-icon {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 16px 10px; text-align: center;
	background: rgba(255,255,255,.08); border-radius: var(--radius);
	font-size: .78rem; color: #fff; font-weight: 500;
	border: 1px solid rgba(255,255,255,.15);
	transition: background .2s ease;
}
.hero-service-icon:hover { background: rgba(255,255,255,.18); }
.hero-service-icon img, .hero-service-icon .ca-img-placeholder, .hero-service-icon .service-icon-fa { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; background-color: rgba(255,255,255,.15); }
.hero-service-icon .service-icon-fa { color: #fff; }

/* ---------------- About sections ---------------- */
.about-section, .about-highlight-section { padding: 60px 20px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-grid-reverse { grid-template-columns: .9fr 1.1fr; }
.about-grid-reverse .about-image { order: -1; }
.rounded-image { border-radius: var(--radius); overflow: hidden; }
.about-copy { color: var(--color-muted); }
.about-highlight-section { background: var(--color-bg-soft); }

/* ---------------- Stats ---------------- */
.stats-section { position: relative; color: #fff; padding: 60px 20px; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; z-index: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-section::before { content: ""; position: absolute; inset: 0; background: var(--color-navy); opacity: .82; z-index: 1; }
.stats-content { position: relative; z-index: 2; text-align: center; }
.stats-content h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.stat-item { padding: 20px; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--color-accent-light); }
.stat-item h5 { color: #fff; font-weight: 500; margin-top: 6px; }

/* ---------------- Video ---------------- */
.video-section { padding: 60px 20px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.video-embed-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Feature cards ---------------- */
.feature-cards-section { padding: 20px 20px 60px; }
.feature-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 260px; }
.feature-card-bg { width: 100%; height: 100%; min-height: 260px; object-fit: cover; position: absolute; inset: 0; }
.feature-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,44,.2), rgba(20,32,44,.88)); }
.feature-card-content { position: relative; padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.feature-card-content h3 { color: #fff; }
.feature-card-content p { color: rgba(255,255,255,.85); font-size: .92rem; }
.feature-card-arrow {
	width: 42px; height: 42px; border-radius: 50%; background: var(--color-accent);
	display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 10px;
}

/* ---------------- Insights ---------------- */
.insights-section, .blog-archive { padding: 20px 20px 60px; }
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.insight-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.insight-card-image img, .insight-card-image .ca-img-placeholder { width: 100%; height: 190px; object-fit: cover; min-height: 190px; }
.insight-card-body { padding: 20px; }
.insight-excerpt { color: var(--color-muted); font-size: .92rem; }

/* ---------------- Branches + form ---------------- */
.branches-section { padding: 60px 20px; background: var(--color-bg-soft); }
.branches-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.branches-grid h2 { margin-top: 0; }
.branches-box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.branch-box {
	background: var(--color-navy); color: #fff; border-radius: var(--radius);
	padding: 22px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
	transition: background .2s ease;
}
.branch-box:hover { background: var(--color-navy-light); }
.branch-box h3 { color: #fff; font-size: .95rem; margin: 0; }
.branch-box-icon { font-size: 1.3rem; }

.enquiry-form, .footer-newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.ca-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 10px 14px; border-radius: 8px; font-size: .9rem; margin-top: 6px; }
.form-notice-success { background: #e6f6ec; color: #1e7b42; }
.form-notice-error { background: #fdecec; color: #b3261e; }

/* ---------------- Entities strip ---------------- */
.entities-section { padding: 40px 20px 70px; text-align: center; }
.entities-logo-strip { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center; margin-top: 20px; opacity: .8; }
.entities-logo-strip img { max-height: 46px; width: auto; }

/* ---------------- Services archive/single ---------------- */
.archive-header { padding: 50px 20px 10px; }
.services-grid, .offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 60px; }
.service-card, .office-card {
	display: block; padding: 28px 22px; border: 1px solid var(--color-border); border-radius: var(--radius);
	transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover, .office-card:hover { box-shadow: 0 14px 30px rgba(20,30,40,.1); transform: translateY(-3px); }
.service-card img, .service-card .ca-img-placeholder, .service-card .service-icon-fa { margin-bottom: 14px; }

/* Every card in the services grid is the same height: 70% of its own width. */
.service-card {
	aspect-ratio: 10 / 7;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}
.service-card h3 { margin-bottom: 6px; }
.service-card p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: .85rem;
	margin-bottom: 8px;
}
.service-single { padding-bottom: 20px; }
.service-detail-row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 30px 20px; align-items: start; }
.service-detail-image, .service-detail-content { margin-top: 0; }
.service-detail-image { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; }
.service-detail-image img, .service-detail-image .ca-img-placeholder { width: 100%; margin-top: 0; }
.service-detail-content h2 { margin-top: 0; margin-bottom: 16px; }
.service-detail-content .entry-content h3 { margin-top: 1.2em; }

.service-secondary-row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 10px 20px 50px; align-items: start; }
.service-secondary-content, .service-secondary-media { margin-top: 0; }
.service-secondary-content h3 { margin-top: 0; }
.service-secondary-media { position: sticky; top: 100px; }
.service-secondary-media img, .service-secondary-media .ca-img-placeholder { width: 100%; border-radius: var(--radius); overflow: hidden; }

.offices-general-enquiry { max-width: 640px; margin: 0 auto 60px; }
.office-single { padding: 40px 20px 60px; }
.office-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 20px; }
.office-map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; }

.text-center { text-align: center; }
.new-faq-section { padding: 50px 20px 60px; }
.new-faq-section .main-title { margin-bottom: 32px; }
.faq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.faq-column { display: flex; flex-direction: column; gap: 12px; }
.faq-card { border: 1px solid var(--color-border); border-radius: 10px; background: #fff; overflow: hidden; }
.faq-header-btn {
	cursor: pointer;
	list-style: none;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 600;
	color: var(--color-navy);
	font-size: .98rem;
}
.faq-header-btn::-webkit-details-marker { display: none; }
.faq-toggle-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-toggle-icon::before, .faq-toggle-icon::after {
	content: ""; position: absolute; top: 50%; left: 50%; background: var(--color-accent);
	transform: translate(-50%, -50%);
}
.faq-toggle-icon::before { width: 14px; height: 2px; }
.faq-toggle-icon::after { width: 2px; height: 14px; transition: transform .2s ease; }
.faq-card[open] .faq-toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-body-content { padding: 0 20px 18px; color: var(--color-muted); font-size: .92rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.team-card { text-align: center; }
.team-card img, .team-card .ca-img-placeholder { border-radius: var(--radius); margin-bottom: 12px; aspect-ratio: 1/1; object-fit: cover; }
.team-position { color: var(--color-muted); font-size: .9rem; }

.generic-page, .single-post { padding: 40px 20px 60px; }
.page-title-block { margin-bottom: 20px; }
.page-featured-image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.post-meta { color: var(--color-muted); font-size: .9rem; }

/* ---------------- Footer ---------------- */
#site-footer { background: var(--color-navy); color: rgba(255,255,255,.85); margin-top: 20px; }
.footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 20px 40px; }
.footer-col h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 18px; }
.footer-tagline { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-link-list li { margin-bottom: 10px; }
.footer-link-list a:hover, .footer-contact-list a:hover { color: var(--color-accent-light); }
.footer-contact-list li { margin-bottom: 12px; display: flex; gap: 8px; font-size: .92rem; }
.footer-social-icons { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-icons a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .7rem; text-transform: uppercase; }
.footer-social-icons a:hover { background: var(--color-accent); }

.footer-newsletter-form { margin-top: 20px; }
.footer-newsletter-input { display: flex; gap: 0; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.footer-newsletter-input input { flex: 1; background: transparent; border: none; padding: 12px 18px; color: #fff; }
.footer-newsletter-input input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter-input .submit-btn { background: var(--color-accent); color: #fff; border: none; padding: 0 22px; font-weight: 600; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }

.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%;
	background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem; box-shadow: 0 10px 24px rgba(0,0,0,.2); z-index: 80;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
	.navbar-toggler { display: flex; }
	.navbar-collapse {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--color-navy); flex-direction: column; padding: 10px 0; box-shadow: 0 20px 30px rgba(0,0,0,.2);
	}
	.navbar-collapse.is-open { display: block; }
	.navbar-nav { flex-direction: column; }
	.nav-item { flex-direction: column; align-items: stretch; }
	.dropdown-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255,255,255,.05); border-radius: 0; }
	.nav-item.is-open > .dropdown-menu { display: block; }
	.dropdown-item { color: #fff; }
	.dropdown-item:hover { background: rgba(255,255,255,.08); color: var(--color-accent-light); }
	.header-social-icons { display: none; }

	.about-grid, .about-grid-reverse, .video-grid, .branches-grid, .office-single-grid, .faq-columns,
	.service-detail-row, .service-secondary-row { grid-template-columns: 1fr; }
	.service-detail-image, .service-secondary-media { position: static; }
	.about-grid-reverse .about-image { order: 0; }
	.feature-cards-grid, .insights-grid, .services-grid, .offices-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-columns { grid-template-columns: 1fr 1fr; }
	.hero-service-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.top-bar-contact .contact-pill-text { display: none; }
	.feature-cards-grid, .insights-grid, .services-grid, .offices-grid, .stats-grid, .team-grid, .footer-columns { grid-template-columns: 1fr; }
	.branches-box-grid { grid-template-columns: repeat(2, 1fr); }
	.form-row-split { grid-template-columns: 1fr; }
	.hero-banner-content { padding: 40px 16px 30px; min-height: 0; }
	.hero-service-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Elementor compatibility
   The rules above reset <ul>, <img> and <a> globally for the
   theme's own hand-built markup. Elementor widgets rely on
   browser-default list/link styling, so those resets are
   undone inside any Elementor-rendered content area.
   ========================================================= */
.elementor-widget-container ul:not([class]),
.elementor-widget-container ol:not([class]) { list-style: revert; padding-left: revert; margin: revert; }
.elementor-widget-container a:not([class]) { text-decoration: revert; color: revert; }
.elementor-widget-container img { display: revert; }
.elementor-location-header, .elementor-location-footer { width: 100%; }
