/* ==========================================================================
   A&P Realty – theme styles (header, footer, shared components).
   Brand: blue #0B4F9C, grey #6B7280, off-white #F5F7FA.
   Fonts: Cormorant Garamond (headings) + Montserrat (body).
   ========================================================================== */
:root {
	--ap-blue: #0B4F9C;
	--ap-blue-dark: #083A73;
	--ap-blue-light: #E8F0FA;
	--ap-grey: #6B7280;
	--ap-grey-dark: #2E3440;
	--ap-grey-light: #F5F7FA;
	--ap-gold: #C9A227;
	--ap-white: #ffffff;
	--ap-wa: #25D366;
	--ap-radius: 10px;
	--ap-shadow: 0 10px 30px rgba(11, 79, 156, 0.10);
	--ap-font-head: 'Cormorant Garamond', Georgia, serif;
	--ap-font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ap-container: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ap-font-body); color: var(--ap-grey-dark); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .elementor-widget-heading .elementor-heading-title { font-family: var(--ap-font-head); color: var(--ap-blue); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
a { color: var(--ap-blue); }
img { max-width: 100%; height: auto; }
.ap-container { max-width: var(--ap-container); margin: 0 auto; padding: 0 20px; }
.ap-center { text-align: center; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; clip: auto; width: auto; height: auto; padding: 8px 14px; background: var(--ap-blue); color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.ap-btn, .elementor-button { display: inline-flex; align-items: center; gap: .5rem; padding: 14px 26px; border-radius: 999px; font-family: var(--ap-font-body); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s ease; border: 2px solid transparent; cursor: pointer; }
.ap-btn-primary, .elementor-button { background: var(--ap-blue); color: #fff; border-color: var(--ap-blue); }
.ap-btn-primary:hover, .elementor-button:hover { background: var(--ap-blue-dark); border-color: var(--ap-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--ap-shadow); }
.ap-btn-outline { background: transparent; color: var(--ap-blue); border-color: var(--ap-blue); }
.ap-btn-outline:hover { background: var(--ap-blue); color: #fff; }
.ap-btn-white { background: #fff; color: var(--ap-blue); border-color: #fff; }
.ap-btn-white:hover { background: var(--ap-blue-light); }
.ap-btn-whatsapp { background: var(--ap-wa); color: #fff; border-color: var(--ap-wa); }
.ap-btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.ap-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }

/* Top bar ---------------------------------------------------------------- */
.ap-topbar { background: var(--ap-blue-dark); color: #dbe7f5; font-size: .82rem; }
.ap-topbar .ap-container { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; min-height: 38px; }
.ap-topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.ap-topbar a:hover { text-decoration: underline; }
.ap-topbar i { margin-right: 6px; color: var(--ap-gold); }
.ap-topbar-contact { margin-left: auto; }

/* Header ----------------------------------------------------------------- */
.ap-header { background: #fff; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.ap-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; }
.ap-logo img { height: 60px; width: auto; display: block; }
.ap-nav { display: flex; align-items: center; gap: 10px; }
.ap-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ap-menu > li { position: relative; }
.ap-menu a { display: block; padding: 10px 14px; color: var(--ap-grey-dark); font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: 6px; }
.ap-menu > li > a:hover, .ap-menu > li.current-menu-item > a, .ap-menu > li.current-menu-ancestor > a { color: var(--ap-blue); background: var(--ap-blue-light); }
.ap-menu .menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; position: relative; top: -3px; }
.ap-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: var(--ap-radius); box-shadow: 0 16px 40px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; }
.ap-menu .sub-menu.ap-sub-areas { min-width: 520px; columns: 2; }
.ap-menu li:hover > .sub-menu, .ap-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-menu .sub-menu a { padding: 9px 12px; font-size: .9rem; break-inside: avoid; }
.ap-menu .sub-menu a:hover { background: var(--ap-blue-light); color: var(--ap-blue); }
.ap-nav-cta { margin-left: 10px; padding: 11px 20px; }
.ap-nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.ap-nav-toggle span { display: block; height: 3px; background: var(--ap-blue); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ap-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ap-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ap-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Sections, hero --------------------------------------------------------- */
.ap-section { padding: 80px 0; }
.ap-section-grey { background: var(--ap-grey-light); }
.ap-section-blue { background: var(--ap-blue); color: #fff; }
.ap-section-blue h2, .ap-section-blue h3 { color: #fff; }
.ap-hero { position: relative; color: #fff; padding: 110px 0; background: linear-gradient(120deg, var(--ap-blue-dark) 0%, var(--ap-blue) 55%, #1e6fc7 100%); overflow: hidden; }
.ap-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 18 10 60h12v42h76V60h12z' fill='none' stroke='rgba(255,255,255,.07)' stroke-width='3'/%3E%3C/svg%3E"); opacity: .9; }
.ap-hero .ap-container { position: relative; }
.ap-hero h1 { color: #fff; margin: 0 0 .6rem; }
.ap-hero .ap-lead { font-size: 1.15rem; max-width: 720px; color: #e5eefa; }
.ap-hero-inner { padding: 80px 0; }
.ap-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ap-gold); margin-bottom: .8rem; }
.ap-lead { font-size: 1.1rem; color: var(--ap-grey); }

/* Breadcrumbs ------------------------------------------------------------ */
.ap-breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.ap-breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.ap-breadcrumbs a { color: inherit; opacity: .85; text-decoration: none; }
.ap-breadcrumbs a:hover { opacity: 1; text-decoration: underline; }

/* Cards & grids ---------------------------------------------------------- */
.ap-grid { display: grid; gap: 24px; }
.ap-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ap-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ap-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ap-card { display: block; background: #fff; border-radius: var(--ap-radius); padding: 32px 28px; box-shadow: 0 4px 20px rgba(0,0,0,.05); border: 1px solid #e9edf3; text-decoration: none; color: var(--ap-grey-dark); transition: transform .2s, box-shadow .2s; }
.ap-card:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.ap-card h3 { margin: 14px 0 8px; }
.ap-card p { margin: 0 0 14px; color: var(--ap-grey); font-size: .95rem; }
.ap-card-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 14px; background: var(--ap-blue-light); color: var(--ap-blue); font-size: 1.4rem; }
.ap-card-link { color: var(--ap-blue); font-weight: 600; font-size: .9rem; }
.ap-areas { list-style: none; margin: 0; padding: 0; }
.ap-areas li a { display: block; padding: 12px 16px; background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; color: var(--ap-grey-dark); text-decoration: none; font-weight: 500; transition: all .2s; }
.ap-areas li a:hover { border-color: var(--ap-blue); color: var(--ap-blue); background: var(--ap-blue-light); }
.ap-areas i { color: var(--ap-blue); margin-right: 8px; }

/* Elementor widget polish (icon boxes, accordion, buttons) --------------- */
.ap-iconbox .elementor-widget-container, .elementor-widget-icon-box.ap-iconbox { background: #fff; border-radius: var(--ap-radius); padding: 30px 26px; border: 1px solid #e9edf3; height: 100%; transition: transform .2s, box-shadow .2s; }
.elementor-widget-icon-box.ap-iconbox:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.elementor-widget-icon-box.ap-iconbox .elementor-icon { background: var(--ap-blue-light); color: var(--ap-blue); border-radius: 14px; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.elementor-widget-icon-box.ap-iconbox .elementor-icon-box-title { font-family: var(--ap-font-head); color: var(--ap-blue); font-size: 1.4rem; margin: 14px 0 8px; }
.elementor-widget-icon-box.ap-iconbox .elementor-icon-box-description { color: var(--ap-grey); font-size: .95rem; }
.ap-step .elementor-icon { background: var(--ap-blue); color: #fff; border-radius: 50%; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ap-font-head); font-size: 1.5rem; font-weight: 700; }
.ap-step .elementor-icon-box-title { font-family: var(--ap-font-head); color: var(--ap-blue); font-size: 1.35rem; }
.elementor-accordion .elementor-tab-title { font-family: var(--ap-font-body); font-weight: 600; color: var(--ap-blue); }
.elementor-accordion .elementor-accordion-item { border-radius: 8px; margin-bottom: 10px; border: 1px solid #e3e8ef !important; background: #fff; }
.ap-testimonial .elementor-widget-container { background: #fff; border-radius: var(--ap-radius); padding: 30px; border: 1px solid #e9edf3; height: 100%; }
.ap-testimonial p { font-style: italic; }
.ap-stat .elementor-heading-title { font-family: var(--ap-font-head); font-size: 3rem; color: var(--ap-gold); line-height: 1; }

/* Forms ------------------------------------------------------------------ */
.ap-form { background: #fff; padding: 32px; border-radius: var(--ap-radius); box-shadow: var(--ap-shadow); border: 1px solid #e9edf3; }
.ap-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.ap-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ap-grey-dark); }
.ap-form .ap-full { grid-column: 1 / -1; }
.ap-form input, .ap-form select, .ap-form textarea { font-family: var(--ap-font-body); font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; width: 100%; }
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { outline: none; border-color: var(--ap-blue); box-shadow: 0 0 0 3px rgba(11,79,156,.15); }
.ap-form .ap-btn { width: 100%; justify-content: center; }
.ap-form-privacy { font-size: .78rem; color: var(--ap-grey); margin: 12px 0 0; text-align: center; }
.ap-hp { position: absolute; left: -9999px; }
.ap-form-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; }
.ap-form-error { background: #fdecec; color: #a12222; }

/* Footer ----------------------------------------------------------------- */
.ap-footer { background: var(--ap-blue-dark); color: #c9d7ea; font-size: .92rem; margin-top: 0; }
.ap-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 20px 50px; }
.ap-footer h3 { color: #fff; font-size: 1.35rem; margin: 0 0 16px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li { margin-bottom: 8px; }
.ap-footer a { color: #c9d7ea; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer-areas { columns: 2; }
.ap-footer-about img { height: 56px; width: auto; margin-bottom: 16px; }
.ap-footer-licence { font-size: .78rem; opacity: .75; }
.ap-footer address { font-style: normal; }
.ap-footer address p { margin: 0 0 10px; }
.ap-footer address i { color: var(--ap-gold); width: 18px; }
.ap-social { display: flex; gap: 10px; margin-top: 14px; }
.ap-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.ap-social a:hover { background: var(--ap-gold); color: var(--ap-blue-dark); text-decoration: none; }
.ap-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .82rem; }
.ap-footer-bottom .ap-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ap-footer-bottom p { margin: 0; }
.ap-footer-menu { display: flex; gap: 18px; }

/* Mobile sticky bar ------------------------------------------------------ */
.ap-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.1); }
.ap-mobile-bar a { flex: 1; text-align: center; padding: 12px 6px; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--ap-blue); }
.ap-mobile-bar a:nth-child(1) { background: var(--ap-blue); color: #fff; }
.ap-mobile-bar a:nth-child(2) { background: var(--ap-wa); color: #fff; }
.ap-mobile-bar i { display: block; font-size: 1.1rem; margin-bottom: 2px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ap-grid-4 { grid-template-columns: repeat(3, 1fr); }
	.ap-footer-grid { grid-template-columns: 1fr 1fr; }
	.ap-nav-cta { display: none; }
}
@media (max-width: 860px) {
	.ap-topbar { display: none; }
	.ap-nav-toggle { display: block; }
	.ap-nav { position: fixed; inset: 86px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 90px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
	.ap-nav.is-open { transform: translateX(0); }
	.ap-menu { flex-direction: column; gap: 0; }
	.ap-menu a { padding: 14px 6px; border-bottom: 1px solid #eef1f5; font-size: 1.05rem; }
	.ap-menu .sub-menu, .ap-menu .sub-menu.ap-sub-areas { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; columns: 1; padding: 0 0 0 16px; display: none; }
	.ap-menu li.is-open > .sub-menu { display: block; }
	.ap-menu .menu-item-has-children > a::after { float: right; margin-top: 8px; }
	.ap-nav-cta { display: inline-flex; justify-content: center; margin: 16px 0 0; }
	.ap-section { padding: 56px 0; }
	.ap-hero { padding: 70px 0; }
	.ap-grid-3, .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.ap-mobile-bar { display: flex; }
	body { padding-bottom: 64px; }
}
@media (max-width: 600px) {
	.ap-grid-2, .ap-grid-3, .ap-grid-4 { grid-template-columns: 1fr; }
	.ap-footer-grid { grid-template-columns: 1fr; padding: 50px 20px 30px; }
	.ap-form-grid { grid-template-columns: 1fr; }
	.ap-form { padding: 22px; }
	.ap-logo img { height: 48px; }
	.ap-header-inner { min-height: 72px; }
	.ap-nav { inset: 72px 0 0 0; }
	.ap-cta-buttons .ap-btn { width: 100%; justify-content: center; }
}
@media print { .ap-mobile-bar, .ap-topbar, .ap-nav-toggle { display: none !important; } }

/* Extra components (steps, FAQ, checklist, testimonials) --------------- */
.ap-narrow { max-width: 860px; }
.ap-content p { font-size: 1.05rem; color: #3d4451; }
.ap-checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; }
.ap-checklist i { color: var(--ap-blue); margin-right: 8px; }
.ap-steps .elementor-column > .elementor-widget-wrap, .ap-step-card { text-align: center; padding: 24px 18px; background: rgba(255,255,255,.08); border-radius: 10px; }
.ap-step-card h3, .ap-steps .elementor-icon-box-title, .ap-steps .elementor-icon-box-title span { color: #fff !important; margin: 14px 0 6px; }
.ap-step-card p, .ap-steps .elementor-icon-box-description { color: #dbe7f5; font-size: .95rem; margin: 0; }
.ap-steps .elementor-icon-box-icon { display: none; }
.ap-step-num { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--ap-blue); font-family: var(--ap-font-head); font-size: 1.6rem; font-weight: 700; }
.ap-faq details { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; margin-bottom: 10px; padding: 0 18px; }
.ap-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ap-blue); list-style: none; display: flex; justify-content: space-between; }
.ap-faq summary::after { content: '+'; font-size: 1.3rem; }
.ap-faq details[open] summary::after { content: '–'; }
.ap-faq p { margin: 0 0 16px; color: #4b5563; }
.ap-cta .elementor-icon-list-text, .ap-cta .elementor-icon-list-icon i, .ap-cta a { color: #fff !important; }
.ap-cta .elementor-icon-list-icon i { color: var(--ap-gold) !important; }
.ap-contact-list { list-style: none; padding: 0; margin: 1.2rem 0; } .ap-contact-list li { margin-bottom: 10px; } .ap-contact-list a { color: #fff; } .ap-contact-list i { color: var(--ap-gold); width: 22px; }
.ap-testimonial .ap-quote { color: var(--ap-gold); font-size: 1.5rem; }
.ap-hero .ap-eyebrow, .ap-hero .ap-eyebrow .elementor-heading-title { color: var(--ap-gold); font-family: var(--ap-font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.ap-hero .elementor-heading-title, .ap-hero h1 { color: #fff; }
.ap-hero .elementor-widget-text-editor, .ap-hero .ap-lead { color: #e5eefa; }
.ap-hero .ap-breadcrumbs { color: #dbe7f5; }
.ap-section-head { padding-bottom: 0; }
.ap-section-blue .elementor-heading-title { color: #fff; }
.ap-article h2 { margin-top: 2rem; font-size: 1.7rem; }
.ap-article p { font-size: 1.08rem; }
.ap-areas .ap-all-link a { background: var(--ap-blue-light); border-color: var(--ap-blue); color: var(--ap-blue); font-weight: 600; }
.ap-content a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Photo cards, split sections, image heroes --------------------------- */
.ap-photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ap-card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ap-blue-light); }
.ap-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ap-photo-card:hover .ap-card-img img { transform: scale(1.05); }
.ap-card-img .ap-card-icon { position: absolute; left: 18px; bottom: -22px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); width: 50px; height: 50px; font-size: 1.2rem; }
.ap-card-body { padding: 30px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ap-card-body h3 { margin: 0 0 8px; }
.ap-card-body p { flex: 1; }
.ap-areas-grid .ap-card-body { padding: 18px 18px 16px; }
.ap-areas-grid h3 { font-size: 1.25rem; }
.ap-areas-grid p { font-size: .85rem; margin-bottom: 8px; }
.ap-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ap-split-grid.ap-reverse .ap-split-img { order: 2; }
.ap-split-img img, .elementor-widget-image.ap-split-img img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--ap-shadow); display: block; }
.ap-split .ap-split-text h2 { margin-top: 0; }
.ap-hero-img { background-size: cover; background-position: center; }
.ap-hero-img::before { display: none; }
.ap-post-img img { width: 100%; height: auto; border-radius: 14px; margin-bottom: 1.5rem; }
.elementor-widget-image-box.ap-photo-card { background: #fff; border-radius: var(--ap-radius); overflow: hidden; border: 1px solid #e9edf3; height: 100%; transition: transform .2s, box-shadow .2s; }
.elementor-widget-image-box.ap-photo-card:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.elementor-widget-image-box.ap-photo-card .elementor-image-box-img { width: 100% !important; margin: 0 !important; }
.elementor-widget-image-box.ap-photo-card .elementor-image-box-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.elementor-widget-image-box.ap-photo-card .elementor-image-box-content { padding: 22px 22px 24px; text-align: left; }
.elementor-widget-image-box.ap-photo-card .elementor-image-box-title { font-family: var(--ap-font-head); color: var(--ap-blue); font-size: 1.35rem; margin: 0 0 6px; }
.elementor-widget-image-box.ap-photo-card .elementor-image-box-description { color: var(--ap-grey); font-size: .92rem; }
@media (max-width: 860px) {
	.ap-split-grid { grid-template-columns: 1fr; gap: 28px; }
	.ap-split-grid.ap-reverse .ap-split-img { order: 0; }
}

/* ==== Visibility & alignment pass ==================================== */
/* Hero readability: darker left-weighted overlay + text shadow */
.ap-hero-img { position: relative; isolation: isolate; }
.ap-hero-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,58,115,.92) 0%, rgba(8,58,115,.78) 45%, rgba(11,79,156,.35) 100%); }
.ap-hero-img.ap-cta::after { background: linear-gradient(100deg, rgba(8,58,115,.94) 0%, rgba(8,58,115,.86) 100%); }
.ap-hero h1, .ap-hero .elementor-heading-title, .ap-hero .ap-lead, .ap-hero .elementor-widget-text-editor { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.ap-hero .ap-eyebrow, .ap-hero .ap-eyebrow .elementor-heading-title { color: #F3D36B; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ap-hero .ap-breadcrumbs { color: #fff; opacity: .9; }
.ap-hero h1 { max-width: 820px; }
.ap-hero .ap-lead { font-size: 1.2rem; line-height: 1.55; }
/* Preview-only inline gradient was weaker: let ::after do the work */
.ap-hero-img[style] { background-blend-mode: normal; }

/* Text on blue sections */
.ap-section-blue .ap-lead, .ap-section-blue p, .ap-section-blue .elementor-widget-text-editor { color: #dbe7f5; }
.ap-section-blue .ap-lead.ap-center { color: #e8f0fb; }

/* Buttons never underlined, even inside content */
.ap-content a.ap-btn, .ap-split-text a.ap-btn, a.ap-btn { text-decoration: none !important; }

/* Headings rhythm */
.ap-section > .ap-container > h2.ap-center { margin: 0 0 .6rem; }
.ap-section > .ap-container > .ap-lead.ap-center { margin: 0 auto 2.2rem; max-width: 720px; }
.ap-section > .ap-container > h2.ap-center + .ap-grid { margin-top: 2.2rem; }

/* Orphan card in a 3-col grid: centre it */
.ap-grid-3 > :last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 860px) { .ap-grid-3 > :last-child:nth-child(3n + 1) { grid-column: auto; } }

/* Team cards: portrait photos */
.ap-team .ap-card-img { aspect-ratio: 3 / 4; }
.ap-team .ap-card-img img { object-position: top center; }
.ap-team .ap-card-body { text-align: center; }
.ap-team .ap-card-body p { font-size: .9rem; margin: 0; }

/* Icon cards: centre icon + title alignment */
.ap-card:not(.ap-photo-card) { display: flex; flex-direction: column; }
.ap-card:not(.ap-photo-card) p { flex: 1; }

/* Contact page */
.ap-contact-grid { gap: 48px; align-items: start; }
.ap-contact-list-cards { display: grid; gap: 12px; margin-top: 1.2rem; }
.ap-contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e9edf3; border-radius: 10px; padding: 14px 16px; }
.ap-contact-item i { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ap-blue-light); color: var(--ap-blue); }
.ap-contact-item strong { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-grey); margin-bottom: 2px; }
.ap-contact-item a { font-weight: 600; text-decoration: none; }
.ap-map-section { padding: 0 0 70px; }
.ap-map-section iframe { display: block; }

/* Mobile */
@media (max-width: 860px) {
	.ap-hero-img::after { background: linear-gradient(180deg, rgba(8,58,115,.9) 0%, rgba(8,58,115,.82) 100%); }
	.ap-hero h1 { font-size: 2rem; }
	.ap-hero .ap-lead { font-size: 1.05rem; }
	.ap-grid-4.ap-trust { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ap-trust .ap-card { padding: 20px 16px; }
	.ap-trust .ap-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
	.ap-trust h3 { font-size: 1.15rem; margin: 10px 0 4px; }
	.ap-trust p { font-size: .85rem; }
	.ap-section { padding: 48px 0; }
	.ap-hero, .ap-hero-inner { padding: 56px 0 64px; }
	.ap-contact-grid { gap: 32px; }
}
@media (max-width: 600px) {
	.ap-grid-4.ap-trust { grid-template-columns: 1fr 1fr; }
}
/* Property cards */
.ap-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ap-badge-sold { background: #C9A227; } .ap-badge-leased { background: var(--ap-blue); } .ap-badge-sale { background: #1e9e5a; }
.ap-prop h3 { font-size: 1.3rem; } .ap-prop p { font-size: .9rem; } .ap-prop p a { text-decoration: none; font-weight: 600; }
/* Orphan in 4-col grid: centre it */
.ap-grid-4 > :last-child:nth-child(4n + 1) { grid-column: 2 / span 2; }
@media (max-width: 1024px) { .ap-grid-4 > :last-child:nth-child(4n + 1) { grid-column: auto; } }
.ap-badge-rent { background: #0e7490; }
.ap-prop-price { font-weight: 700; color: var(--ap-grey-dark); margin: 0 0 6px !important; }
.ap-prop-facts { display: flex; gap: 16px; color: var(--ap-grey); font-size: .9rem; margin: 0 0 12px !important; }
.ap-prop-facts i { color: var(--ap-blue); margin-right: 4px; }
/* Grid with exactly two cards: centre them */
@media (min-width: 861px) {
	.ap-grid-3:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
}
