/* ==========================================================================
   ATWAM GROUP — About Page
   Section layout, grids, card structure, typography, responsive behavior.
   Hover effects and entrance animation live in about-effects.css.
   Version 1.6.5
   ========================================================================== */

/* ── Full-width section base ──────────────────────────────────────────────── */
.atwam-who,
.atwam-purpose,
.atwam-sectors,
.atwam-approach {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	padding-block: var(--atwam-section-space);
}
.atwam-who,
.atwam-approach {
	background: var(--atwam-off-white);
}

/* ── Who We Are ───────────────────────────────────────────────────────────── */
.atwam-who-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.atwam-who-grid > .wp-block-group__inner-container {
	display: contents;
}
.atwam-who-copy {
	max-width: 540px;
	padding-top: 6px;
}
.atwam-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 16px;
}
.atwam-feature-grid > .wp-block-group__inner-container {
	display: contents;
}
.atwam-feature {
	padding: 22px;
	background: var(--atwam-white);
	border: 1px solid var(--atwam-border);
	border-radius: var(--atwam-radius-md);
	box-shadow: var(--atwam-shadow-sm);
}
.atwam-feature h3 {
	margin-bottom: 8px;
	font-size: 1.02rem;
}

/* ── Mission / Vision / Values ────────────────────────────────────────────── */
.atwam-purpose {
	color: var(--atwam-white);
	background: linear-gradient(140deg, var(--atwam-navy-deep) 0%, var(--atwam-navy-primary) 100%);
}
.atwam-purpose h2 {
	color: var(--atwam-white);
}
.atwam-purpose-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 28px;
}
.atwam-purpose-grid > .wp-block-group__inner-container {
	display: contents;
}
.atwam-purpose-card {
	padding: 26px 26px 22px;
	border-left: 1px solid rgba(255,255,255,.15);
}
.atwam-purpose-card:first-child {
	border-left: 0;
}
.atwam-purpose-card h3 {
	margin-bottom: 14px;
	color: var(--atwam-gold-primary);
}
.atwam-purpose-card p {
	color: rgba(255,255,255,.82);
	font-size: .97rem;
	line-height: 1.75;
}

/* Values list inside purpose cards */
.atwam-values {
	margin: 0;
	padding: 0;
	list-style: none;
}
.atwam-values li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	color: rgba(255,255,255,.82);
	font-size: .97rem;
	line-height: 1.65;
}
.atwam-values li::before {
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 1.5px;
	background: var(--atwam-gold-primary);
	content: "";
}

/* ── Market Sectors ───────────────────────────────────────────────────────── */
.atwam-sector-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0,1fr));
	gap: 18px;
}
.atwam-sector-grid > .wp-block-group__inner-container {
	display: contents;
}
.atwam-sector-card {
	overflow: hidden;
	background: var(--atwam-white);
	border: 1px solid var(--atwam-border);
	border-radius: var(--atwam-radius-md);
	box-shadow: var(--atwam-shadow-sm);
}
.atwam-sector-card figure {
	position: relative;
	margin: 0;
	overflow: hidden;
}
/* Always-on gradient overlay for image contrast */
.atwam-sector-card figure::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 45%, rgba(1, 22, 50, .30) 100%);
	pointer-events: none;
	content: "";
}
/* aspect-ratio replaces the old fixed 165px height */
.atwam-sector-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.atwam-sector-content {
	padding: 14px 16px 18px;
}
.atwam-sector-content h3 {
	margin-bottom: 4px;
	font-size: .97rem;
	line-height: 1.35;
}

/* ── Team Approach ────────────────────────────────────────────────────────── */
.atwam-approach-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.atwam-approach-grid > .wp-block-group__inner-container {
	display: contents;
}
/* Media column: structural frame only — no decorative placeholder when empty */
.atwam-approach-media {
	border-radius: var(--atwam-radius-lg);
	overflow: hidden;
}
.atwam-approach-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Collapse media column when empty; copy fills the full grid row.
   Live markup: <div class="atwam-approach-media"></div> — genuinely empty, no
   wp-block-group__inner-container wrapper, so :empty matches directly.
   :empty (IE9+) + adjacent sibling (IE7+) = broadly compatible, no :has() required.
   When a real image is added to .atwam-approach-media the two-column layout
   is automatically restored because :empty no longer matches.
   NOTE: Add a real ATWAM project photo to .atwam-approach-media to populate this column. */
.atwam-approach-media:empty {
	display: none;
}
.atwam-approach-media:empty + .atwam-approach-copy {
	grid-column: 1 / -1;
	width: min(100%, 700px);
	justify-self: center;
}

/* Check-list — gold dash markers; no emoji, no CSS-generated words */
.atwam-check-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.atwam-check-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 12px;
	line-height: 1.65;
}
.atwam-check-list li::before {
	position: absolute;
	left: 0;
	top: 10px;
	width: 10px;
	height: 1.5px;
	background: var(--atwam-gold-primary);
	content: "";
}

/* Approach outline button — secondary CTA; gold border distinguishes from primary WhatsApp button.
   Native Gutenberg core/button block: .atwam-about-btn-outline is on the wrapper .wp-block-button;
   the clickable element is .wp-block-button__link — target it explicitly. */
.atwam-about-btn-outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 26px;
	color: var(--atwam-navy-primary);
	background: transparent;
	border: 1px solid var(--atwam-gold-primary);
	border-radius: var(--atwam-radius-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

/* ── About Services ───────────────────────────────────────────────────────── */
.atwam-about-services {
	padding-block: var(--atwam-section-space);
}
/* 3-column grid in the About context (global atwam-components.css uses 4-col) */
.atwam-about-services .atwam-svc-grid {
	grid-template-columns: repeat(3, minmax(0,1fr));
}

/* ── About CTA ────────────────────────────────────────────────────────────── */
/* Navy background so the gold WhatsApp button has sufficient contrast */
.atwam-about-cta {
	position: relative;
	isolation: isolate;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	padding-block: clamp(54px, 7vw, 84px);
	text-align: center;
	background: var(--atwam-navy-deep);
}
.atwam-about-cta h2 {
	color: var(--atwam-white);
}
.atwam-about-cta p {
	color: rgba(255, 255, 255, .82);
}
.atwam-about-cta .atwam-section-intro {
	margin-inline: auto;
	margin-bottom: 0;
}
/* Single-button wrapper — provides spacing above the WhatsApp CTA */
.atwam-about-cta-actions {
	margin-top: 32px;
	margin-bottom: 0;
}

/* ── WhatsApp CTA button ──────────────────────────────────────────────────── */
/* Applied alongside .atwam-button--gold from the plugin shortcode.
   Overrides the plugin's default hover so the button reads gold-on-navy. */
.atwam-about-cta-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 14px 30px;
	color: var(--atwam-navy-deep);
	background: var(--atwam-gold-primary);
	border: 1.5px solid var(--atwam-gold-primary);
	border-radius: var(--atwam-radius-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	touch-action: manipulation;
}

/* ── Sectors section centred heading wrapper ─────────────────────────────── */
.atwam-center-head {
	max-width: 720px;
	margin-inline: auto;
	margin-bottom: clamp(28px, 3vw, 40px);
	text-align: center;
}

/* ── About-services: push link to card bottom ───────────────────────────── */
.atwam-about-services .atwam-svc-link {
	margin-top: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.atwam-sector-grid {
		grid-template-columns: repeat(3, minmax(0,1fr));
	}
	.atwam-about-services .atwam-svc-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}
@media (max-width: 900px) {
	.atwam-who-grid,
	.atwam-approach-grid {
		grid-template-columns: 1fr;
	}
	.atwam-who-copy {
		max-width: none;
	}
	.atwam-purpose-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}
@media (max-width: 767px) {
	.atwam-feature-grid,
	.atwam-purpose-grid,
	.atwam-sector-grid {
		grid-template-columns: 1fr;
	}
	.atwam-purpose-card {
		padding: 20px 0;
		border-left: 0;
		border-top: 1px solid rgba(255,255,255,.14);
	}
	.atwam-purpose-card:first-child {
		border-top: 0;
	}
	.atwam-about-services .atwam-svc-grid {
		grid-template-columns: 1fr;
	}
}
