/*
Theme Name:  MIM Group
Theme URI:   https://mimgroupus.com
Author:      Awais
Description: Custom WordPress theme for Mualla Group — New York general contracting & construction management
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: mim-group
*/

/* =========================================================
   CUSTOM PROPERTIES
   ========================================================= */
/*
  BRAND FONTS — self-host TT Firs Neue by downloading from typetype.org
  Place woff2 files in wordpress-theme/mim-group/assets/fonts/ then
  uncomment the @font-face block below. Until then, Manrope is the fallback.

  @font-face {
    font-family: 'TT Firs Neue';
    src: url('assets/fonts/TTFirsNeue-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('assets/fonts/TTFirsNeue-DemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('assets/fonts/TTFirsNeue-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
  }
*/

:root {
  /* Brand colors per brand guide */
  --green:       #0F540A;  /* Forest Green */
  --green-light: #1a7e12;  /* hover state */
  --green-dim:   rgba(15, 84, 10, 0.10);
  --green-glow:  rgba(15, 84, 10, 0.40);
  --bg:          #000000;  /* Black */
  --bg-2:        #0b0b0b;
  --bg-3:        #131313;
  --border:      #1a1a1a;
  --border-2:    #252525;
  --white:       #ffffff;  /* Pearl White */
  --muted:       #888888;
  --muted-2:     #555555;
  /* TT Firs Neue (brand font) — falls back to Plus Jakarta Sans (Google Fonts) */
  --font-head:   'TT Firs Neue', 'Plus Jakarta Sans', sans-serif;
  --font-body:   'TT Firs Neue', 'Plus Jakarta Sans', sans-serif;
  --max-w:       1280px;
  --out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --in-out:      cubic-bezier(0.45, 0, 0.55, 1);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 0; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 80px);
}
.section { padding: clamp(80px, 11vw, 130px) 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 34px;
  transition: transform 0.3s var(--out-expo), box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-green {
  background: var(--green);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 84, 10, 0.55);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  transition: gap 0.3s var(--out-expo);
}
.link-arrow svg { transition: transform 0.3s var(--out-expo); flex-shrink: 0; }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   HEADER  (transparent → solid on scroll)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 4vw, 60px);
  transition: padding 0.4s ease;
}
.site-header.scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-logo img,
.site-logo-img { height: 110px; width: auto; max-width: 320px; display: block; object-fit: contain; transition: height 0.4s ease; }
.site-header.scrolled .site-logo-img,
.site-header.scrolled .site-logo img { height: 70px; }
.footer-logo-img { width: 160px; height: auto; max-width: 100%; display: block; object-fit: contain; }
.logo-text-fallback { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.12em; color: var(--white); line-height: 1; }
.logo-text-fallback em { color: var(--green); font-style: normal; margin-left: 5px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 1.5px;
  width: 0;
  background: var(--green);
  transition: width 0.38s var(--out-expo);
}
.nav-link:hover,
.nav-link.current-menu-item { color: var(--white); }
.nav-link:hover::after,
.nav-link.current-menu-item::after { width: 100%; }
.header-cta-wrap { margin-left: 18px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all 0.38s var(--out-expo);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav close button */
.mobile-nav-close {
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.mobile-nav-close:hover { opacity: 1; transform: rotate(90deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(30px, 8vw, 80px);
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; visibility: visible; }
.mobile-nav .mob-link {
  font-family: var(--font-head);
  font-size: clamp(32px, 8vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  color: rgba(255,255,255,0.15);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  padding: 6px 0;
}
.mobile-nav .mob-link:hover { color: var(--white); }
.mobile-nav .mob-link.current-menu-item { color: var(--green); }
.mobile-nav-footer {
  position: absolute;
  bottom: 40px;
  left: clamp(30px, 8vw, 80px);
  right: clamp(30px, 8vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-2);
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted-2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px clamp(20px, 5.5vw, 80px) 64px;
}
.footer-logo img { height: 38px; margin-bottom: 20px; }
.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 230px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 26px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--white);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--green); }
.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--white);
}
.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.footer-contact-list a { transition: color 0.25s ease; color: var(--white); }
.footer-contact-list a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px clamp(20px, 5.5vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.footer-bottom a { transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--green); }
.footer-contact-logo-wrap { display: flex; justify-content: flex-end; margin-top: 32px; }
.footer-contact-logo { width: 160px; height: auto; max-width: 100%; object-fit: contain; opacity: 0.95; transition: opacity 0.25s ease; }

.footer-contact-logo:hover { opacity: 1; }


/* =========================================================
   PAGE HERO (reusable across inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 100px 0 70px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.page-hero.in-view .page-hero__bg { transform: scale(1); }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 80px);
}
.page-hero__eyebrow { margin-bottom: 16px; }
.page-hero__title {
  font-size: clamp(40px, 6.5vw, 82px);
  line-height: 0.95;
  color: var(--white);
}

/* =========================================================
   PROJECT CARDS (global, used on home + archive)
   ========================================================= */
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
}
.project-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 3;
}
.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--out-expo);
}
.project-card:hover .project-card__img-wrap img { transform: scale(1.07); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 55%);
  pointer-events: none;
}
.project-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 26px;
}
.project-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--white);
  padding: 5px 10px;
  margin-bottom: 10px;
}
.project-card__title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 0.95;
  color: var(--white);
  text-transform: uppercase;
}
.project-card__meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--out-expo), transform 0.72s var(--out-expo);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  will-change: auto;
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* =========================================================
   GLOBAL RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .site-nav, .header-cta-wrap { display: none; }
  .hamburger { display: flex; }
  .site-logo img, .site-logo-img { height: 64px; }
  .site-header.scrolled .site-logo-img, .site-header.scrolled .site-logo img { height: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-contact-logo-wrap { justify-content: flex-start; margin-top: 24px; }
  .footer-logo-img,
  .footer-contact-logo { width: 130px; }
}
@media (max-width: 480px) {
  .btn { padding: 15px 26px; font-size: 10px; }
}
