/*
Theme Name: Anrah Manpower
Theme URI: https://anrahmanpower.org
Author: Anrah Manpower
Description: Custom theme for Anrah Manpower, a Europe-based manpower staffing and recruitment agency. Hand-coded conversion of the finished static site, with photography and native WordPress forms (Request Staff, Submit CV, Contact).
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: Proprietary - all rights reserved
Text Domain: anrah-manpower
*/

/* ==========================================================================
   Anrah Manpower — Stylesheet
   Corporate navy/charcoal + amber accent staffing-agency theme
   ========================================================================== */

:root {
  /* Colors */
  --color-navy-900: #0a1f33;
  --color-navy-800: #0f2942;
  --color-navy-700: #143552;
  --color-charcoal: #1e293b;
  --color-charcoal-light: #334155;
  --color-amber: #eb9a2f;
  --color-amber-dark: #d3811a;
  --color-amber-light: #f7c672;
  --color-white: #ffffff;
  --color-off-white: #f6f8fb;
  --color-gray-100: #eef1f6;
  --color-gray-200: #dde3ec;
  --color-gray-400: #94a3b8;
  --color-gray-600: #64748b;
  --color-text: #263242;
  --color-text-light: #5b6b7f;
  --color-border: #e2e8f0;
  --color-success: #1c7a4d;
  --color-error: #c0392b;

  /* Typography */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 31, 51, 0.12);
  --shadow-lg: 0 20px 48px rgba(10, 31, 51, 0.18);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-sm); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-off-white); }
.section-navy { background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700)); color: var(--color-white); }
.section-navy h2, .section-navy h3 { color: var(--color-white); }
.section-header { max-width: 720px; margin: 0 auto var(--space-lg); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  margin-bottom: var(--space-xs);
}
.section-navy .eyebrow { color: var(--color-amber-light); }
.lede { font-size: 1.1rem; color: var(--color-text-light); }
.section-navy .lede { color: var(--color-gray-200); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-amber); color: var(--color-navy-900); }
.btn-primary:hover { background: var(--color-amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-navy-900); border-color: var(--color-navy-900); }
.btn-secondary:hover { background: var(--color-navy-900); color: var(--color-white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy-900); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 31, 51, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
}
.brand img, .brand svg { width: 38px; height: 38px; }
.brand .brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-light);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.main-nav ul { display: flex; gap: 1.6rem; }
.main-nav a {
  color: var(--color-gray-200);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-white); border-color: var(--color-amber); }
.header-ctas { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 960px) {
  .header-ctas .btn span.btn-text-full { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-md);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav ul a { display: block; padding: 0.7rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .header-ctas .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Photo hero: navy overlay (heavier on the text side) over images/hero-home.jpg.
     style.css sits at the theme root, so the image path is "images/...", not "../images/...". */
  background:
    linear-gradient(105deg, rgba(8,24,40,0.90) 0%, rgba(10,31,51,0.82) 50%, rgba(15,41,66,0.70) 100%),
    url("images/hero-home.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: var(--space-2xl) 0;
}
.hero-network {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero .lede { color: var(--color-gray-200); font-size: 1.15rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-lg); }
.hero-stats { display: flex; gap: var(--space-lg); margin-top: var(--space-xl); flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--color-amber-light); }
.hero-stat span { color: var(--color-gray-400); font-size: 0.85rem; }
.hero-art { position: relative; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto var(--space-md); }
}

/* ---------- Cards / Grids ---------- */
/* (The static site's .photo-banner rules sized images with viewport-unit
   heights and were only used by photos that are no longer in the theme.
   Photos now use the fixed aspect-ratio components at the end of this file.) */

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-navy-700));
  color: var(--color-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}
.card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.card p { color: var(--color-text-light); font-size: 0.96rem; margin-bottom: 0; }

.industry-card { text-align: left; }

/* Why choose us */
.feature-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.feature-row .card-icon { flex-shrink: 0; margin-bottom: 0; }

/* Steps */
/* The counter must be reset on whichever container holds the steps (.steps on the
   job-seekers page, .steps-grid on the home page), or every badge shows "1". */
.steps, .steps-grid { counter-reset: step; }
.step {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: var(--space-lg);
}
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-amber);
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.steps-grid .step { padding-left: 0; padding-top: 3.2rem; }
.steps-grid .step::before { left: 0; top: 0; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-amber);
}
.testimonial p.quote { font-style: italic; color: var(--color-text); }
.testimonial .stars { color: var(--color-amber); margin-bottom: 0.5rem; }
.testimonial-author { font-weight: 600; color: var(--color-navy-900); font-size: 0.92rem; }
.testimonial-role { color: var(--color-text-light); font-size: 0.85rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700) 60%, var(--color-navy-800));
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner .lede { color: rgba(255, 255, 255, 0.9); }
.cta-banner .btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: var(--space-md); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: var(--space-sm);
}
.faq-question .fa-chevron-down { transition: transform var(--transition); color: var(--color-amber-dark); flex-shrink: 0; }
.faq-item.open .faq-question .fa-chevron-down { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  color: var(--color-text-light);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: var(--space-sm); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: var(--space-sm); }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-navy-900);
}
.form-field .required { color: var(--color-error); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--color-off-white);
  transition: border-color var(--transition), background var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-amber);
  background: var(--color-white);
}
.form-field input.field-error,
.form-field select.field-error,
.form-field textarea.field-error { border-color: var(--color-error); }
.field-error-msg { color: var(--color-error); font-size: 0.82rem; margin-top: 0.25rem; display: none; }
.form-field.has-error .field-error-msg { display: block; }
.form-note { font-size: 0.85rem; color: var(--color-text-light); margin-top: 0.25rem; }
.form-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e5f6ee; color: var(--color-success); border: 1px solid #b9e6cd; }
.form-status.error { background: #fbeae7; color: var(--color-error); border: 1px solid #f1c3ba; }
.file-input-wrap {
  border: 1.5px dashed var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--color-off-white);
  text-align: center;
}
.file-input-wrap input[type="file"] { border: none; background: none; padding: 0.4rem 0; }

/* ---------- Contact / info blocks ---------- */
.contact-info-card {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.contact-info-card h3 { color: var(--color-white); }
.contact-item { display: flex; gap: 0.9rem; margin-bottom: var(--space-md); align-items: flex-start; }
.contact-item .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(235,154,47,0.18); color: var(--color-amber-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .placeholder { color: var(--color-gray-400); font-style: italic; font-size: 0.9rem; }
.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-md); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-row a:hover { background: var(--color-amber); color: var(--color-navy-900); }

/* ---------- Page header / breadcrumb banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.page-banner h1 { color: var(--color-white); margin-bottom: var(--space-xs); }
.page-banner p { color: var(--color-gray-200); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--color-gray-400); margin-bottom: var(--space-sm); }
.breadcrumb a { color: var(--color-amber-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-gray-200);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-white); margin-bottom: var(--space-sm); }
.footer-brand svg { width: 32px; height: 32px; }
.site-footer h4 { color: var(--color-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-sm); }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--color-gray-400); transition: color var(--transition); font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-amber-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-gray-400);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(235,154,47,0.12);
  color: var(--color-amber-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.divider { height: 1px; background: var(--color-border); margin: var(--space-lg) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--space-lg); } }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem; }
.list-check li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-amber-dark);
  position: absolute;
  left: 0;
  top: 0.15rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-amber);
  color: var(--color-navy-900);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   WordPress theme additions
   Everything above is the static site's stylesheet (unchanged apart from the
   hero image path). Everything below was added for the WordPress conversion
   and the photography upgrade.
   ========================================================================== */

/* ---------- Navigation (wp_nav_menu) ---------- */
/* The fallback menu marks the current page with .active; menus built in
   Appearance > Menus get WordPress's own current-menu-item classes instead. */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--color-white); border-color: var(--color-amber); }

/* The header CTA buttons sit inside .main-nav, so the generic ".main-nav a"
   link rule (specificity 0,1,1) overrides .btn padding and colours. Restore
   the intended button look (navy text on amber, white outline button). */
.main-nav .header-ctas .btn { padding: 0.45rem 0.7rem; border: 2px solid transparent; }
.main-nav .header-ctas .btn-primary,
.main-nav .header-ctas .btn-primary:hover { color: var(--color-navy-900); border-color: transparent; }
.main-nav .header-ctas .btn-outline-light { color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.main-nav .header-ctas .btn-outline-light:hover { color: var(--color-navy-900); border-color: var(--color-white); }

/* Proper-sized buttons need a little more room in the header row, so the
   desktop spacing is tightened slightly and the labels collapse to icon-only
   buttons (they carry aria-labels) below 1240px, a wider breakpoint than the
   static site's 960px. The open mobile menu shows the full labels again. */
@media (min-width: 861px) {
  .main-nav ul { gap: 1.2rem; }
  .main-nav { gap: var(--space-md); }
  .header-ctas { gap: 0.5rem; }
}
@media (min-width: 1001px) {
  .main-nav ul a { white-space: nowrap; }
}
@media (max-width: 1239px) {
  .header-ctas .btn span.btn-text-full { display: none; }
}
@media (max-width: 860px) {
  .header-ctas .btn span.btn-text-full { display: inline; }
}

/* ---------- Form status banners (replace the static thank-you page) ---------- */
/* Server-rendered banners after a redirect with ?sent=1 / ?error=1 carry the
   .show class so they display straight away; the empty .form-status inside
   each form is filled in by js/main.js for client-side validation messages. */
.form-status.show { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-status i { margin-top: 0.2rem; }
.form-status a { font-weight: 600; text-decoration: underline; }

/* ---------- GDPR consent checkbox ---------- */
.form-field .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}
.form-field .consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  padding: 0;
  accent-color: var(--color-amber-dark);
  cursor: pointer;
}
.form-field .consent-label a { color: var(--color-navy-800); font-weight: 600; text-decoration: underline; }
.form-field .consent-label a:hover { color: var(--color-amber-dark); }

/* ==========================================================================
   Photo-led sections
   Fixed aspect-ratio boxes + object-fit: cover, so differently sized source
   photos can never distort or misalign a layout.
   ========================================================================== */

/* Photo-backed inner-page header (.page-banner + .page-banner--photo) */
.page-banner--photo {
  background:
    linear-gradient(135deg, rgba(10,31,51,0.92) 0%, rgba(15,41,66,0.84) 55%, rgba(20,53,82,0.74) 100%),
    var(--page-hero-img) center var(--page-hero-pos, 50%) / cover no-repeat;
  padding: var(--space-2xl) 0 5rem;
}
@media (max-width: 640px) { .page-banner--photo { padding: var(--space-xl) 0 var(--space-xl); } }

/* Image + text split */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split-feature > * { min-width: 0; }
.split-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Image on the right on desktop; the image always stacks first on mobile. */
.split-feature--reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split-feature { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split-feature--reverse .split-media { order: 0; }
}
.split-feature .list-check { margin: var(--space-sm) 0 0; }
.mt-xl { margin-top: var(--space-xl); }

/* Card with a photo across the top (sector cards) */
.card.has-photo { padding: 0 0 var(--space-md); overflow: hidden; }
.card.has-photo .card-photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 0; }
.card.has-photo .card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card.has-photo:hover .card-photo img { transform: scale(1.04); }
.card.has-photo .card-icon {
  position: relative;
  margin: -27px var(--space-md) var(--space-sm);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}
.card.has-photo h3,
.card.has-photo p { margin-left: var(--space-md); margin-right: var(--space-md); }

/* Call-to-action band with a photo behind it */
.cta-banner--photo {
  background:
    linear-gradient(120deg, rgba(10,31,51,0.93) 0%, rgba(15,41,66,0.85) 55%, rgba(20,53,82,0.70) 100%),
    var(--cta-img) center / cover no-repeat;
}
