/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --charcoal: #1a1d22;
  --header-bg: #20242b;
  --off-white: #f7f5f1;
  --white: #ffffff;
  --steel: #5b6470;
  --steel-light: #8a929c;
  --accent: #c9742f;
  --accent-dark: #a85f24;
  --border: #e2ded5;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.55;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

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

/* Tick-mark divider — a small nod to the measuring-tape motif,
   used under section headings only. */
.tick-divider {
  display: flex;
  gap: 6px;
  margin: 18px 0 0;
}
.tick-divider span {
  width: 4px;
  height: 10px;
  background: var(--accent);
}
.tick-divider span:nth-child(2),
.tick-divider span:nth-child(4) {
  height: 6px;
  opacity: 0.55;
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--accent);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
}

.logo img {
  height: 38px;
  width: 38px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text [data-company-name] {
  font-size: 1.05rem;
  font-weight: 700;
}

.logo-text [data-short-name] {
  font-size: 0.72rem;
  color: var(--steel-light);
  letter-spacing: 0.05em;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel-light);
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ============================================================
   TAB SECTIONS
   ============================================================ */
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 24px 90px;
  text-align: left;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 720px;
  line-height: 1.08;
}

.hero p {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.1rem;
  color: #e7e4dd;
}

.btn {
  display: inline-block;
  margin-top: 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-body);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 92% 100%, 0 100%);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
.section {
  padding: 80px 24px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 8px;
}

.section-header p {
  margin-top: 18px;
  color: var(--steel);
  font-size: 1.05rem;
}

.section.alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about-body p {
  color: var(--steel);
  max-width: 760px;
}

.stats {
  display: flex;
  gap: 48px;
  margin: 40px 0 56px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 4px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 24px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--steel);
  font-size: 0.94rem;
  margin: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 28px;
}

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

.service-card p {
  color: var(--steel);
  margin: 0;
  font-size: 0.96rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--steel);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-tag {
  position: absolute;
  top: 14px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.project-location {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.project-description {
  color: var(--steel);
  font-size: 0.93rem;
  margin: 0;
}

.empty-state {
  color: var(--steel);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form button {
  align-self: flex-start;
}

/* Hides the spam honeypot field from sighted users while keeping it
   in the DOM so bots (which often fill every field) still trip it. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status-success {
  color: #2f7d4f;
}

.form-status-error {
  color: #b3401f;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--header-bg);
  color: var(--steel-light);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .nav-link.active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent);
  }

  .hero {
    padding: 80px 20px 64px;
  }

  .section {
    padding: 56px 20px;
  }

  .stats {
    gap: 32px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Visible keyboard focus throughout */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
