/* ============================================================

ROOT VARIABLES – EMC BRAND SYSTEM

============================================================ */

:root {
--emc-burgundy: #8b1f2b;
--emc-burgundy-dark: #60121b;
--emc-burgundy-soft: #f7e7ea;
--emc-grey-light: #f4f4f4;
--emc-grey-mid: #4a4a4a;
--emc-grey-border: #e0e0e0;
--emc-dark: #202020;
--font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--radius-card: 0.9rem;
--shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================================

GLOBAL RESET + BASE

============================================================ */

*, *::before, *::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
}

body {
margin: 0;
font-family: var(--font-body);
color: var(--emc-grey-mid);
background: radial-gradient(circle at top left, #faf0f2, #ffffff 30%, #f5f5f7 100%);
line-height: 1.6;
}

a {
text-decoration: none;
color: var(--emc-burgundy);
}

img {
max-width: 100%;
display: block;
}

/* ============================================================

LAYOUT

============================================================ */

.container {
width: 100%;
max-width: 1200px;
padding: 0 1.5rem;
margin: 0 auto;
}

/* ============================================================

GLASS PANEL STYLE

============================================================ */

.glass-panel {
backdrop-filter: blur(18px) saturate(160%);
background: rgba(255, 255, 255, 0.25);
border-radius: 18px;
padding: 1.8rem;
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-soft);
}

/* ============================================================

HEADER

============================================================ */

.site-header {
background: var(--emc-burgundy-dark);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
position: sticky;
top: 0;
z-index: 100;
transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
background: #3c0a12;
box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 0;
}

.logo-image {
height: 68px;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
width: auto;
object-fit: contain;
transition: transform 0.25s ease;
}

/* ============================================================

MOBILE HEADER OPTIMIZATION - DUAL LOGO SYSTEM

============================================================ */

/* Desktop: Show full logo, hide mobile logo */
.logo-mobile {
display: none;
}

.logo-desktop {
display: block;
}

.main-nav ul {
display: flex;
list-style: none;
gap: 1.5rem;
margin: 0;
padding: 0;
}

.main-nav a {
font-weight: 500;
color: #ffffff !important;
position: relative;
padding-bottom: 0.1rem;
}

.main-nav a::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
height: 2px;
width: 0;
background: linear-gradient(90deg, #ffffff, var(--emc-burgundy-soft));
transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav .is-active::after {
width: 100%;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
display: none;
width: 36px;
height: 32px;
background: transparent;
border-radius: 8px;
border: none;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
cursor: pointer;
padding: 0;
}

.nav-toggle span {
display: block;
height: 3px;
width: 28px;
background: white;
border-radius: 2px;
transition: all 0.3s ease;
}

/* Hamburger animation when active */
.nav-toggle.is-active span:nth-child(1) {
transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.is-active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================

HERO

============================================================ */

.hero {
position: relative;
padding: 5rem 0;
min-height: 70vh;
color: white;
background-color: #1a1a2e;                       /* solid fallback colour */
background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                  url('images/hero/hero1.jpg');   /* CSS fallback image    */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: scroll;
}

.hero-inner {
max-width: 800px;
}

.hero h1 {
font-size: clamp(2.3rem, 3vw, 3rem);
margin-bottom: 1rem;
}

/* Script font ONLY for the home-page slogan */
.home .hero h1 {
font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
font-style: italic;
}

.hero p {
max-width: 35rem;
margin-bottom: 1.5rem;
font-size: 1.05rem;
}

.hero-actions {
display: flex;
gap: 1rem;
}

.hero,
.hero--projects {
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}

/* ============================================================
   45th Anniversary Overlay – Home Only (Bottom Right + Shimmer)
============================================================ */

.home .hero {
  position: relative;
  overflow: hidden;
}

/* Fade-in with slight delay */
.home .hero-45-overlay {
  position: absolute;
  bottom: clamp(24px, 4vw, 60px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  pointer-events: none;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;   /* center internal layout */

  opacity: 0;
  animation: hero45FadeIn 700ms ease-out 350ms forwards;
}

@keyframes hero45FadeIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Gold 45 with shimmer */
.home .hero-45-mark {
  font-size: clamp(3.75rem, 8vw, 7.25rem); /* smaller than before */
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;

  /* Base gold */
  background: linear-gradient(
    135deg,
    #fff2c7 0%,
    #e1c25b 22%,
    #d4af37 45%,
    #b8860b 70%,
    #fff2c7 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Depth */
  text-shadow:
    0 6px 22px rgba(0,0,0,0.28),
    0 2px 6px rgba(0,0,0,0.22);

  /* Shimmer */
  animation: goldShimmer 4.8s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Anniversary badge */
.home .hero-45-title {
  margin-top: 0.75rem;
  padding: 0.6rem 1.15rem;

  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1vw, 0.95rem);

  color: rgba(255,255,255,0.96);

  background: rgba(17, 17, 17, 0.36);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 15px 40px rgba(0,0,0,0.22);
  position: relative;
}

/* Thin gold underline beneath the badge */
.home .hero-45-title::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(212,175,55,0) 0%,
    rgba(212,175,55,0.95) 18%,
    rgba(255,242,199,0.95) 50%,
    rgba(212,175,55,0.95) 82%,
    rgba(212,175,55,0) 100%
  );

  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  opacity: 0.9;
}
/* ============================================================
   45th Anniversary Overlay — 3-line layout additions (Home only)
   Keeps original styling for .hero-45-mark and .hero-45-title
============================================================ */

.home .hero-45-row{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 14px);
}

/* Make "Years" match the pill badge typography (without creating a new pill) */
.home .hero-45-years{
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.8vw, 1.35rem);
  color: rgba(255,255,255,0.96);
  line-height: 1;
  text-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

/* Remove the old top margin on the pill badge, since we now stack pills */
.home .hero-45-title{
  margin-top: 0; /* overrides your original margin-top: 0.75rem */
}

/* Spacing between the three lines */
.home .hero-45-title--top{ margin-bottom: 0.65rem; }
.home .hero-45-title--bottom{ margin-top: 0.65rem; }


/* ============================================================
   Automatic contrast tuning (set by JS as hero--light / hero--dark)
============================================================ */

.home .hero.hero--light .hero-45-mark {
  /* On light images: more definition + slightly darker edge */
  text-shadow:
    0 8px 26px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.28);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.20));
}

.home .hero.hero--light .hero-45-title {
  /* More contrast on light images */
  background: rgba(10, 10, 10, 0.52);
  border-color: rgba(255,255,255,0.24);
}

.home .hero.hero--dark .hero-45-mark {
  /* On dark images: slightly brighter and glowing */
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.25));
}

.home .hero.hero--dark .hero-45-title {
  background: rgba(17, 17, 17, 0.34);
}
/* ============================================================
   45 Years of Excellence — Centered Single Line
============================================================ */

/* Bottom center positioning */
.home .hero-45-overlay {
  position: absolute;
  bottom: clamp(28px, 5vw, 70px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: none;
  z-index: 2;

  opacity: 0;
  animation: hero45FadeIn 700ms ease-out 350ms forwards;
}

/* Maintain centering during animation */
@keyframes hero45FadeIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Inline layout */
.home .hero-45-inline {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
}

/* Keep your original shimmering gold 45 (unchanged) */
.home .hero-45-mark {
  /* DO NOT modify — keeps original gold gradient + shimmer */
}

/* Text styling for "Years of Excellence" */
.home .hero-45-text {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.96);
  line-height: 1.1;
}

/* Gold underline spanning under entire phrase */
.home .hero-45-underline {
  margin-top: 0.85rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(212,175,55,0) 0%,
    rgba(212,175,55,0.95) 15%,
    rgba(255,242,199,0.95) 50%,
    rgba(212,175,55,0.95) 85%,
    rgba(212,175,55,0) 100%
  );

  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  opacity: 0.95;
}


/* ============================================================

BUTTONS

============================================================ */

.btn {
padding: 0.7rem 1.4rem;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s ease;
border: 2px solid transparent;
}

.btn-primary {
background: var(--emc-burgundy);
color: white;
border-color: var(--emc-burgundy);
}

.btn-primary:hover {
background: var(--emc-burgundy-dark);
transform: translateY(-2px);
}

.btn-outline {
background: transparent;
color: white;
border-color: white;
}

.btn-outline:hover {
background: white;
color: var(--emc-burgundy-dark);
}

/* ============================================================

SECTIONS

============================================================ */

.section {
padding: 3.5rem 0;
}

.section-light {
background: var(--emc-grey-light);
}

.section-dark {
background: linear-gradient(145deg, #2a1217, #16080a);
color: white;
}

.section-title {
font-size: 1.8rem;
margin-bottom: 0.5rem;
color: var(--emc-burgundy-dark);
}

.section-dark .section-title {
color: #fff;
}

.section-intro {
max-width: 40rem;
margin-bottom: 2rem;
}

#about .section-intro {
max-width: 60rem;
font-size: 1.15rem;
line-height: 1.75;
}

/* ============================================================

SERVICES – GLASS CARDS

============================================================ */

.cards-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
}

.card {
background: rgba(255, 255, 255, 0.22);
backdrop-filter: blur(12px);
padding: 1.8rem;
border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow: var(--shadow-soft);
transition: all 0.25s ease;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.card h3 {
margin-top: 0;
color: var(--emc-burgundy-dark);
}

/* ============================================================

PROJECTS – NEW PARALLAX DESIGN

============================================================ */

.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}

.project-card {
background: rgba(255, 255, 255, 0.08);
border-radius: var(--radius-card);
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.25);
transition: all 0.25s ease;
}

.project-card:hover {
transform: translateY(-6px);
box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

.project-image-parallax {
height: 180px;
overflow: hidden;
position: relative;
border-bottom: 1px solid rgba(255,255,255,0.25);
}

.project-image-inner {
height: 260px;
background: linear-gradient(
rgba(139, 31, 43, 0.55),
rgba(96, 18, 27, 0.65)
),
url("images/projects/placeholder_residential.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: #fff;
font-weight: 600;
font-size: 1.1rem;
display: flex;
align-items: flex-end;
padding: 1rem;
transition: transform 0.5s ease;
}

.project-card:hover .project-image-inner {
transform: translateY(-40px);
}

.project-content {
padding: 1.3rem 1.5rem;
}

.project-content h3 {
margin-top: 0;
margin-bottom: 0.5rem;
color: var(--emc-burgundy-soft);
}

.project-content p {
color: #f6dce0;
}

/* ============================================================

ASSOCIATIONS – FULL-WIDTH

============================================================ */

.associations-row {
display: flex;
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
gap: 1.75rem 3rem;
padding: 1.5rem 0;
}

.associations-row img {
max-height: 48px;
width: auto;
flex-shrink: 0;
opacity: 0.85;
filter: grayscale(100%);
transition:
opacity 0.25s ease,
filter 0.25s ease,
transform 0.25s ease;
}

.associations-row img:hover {
opacity: 1;
filter: grayscale(0%);
transform: translateY(-3px);
}

/* ============================================================

CONTACT CTA

============================================================ */

.section-contact-cta {
background: linear-gradient(135deg, var(--emc-burgundy), var(--emc-burgundy-dark));
color: white;
padding: 3rem 0;
}

.contact-cta-inner {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1.2rem;
}

/* ============================================================

FOOTER

============================================================ */

.site-footer {
background: #111;
padding: 1.7rem 0;
color: #ddd;
font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-inner .footer-copyright{
  justify-self: start;
}
.footer-inner .footer-social{
  justify-self: center;
}
.footer-inner .footer-phone{
  justify-self: end;
}
.footer-phone a{
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.footer-phone a:hover{
  color: #fff;
}

/* Mobile footer — stacked */
@media (max-width: 640px){
  .footer-inner{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.7;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white; /* or inherit depending on footer background */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social .social-icon:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* Optional: LinkedIn brand hover */
.linkedin-icon:hover {
  color: #0A66C2;
}

/* ============================================================

PROJECT DETAIL PAGE

============================================================ */

.project-hero {
min-height: 60vh;
display: flex;
align-items: flex-end;
padding: 4rem 0;
color: #fff;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.project-hero-inner {
max-width: 900px;
}

.project-hero h1 {
font-size: clamp(2.4rem, 3.2vw, 3.2rem);
margin-bottom: 0.5rem;
}

.project-hero-meta {
font-size: 0.95rem;
letter-spacing: 0.08em;
text-transform: uppercase;
opacity: 0.85;
}

.project-detail {
padding: 4rem 0;
}

.project-detail-grid {
display: grid;
grid-template-columns: 2.2fr 1fr;
gap: 3rem;
}

.project-description {
font-size: 1.05rem;
line-height: 1.75;
margin-bottom: 1.5rem;
max-width: 52rem;
}

.project-gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-top: 2rem;
}

.project-gallery img {
border-radius: 16px;
box-shadow: var(--shadow-soft);
transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-gallery img:hover {
transform: translateY(-4px);
box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.project-sidebar {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.project-meta-card {
backdrop-filter: blur(18px) saturate(160%);
background: rgba(255, 255, 255, 0.25);
border-radius: 18px;
padding: 1.6rem;
border: 1px solid rgba(255,255,255,0.5);
box-shadow: var(--shadow-soft);
}

.project-meta-card h3 {
margin-top: 0;
margin-bottom: 0.75rem;
color: var(--emc-burgundy-dark);
font-size: 1.05rem;
}

.project-meta-list {
list-style: none;
padding: 0;
margin: 0;
}

.project-meta-list li {
font-size: 0.9rem;
padding: 0.4rem 0;
border-bottom: 1px solid rgba(0,0,0,0.08);
}

.project-meta-list li:last-child {
border-bottom: none;
}

/* ============================================================

PROJECT IMAGE LIGHTBOX

============================================================ */

.lightbox {
position: fixed;
inset: 0;
background: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 9999;
}

.lightbox.is-active {
opacity: 1;
pointer-events: all;
}

.lightbox-image {
max-width: 90%;
max-height: 85vh;
border-radius: 14px;
box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
position: absolute;
top: 2rem;
right: 2.5rem;
font-size: 2.2rem;
color: white;
cursor: pointer;
opacity: 0.85;
background: none;
border: none;
}

.lightbox-close:hover {
opacity: 1;
}

/* ============================================================

PROJECTS PAGE STYLES

============================================================ */

.projects-page .projects-visual-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.6rem;
}

.projects-page .project-tab {
position: relative;
height: 230px;
border-radius: 18px;
overflow: hidden;
background-image: var(--project-image);
background-size: cover;
background-position: center;
filter: grayscale(100%);
transition:
filter 0.45s ease,
transform 0.35s ease,
box-shadow 0.35s ease;
}

.projects-page .project-tab::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0,0,0,0.35),
rgba(0,0,0,0.75)
);
}

.projects-page .project-tab:hover {
filter: grayscale(0%);
transform: translateY(-6px);
box-shadow: 0 26px 60px rgba(0,0,0,0.35);
}

.projects-page .project-tab-content {
position: absolute;
bottom: 0;
z-index: 2;
padding: 1.2rem;
color: #fff;
}

.projects-page .project-tab-title {
font-weight: 600;
font-size: 1.05rem;
}

.projects-page .project-tab-meta {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.85;
}

/* ============================================================

RESPONSIVE DESIGN - MOBILE HEADER OPTIMIZATION

============================================================ */

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-desktop {
    width: 180px;
    height: auto;
  }

  .main-nav ul li a {
    font-size: 0.9rem;
    padding: 0 0.75rem;
  }
}

/* Mobile/Tablet Optimization */
@media (max-width: 768px) {
  /* Logo Switching */
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    height: 40px;
    width: auto;
  }

  /* Header Adjustments */
  .site-header {
    padding: 0.75rem 0;
  }

  .header-inner {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Navigation Toggle */
  .nav-toggle {
    display: flex;
  }

  /* Mobile Navigation */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8b1f2b, #60121b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .main-nav.is-active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .main-nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav ul li:last-child {
    border-bottom: none;
  }

  .main-nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .projects-page .projects-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
  .logo-mobile {
    height: 35px;
  }

  .nav-toggle {
    width: 30px;
    height: 26px;
  }

  .nav-toggle span {
    width: 26px;
    height: 2.5px;
  }

  .main-nav {
    display: none;
  }

  .cards-grid,
  .projects-grid,
  .projects-page .projects-visual-grid {
    grid-template-columns: 1fr;
  }

  .project-hero {
    min-height: 55vh;
    padding: 4rem 0;
  }

  .project-hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0;
  }
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-page .projects-visual-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   PERFORMANCE: Parallax only on larger screens (optional)
============================================================ */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero {
    background-attachment: fixed;
  }
}


/* ============================================================
   NAV CTA (Contact Us)
============================================================ */
.main-nav .nav-cta {
  background: rgba(255,255,255,0.95);
  color: var(--emc-burgundy-dark) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.main-nav .nav-cta:hover {
  transform: translateY(-1px);
}


/* ============================================================
   SCROLL REVEAL (global)
============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}


/* ============================================================
   FOOTER SOCIAL
============================================================ */
.footer-social {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: underline;
}


/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.form-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-card label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--emc-dark);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.88);
  font: inherit;
}

.form-card textarea { min-height: 140px; resize: vertical; }

.contact-side .project-meta-card { color: var(--emc-grey-mid); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
/* Careers hero: true visual centering */
.careers-hero-box {
  text-align: center;
}

.careers-hero-box p {
  max-width: 62ch;          /* keeps the line length elegant */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;       /* KEY: balances line breaks (modern Chrome/Edge) */
}

/* Ensure buttons are centered as a group */
.careers-hero-box .hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Careers listings and dedicated role pages */
.career-listings {
  display: grid;
  gap: 1.4rem;
}

.career-listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.career-listing-card h3 {
  margin-bottom: 0.65rem;
}

.career-listing-card p {
  max-width: 72ch;
  margin-bottom: 0;
}

.career-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.career-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(110, 11, 26, 0.08);
  color: var(--emc-burgundy, #6e0b1a);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.career-page-hero {
  padding: 8.5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(49, 7, 14, 0.96), rgba(110, 11, 26, 0.86)),
    url('images/hero/hero1.jpg') center / cover;
  color: #fff;
}

.career-page-hero .breadcrumb {
  margin-bottom: 1rem;
}

.career-page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.career-page-hero h1 {
  max-width: 900px;
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.career-page-hero .career-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.career-detail {
  padding: 4rem 0;
  background: #fff;
}

.career-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 3.5rem;
  align-items: start;
}

.career-detail-copy {
  max-width: 78ch;
}

.career-detail-copy > p:first-child {
  color: var(--emc-grey-dark, #333);
  font-size: 1.15rem;
  line-height: 1.8;
}

.career-detail-copy h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.55rem;
}

.career-detail-copy ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.2rem;
}

.career-detail-copy li {
  padding-left: 0.25rem;
  line-height: 1.65;
}

.career-apply-card {
  position: sticky;
  top: 110px;
  padding: 2rem;
  border: 1px solid rgba(110, 11, 26, 0.13);
  border-radius: 18px;
  background: #f6f5f5;
  box-shadow: 0 14px 40px rgba(25, 18, 20, 0.08);
}

.career-apply-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.career-apply-card .btn {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

.career-apply-card .application-note {
  margin-top: 1rem;
  color: var(--emc-grey-mid, #666);
  font-size: 0.84rem;
  line-height: 1.55;
}

.career-inclusion {
  padding: 2.5rem 0;
  background: #f2f2f3;
}

.career-inclusion p {
  max-width: 85ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .career-listing-card,
  .career-detail-grid {
    grid-template-columns: 1fr;
  }

  .career-listing-card .btn {
    width: 100%;
    text-align: center;
  }

  .career-page-hero {
    padding: 7rem 0 3rem;
  }

  .career-apply-card {
    position: static;
  }
}
/* Clients Hero Center Alignment */
.hero-text.glass-panel {
  text-align: center;
}

.hero-text.glass-panel p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;   /* keeps text elegant and balanced */
}
/* Center hero buttons properly */
.hero-text .hero-actions {
  display: flex;
  justify-content: center;   /* centers the group */
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
/* ==========================================
   Contact Page — Office Card Enhancement
========================================== */

.contact-card .contact-item {
  margin-bottom: 1.2rem;
}

.contact-card .contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}

.contact-card a {
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}
/* ==========================================
   Contact Page — Office Card (Premium)
========================================== */

.contact-card.glass-panel {
  /* If glass-panel already styles this, these enhance it subtly */
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 55px rgba(0,0,0,0.18);
}

.contact-card .contact-divider {
  height: 2px;
  width: 100%;
  margin: 0.75rem 0 1.25rem 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(139,31,43,0) 0%,
    rgba(139,31,43,0.95) 18%,
    rgba(212,175,55,0.65) 55%,
    rgba(139,31,43,0.95) 82%,
    rgba(139,31,43,0) 100%
  );
  opacity: 0.9;
}

.contact-card .contact-item {
  margin-bottom: 1.05rem;
}

.contact-card .contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.contact-card a {
  text-decoration: none;
  font-weight: 550;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card .contact-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Responsive, subtle map embed */
.map-embed {
  margin-top: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 35px rgba(0,0,0,0.16);
}

.map-embed iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
