/*
Theme Name: Plateau
Theme URI: https://plateauexcavation.com
Author: Plateau Excavation
Author URI: https://plateauexcavation.com
Description: Custom theme for Plateau Excavation — bold, dark, industrial. Gold accents, Barlow Condensed typography, full-width layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: plateau

*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@600;700;800&family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --gold:        #f2bb47;
  --gold-dark:   #d9a63a;
  --gold-deeper: #dba103;
  --black:       #000000;
  --near-black:  #0a0a0a;
  --dark:        #111111;
  --dark-mid:    #1a1a1a;
  --grey:        #535353;
  --light-grey:  #aaaaaa;
  --white:       #ffffff;
  --off-white:   #f9f9f9;

  --font-body:    'Barlow', Arial, sans-serif;
  --font-heading: 'Barlow Condensed', Arial, sans-serif;
  --font-semi:    'Barlow Semi Condensed', Arial, sans-serif;

  --header-height: 78px;
  --max-width: 1200px;
  --radius: 6px;
  --transition: all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  color: var(--grey);
  line-height: 1.4;
  background: var(--black);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--grey); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
}
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: clamp(20px, 2.5vw, 28px); }
h5 { font-size: 24px; }
h6 { font-size: 19px; }

p { line-height: 1.55; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--near-black);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--near-black);
}

.btn-outline {
  background: rgba(10,10,10,0.75);
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--near-black);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--near-black);
}

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar {
  background: var(--black);
  border-bottom: 1px solid var(--dark-mid);
  padding: 7px 0;
}

#topbar .topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

#topbar .topbar-phone {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}
#topbar .topbar-phone:hover { color: var(--white); }

#topbar .topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

#topbar .topbar-social a {
  color: var(--light-grey);
  font-size: 14px;
  transition: var(--transition);
}
#topbar .topbar-social a:hover { color: var(--gold); }

#topbar .topbar-divider {
  width: 1px;
  height: 16px;
  background: #333;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: var(--near-black);
  height: var(--header-height);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-bar {
  width: 6px;
  height: 42px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-text .logo-company {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.logo-text .logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 3px;
}

/* Desktop Navigation */
#navigation { display: flex; align-items: center; }

#navigation > ul {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

#navigation > ul > li {
  position: relative;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: border-color 0.2s;
}

#navigation > ul > li:hover { border-bottom-color: var(--white); }

#navigation > ul > li > a {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  white-space: nowrap;
}

#navigation > ul > li:hover > a,
#navigation > ul > li > a:hover { color: var(--white); }

/* Dropdown */
#navigation ul ul {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  background: var(--gold);
  min-width: 210px;
  flex-direction: column;
  z-index: 1000;
  padding: 6px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

#navigation ul li:hover > ul { display: flex; }

#navigation ul ul li { width: 100%; height: auto; border: none; }

#navigation ul ul li a {
  font-family: var(--font-semi);
  font-size: 15px;
  font-weight: 600;
  color: var(--near-black);
  padding: 11px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  display: block;
  height: auto;
  line-height: 1.3;
  transition: var(--transition);
}

#navigation ul ul li a:hover {
  background: var(--near-black);
  color: var(--gold);
}

/* Mobile nav button */
#mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  padding: 4px;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--gold);
  border-top: 2px solid var(--gold-dark);
}

#mobile-menu a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  display: block;
}

#mobile-menu a:hover {
  background: var(--near-black);
  color: var(--gold);
}

@media (max-width: 960px) {
  #navigation { display: none; }
  #mobile-nav-btn { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  background: var(--near-black);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.88) 30%,
    rgba(0,0,0,0.45) 58%,
    rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.hero-gold-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 60px;
}

.hero-content h1 {
  color: var(--gold);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 767px) {
  #hero { min-height: 520px; }
  .hero-content { padding: 60px 24px; }
}

/* ============================================================
   SECTIONS — GENERAL
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-dark { background: var(--dark); }
.section-darker { background: var(--near-black); }
.section-black { background: var(--black); }
.section-white { background: var(--white); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title.light { color: var(--white); }
.section-title.dark { color: var(--black); }

.section-subtitle {
  font-size: 18px;
  color: var(--light-grey);
  margin-bottom: 40px;
}

/* ============================================================
   WHO WE ARE — INTRO STRIP
   ============================================================ */
#intro {
  background: var(--white);
  padding: 80px 0;
}

.intro-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro-badge {
  flex-shrink: 0;
  width: 150px;
  height: 155px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.intro-badge .badge-lbl {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.intro-text h2 { color: var(--black); margin-bottom: 4px; }
.intro-text h3 { color: var(--black); font-size: 28px; margin-bottom: 2px; }
.intro-text p  { color: var(--grey); font-size: 20px; margin-top: 14px; line-height: 1.5; }

@media (max-width: 767px) {
  .intro-inner { flex-direction: column; text-align: center; gap: 24px; }
  #intro { padding: 50px 0; }
}

/* ============================================================
   PILLAR SECTIONS
   ============================================================ */
.pillar { padding: 80px 0; }
.pillar.pillar-dark { background: var(--dark); }
.pillar.pillar-light { background: var(--white); }

.pillar-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.pillar-inner.reverse { flex-direction: row-reverse; }

.pillar-img {
  flex: 1;
  min-height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.pillar-text { flex: 1; }

.pillar-dark .pillar-text h2 { color: var(--white); margin-bottom: 16px; }
.pillar-dark .pillar-text p  { color: #cccccc; font-size: 18px; line-height: 1.6; margin-bottom: 26px; }

.pillar-light .pillar-text h2 { color: var(--black); margin-bottom: 16px; }
.pillar-light .pillar-text p  { color: var(--grey); font-size: 18px; line-height: 1.6; margin-bottom: 26px; }

@media (max-width: 767px) {
  .pillar { padding: 50px 0; }
  .pillar-inner, .pillar-inner.reverse { flex-direction: column; }
  .pillar-img { width: 100%; min-height: 240px; flex: none; }
}

/* ============================================================
   YELLOW GRADIENT DIVIDER
   ============================================================ */
.gold-divider {
  height: 8px;
  background: linear-gradient(to right, var(--gold), var(--near-black));
  width: 100%;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
#services { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  height: 334px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s;
}

.service-card:hover::before { background: rgba(0,0,0,0.15); }

.service-card-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 12px 22px;
  background: rgba(10,10,10,0.8);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.service-card:hover .service-card-label {
  background: var(--gold);
  color: var(--near-black);
  border-color: var(--gold);
}

@media (max-width: 1023px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .services-grid { grid-template-columns: 1fr; } .service-card { height: 220px; } }

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
#projects { background: var(--black); padding: 80px 0; }

.project-card {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.75) 40%,
    rgba(0,0,0,0.2) 100%);
}

.project-card-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  background: rgba(0,0,0,0.82);
  padding: 32px 36px;
  border-radius: var(--radius);
  margin: 40px 60px;
}

.project-card-cat {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 12px;
}

.project-card-desc {
  font-size: 16px;
  color: #dddddd;
  line-height: 1.55;
  margin-bottom: 22px;
}

.project-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 767px) {
  #projects { padding: 50px 0; }
  .project-card-content { margin: 24px 20px; padding: 22px 20px; }
  .project-card { min-height: 420px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black);
  color: #dbdbdb;
  border-top: 10px solid var(--gold-deeper);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #222;
}

.footer-brand .logo-company { color: var(--gold); font-size: 26px; }
.footer-brand .logo-tagline { color: var(--light-grey); }
.footer-brand p { font-size: 15px; color: #999; margin-top: 16px; line-height: 1.6; }

#footer h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--gold-deeper);
  margin-bottom: 16px;
}

#footer ul li {
  padding: 7px 0;
  border-bottom: 1px solid #222;
}

#footer ul li a {
  color: var(--white);
  font-size: 15px;
  transition: color 0.2s;
}
#footer ul li a:hover { color: var(--gold-deeper); }

#copyright {
  background: var(--black);
  color: #dbdbdb;
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #111;
}
#copyright a { color: var(--gold-deeper); }
#copyright a:hover { color: var(--white); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   WRAPALL / PAGE
   ============================================================ */
#wrapall { background: var(--white); }

/* Page content */
.site-content { background: var(--white); }
.entry-content { max-width: var(--max-width); margin: 0 auto; padding: 60px 40px; }

/* Alignfull for Gutenberg */
.entry-content > .alignfull,
.entry-content > .wp-block-group.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

/* WordPress block alignment */
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; margin-left: 0; margin-right: 0; }
