/* ============================================================
   Building Pro Solutions — styles.css
   Dark gold theme derived from logo
   ============================================================ */

/* ---- Variables ---- */
:root {
  --gold:        #C9A84C;
  --gold-bright: #E8C45A;
  --gold-dark:   #a88630;
  --bg:          #111111;
  --bg-card:     #1A1A1A;
  --bg-card-2:   #202020;
  --silver:      #C0C0C0;
  --white:       #FFFFFF;
  --text:        #E8E8E8;
  --text-muted:  #999999;
  --border:      rgba(201, 168, 76, 0.2);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  --shadow:     0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);

  --container:  1200px;
  --gap:        2rem;
  --section-py: 5rem;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--white);
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.hidden { display: none !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ---- Section Layout ---- */
section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.25rem 0;
}
#site-header.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link { flex-shrink: 0; }
.logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
#main-nav ul {
  display: none;
  gap: 0.25rem;
}
#main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
#main-nav a:hover,
#main-nav a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover {
  background: var(--gold-bright) !important;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open */
#main-nav.open ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}
#main-nav.open a { padding: 0.75rem 1rem; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(17,17,17,0.85) 50%, rgba(26,26,26,0.9) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.12) 0%, transparent 60%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
#hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--silver);
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver);
}
.hero-trust svg { color: var(--gold); flex-shrink: 0; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.6;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--bg-card); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(201, 168, 76, 0.2); }
.service-icon svg { width: 28px; height: 28px; color: var(--gold); }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why-us { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.why-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
}
.why-icon svg { width: 44px; height: 44px; }
.why-card h3 { font-size: 1rem; color: var(--gold); }
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   GALLERY
   ============================================================ */
#gallery { background: var(--bg-card); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-card-2);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.gallery-item.hidden-filter { display: none; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox-caption {
  color: var(--gold);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.75rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); color: var(--bg); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.quote-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 1rem;
}
.testimonial-card blockquote p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.testimonial-card figcaption strong {
  color: var(--gold);
  font-size: 0.9rem;
  font-family: var(--font-head);
}
.testimonial-card figcaption span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--bg-card);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-info .section-eyebrow { text-align: left; margin-bottom: 0.5rem; }
.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-details svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--gold); }

.service-areas p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-tags span {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ---- Form ---- */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}
label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.03em;
}
label span { color: var(--gold); }
input, select, textarea {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; cursor: pointer; }
select option { background: var(--bg-card); }
textarea { resize: vertical; min-height: 120px; }
.field-error { font-size: 0.8rem; color: #e55; min-height: 1.1em; }
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 56px; height: 56px; color: var(--gold); }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #0a0a0a; border-top: 1px solid var(--border); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  padding: 6rem 1.25rem 5rem;
}
.footer-logo { height: 60px; width: auto; border-radius: 4px; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 300px; line-height: 1.65; }
.footer-links h4 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-links li + li { margin-top: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact h4 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-contact li { font-size: 0.88rem; color: var(--text-muted); }
.footer-contact li + li { margin-top: 0.6rem; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--gold); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2.25rem 1.25rem;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  z-index: 999;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   TABLET — 768px+
   ============================================================ */
@media (min-width: 768px) {
  :root { --section-py: 6rem; }

  #main-nav ul { display: flex; }
  .hamburger { display: none; }

  .hero-trust { gap: 1.5rem; }

  .form-row { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  :root { --section-py: 7rem; }

  .container { padding: 0 2rem; }
  .logo { height: 64px; }
  .contact-form-wrap { padding: 3rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, .hero-actions, .hero-scroll-hint, #contact form,
  .gallery-filters, .back-to-top, .hamburger, .social-links,
  .btn, .filter-btn { display: none !important; }

  body { background: white; color: black; }
  h1, h2, h3, h4 { color: black; -webkit-text-fill-color: black; }
  section { padding: 2rem 0; page-break-inside: avoid; }
  a { color: black; }
}
