/* Handiwork — static one-pager (from WordPress/Divi design) */

:root {
  --green-dark: #154235;
  --green-header: #164336;
  --blue: #22577a;
  --orange: #df7443;
  --text: #3c3a47;
  --heading: #0e0c19;
  --muted-bg: #eaeaea;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(14, 12, 25, 0.18);
  --header-h: 72px;
  --font-body: "Poppins", Helvetica, Arial, sans-serif;
  --font-heading: "Roboto", Helvetica, Arial, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--green-header);
  color: var(--white);
  text-align: center;
  padding: 8px 4%;
}

.top-bar p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14, 12, 25, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.logo img {
  max-height: 35px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--heading);
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover {
  color: var(--blue);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  padding: 0.75em 1.4em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-rfq {
  background: var(--orange);
  color: var(--white);
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.7em 1.35em;
}

.btn-rfq:hover {
  background: #c96336;
  box-shadow: 0 6px 18px rgba(223, 116, 67, 0.35);
}

.btn-lg {
  font-size: 16px;
  padding: 0.95em 1.8em;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid transparent;
}

.btn-ghost:hover {
  border-color: rgba(34, 87, 122, 0.2);
}

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

.btn-primary:hover {
  background: #0f3228;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Hero — two-column layout */
.hero {
  padding: 3.5rem 0 4rem;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: none;
  padding-top: 0;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  color: var(--blue);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--heading);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 34em;
  margin: 0;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  margin-bottom: 1.75rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.services-media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.service-card p {
  margin: 0;
  line-height: 1.75;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.about h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.about blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--green-dark);
  color: var(--heading);
  font-family: var(--font-heading);
}

.about-photo img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

/* Testimonials */
.section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.quote-icon {
  color: var(--green-dark);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  text-align: center;
  padding: 0.5rem;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.testimonial-card p {
  color: var(--heading);
  font-size: 15px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 400 / 284;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21, 66, 53, 0.45);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* CTA */
.cta {
  background: var(--muted-bg);
  padding: 3.5rem 0 2.5rem;
}

.cta-inner {
  text-align: center;
}

.cta h3 {
  color: var(--green-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

/* Map */
.map-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 15px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.lightbox.is-loading img {
  opacity: 0;
}

.lightbox.is-loading::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lightbox-spin 0.7s linear infinite;
  position: absolute;
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

/* RFQ slide-in (Typeform-style) */
.rfq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rfq-overlay.is-open {
  opacity: 1;
}

.rfq-overlay[hidden] {
  display: none;
}

.rfq-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--white);
  z-index: 3001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.rfq-panel.is-open {
  transform: translateX(0);
}

.rfq-panel-header {
  padding: 0.75rem 1rem 0;
  flex-shrink: 0;
}

.rfq-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  background: none;
  border: 0;
  font-size: 1.75rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.rfq-progress {
  height: 4px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 2.5rem 0.5rem 0.5rem;
}

.rfq-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark), var(--orange));
  transition: width 0.3s ease;
}

.rfq-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.rfq-step {
  display: none;
  animation: rfqIn 0.35s ease;
  flex: 1;
  flex-direction: column;
}

.rfq-step.is-active {
  display: flex;
}

@keyframes rfqIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rfq-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rfq-step h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.rfq-step .rfq-help {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.rfq-field {
  margin-bottom: 1.15rem;
}

.rfq-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.rfq-field label .req {
  color: var(--orange);
}

.rfq-field input,
.rfq-field select,
.rfq-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 0.85rem 1rem;
  border: 1.5px solid #d5d5d8;
  border-radius: var(--radius);
  color: var(--heading);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rfq-field input:focus,
.rfq-field select:focus,
.rfq-field textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(21, 66, 53, 0.12);
}

.rfq-field textarea {
  min-height: 120px;
  resize: vertical;
}

.rfq-field .error {
  color: #b42318;
  font-size: 13px;
  margin-top: 0.35rem;
  display: none;
}

.rfq-field.has-error input,
.rfq-field.has-error select,
.rfq-field.has-error textarea {
  border-color: #b42318;
}

.rfq-field.has-error .error {
  display: block;
}

.choice-grid {
  display: grid;
  gap: 0.65rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid #d5d5d8;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-weight: 500;
  color: var(--heading);
}

.choice:hover {
  border-color: var(--green-dark);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice.is-selected {
  border-color: var(--green-dark);
  background: rgba(21, 66, 53, 0.06);
  box-shadow: inset 0 0 0 1px var(--green-dark);
}

.choice i {
  color: var(--green-dark);
  width: 1.25rem;
  text-align: center;
}

.rfq-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.rfq-actions .btn {
  flex: 1;
}

.rfq-welcome {
  text-align: left;
}

.rfq-welcome .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.rfq-success {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.rfq-success .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(21, 66, 53, 0.1);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.rfq-review {
  background: #f7f7f8;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 14px;
}

.rfq-review dt {
  font-weight: 600;
  color: var(--heading);
  margin-top: 0.65rem;
}

.rfq-review dt:first-child {
  margin-top: 0;
}

.rfq-review dd {
  margin: 0.15rem 0 0;
  color: var(--text);
}

.rfq-alert {
  background: #fef3f2;
  color: #b42318;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 14px;
  margin-bottom: 1rem;
  display: none;
}

.rfq-alert.is-visible {
  display: block;
}

body.rfq-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .services-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    margin: 0 auto;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .nav.is-open {
    display: flex;
  }

  .header-inner .btn-rfq {
    display: none;
  }

  .header-inner {
    position: relative;
  }

  .hero-content {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rfq-panel-body {
    padding: 1rem 1.25rem 1.5rem;
  }
}
