/*
Theme Name: APX Group
Theme URI: https://apxgrouphq.com
Author: APX Group
Author URI: https://apxgrouphq.com
Description: Custom theme for APX Group — Built on Integrity, Delivered with Excellence.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: apx-group
*/

/* ─── VARIABLES ─── */
:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-mid: #1a1a1a;
  --gold: #a8873a;
  --gold-light: #c9a84c;
  --gold-pale: #f0e6cc;
  --white: #ffffff;
  --off-white: #fafaf8;
  --gray-mid: #888880;
  --border-gold: rgba(168,135,58,0.25);
  --border-light: rgba(255,255,255,0.08);
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Montserrat', sans-serif;
  background:var(--off-white);
  color:var(--black);
  overflow-x:hidden;
}
img { max-width:100%; height:auto; }
a { text-decoration:none; }

/* ─── NAV ─── */
#site-header {
  position:fixed; top:0; width:100%; z-index:100;
  padding:0 6%;
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  background:rgba(10,10,10,0.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-gold);
  transition:background 0.3s;
}
.site-logo img { height:52px; width:auto; }
.site-logo a { display:block; }
.nav-menu { display:flex; gap:40px; list-style:none; align-items:center; }
.nav-menu a {
  color:rgba(255,255,255,0.65);
  font-size:11px; font-weight:500;
  letter-spacing:0.15em; text-transform:uppercase;
  transition:color 0.2s;
}
.nav-menu a:hover { color:var(--gold); }
.nav-menu .nav-cta {
  border:1px solid var(--gold);
  color:var(--gold) !important;
  padding:8px 22px;
}
.nav-menu .nav-cta:hover {
  background:var(--gold);
  color:var(--black) !important;
}
.menu-toggle {
  display:none;
  background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px; padding:4px;
}
.menu-toggle span {
  display:block; width:24px; height:2px;
  background:var(--white); transition:all 0.3s;
}

/* ─── BUTTONS ─── */
.btn-gold {
  display:inline-block;
  background:var(--gold); color:var(--black);
  padding:14px 34px;
  font-size:11px; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase;
  border:none; cursor:pointer; border-radius:1px;
  transition:all 0.2s; font-family:'Montserrat',sans-serif;
}
.btn-gold:hover { background:var(--gold-light); transform:translateY(-2px); color:var(--black); }
.btn-ghost {
  display:inline-block;
  background:transparent; color:rgba(255,255,255,0.7);
  padding:14px 34px;
  font-size:11px; font-weight:500;
  letter-spacing:0.12em; text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.2); cursor:pointer; border-radius:1px;
  transition:all 0.2s;
}
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }

/* ─── HERO ─── */
#hero {
  min-height:100vh;
  background:var(--black);
  display:flex; align-items:center;
  padding:100px 6% 60px;
  position:relative; overflow:hidden;
}
.hero-grid-bg {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(168,135,58,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,135,58,0.035) 1px, transparent 1px);
  background-size:100px 100px;
  pointer-events:none;
}
.hero-glow {
  position:absolute; right:-10%; top:50%; transform:translateY(-50%);
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(168,135,58,0.08) 0%, transparent 70%);
  pointer-events:none;
}
.hero-inner { display:flex; align-items:center; justify-content:space-between; width:100%; position:relative; z-index:1; }
.hero-left { max-width:580px; }
.hero-right { flex-shrink:0; }
.hero-logo-wrap {
  width:320px; height:320px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.hero-logo-wrap::before {
  content:'';
  position:absolute; inset:-2px;
  border-radius:50%;
  background:conic-gradient(from 0deg, transparent 0%, rgba(168,135,58,0.4) 25%, transparent 50%, rgba(168,135,58,0.2) 75%, transparent 100%);
  animation:spin 8s linear infinite;
}
.hero-logo-wrap img {
  width:290px; height:290px;
  object-fit:contain; border-radius:50%;
  position:relative; z-index:1;
  filter:drop-shadow(0 0 40px rgba(168,135,58,0.15));
}
@keyframes spin { to { transform:rotate(360deg); } }
.hero-tag {
  font-size:10px; font-weight:600; letter-spacing:0.25em; text-transform:uppercase;
  color:var(--gold);
  display:flex; align-items:center; gap:14px;
  margin-bottom:28px;
}
.hero-tag::before { content:''; display:block; width:40px; height:1px; background:var(--gold); }
.hero-left h1 {
  font-family:'Cormorant Garamond', serif;
  font-size:clamp(44px, 5.5vw, 76px);
  font-weight:300; color:var(--white);
  line-height:1.08; letter-spacing:-0.01em;
  margin-bottom:28px;
}
.hero-left h1 em { font-style:italic; color:var(--gold); }
.hero-left p {
  font-size:14px; font-weight:300; letter-spacing:0.03em;
  color:rgba(255,255,255,0.5); line-height:1.85;
  max-width:460px; margin-bottom:44px;
}
.hero-btns { display:flex; gap:16px; flex-wrap:wrap; }

/* ─── STATS ─── */
#stats {
  background:var(--black-soft);
  border-top:1px solid var(--border-gold);
  border-bottom:1px solid var(--border-gold);
  display:grid; grid-template-columns:repeat(4,1fr);
}
.stat-item {
  text-align:center; padding:44px 24px;
  border-right:1px solid rgba(255,255,255,0.06);
  transition:background 0.3s;
}
.stat-item:last-child { border-right:none; }
.stat-item:hover { background:rgba(168,135,58,0.04); }
.stat-number {
  font-family:'Cormorant Garamond', serif;
  font-size:52px; font-weight:300;
  color:var(--gold); line-height:1; margin-bottom:8px;
}
.stat-label {
  font-size:10px; font-weight:500;
  letter-spacing:0.18em; text-transform:uppercase;
  color:rgba(255,255,255,0.4);
}

/* ─── SECTION SHARED ─── */
.section-eyebrow {
  font-size:10px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--gold); display:flex; align-items:center; gap:12px; margin-bottom:20px;
}
.section-eyebrow::before { content:''; display:block; width:28px; height:1px; background:var(--gold); }
.section-title {
  font-family:'Cormorant Garamond', serif;
  font-size:clamp(34px, 4vw,56px); font-weight:300;
  line-height:1.15; letter-spacing:-0.01em;
}

/* ─── ABOUT ─── */
#about { background:var(--off-white); padding:120px 6%; }
.about-inner { display:grid; grid-template-columns:1fr 1fr; gap:100px; align-items:center; }
.about-img-col { position:relative; }
.about-img-frame {
  aspect-ratio:4/5; background:var(--black); border-radius:2px;
  overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.about-img-frame img { width:85%; height:85%; object-fit:contain; padding:20px; }
.about-badge {
  position:absolute; bottom:-28px; left:-28px;
  background:var(--gold); color:var(--black);
  padding:28px 32px; text-align:center; border-radius:1px;
}
.about-badge .badge-num {
  font-family:'Cormorant Garamond', serif;
  font-size:44px; font-weight:300; line-height:1; display:block;
}
.about-badge .badge-label {
  font-size:10px; font-weight:600; letter-spacing:0.12em;
  text-transform:uppercase; display:block; margin-top:6px;
}
.about-text .section-title { color:var(--black); margin-bottom:24px; }
.about-text p { font-size:14px; font-weight:300; color:#666; line-height:1.85; margin-bottom:20px; }
.about-list { list-style:none; margin:28px 0 40px; }
.about-list li {
  display:flex; align-items:flex-start; gap:14px;
  font-size:13px; font-weight:400; color:#555;
  line-height:1.7; margin-bottom:16px;
}
.about-list li::before {
  content:''; display:block;
  width:5px; height:5px; min-width:5px;
  background:var(--gold); border-radius:50%; margin-top:8px;
}

/* ─── SERVICES ─── */
#services { background:var(--black); padding:120px 6%; }
#services .section-eyebrow { margin-bottom:20px; }
#services .section-title { color:var(--white); margin-bottom:60px; }
.services-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.05);
}
.service-card {
  background:var(--black-mid); padding:48px 36px; transition:background 0.3s;
}
.service-card:hover { background:#1f1f1f; }
.service-icon {
  width:48px; height:48px;
  border:1px solid var(--border-gold);
  display:flex; align-items:center; justify-content:center; margin-bottom:28px;
}
.service-icon svg { width:22px; height:22px; stroke:var(--gold); fill:none; stroke-width:1.25; }
.service-card h3 {
  font-family:'Cormorant Garamond', serif;
  font-size:22px; font-weight:400; color:var(--white);
  margin-bottom:14px; letter-spacing:0.01em;
}
.service-card p { font-size:13px; font-weight:300; color:rgba(255,255,255,0.45); line-height:1.8; }

/* ─── VALUES ─── */
#values { background:var(--off-white); padding:120px 6%; }
#values .section-title { color:var(--black); margin-bottom:60px; }
.values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.value-card {
  background:var(--white); padding:40px 32px;
  border:1px solid rgba(0,0,0,0.07);
  border-top:2px solid var(--gold); border-radius:1px;
  transition:box-shadow 0.3s;
}
.value-card:hover { box-shadow:0 16px 48px rgba(0,0,0,0.08); }
.value-num {
  font-family:'Cormorant Garamond', serif;
  font-size:60px; font-weight:300;
  color:rgba(140,110,40,0.6);
  line-height:1; margin-bottom:14px;
}
.value-card h3 {
  font-size:13px; font-weight:600; letter-spacing:0.06em;
  color:var(--black); margin-bottom:12px; text-transform:uppercase;
}
.value-card p { font-size:13px; font-weight:300; color:var(--gray-mid); line-height:1.8; }

/* ─── TESTIMONIALS ─── */
#testimonials { background:var(--gold-pale); padding:120px 6%; }
#testimonials .section-title { color:var(--black); margin-bottom:60px; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testimonial-card {
  background:var(--white); padding:40px 32px;
  border:1px solid rgba(168,135,58,0.2); border-radius:1px;
}
.testimonial-quote {
  font-family:'Cormorant Garamond', serif;
  font-size:60px; font-weight:300; color:var(--gold);
  line-height:0.8; margin-bottom:20px;
}
.testimonial-card p { font-size:14px; font-weight:300; color:#555; line-height:1.85; margin-bottom:28px; }
.testimonial-author { font-size:12px; font-weight:600; letter-spacing:0.06em; color:var(--black); text-transform:uppercase; }
.testimonial-role { font-size:12px; font-weight:300; color:var(--gray-mid); margin-top:4px; }

/* ─── CONTACT ─── */
#contact { background:var(--black); padding:120px 6%; text-align:center; position:relative; overflow:hidden; }
.contact-glow {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:800px; height:400px;
  background:radial-gradient(ellipse, rgba(168,135,58,0.06) 0%, transparent 70%);
  pointer-events:none;
}
#contact .section-eyebrow { justify-content:center; }
#contact .section-eyebrow::before { display:none; }
#contact .section-title { color:var(--white); margin-bottom:24px; position:relative; z-index:1; }
#contact .section-subtitle {
  font-size:14px; font-weight:300; color:rgba(255,255,255,0.45);
  max-width:440px; margin:0 auto 48px; line-height:1.85;
  position:relative; z-index:1;
}
.contact-form { max-width:600px; margin:0 auto; position:relative; z-index:1; }
.contact-form .form-row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-bottom:12px; }
.contact-form input,
.contact-form textarea {
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  color:var(--white); padding:14px 22px;
  font-size:13px; font-family:'Montserrat',sans-serif;
  outline:none; border-radius:1px;
  transition:border-color 0.2s; width:100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color:rgba(255,255,255,0.3); }
.contact-form input:focus,
.contact-form textarea:focus { border-color:var(--gold); }
.contact-form textarea { min-height:120px; resize:vertical; margin-bottom:12px; }
.contact-form .form-half { width:calc(50% - 6px); }
.form-success {
  display:none; color:var(--gold);
  font-size:13px; margin-top:16px; letter-spacing:0.05em;
}
.contact-phone { font-size:12px; color:rgba(255,255,255,0.3); margin-top:20px; position:relative; z-index:1; }
.contact-phone a { color:var(--gold); }

/* ─── FOOTER ─── */
#site-footer { background:#060606; padding:72px 6% 40px; border-top:1px solid rgba(255,255,255,0.05); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:64px; margin-bottom:56px; }
.footer-brand .footer-logo img { height:60px; width:auto; margin-bottom:20px; }
.footer-desc { font-size:12px; font-weight:300; color:rgba(255,255,255,0.3); line-height:1.85; max-width:260px; }
.footer-address { font-size:12px; font-weight:300; color:rgba(255,255,255,0.3); margin-top:18px; line-height:1.85; }
.footer-address a { color:rgba(255,255,255,0.3); }
.footer-col h4 { font-size:10px; font-weight:600; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); margin-bottom:20px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:12px; }
.footer-col a { color:rgba(255,255,255,0.35); font-size:12px; font-weight:300; transition:color 0.2s; }
.footer-col a:hover { color:var(--gold); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.05); padding-top:28px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px; color:rgba(255,255,255,0.2);
}
.footer-bottom a { color:rgba(255,255,255,0.2); margin-left:24px; }
.footer-bottom a:hover { color:var(--gold); }

/* ─── WORDPRESS SPECIFIC ─── */
.wp-block-image { margin:2em 0; }
.aligncenter { text-align:center; }
.alignleft { float:left; margin-right:2em; }
.alignright { float:right; margin-left:2em; }
.screen-reader-text { position:absolute; left:-9999px; }

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
  .hero-right { display:none; }
  .about-inner { grid-template-columns:1fr; gap:60px; }
  .about-img-col { max-width:420px; margin:0 auto; }
}
@media(max-width:768px) {
  #stats { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:1fr; }
  .values-grid { grid-template-columns:1fr; }
  .testimonials-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:40px; }
  .nav-menu { display:none; flex-direction:column; position:absolute; top:72px; left:0; right:0; background:rgba(10,10,10,0.98); padding:24px 6%; gap:20px; }
  .nav-menu.open { display:flex; }
  .menu-toggle { display:flex; }
  .contact-form .form-half { width:100%; }
}
@media(max-width:480px) {
  #stats { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-left h1 { font-size:38px; }
}
