/* ===== Flux Construction — Shared Styles ===== */

:root {
  --charcoal: #1c2024;
  --charcoal-light: #262b30;
  --steel: #4a5560;
  --steel-light: #7d8892;
  --concrete: #e7e4de;
  --cream: #f7f3ec;
  --maroon: #3d0101;
  --maroon-dark: #240101;
  --maroon-bright: #8a1f1f;
  --text-dark: #22262b;
  --white: #ffffff;

  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.03em; }

p { margin: 0 0 16px; color: var(--steel); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--maroon-bright);
  margin-bottom: 10px;
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--dark {
  background: var(--charcoal);
  color: var(--concrete);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--steel-light); }

.section--steel { background: var(--steel); color: var(--white); }
.section--steel h1, .section--steel h2, .section--steel h3 { color: var(--white); }
.section--steel p { color: var(--concrete); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--maroon); color: var(--white); }
.btn--primary:hover { background: var(--maroon-dark); }

.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--charcoal); }

.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #000; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--maroon-bright);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--maroon-bright); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  color: var(--concrete);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: var(--maroon-bright);
}

.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-cta { display: inline-block; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-light);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 55%, var(--steel) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero--image {
  background-image: linear-gradient(135deg, rgba(20,23,26,0.88), rgba(38,43,48,0.72)), url('../img/hero-patio.jpg');
  background-size: cover;
  background-position: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-sub { color: var(--concrete); max-width: 560px; font-size: 1.05rem; }
.hero h1 { color: var(--white); }

.page-banner {
  background-image: linear-gradient(135deg, rgba(20,23,26,0.88), rgba(38,43,48,0.78)), url('../img/hero-patio.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.page-banner p { color: var(--concrete); max-width: 620px; margin: 0 auto; }
.page-banner h1 { color: var(--white); }

/* ===== Grid utilities ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 6px;
  padding: 32px 26px;
  box-shadow: 0 2px 10px rgba(28,32,36,0.07);
  border-top: 4px solid var(--maroon);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(28,32,36,0.12); }
.section--dark .card h3 { color: var(--maroon); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(61,1,1,0.10);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}

/* ===== Stats bar ===== */
.stats {
  background: var(--charcoal);
  color: var(--white);
}
.stat {
  text-align: center;
  padding: 12px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--maroon-bright);
  display: block;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--concrete);
}

/* ===== Testimonials ===== */
.testimonial {
  background: var(--white);
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(28,32,36,0.07);
}
.testimonial p { color: var(--text-dark); font-style: italic; }
.testimonial-name { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--maroon); }

/* ===== Project cards ===== */
.project-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(28,32,36,0.07); }
.project-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}
.project-thumb-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}
.project-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-thumb-img:hover img { transform: scale(1.05); }
.project-thumb-hint {
  position: absolute;
  inset: 0;
  background: rgba(20,23,26,0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.project-thumb-img:hover .project-thumb-hint { opacity: 1; }
.project-body { padding: 20px 22px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 8px;
}

.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 4px;
  border: 2px solid var(--steel);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }

/* ===== Process steps ===== */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--maroon-bright); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  margin: 0 auto 14px;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfcac0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--maroon); border-color: var(--maroon); }
textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.85rem; color: var(--steel-light); margin-top: -6px; }
.form-success {
  display: none;
  background: rgba(34,140,80,0.1);
  border: 1px solid #2f9e5f;
  color: #1f6b3d;
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 0.92rem;
}

/* ===== Contact info blocks ===== */
.contact-block { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(61,1,1,0.10);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.map-placeholder {
  background: repeating-linear-gradient(135deg, var(--steel) 0, var(--steel) 12px, var(--charcoal-light) 12px, var(--charcoal-light) 24px);
  border-radius: 6px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Team ===== */
.team-avatar {
  width: 100%;
  height: 200px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 2.2rem;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(28,32,36,0.07); }
.team-info { padding: 20px; }
.team-role { color: var(--maroon); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 8px; }

/* ===== Values ===== */
.value-item { display: flex; gap: 16px; align-items: flex-start; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner .btn--dark:hover { background: var(--charcoal-light); }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--concrete);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--steel-light); transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--maroon-bright); }
.footer-logo { font-family: var(--font-head); color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-logo span { color: var(--maroon-bright); }
/* ===== Lightbox Gallery ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,11,13,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--concrete);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.1rem; }
  .lightbox-close { width: 38px; height: 38px; font-size: 1.3rem; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--steel-light);
}
