:root {
  --ink: #1a1c1a;
  --ink-soft: #2e322e;
  --paper: #f2efe8;
  --paper-dim: #e4dfd4;
  --steel: #5c6b6a;
  --accent: #c45c26;
  --accent-hover: #a84b1c;
  --accent-glow: rgba(196, 92, 38, 0.35);
  --panel: rgba(18, 20, 18, 0.78);
  --panel-border: rgba(242, 239, 232, 0.14);
  --white: #faf8f4;
  --font-display: "Oswald", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3,
.navbar-brand,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.btn-accent {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
}

/* —— Nav —— */
.site-nav {
  padding-block: 0.75rem;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(26, 28, 26, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding-block: 0.4rem;
}

.navbar-brand {
  font-size: 1.35rem;
  color: var(--white) !important;
}

.navbar-brand span {
  color: var(--accent);
}

.site-nav .nav-link {
  color: rgba(250, 248, 244, 0.82) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--white) !important;
}

.nav-cta {
  border: 1px solid rgba(250, 248, 244, 0.35);
  border-radius: 2px;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.navbar-toggler {
  border-color: rgba(250, 248, 244, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: rgba(26, 28, 26, 0.97);
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 4px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    linear-gradient(135deg, #2a2e2a 0%, #1a1c1a 50%, #3d342c 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero-video {
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 12, 10, 0.55) 0%, rgba(10, 12, 10, 0.35) 35%, rgba(10, 12, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 12, 10, 0.55) 0%, transparent 45%, rgba(10, 12, 10, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-brand {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-brand h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 244, 0.92);
  margin: 0 0 0.75rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(250, 248, 244, 0.78);
  margin: 0;
  max-width: 28rem;
}

.hero-panel {
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  padding: 1.5rem 1.35rem;
}

@media (min-width: 768px) {
  .hero-panel {
    padding: 1.75rem 1.6rem;
  }
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.hero-panel > p {
  color: rgba(250, 248, 244, 0.72);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-form .form-label,
.calc-controls .form-label {
  color: rgba(250, 248, 244, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero-form .form-control,
.calc-qty .form-control,
.contact-form .form-control {
  background: rgba(250, 248, 244, 0.08);
  border: 1px solid rgba(250, 248, 244, 0.18);
  color: var(--white);
  border-radius: 2px;
  padding: 0.65rem 0.85rem;
}

.contact-form .form-control {
  background: var(--white);
  border-color: var(--paper-dim);
  color: var(--ink);
}

.hero-form .form-control::placeholder {
  color: rgba(250, 248, 244, 0.4);
}

.hero-form .form-control:focus,
.calc-qty .form-control:focus {
  background: rgba(250, 248, 244, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-glow);
  color: var(--white);
}

.hero-call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(250, 248, 244, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-call-link:hover {
  color: var(--accent);
}

.form-note {
  font-size: 0.9rem;
  color: #9fd4a3;
}

/* —— Calculator —— */
.calc-options {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.calc-option {
  display: block;
  cursor: pointer;
  margin: 0;
}

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

.calc-option-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(250, 248, 244, 0.16);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-option-body strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--white);
}

.calc-option-body span {
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.85rem;
  white-space: nowrap;
}

.calc-option:hover .calc-option-body {
  border-color: rgba(250, 248, 244, 0.35);
}

.calc-option input:checked + .calc-option-body {
  border-color: var(--accent);
  background: rgba(196, 92, 38, 0.18);
}

.calc-option input:focus-visible + .calc-option-body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-controls {
  margin-bottom: 1.15rem;
}

.calc-controls.is-hidden {
  display: none;
}

.calc-qty .btn {
  border-radius: 2px;
  min-width: 2.75rem;
  border-color: rgba(250, 248, 244, 0.25);
  color: var(--white);
}

.calc-qty .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.calc-qty .form-control {
  max-width: none;
  -moz-appearance: textfield;
}

.calc-qty .form-control::-webkit-outer-spin-button,
.calc-qty .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(250, 248, 244, 0.16);
  border-bottom: 1px solid rgba(250, 248, 244, 0.16);
  margin-bottom: 1rem;
}

.calc-result-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 244, 0.55);
}

.calc-result-note {
  color: rgba(250, 248, 244, 0.8);
  font-size: 0.9rem;
}

.calc-total {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.calc-total.is-updating {
  opacity: 0.4;
  transform: translateY(4px);
}

.calc-disclaimer {
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.55);
  margin: 0;
  line-height: 1.5;
}

.calc-disclaimer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.section-intro {
  max-width: 36rem;
  margin-bottom: 2.75rem;
  text-align: center;
  margin-inline: auto;
}

.section-intro.text-start {
  margin-inline: 0;
  text-align: left;
}

.section-intro h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.section-intro p {
  color: var(--steel);
  margin: 0;
  font-size: 1.05rem;
}

.section-services {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
}

.service-item {
  padding-top: 0.5rem;
  border-top: 2px solid var(--ink);
  height: 100%;
}

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.service-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.service-item p {
  color: var(--steel);
  margin: 0;
}

.section-projects {
  background: var(--ink);
  color: var(--white);
}

.section-projects .section-intro h2 {
  color: var(--white);
}

.section-projects .section-intro p {
  color: rgba(250, 248, 244, 0.65);
}

.project-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 100%;
  min-height: 220px;
}

.project-shot-lg {
  min-height: 100%;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.7s var(--ease);
}

.project-shot-lg img {
  min-height: 460px;
}

.project-shot:hover img {
  transform: scale(1.04);
}

.project-shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(10, 12, 10, 0.85));
}

.section-about {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    var(--paper);
}

.about-visual {
  overflow: hidden;
  min-height: 320px;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.about-lead {
  font-size: 1.1rem !important;
  margin-bottom: 1.25rem !important;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.about-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}

.section-contact {
  background: var(--paper-dim);
}

.contact-details li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.contact-details i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.contact-details span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 0.15rem;
}

.contact-details a,
.contact-details p {
  color: var(--ink);
  font-weight: 600;
}

.contact-form .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-glow);
}

/* —— Footer —— */
.site-footer {
  background:
    linear-gradient(180deg, #141614 0%, var(--ink) 40%),
    var(--ink);
  color: rgba(250, 248, 244, 0.65);
  padding: 4.5rem 0 0;
  border-top: 1px solid rgba(250, 248, 244, 0.08);
}

.footer-main {
  padding-bottom: 3rem;
}

.footer-brand {
  font-size: 1.65rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-brand:hover {
  color: var(--white);
}

.footer-tag {
  margin: 0 0 1.35rem;
  max-width: 22rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(250, 248, 244, 0.2);
  color: var(--white);
  font-size: 1.05rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.1rem;
}

.footer-links {
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(250, 248, 244, 0.65);
  font-size: 0.95rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 0.2rem;
}

.footer-contact {
  margin: 0 0 1.25rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact a,
.footer-contact span {
  color: rgba(250, 248, 244, 0.75);
  line-height: 1.45;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-cta {
  border-radius: 2px;
  padding: 0.65rem 1.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  padding: 1.35rem 0 1.5rem;
}

.footer-meta,
.footer-copy {
  font-size: 0.85rem;
}

.footer-meta a {
  color: rgba(250, 248, 244, 0.65);
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

@media (max-width: 767.98px) {
  .footer-bottom .text-md-end {
    text-align: left !important;
  }
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.delay-2 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-shot img,
  .calc-total {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-bottom: 2rem;
  }

  .calc-option-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .calc-option-body span {
    white-space: normal;
  }

  .calc-result {
    flex-direction: column;
    align-items: flex-start;
  }
}
