/* ============================================
   ATTIC INSTALLATIONS — Static Site Stylesheet
   ============================================ */

/* --- Webfonts --- */
@font-face {
  font-family: "Novecento Wide";
  src:
    url("../fonts/novecentowide-bold-webfont.woff2") format("woff2"),
    url("../fonts/novecentowide-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* --- Custom Properties --- */
:root {
  --black: #111318;
  --charcoal: #1c2027;
  --green: #b7d432;
  --green-dk: #7a8e1f;
  --white: #ffffff;
  --offwhite: #f6f7f3;
  --grey: #6b7280;
  --border: #e5e7eb;

  --font-head: "Novecento Wide", "Arial Narrow", Arial, sans-serif;
  --font-body:
    "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Montserrat", system-ui, sans-serif;

  --max-w: 1140px;
  --radius: 4px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
h4 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section--dark {
  background: var(--charcoal);
  color: var(--white);
}
.section--light {
  background: var(--offwhite);
}
.section--green {
  background: var(--green);
  color: var(--black);
}
.text-center {
  text-align: center;
}
.text-green {
  color: var(--green);
}
.lead {
  font-size: 1.125rem;
  color: var(--grey);
  max-width: 640px;
}
.lead--white {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--green);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--green-dk);
  color: var(--black) !important;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--black);
  transform: translateY(-1px);
}

/* --- Top Bar --- */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  padding: 9px 0;
  text-align: center;
}
.topbar a {
  color: var(--green);
  font-weight: 600;
}
.topbar a:hover {
  text-decoration: underline;
}

/* --- Navigation --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dk);
}
.nav-links .btn {
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: var(--charcoal);
  padding: 24px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}
.mobile-menu a:hover {
  color: var(--green);
}
.mobile-menu a:last-child {
  border-bottom: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--black) url("../images/image-home.jpg") center center / cover
    no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 19, 24, 0.82) 0%,
    rgba(17, 19, 24, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--charcoal);
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
}
.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* --- Features (3 column) --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-card h3 {
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* --- CTA Strip --- */
.cta-strip {
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 {
  margin-bottom: 16px;
}
.cta-strip p {
  margin-bottom: 32px;
}

/* --- Split Sections --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--reverse .split-image {
  order: 2;
}
.split--reverse .split-content {
  order: 1;
}
.split-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
}
.split-content h2 {
  margin-bottom: 20px;
}
.split-content p {
  color: var(--grey);
  margin-bottom: 20px;
}
.split-content .btn {
  margin-top: 8px;
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--green);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Services list --- */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--offwhite);
  border-radius: 8px;
  border-left: 4px solid var(--green);
}
.service-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.service-item-text h4 {
  margin-bottom: 6px;
}
.service-item-text p {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
}

/* --- Process steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: steps;
  margin-top: 48px;
}
.process-step {
  text-align: center;
  counter-increment: steps;
  position: relative;
}
.process-step::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.process-step h4 {
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--grey);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0);
  transition: background 0.25s ease;
}
.gallery-item:hover::after {
  background: rgba(17, 19, 24, 0.2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev {
  left: 16px;
}
.lightbox-next {
  right: 16px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  gap: 16px;
}
.faq-trigger:hover {
  color: var(--green-dk);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    transform var(--transition),
    background var(--transition);
  color: var(--black);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--charcoal);
  color: var(--white);
}
.faq-body {
  display: none;
  padding: 0 0 22px;
  color: var(--grey);
  line-height: 1.7;
}
.faq-item.open .faq-body {
  display: block;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info h2 {
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 4px;
}
.contact-detail-text a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}
.contact-detail-text a:hover {
  color: var(--green-dk);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(183, 212, 50, 0.18);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.9rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
  color: var(--green);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split-image {
    order: 0;
  }
  .split--reverse .split-content {
    order: 0;
  }
  .split-image img {
    height: 280px;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    min-height: 70vh;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
