/*
Theme Name: Solalt Engineering
Theme URI: https://engineering.solalt.com
Author: Solar Alternatives Engineering
Description: Custom theme for Solar Alternatives Engineering - solar & battery storage engineering. Dark navy + gold brand, project portfolio, service landing pages, FAQ, and Fluent Forms intake. Requires ACF (Pro recommended for project galleries) and Fluent Forms.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: solalt
*/

/* ============================================================
   SolAlt brand palette + base
   ============================================================ */
:root {
  --teal: #317c8f;
  --teal-light: #59b7c2;
  --navy-900: #0b1a2e;
  --navy-800: #112240;
  --navy-700: #18305c;
  --gold: #d4a017;
  --gold-light: #e6b730;
  --gold-dark: #a87c0e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy-900);
  color: #fff;
  font-family: 'Open Sans', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* image protection (visitors can't drag/save) */
img, video, svg { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
a img, button img { pointer-events: auto; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Reusable bits
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }
.bg-navy-800 { background: var(--navy-800); }

.section-tag {
  display: inline-block;
  background: rgba(49,124,143,0.15);
  color: var(--teal-light);
  border: 1px solid rgba(49,124,143,0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--teal-light) 50%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover { background: rgba(49,124,143,0.1); border-color: rgba(49,124,143,0.35); }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(49,124,143,0.4), transparent); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-700); border-color: rgba(212,160,23,0.4); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,160,23,0.45); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(49,124,143,0.5); }
.btn-outline:hover { background: rgba(49,124,143,0.12); border-color: var(--teal); transform: translateY(-2px); }

/* Headings scale */
.h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.08; }
.h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; }
.lead { font-size: 1.2rem; color: #fff; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s ease; }
.site-header.scrolled { background: rgba(11,26,46,0.97); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,0.4); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.brand .brand-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 16px; font-size: .9rem; font-weight: 500; color: #d1d5db; border-radius: 8px; transition: all .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 230px; padding-top: 10px; display: none; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu ul { list-style: none; background: rgba(11,26,46,0.98); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.nav-dropdown-menu a { display: block; padding: 12px 16px; border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: .9rem; color: #d1d5db; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }
.mobile-menu { display: none; background: rgba(17,34,64,0.98); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.05); padding: 16px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: #d1d5db; border-bottom: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0b1a2e 0%, #112240 50%, #18305c 100%); z-index: 0; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; z-index: 0; }
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 1000px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; max-width: 760px; margin: 0 auto 16px; }
.hero .hero-services { color: var(--gold); font-weight: 700; margin-bottom: 48px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; color: #fff; font-size: .9rem; font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ============================================================
   Stats
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { padding: 32px; text-align: center; }
.stat-value { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem,3vw,3rem); color: var(--gold); margin-bottom: 12px; }
.stat-label { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.stat-desc { color: #cbd5e1; font-size: .85rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Generic grids / cards
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card { padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 460px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.service-card .icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(49,124,143,0.1); border: 1px solid rgba(49,124,143,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--teal-light); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { color: #e2e8f0; font-size: .9rem; flex: 1; margin-bottom: 24px; }
.service-card ul { list-style: none; margin-bottom: 24px; }
.service-card li { display: flex; gap: 10px; font-size: .85rem; color: #e2e8f0; margin-bottom: 8px; }
.service-card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex-shrink: 0; }
.service-card .learn { color: var(--teal-light); font-weight: 700; font-size: .9rem; }

/* category / project tiles */
.tile { position: relative; min-height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: var(--navy-900); display: block; transition: transform .3s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(49,124,143,0.3); }
.tile-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.tile:hover .tile-img { transform: scale(1.08); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,46,0.1) 0%, rgba(11,26,46,0.35) 55%, rgba(11,26,46,0.92) 100%); }
.tile-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.4rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* customer cards */
.customer-card { position: relative; min-height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: var(--navy-900); display: flex; flex-direction: column; }
.customer-card .cc-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.customer-card .cc-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,26,46,0.7) 0%, rgba(11,26,46,0.45) 50%, rgba(11,26,46,0.3) 100%); }
.customer-card .cc-body { position: relative; z-index: 2; padding: 32px; }
.customer-card h3 { font-size: 1.4rem; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.customer-card p { color: #e2e8f0; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* logos (partners / certs) */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.logo-card { display: flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15); transition: all .3s; }
.logo-card:hover { background: rgba(255,255,255,0.25); }
.logo-card.cert { width: 160px; height: 96px; }
.logo-card.partner { width: 224px; height: 128px; }
.logo-card img { object-fit: contain; max-width: 88%; max-height: 70%; padding: 8px; }

/* markets list */
.market-section { margin-bottom: 80px; scroll-margin-top: 100px; }
.market-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.market-head h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900; }
.market-head .rule { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card { position: relative; overflow: hidden; border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.1); background: var(--navy-900); text-align: left; width: 100%; cursor: pointer; transition: transform .2s; }
.proj-card:hover { transform: translateY(-2px); border-color: rgba(49,124,143,0.3); }
.proj-card .pc-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.proj-card .pc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,46,0.45) 0%, rgba(11,26,46,0.75) 100%); }
.proj-card .pc-body { position: relative; z-index: 2; }
.proj-card h3 { font-size: 1.1rem; font-weight: 700; }
.proj-card .pc-size { color: var(--gold); font-weight: 600; font-size: .85rem; margin-top: 4px; }

/* FAQ */
.faq-section { margin-bottom: 56px; scroll-margin-top: 100px; }
.faq-section > h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 900; margin-bottom: 24px; }
.faq-item { margin-bottom: 8px; border-radius: 16px; overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--gold); transition: transform .3s; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 20px 20px; color: #e2e8f0; font-size: .9rem; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.info-row .ir-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(49,124,143,0.1); border: 1px solid rgba(49,124,143,0.2); display: flex; align-items: center; justify-content: center; color: var(--teal-light); flex-shrink: 0; }
.info-row .ir-label { color: #9ca3af; font-size: .8rem; }
.info-row .ir-value { color: #fff; font-weight: 600; }

/* lead capture */
.lead-form input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 16px; color: #fff; font-size: .9rem; margin-bottom: 12px; }
.lead-form input::placeholder { color: #6b7280; }
.lead-form input:focus { outline: none; border-color: rgba(49,124,143,0.5); }

/* footer */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.05); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9ca3af; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #6b7280; font-size: .85rem; }

/* back to top */
.back-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy-700); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 40; border: 0; }
.back-top.show { display: flex; }

/* cookie banner */
.cookie-banner { position: fixed; bottom: 16px; right: 16px; left: 16px; max-width: 420px; margin-left: auto; z-index: 60; display: none; }
.cookie-banner.show { display: block; }

/* gallery modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-card { width: 100%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.modal-body { display: flex; flex-wrap: wrap; }
.modal-photo { flex: 1; min-width: 280px; background: #000; min-height: 280px; display: flex; align-items: center; justify-content: center; position: relative; }
.modal-photo img { max-height: 380px; object-fit: contain; }
.modal-side { width: 240px; padding: 20px; border-left: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 700px) { .modal-side { width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); } }
