/**
 * Component: Hero
 * ---------------------------------------------------------------------------
 * File: assets/css/components/hero.css
 * PHP:  template-parts/components/hero.php
 *
 * RELOCATED (Sprint 12): this file moved from assets/css/sections/hero.css
 * to assets/css/components/hero.css when the Hero was promoted from a
 * page-specific section to a reusable component (see the PHP file's own
 * refactor note). Content is otherwise unchanged from Sprint 3 — no
 * visual difference on the Homepage.
 *
 * Every value below is an existing token from variables.css — no new
 * colour, spacing, radius, or typography size is introduced. The only
 * genuinely new CSS here is the decorative diagonal accent line and the
 * scroll-indicator rule, both built from --gdq-color-accent alone (no new
 * hue) and scoped entirely to this file.
 *
 * Accessibility: focus-visible on the scroll link is inherited
 * automatically from base.css (no override needed); the decorative lines
 * are aria-hidden in markup, not just visually incidental.
 *
 * Responsive: mobile-first. Single column (text, then image) by default;
 * two-column grid from tablet up, matching the Phase 1 responsive rule
 * for the Homepage hero (and reused as-is for the About page hero).
 */

.gdq-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--gdq-color-bg-primary);
	padding-top: var(--gdq-space-6);
	padding-bottom: var(--gdq-space-6);
}

.gdq-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: var(--gdq-space-5);
}

.gdq-hero__content {
	position: relative;
	z-index: 1;
}

/* Eyebrow — Sprint 12 addition, optional (About page uses it, Homepage
   doesn't). Text styling entirely inherited from the .eyebrow class in
   typography.css; this only adds the spacing before the heading. */
.gdq-hero__eyebrow {
	display: block;
	margin-bottom: var(--gdq-space-2);
}

.gdq-hero__heading {
	margin-top: 0;
}

.gdq-hero__accent {
	color: var(--gdq-color-accent);
}

.gdq-hero__intro {
	margin-top: var(--gdq-space-3);
	max-width: 46ch;
}

.gdq-hero__actions {
	display: flex;
	flex-direction: column;
	gap: var(--gdq-space-2);
	margin-top: var(--gdq-space-4);
}

.gdq-hero__actions .gdq-button {
	width: 100%;
}

/* ==========================================================================
   SCROLL INDICATOR — reuses .text-small typography (Sprint 2A); the short
   horizontal rule reuses --gdq-color-accent, no new colour.
   ========================================================================== */
.gdq-hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: var(--gdq-space-2);
	margin-top: var(--gdq-space-6);
	color: var(--gdq-color-text-body);
}

.gdq-hero__scroll:hover,
.gdq-hero__scroll:focus-visible {
	color: var(--gdq-color-accent);
}

.gdq-hero__scroll-line {
	display: inline-block;
	width: 32px;
	height: 1px;
	background-color: var(--gdq-color-accent);
}

/* ==========================================================================
   MEDIA COLUMN
   ========================================================================== */
.gdq-hero__media {
	position: relative;
}

.gdq-hero__image {
	width: 100%;
	height: auto;
	border-radius: var(--gdq-radius-md);
}

/* Decorative diagonal accent line (Design Spec §11) — pure CSS, no image
   asset, so it costs nothing extra on the network and scales cleanly.
   Positioned/sized with plain pixel values since it's a one-off
   decorative flourish tied to this exact layout, not a scalable design
   token — same treatment layout.css already uses for one-off structural
   values that aren't meant to be reused elsewhere. */
   .gdq-hero__accent-line {
	display: none;
}

/* ==========================================================================
   TABLET+ — two-column layout
   ========================================================================== */
@media (min-width: 768px) { /* mirrors --gdq-bp-tablet */
	.gdq-hero {
		padding-top: var(--gdq-space-7);
		padding-bottom: var(--gdq-space-7);
	}

	.gdq-hero__inner {
		grid-template-columns: 1fr 1fr;
		gap: var(--gdq-space-6);
	}

	.gdq-hero__actions {
		flex-direction: row;
	}

	.gdq-hero__actions .gdq-button {
		width: auto;
	}

}

@media (min-width: 1200px) { /* mirrors --gdq-bp-desktop */
	.gdq-hero {
		padding-top: var(--gdq-space-8);
		padding-bottom: var(--gdq-space-8);
	}
}
/* =========================================================
   FULL-BLEED HERO BACKGROUND
   Homepage + About
   ========================================================= */

   .gdq-hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	background-color: var(--gdq-color-bg-primary);
}


/* ---------------------------------------------------------
   BACKGROUND IMAGE
   --------------------------------------------------------- */

.gdq-hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;

	width: 100%;
	height: 100%;

	overflow: hidden;
}

.gdq-hero__background-image {
	display: block;

	width: 100%;
	height: 100%;
	max-width: none;

	object-fit: cover;
	object-position: center center;

	border-radius: 0;
}


/* ---------------------------------------------------------
   DARK GRADIENT
   Darkest behind the text on the left,
   gradually revealing the photograph toward the right.
   --------------------------------------------------------- */

.gdq-hero__background-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;

	display: block;

	background: linear-gradient(
		90deg,
		rgba(7, 18, 34, 0.96) 0%,
		rgba(7, 18, 34, 0.88) 22%,
		rgba(7, 18, 34, 0.65) 45%,
		rgba(7, 18, 34, 0.35) 68%,
		rgba(7, 18, 34, 0.10) 88%,
		rgba(7, 18, 34, 0.02) 100%
	);

	pointer-events: none;
}


/* ---------------------------------------------------------
   HERO CONTENT
   --------------------------------------------------------- */

   .gdq-hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
}

.gdq-hero__content {
	position: relative;
	z-index: 3;
}


/* ---------------------------------------------------------
   REMOVE OLD GRID MEDIA SPACE
   --------------------------------------------------------- */

.gdq-hero > .gdq-hero__inner {
	grid-template-columns: 1fr;
}


/* ---------------------------------------------------------
   DESKTOP
   --------------------------------------------------------- */

@media (min-width: 768px) {

	.gdq-hero {
		min-height: 100vh;
	}

	.gdq-hero__inner {
		min-height: 100vh;
	}

	.gdq-hero__content {
		max-width: 50rem;
	}

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

	.gdq-hero {
		min-height: 100svh;
	}

	.gdq-hero__inner {
		min-height: 100svh;
	}

	.gdq-hero__background-image {
		object-position: center center;
	}

}
/* =========================================================
   FULL-BLEED HERO — FINAL HEIGHT & COPY POSITION
   Homepage + About
   ========================================================= */

   .gdq-hero {
    height: calc(100vh - 80px);
    min-height: 620px;
    max-height: 760px;
    overflow: hidden;
}

/* Keep the background photograph filling the entire hero */
.gdq-hero__background,
.gdq-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Crop the photograph cleanly inside the shorter hero */
.gdq-hero__background-image,
.gdq-hero__image {
    width: 100%;
    height: 95%;
    object-fit: cover;
    object-position: center center;
}

/* Move the copy upward */
.gdq-hero__content {
    transform: translateY(-6vh);
}

/* Keep the content above the photograph and overlay */
.gdq-hero__inner,
.gdq-hero__content {
    position: relative;
    z-index: 2;
}


/* =========================================================
   DESKTOP
   ========================================================= */

   @media (min-width: 1200px) {
    .gdq-hero__content {
        transform: translateY(-16vh);
    }

    /* Homepage hero — move copy higher into the visual centre */
    .home .gdq-hero__content {
        transform: translateY(-20vh);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .gdq-hero {
        height: auto;
        min-height: 680px;
        max-height: none;
    }

    .gdq-hero__content {
        transform: translateY(-2rem);
    }

}

/* ==========================================================================
   HOMEPAGE — OUR SERVICES
   --------------------------------------------------------------------------
   Applies the same dark background treatment used by the About page
   "Verticals / Sectors We Shape" section.

   This is scoped to the Homepage only.
   ========================================================================== */

.site-main--home .gdq-services-grid {
	background-color: #111111 !important;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   SECTION HEADER
   -------------------------------------------------------------------------- */

.site-main--home .gdq-services-grid .gdq-section-header__eyebrow {
	color: var(--gdq-color-accent, #c8a45b) !important;
}

.site-main--home .gdq-services-grid .gdq-section-header__heading {
	color: #ffffff !important;
}

.site-main--home .gdq-services-grid .gdq-section-header__intro {
	color: rgba(255, 255, 255, 0.70) !important;
}

/* --------------------------------------------------------------------------
   SERVICE CARDS
   -------------------------------------------------------------------------- */

.site-main--home .gdq-services-grid .gdq-card--service {
	background-color: transparent !important;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.10);
}

/* Card titles */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__title {
	color: #ffffff !important;
}

/* Card descriptions */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__description,
.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__excerpt {
	color: rgba(255, 255, 255, 0.70) !important;
}

/* Card icons */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__icon,
.site-main--home .gdq-services-grid .gdq-card--service .gdq-icon {
	color: var(--gdq-color-accent, #c8a45b) !important;
}

/* --------------------------------------------------------------------------
   SERVICE CARD IMAGE PLACEHOLDERS
   -------------------------------------------------------------------------- */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__media--placeholder {
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.03),
			rgba(255, 255, 255, 0.07)
		) !important;

	border-color: rgba(255, 255, 255, 0.10);
}

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__media--placeholder::before {
	border-color: rgba(255, 255, 255, 0.12);
}

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__placeholder-label {
	color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   SERVICE BULLETS
   -------------------------------------------------------------------------- */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__bullets {
	color: rgba(255, 255, 255, 0.70);
}

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__bullets li {
	color: rgba(255, 255, 255, 0.70);
}

/* --------------------------------------------------------------------------
   LEARN MORE
   -------------------------------------------------------------------------- */

.site-main--home .gdq-services-grid .gdq-card--service .gdq-card__action a {
	color: var(--gdq-color-accent, #c8a45b);
}