﻿:root {
  --bg: #f4f1eb;
  --paper: #fffdf8;
  --text: #1f2428;
  --muted: #52585d;
  --accent: #c44b22;
  --accent-dark: #983515;
  --line: #d9cec0;
  --charcoal: #2b221c;
  --container: min(1120px, 92vw);
  --radius: 16px;
  --shadow: 0 14px 40px rgb(24 16 11 / 16%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 92% -4%, rgb(196 75 34 / 18%), transparent 70%),
    radial-gradient(900px 550px at -10% 12%, rgb(43 34 28 / 10%), transparent 70%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgb(244 241 235 / 88%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--charcoal);
}

.brand-text small {
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--charcoal);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #d45b30 0%, #bc431d 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgb(188 67 29 / 28%);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  margin: 0;
  color: var(--charcoal);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

h2 {
  font-size: clamp(1.62rem, 3.1vw, 2.45rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
}

.hero {
  padding-top: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.section-heading {
  margin-bottom: 28px;
  display: grid;
  gap: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metrics div {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.metrics strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: var(--accent-dark);
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}


.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ref-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.ref-image {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cdbfae;
  background: #f8f4ee;
}

.ref-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 2px dashed #b9ab98;
  background:
    linear-gradient(45deg, rgb(185 171 152 / 16%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(185 171 152 / 16%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(185 171 152 / 16%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(185 171 152 / 16%) 75%),
    #f8f4ee;
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.ref-card p {
  color: var(--muted);
}

.clickable-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.gallery-tab {
  background: transparent;
  border: 2px solid var(--line);
  padding: 10px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.3s;
}

.gallery-tab:hover {
  background: rgba(196, 75, 34, 0.05);
}

.gallery-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: zoom-in;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

#lightbox-caption {
  margin: 15px auto 0;
  display: block;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #fff;
}

#lightbox-caption h3 {
  color: #fff;
  margin: 0 0 5px 0;
}

#lightbox-caption p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}


.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.area-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-list li {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.map-wrap {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.contact-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-list a {
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: 600;
  color: var(--charcoal);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-bottom: 8px;
  width: 100%;
  border: 1px solid #c7bdaf;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgb(196 75 34 / 24%);
  border-color: var(--accent);
}

.form-feedback {
  min-height: 22px;
  margin-top: 3px;
  font-weight: 600;
}

.form-feedback.success {
  color: #166533;
}

.form-feedback.error {
  color: #a01616;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgb(43 34 28 / 4%);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-row p {
  color: var(--muted);
}

.footer-row a {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 980px) {

  .hero-grid,
  .about-grid,
  .area-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 4vw;
    width: min(320px, 92vw);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

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

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

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

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

@media (max-width: 760px) {
  .header-row {
    min-height: 70px;
  }

  .hero {
    padding-top: 72px;
  }

  .section {
    padding: 64px 0;
  }

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


}