/*
Theme Name: GEM Building Group
Theme URI: https://gembuildinggroup.com
Author: GEM Building Group
Description: Custom theme for GEM Building Group — Chicago construction company
Version: 1.0
License: Private
Text Domain: gem-theme
*/

/* ── Reset & Variables ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a0a0a;
  --navy-mid:   #1a1a1a;
  --gold:       #888888;
  --gold-light: #c0c0c0;
  --cream:      #f5f5f5;
  --cream-dark: #e2e2e2;
  --white:      #ffffff;
  --text:       #0a0a0a;
  --text-mid:   #565656;
  --text-light: #999999;
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy); padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  transition: color .3s;
}
.nav-links a:hover,
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a { color: var(--white); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { width: 22px; height: 2px; background: white; display: block; }
.nav-mobile {
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy); padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08); z-index: 99;
  display: none; flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 13px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-mobile a:hover { color: var(--white); }

/* ── Page wrapper ────────────────────────────────────────────────────── */
.page-wrap { padding-top: 68px; }

/* ── Shared ──────────────────────────────────────────────────────────── */
.section    { padding: 96px 48px; }
.container  { max-width: 1120px; margin: 0 auto; }
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px,5vw,62px); font-weight: 400;
  color: var(--navy); line-height: 1.1; margin-bottom: 24px;
}
.section-body { font-size: 16px; font-weight: 300; line-height: 1.9; color: var(--text-mid); max-width: 680px; }

.btn-white {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  background: var(--white); color: var(--navy);
  padding: 16px 44px; cursor: pointer; border: none; transition: background .3s;
}
.btn-white:hover { background: var(--cream); color: var(--navy); }
.btn-outline {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,.7);
  padding: 16px 44px; cursor: pointer; border: 1px solid rgba(255,255,255,.3); transition: all .3s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy); min-height: calc(100vh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 80px 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,255,255,.04), transparent 70%);
}
.hero-logo    { width: min(520px,75%); height: auto; margin-bottom: 36px; position: relative; }
.hero-badge   { font-size: 10px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 36px; position: relative; }
.hero-headline { font-family: 'Cormorant Garamond', serif; font-size: clamp(48px,8vw,88px); font-weight: 400; color: var(--white); line-height: 1.08; max-width: 820px; position: relative; }
.hero-headline em { font-style: italic; color: rgba(255,255,255,.7); }
.hero-divider { width: 56px; height: 1px; background: rgba(255,255,255,.25); margin: 40px auto; position: relative; }
.hero-sub     { font-size: clamp(15px,2vw,18px); font-weight: 300; color: rgba(255,255,255,.5); max-width: 560px; line-height: 1.85; margin-bottom: 52px; position: relative; }
.hero-btns    { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; }

/* ── Stand Out ───────────────────────────────────────────────────────── */
.standout-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; background: var(--cream-dark); margin-top: 56px;
}
.standout-card { background: var(--cream); padding: 52px 36px; transition: background .3s; }
.standout-card:hover { background: var(--white); }
.standout-icon { font-size: 26px; margin-bottom: 20px; color: var(--text-mid); }
.standout-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.standout-card p  { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.8; }
.standout-quote   { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic; color: var(--navy); text-align: center; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--cream-dark); }

/* ── Preview Grid ────────────────────────────────────────────────────── */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; max-width: 900px; }
.preview-card { position: relative; overflow: hidden; cursor: pointer; background: var(--cream-dark); }
.preview-card img { width: 100%; height: 290px; object-fit: cover; display: block; transition: transform .5s; }
.preview-card:hover img { transform: scale(1.05); }
.preview-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 48px 20px 22px; }
.preview-type { font-size: 9px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 5px; }
.preview-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: white; }

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials-section { background: var(--navy); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(255,255,255,.05); margin-top: 56px; }
.tcard { background: rgba(255,255,255,.02); padding: 44px 36px; border-top: 2px solid transparent; transition: border-color .3s, background .3s; }
.tcard:hover { border-top-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.tcard-quote   { font-family: 'Cormorant Garamond', serif; font-size: 60px; color: rgba(255,255,255,.2); line-height: .8; margin-bottom: 18px; }
.tcard-preview { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: rgba(255,255,255,.75); line-height: 1.72; margin-bottom: 8px; }
.tcard-full    { display: none; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: rgba(255,255,255,.75); line-height: 1.72; margin-bottom: 8px; }
.tcard-readmore { background: none; border: none; color: rgba(255,255,255,.35); font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; padding: 6px 0 12px; transition: color .2s; }
.tcard-readmore:hover { color: rgba(255,255,255,.7); }
.tcard-author  { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 12px; }
.tcard-role    { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.28); margin-top: 4px; }

/* ── Pillars ─────────────────────────────────────────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; margin-top: 64px; }
.pillar-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
.pillar-body  { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.85; }

/* ── CTA Band ────────────────────────────────────────────────────────── */
.cta-band { background: var(--navy); padding: 100px 48px; text-align: center; }
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px,5vw,60px); font-weight: 400; color: var(--white); margin-bottom: 16px; line-height: 1.15; }
.cta-band p  { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.45); margin-bottom: 44px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-form    { display: flex; max-width: 500px; margin: 0 auto; }
.cta-form input { flex: 1; padding: 17px 20px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 300; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: white; outline: none; }
.cta-form input::placeholder { color: rgba(255,255,255,.28); }
.cta-form button { padding: 17px 28px; background: var(--white); color: var(--navy); border: none; font-size: 18px; cursor: pointer; font-weight: 600; transition: background .3s; }
.cta-form button:hover { background: var(--cream); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #050505; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer img { height: 30px; opacity: .4; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.22); transition: color .3s; }
.footer-links a:hover { color: rgba(255,255,255,.6); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.14); letter-spacing: .08em; }

/* ── About Page ──────────────────────────────────────────────────────── */
.about-hero { background: var(--navy); padding: 100px 48px; }
.about-hero .section-title { color: var(--white); }
.about-hero .section-body  { color: rgba(255,255,255,.55); margin-top: 20px; }
.checklist { list-style: none; margin-top: 32px; }
.checklist li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--cream-dark); font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.6; }
.checklist li::before { content: '✦'; color: var(--text-light); font-size: 11px; flex-shrink: 0; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }

/* ── Portfolio Page ──────────────────────────────────────────────────── */
.portfolio-hero { background: var(--navy); padding: 100px 48px; }
.portfolio-hero .section-title { color: white; }
.portfolio-hero .section-body  { color: rgba(255,255,255,.5); }
.portfolio-filter { display: flex; gap: 2px; margin-top: 40px; flex-wrap: wrap; }
.filter-btn { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 15px 32px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); border: none; cursor: pointer; transition: all .3s; }
.filter-btn:hover, .filter-btn.active { background: var(--white); color: var(--navy); }
.port-section { padding: 80px 48px; background: var(--white); }
.ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.ss-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 16px; }

/* ── Slideshow ───────────────────────────────────────────────────────── */
.slideshow-container { position: relative; overflow: hidden; background: #111; height: 360px; }
.slide { display: none; width: 100%; height: 360px; object-fit: cover; }
.slide.active { display: block; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.65); color: var(--white); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; cursor: pointer; z-index: 10; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.slide-btn:hover { background: rgba(0,0,0,.9); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-counter  { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 10px; font-family: 'Outfit', sans-serif; }
.dots-container { display: flex; justify-content: center; gap: 7px; padding: 16px 0 8px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-dark); cursor: pointer; transition: background .2s; }
.dot.active { background: var(--text); }

/* ── Contact Page ────────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1.5fr; min-height: calc(100vh - 68px); }
.contact-left  { background: var(--navy); padding: 88px 56px; }
.contact-left .section-title { color: white; font-size: clamp(32px,4vw,52px); }
.contact-left .section-body  { color: rgba(255,255,255,.45); margin-top: 20px; }
.cdetails { margin-top: 48px; }
.cdetail  { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cdetail-icon  { width: 44px; height: 44px; background: rgba(255,255,255,.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cdetail-label { font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 5px; }
.cdetail-val   { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.72); }
.contact-right { background: var(--white); padding: 88px 64px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.fgroup { margin-bottom: 20px; }
.fgroup label { display: block; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.fgroup input, .fgroup textarea { width: 100%; padding: 14px 16px; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 300; border: 1px solid var(--cream-dark); background: var(--cream); color: var(--text); outline: none; transition: border-color .3s; }
.fgroup input:focus, .fgroup textarea:focus { border-color: var(--text); background: white; }
.fgroup textarea { height: 140px; resize: vertical; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.radio-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 300; color: var(--text-mid); cursor: pointer; }
.check-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.check-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 300; color: var(--text-mid); cursor: pointer; }
.form-submit { width: 100%; padding: 18px; background: var(--navy); color: white; font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; border: none; cursor: pointer; transition: background .3s; margin-top: 8px; }
.form-submit:hover { background: var(--navy-mid); }
.form-msg-success { display: none; background: #f0faf0; border: 1px solid #c3e6cb; padding: 24px 28px; margin-bottom: 28px; text-align: center; }
.form-msg-success p:first-child { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #2d6a4f; margin-bottom: 6px; }
.form-msg-success p:last-child  { font-size: 14px; font-weight: 300; color: #555; }
.form-msg-error { display: none; background: #fff0f0; border: 1px solid #f5c6cb; padding: 16px 20px; margin-bottom: 20px; }
.form-msg-error p { font-size: 14px; color: #721c24; }

/* ── Animations ──────────────────────────────────────────────────────── */
.fi { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fi.vis { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .standout-grid   { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid    { grid-template-columns: 1fr; gap: 40px; }
  .two-col         { grid-template-columns: 1fr; }
  .contact-split   { grid-template-columns: 1fr; }
  .ss-grid         { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav        { padding: 0 24px; }
  .nav-links       { display: none; }
  .nav-hamburger   { display: flex; }
  .section, .cta-band, .about-hero, .portfolio-hero, .port-section { padding: 64px 24px; }
  .site-footer     { padding: 40px 24px; flex-direction: column; text-align: center; }
  .footer-links    { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 64px 32px; }
  .preview-grid    { grid-template-columns: 1fr; }
  .hero            { padding: 60px 24px; }
}
