/*
Theme Name: The ProcureMentor
Theme URI: https://www.theprocurementor.com
Author: Alexandre LIO
Author URI: https://www.theprocurementor.com
Description: Custom WordPress theme for The ProcureMentor — Indirect Procurement Expert. Features a dark navy design with teal, gold, and lime accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-procurementor
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS VARIABLES (Design Tokens)
   ========================================================================== */
:root {
  --navy: #1a2535;
  --navy-light: #223044;
  --navy-card: #1e2c3d;
  --teal: #2bbcc0;
  --teal-dark: #1f9a9e;
  --gold: #d4a843;
  --lime: #c3e030;
  --green: #5dbe8a;
  --white: #ffffff;
  --off-white: #e8ecf1;
  --grey: #94a3b8;
  --bar-grey: #64748b;
  --bar-teal: #2bbcc0;
  --bar-gold: #d4a843;
  --bar-green: #5dbe8a;
  --font-main: "Montserrat", sans-serif;
  --font-display: "Playfair Display", serif;
  --max-width: 1200px;
  --section-pad: 100px 0;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   WORDPRESS REQUIRED CLASSES
   ========================================================================== */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}
.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--grey);
  text-align: center;
  padding: 8px 0;
}
.gallery-caption {
  font-size: 0.85rem;
  color: var(--grey);
}
.sticky {
}
.bypostauthor {
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   DECORATIVE CORNER (gold triangles)
   ========================================================================== */
.corner-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.corner-deco span {
  position: absolute;
  display: block;
  background: var(--gold);
}
.corner-deco span:nth-child(1) {
  width: 80px;
  height: 80px;
  top: -20px;
  left: -20px;
  transform: rotate(45deg);
  opacity: 0.9;
}
.corner-deco span:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 0;
  left: 8px;
  transform: rotate(45deg);
  opacity: 0.6;
}
.corner-deco span:nth-child(3) {
  width: 30px;
  height: 30px;
  top: 10px;
  left: 30px;
  transform: rotate(45deg);
  opacity: 0.35;
}

/* ==========================================================================
   BRAND BAR (colored segments under headings)
   ========================================================================== */
.brand-bar {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  height: 4px;
  width: 140px;
}
.brand-bar span {
  flex: 1;
  border-radius: 2px;
}
.brand-bar span:nth-child(1) {
  background: var(--bar-grey);
}
.brand-bar span:nth-child(2) {
  background: var(--bar-teal);
}
.brand-bar span:nth-child(3) {
  background: var(--bar-gold);
}
.brand-bar span:nth-child(4) {
  background: var(--bar-green);
}
.brand-bar.center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SECTION NUMBER BADGE
   ========================================================================== */
.section-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  margin-bottom: -10px;
  opacity: 0.85;
}

/* ==========================================================================
   SECTION DIVIDER
   ========================================================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(43, 188, 192, 0.25),
    transparent
  );
  margin: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
  cursor: pointer;
  border: none;
}
.btn-teal {
  background: var(--teal);
  color: var(--navy);
}
.btn-teal:hover {
  background: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 188, 192, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #e0b94f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.35);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 37, 53, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 188, 192, 0.1);
  padding: 0 24px;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  padding: 0 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  height: 100%;
  max-height: 72px;
  flex-shrink: 0;
}
.site-logo .accent {
  color: var(--teal);
}
/* WordPress custom logo — constrain to header height */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  height: 44px;
}
.site-logo .custom-logo-link img,
.site-logo img.custom-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--off-white);
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--teal);
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
  width: 100%;
}
.main-nav .nav-cta a {
  background: var(--teal);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
}
.main-nav .nav-cta a::after {
  display: none;
}
.main-nav .nav-cta a:hover {
  background: var(--lime);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(43, 188, 192, 0.1);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
.footer-about .footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-about .footer-logo .accent {
  color: var(--teal);
}
.footer-about p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--teal);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(43, 188, 192, 0.1);
}
.footer-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  height: 3px;
  width: 100px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bar span {
  flex: 1;
  border-radius: 2px;
}
.footer-bar span:nth-child(1) {
  background: var(--bar-grey);
}
.footer-bar span:nth-child(2) {
  background: var(--bar-teal);
}
.footer-bar span:nth-child(3) {
  background: var(--bar-gold);
}
.footer-bar span:nth-child(4) {
  background: var(--bar-green);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 37, 53, 0.98);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .main-nav.active {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 30px 24px;
  }
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(43, 188, 192, 0.08);
  }
  .main-nav a {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
