/*
Theme Name: MasseeraRe-Edit
Theme URI: https://www.masseera.com
Author: Masseera Group of Companies
Author URI: https://www.masseera.com
Description: Custom WordPress theme for Masseera Group of Companies — Engineering Power for the Region's Future. Built from the bespoke Masseera site design featuring a crimson & gold corporate palette, hero slideshow, projects, certifications, market segments, client ticker and more.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masseera
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@font-face {
  font-family: 'FranceB';
  src: url('assets/franceb.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #860406;
  --crimson-dark: #5e0304;
  --crimson-light: #a30507;
  --gold: #c9a84c;
  --gold-light: #e8c87a;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --light-grey: #f0eeeb;
  --mid-grey: #999;
  --dark: #1a1a1a;
  --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; }

/* ─── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid #e8e4df;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo { height: 52px; width: auto; display: block; mix-blend-mode: multiply; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: 'FranceB', serif;
  font-size: 1.75rem; font-weight: normal;
  color: var(--crimson); letter-spacing: 0.05em; line-height: 1;
  text-shadow: 1px 2px 8px rgba(134,4,6,0.35);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark); text-decoration: none;
  padding: 6px 10px; border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover, .nav-links li a.current { color: var(--crimson); background: rgba(134,4,6,0.06); }
.nav-cta { background: var(--crimson) !important; color: var(--white) !important; padding: 8px 18px !important; border-radius: 2px !important; }
.nav-cta:hover { background: var(--crimson-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO (Home) ─────────────────────────────── */
.hero {
  margin-top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  min-height: 520px;
  position: relative;
  background: #1a0000;
  display: flex; align-items: center; overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; animation: heroSlide 18s ease-in-out infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroSlide {
  0%   { opacity: 0; } 5%   { opacity: 1; }
  30%  { opacity: 1; } 38%  { opacity: 0; } 100% { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,0,0,0.88) 0%, rgba(50,1,2,0.78) 45%, rgba(100,3,5,0.65) 100%);
  z-index: 1;
}
.hero-bg-pattern {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 40px);
}
.hero-content { position: relative; z-index: 3; padding: 0 80px; max-width: 720px; animation: fadeUp 0.9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 600; line-height: 1.1; color: var(--white); margin-bottom: 24px; }
.hero-title span { color: var(--gold-light); font-style: italic; text-shadow: 1px 2px 10px rgba(0,0,0,0.5), 0 0 22px rgba(201,168,76,0.25); }
.hero-desc { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px;
  text-decoration: none; border-radius: 2px; transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px;
  text-decoration: none; border-radius: 2px; transition: border-color 0.2s, background 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-certs { position: absolute; bottom: 36px; right: 60px; display: flex; gap: 20px; z-index: 3; animation: fadeUp 1.1s 0.3s ease both; }
.cert-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); padding: 10px 18px; border-radius: 2px; text-align: center; }
.cert-badge strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; color: var(--gold-light); letter-spacing: 0.08em; }
.cert-badge small { font-size: 0.6rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-scroll { position: absolute; bottom: 36px; left: 80px; z-index: 3; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.45); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; animation: fadeUp 1.2s 0.5s ease both; }
.scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%, 100% { width: 40px; opacity: 0.3; } 50% { width: 60px; opacity: 0.7; } }

/* ─── STATS BAR ───────────────────────────────── */
.stats-bar { background: var(--crimson); padding: 24px 80px; display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.stat-item { text-align: center; color: var(--white); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 4px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.2); align-self: stretch; }

/* ─── SECTION COMMONS ─────────────────────────── */
section { padding: 90px 80px; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--crimson); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 20px; }
.section-title em { color: var(--crimson); font-style: italic; text-shadow: 1px 2px 8px rgba(134,4,6,0.28); }
.section-body { font-weight: 300; font-size: 0.95rem; line-height: 1.75; color: #555; max-width: 640px; margin-bottom: 40px; }

/* ─── ABOUT (home teaser) ─────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text { font-weight: 300; font-size: 0.95rem; line-height: 1.75; color: #555; margin-bottom: 18px; }
.about-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.highlight-row { display: flex; gap: 16px; align-items: flex-start; }
.highlight-icon { width: 40px; height: 40px; background: rgba(134,4,6,0.08); border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.highlight-icon svg { width: 20px; height: 20px; stroke: var(--crimson); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight-text { display: flex; flex-direction: column; gap: 4px; }
.highlight-text strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--dark); }
.highlight-text span { font-size: 0.84rem; font-weight: 300; color: #666; line-height: 1.5; }
.about-img-stack { position: relative; height: 420px; }
.about-img-main { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.about-img-badge { position: absolute; bottom: -20px; left: -20px; background: var(--crimson); color: var(--white); padding: 20px 24px; text-align: center; border-radius: 2px; }
.about-img-badge strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.about-img-badge span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.about-read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.about-read-more span { display: inline-block; transition: transform 0.2s; }
.about-read-more:hover { border-bottom-color: var(--crimson); }
.about-read-more:hover span { transform: translateX(4px); }

/* ─── GROUP ───────────────────────────────────── */
.group { background: var(--off-white); }
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.group-card { background: var(--white); border: 1px solid #e8e4df; padding: 28px 24px; border-radius: 2px; transition: border-color 0.2s, box-shadow 0.2s; }
.group-card:hover { border-color: var(--crimson); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
.group-card-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: rgba(134,4,6,0.12); line-height: 1; margin-bottom: 12px; }
.group-card-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.group-card-loc { font-size: 0.8rem; color: var(--mid-grey); }

/* ─── PROJECTS ────────────────────────────────── */
.projects-section { background: var(--white); }
.projects-tabs { display: flex; gap: 4px; margin: 32px 0 28px; flex-wrap: wrap; }
.projects-tab-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 22px; border: 1.5px solid #ddd; background: transparent; color: #888; cursor: pointer; border-radius: 2px; transition: all 0.2s; }
.projects-tab-btn.active { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.projects-grid-wrap { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projects-grid-wrap.active { display: grid; }
.proj-card { border: 1px solid #e8e4df; border-radius: 2px; overflow: hidden; }
.proj-card.hidden { display: none; }
.proj-card-img { width: 100%; height: 240px; object-fit: cover; display: block; background: var(--light-grey); }
.proj-card-name { padding: 14px 16px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; color: var(--dark); line-height: 1.4; }
.proj-expand-wrap { display: none; justify-content: center; margin-top: 28px; }
.projects-grid-wrap.active + .proj-expand-wrap { display: flex; }
.proj-expand-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 32px; border: 1.5px solid var(--crimson); background: transparent; color: var(--crimson); cursor: pointer; border-radius: 2px; transition: background 0.2s, color 0.2s; }
.proj-expand-btn:hover { background: var(--crimson); color: var(--white); }

/* ─── BLOG ───────────────────────────────────── */
.blog-section { background: var(--off-white); padding: 90px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.blog-card { background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid #e8e4df; display: flex; flex-direction: column; transition: box-shadow 0.22s, transform 0.22s; text-decoration: none; color: inherit; }
.blog-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.11); transform: translateY(-3px); }
.blog-card-thumb { width: 100%; height: 210px; object-fit: cover; display: block; background: var(--light-grey); }
.blog-card-thumb-placeholder { width: 100%; height: 210px; background: linear-gradient(135deg, #f0eeeb 0%, #e4e0da 100%); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 2.2rem; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.blog-card-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); background: rgba(134,4,6,0.07); padding: 3px 9px; border-radius: 2px; }
.blog-card-date { font-size: 0.72rem; color: var(--mid-grey); letter-spacing: 0.04em; }
.blog-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 0.84rem; color: #666; line-height: 1.65; flex: 1; }
.blog-card-read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); }
.blog-card-read-more::after { content: '→'; transition: transform 0.18s; }
.blog-card:hover .blog-card-read-more::after { transform: translateX(4px); }

/* ─── COMPETENCIES ────────────────────────────── */
.competencies { background: var(--dark); padding: 90px 80px; position: relative; overflow: hidden; }
.competencies::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; border-radius: 50%; border: 60px solid rgba(134,4,6,0.2); }
.competencies .section-title { color: var(--white); }
.competencies .section-label { color: var(--gold); }
.competencies .section-label::before { background: var(--gold); }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 50px; }
.comp-item { background: rgba(255,255,255,0.04); padding: 32px 28px; border: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; position: relative; }
.comp-item:hover { background: rgba(134,4,6,0.15); }
.comp-item::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--crimson); transition: height 0.3s; }
.comp-item:hover::before { height: 100%; }
.comp-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: 12px; }
.comp-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.comp-body { font-weight: 300; font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ─── CERTIFICATIONS ──────────────────────────── */
.certifications { background: var(--off-white); padding: 90px 80px; }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.cert-card { background: var(--white); border-radius: 3px; padding: 36px 30px; text-align: center; border: 1px solid #e8e4df; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; cursor: pointer; }
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); border-color: var(--crimson); }
.cert-icon { width: 64px; height: 64px; background: var(--crimson); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cert-icon svg { width: 30px; height: 30px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cert-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.cert-full { font-size: 0.82rem; color: var(--crimson); font-weight: 500; margin-bottom: 14px; }
.cert-desc { font-weight: 300; font-size: 0.84rem; color: #666; line-height: 1.6; }

/* ─── SEGMENTS ────────────────────────────────── */
.segments { background: var(--white); }
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 50px; }
.segment-item { position: relative; height: 240px; overflow: hidden; cursor: default; }
.segment-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.4s; }
.segment-item:hover .segment-bg { transform: scale(1.05); }
.segment-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%); display: flex; align-items: flex-end; padding: 20px; }
.segment-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }

/* ─── PARTNERS ───────────────────────────────── */
.partners { background: var(--dark); padding: 90px 80px; }
.partners .section-title { color: var(--white); }
.partners .section-label { color: var(--gold); }
.partners .section-label::before { background: var(--gold); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.partner-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 22px 24px 20px; border-radius: 2px; transition: background 0.2s, border-color 0.2s; }
.partner-card:hover { background: rgba(134,4,6,0.2); border-color: var(--crimson); }
.partner-card-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.85); text-transform: uppercase; margin-bottom: 8px; }
.partner-card-desc { font-size: 0.8rem; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.55; }

/* ─── CLIENTS TICKER ─────────────────────────── */
.clients-section { background: var(--off-white); padding: 90px 80px; }
.ticker-wrapper { overflow: hidden; margin-top: 50px; position: relative; }
.ticker-wrapper::before,
.ticker-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; }
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--off-white), transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(to left, var(--off-white), transparent); }
.ticker { display: flex; gap: 0; animation: ticker 60s linear infinite; width: max-content; }
.ticker:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { padding: 12px 32px; border-right: 1px solid #e0dcd7; white-space: nowrap; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #888; transition: color 0.2s; }
.ticker-item:hover { color: var(--crimson); }
.ticker-item img { height: 56px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) opacity(0.55); mix-blend-mode: multiply; transition: filter 0.25s; display: block; }
.ticker-item:hover img { filter: grayscale(0) opacity(1); }

/* ─── MISSION & VISION ───────────────────────── */
.mission-vision { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--white); padding: 90px 80px; gap: 60px; }
.mv-divider { width: 1px; background: #e8e4df; align-self: stretch; }
.mv-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.mv-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--dark); margin-bottom: 18px; line-height: 1.25; }
.mv-body { font-weight: 300; font-size: 0.9rem; line-height: 1.8; color: #666; font-style: italic; }

/* ─── FOOTER ──────────────────────────────────── */
.footer-section { background: #111; padding: 70px 80px 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo-wrap { height: 80px; margin-bottom: 20px; }
.footer-logo { height: 80px; width: auto; }
.footer-desc { font-size: 0.84rem; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.75; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.social-link:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-office { margin-bottom: 24px; }
.footer-office-city { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.footer-office-detail { font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-office-detail a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-office-detail a:hover { color: rgba(255,255,255,0.8); }
.footer-nav-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-links li a { font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; letter-spacing: 0.04em; }
.footer-nav-links li a:hover { color: rgba(255,255,255,0.8); }
.footer-map { height: 200px; border-radius: 2px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(1); }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.25); font-weight: 300; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ─── CERT MODAL ──────────────────────────────── */
.cert-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9000; align-items: center; justify-content: center; padding: 20px; }
.cert-modal-overlay.active { display: flex; }
.cert-modal-box { background: #111; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; max-width: 900px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; padding-bottom: 8px; }
.cert-modal-close { position: sticky; top: 12px; float: right; margin: 12px 16px 0 0; background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7); font-size: 1.4rem; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: background 0.2s, color 0.2s; z-index: 1; }
.cert-modal-close:hover { background: var(--crimson); color: #fff; }
.cert-modal-imgs { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 16px; clear: both; }
.cert-modal-img { width: 100%; display: block; border-radius: 2px; }
.cert-modal-caption { padding: 8px 16px 4px; font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); clear: both; }

/* ═══════════════════════════════════════════════
   ABOUT PAGE TEMPLATE STYLES
   ═══════════════════════════════════════════════ */

/* ─── AU HERO ─────────────────────────────────── */
.au-hero {
  margin-top: var(--nav-height);
  min-height: 340px;
  position: relative;
  background: linear-gradient(135deg, #140000 0%, #320102 45%, #640305 100%);
  display: flex; align-items: center; overflow: hidden;
}
.au-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 40px);
}
.au-hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  border: 80px solid rgba(134,4,6,0.15);
}
.au-hero-inner {
  position: relative; z-index: 1;
  padding: 80px;
  animation: fadeUp 0.9s ease both;
}
.au-hero-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.au-hero-label::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold); }
.au-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600; line-height: 1.1; color: var(--white);
  margin-bottom: 18px;
}
.au-hero-title em { color: var(--gold-light); font-style: italic; }
.au-hero-sub {
  font-weight: 300; font-size: 1rem; line-height: 1.6;
  color: rgba(255,255,255,0.65); max-width: 520px;
}
.au-breadcrumb {
  position: absolute; bottom: 28px; left: 80px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.au-breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.au-breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.au-breadcrumb span { color: rgba(255,255,255,0.6); }

/* ─── AU SECTIONS ─────────────────────────────── */
.au-section { padding: 90px 80px; }
.au-container { max-width: 1280px; margin: 0 auto; }

/* ─── AU OVERVIEW ─────────────────────────────── */
.au-overview { background: var(--white); }
.au-overview-grid { display: flex; flex-direction: column; gap: 48px; }
.au-body {
  font-weight: 300; font-size: 0.95rem; line-height: 1.8;
  color: #555; margin-bottom: 18px;
}
.au-body--mt { margin-top: 24px; }
.au-body--center { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.au-fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.au-field-card {
  background: var(--off-white); border: 1px solid #e8e4df;
  border-radius: 2px; padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.au-field-card:hover {
  border-color: var(--crimson);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.au-field-icon {
  width: 44px; height: 44px;
  background: rgba(134,4,6,0.08); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.au-field-icon svg { width: 22px; height: 22px; stroke: var(--crimson); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-field-card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dark); line-height: 1.3;
}

/* ─── AU OFFICES ──────────────────────────────── */
.au-offices { background: var(--off-white); }
.au-office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.au-office-card {
  background: var(--white); border: 1px solid #e8e4df;
  border-radius: 2px; padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.au-office-card:hover { border-color: var(--crimson); box-shadow: 0 10px 32px rgba(0,0,0,0.07); }
.au-office-featured {
  border-top: 3px solid var(--crimson);
}
.au-office-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson); background: rgba(134,4,6,0.08);
  padding: 3px 10px; border-radius: 2px; margin-bottom: 10px;
}
.au-office-city {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 600; color: var(--dark); line-height: 1; margin-bottom: 6px;
}
.au-office-entity {
  font-size: 0.82rem; font-weight: 500; color: #666;
  line-height: 1.4; margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #e8e4df;
}
.au-office-desc {
  font-weight: 300; font-size: 0.88rem; line-height: 1.75;
  color: #666; margin-bottom: 24px;
}
.au-office-details { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.au-office-details li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.84rem; font-weight: 300; color: #555; line-height: 1.5;
}
.au-office-details li svg {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  stroke: var(--crimson); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ─── AU ACTIVITIES ───────────────────────────── */
.au-activities { background: var(--white); }
.au-activities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.au-list {
  list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px;
}
.au-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; font-weight: 300; color: #555; line-height: 1.6;
  padding-bottom: 10px; border-bottom: 1px solid #f0eeeb;
}
.au-list li::before {
  content: '';
  display: inline-block; width: 5px; height: 5px;
  background: var(--crimson); border-radius: 50%;
  flex-shrink: 0; margin-top: 8px;
}
.au-product-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 20px; counter-reset: product-counter;
}
.au-product-list li {
  counter-increment: product-counter;
  position: relative;
  background: var(--white); border: 1px solid #e8e4df;
  border-radius: 2px; padding: 14px 16px 14px 48px;
  font-size: 0.83rem; font-weight: 400; color: #444; line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.au-product-list li:hover {
  border-color: var(--crimson);
  box-shadow: 0 4px 16px rgba(134,4,6,0.09);
  transform: translateY(-1px);
}
.au-product-list li::before {
  content: counter(product-counter, decimal-leading-zero);
  position: absolute; left: 12px; top: 14px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700;
  color: rgba(134,4,6,0.18); line-height: 1;
  width: 28px; text-align: center;
}

/* ─── AU REFERENCES ───────────────────────────── */
.au-references { background: var(--off-white); }
.au-ref-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 48px;
}
.au-ref-item {
  background: var(--white);
  border: 1px solid #e8e4df;
  border-radius: 3px;
  padding: 22px 16px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #444;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.18s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; min-height: 96px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.au-ref-item:hover {
  border-color: var(--crimson);
  box-shadow: 0 6px 20px rgba(134,4,6,0.1);
  transform: translateY(-2px);
}
.au-ref-item img {
  height: 44px; width: auto; max-width: 120px; object-fit: contain;
  filter: grayscale(1) opacity(0.55); mix-blend-mode: multiply;
  transition: filter 0.25s;
}
.au-ref-item:hover img { filter: grayscale(0) opacity(1); }
.au-ref-item span {
  font-family: 'Inter', sans-serif; font-weight: 300; text-transform: none;
  font-size: 0.72rem; color: var(--mid-grey); letter-spacing: 0; line-height: 1.4;
}

/* ─── AU CTA ──────────────────────────────────── */
.au-cta {
  background: linear-gradient(135deg, #140000 0%, #320102 100%);
  position: relative; overflow: hidden;
}
.au-cta::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 50px solid rgba(134,4,6,0.25);
}
.au-cta-inner { text-align: center; position: relative; z-index: 1; }
.au-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600;
  color: var(--white); line-height: 1.2; margin-bottom: 16px;
}
.au-cta-title em { color: var(--gold-light); font-style: italic; }
.au-cta-sub {
  font-weight: 300; font-size: 0.95rem; color: rgba(255,255,255,0.6);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.au-cta-btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--gold); color: var(--dark);
  padding: 15px 40px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.au-cta-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   GENERIC PAGE / BLOG TEMPLATE STYLES
   ═══════════════════════════════════════════════ */
.generic-content { padding: 90px 80px; max-width: 900px; margin: 0 auto; }
.generic-content h1.page-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 24px; color: var(--dark); }
.generic-content .entry-content { font-weight: 300; font-size: 0.95rem; line-height: 1.8; color: #555; }
.generic-content .entry-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin: 32px 0 16px; color: var(--dark); }
.generic-content .entry-content p { margin-bottom: 16px; }
.generic-content .entry-content img { border-radius: 2px; margin: 16px 0; }
.single-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson); margin-bottom: 16px; }
.pagination-nav { display: flex; justify-content: space-between; margin-top: 48px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.pagination-nav a { color: var(--crimson); text-decoration: none; }
.single-thumb { margin-bottom: 24px; }
.single-thumb img { width: 100%; height: auto; border-radius: 2px; }
.page-links { margin-top: 24px; font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; letter-spacing: 0.05em; }
.page-links a { color: var(--crimson); text-decoration: none; margin: 0 6px; }
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid #e8e4df; }
.comments-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--dark); margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid #f0eeeb; font-size: 0.9rem; line-height: 1.7; color: #555; font-weight: 300; }
.comment-list .comment-author .fn { font-style: normal; font-weight: 600; color: var(--dark); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.comment-list .comment-metadata { font-size: 0.75rem; color: var(--mid-grey); margin-bottom: 8px; }
.comment-list .comment-metadata a { color: var(--mid-grey); text-decoration: none; }
.comment-list ol.children { list-style: none; margin-left: 30px; }
.comment-respond { margin-top: 30px; }
.comment-reply-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--dark); margin-bottom: 16px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; color: var(--dark); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #e8e4df; border-radius: 2px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; background: var(--off-white);
}
.comment-form textarea { resize: vertical; }
.comment-form .form-submit input[type="submit"] {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.15em; text-transform: uppercase; background: var(--crimson); color: var(--white);
  padding: 14px 36px; border: none; border-radius: 2px; cursor: pointer; transition: background 0.2s;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--crimson-dark); }
.no-comments { font-weight: 300; color: #555; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  section, .footer-section, .blog-section, .competencies, .certifications, .partners { padding-left: 40px; padding-right: 40px; }
  .stats-bar { padding-left: 40px; padding-right: 40px; }
  .projects-grid-wrap { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-img-stack { height: auto; }
  .about-img-main { height: 280px; }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .au-section { padding: 70px 40px; }
  .au-hero-inner { padding: 60px 40px; }
  .au-breadcrumb { left: 40px; }
  .au-overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .au-activities-grid { grid-template-columns: 1fr; gap: 50px; }
  .au-product-list { grid-template-columns: 1fr 1fr; }
  .au-ref-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); padding: 16px 20px 24px;
    border-top: 1px solid #e8e4df; gap: 2px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12); z-index: 999;
  }
  .nav-links.nav-open li a { display: block; padding: 12px 10px; font-size: 0.88rem; border-bottom: 1px solid #f0eeeb; }
  .nav-links.nav-open li:last-child a { border-bottom: none; }
  .nav-links.nav-open .nav-cta { display: block; text-align: center; margin-top: 10px; padding: 14px 10px !important; }
  .hamburger { display: flex; }
  section, .blog-section, .competencies, .certifications, .partners, .clients-section { padding: 60px 20px; }
  .projects-grid-wrap { grid-template-columns: 1fr; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-certs { display: none; }
  .hero-scroll { left: 20px; bottom: 20px; }
  .stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 28px 20px; text-align: center; }
  .stat-item:last-child { grid-column: 1 / -1; }
  .stat-divider { display: none; }
  .group-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .mission-vision { grid-template-columns: 1fr; padding: 60px 20px; }
  .mv-divider { display: none; }
  .about-img-stack { padding-bottom: 32px; }
  .about-img-badge { left: 16px; bottom: 0; }
  .footer-section { padding: 60px 20px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cert-modal-box { margin: 0 8px; }

  .au-section { padding: 60px 20px; }
  .au-hero-inner { padding: 50px 20px; }
  .au-breadcrumb { left: 20px; display: none; }
  .au-office-grid { grid-template-columns: 1fr; }
  .au-fields-grid { grid-template-columns: 1fr; }
  .au-product-list { grid-template-columns: 1fr; }
  .au-ref-grid { grid-template-columns: repeat(3, 1fr); }
  .generic-content { padding: 60px 20px; }
}
@media (max-width: 480px) {
  .au-ref-grid { grid-template-columns: repeat(2, 1fr); }
}
