/* ==========================================================================
   Tridom Contractors — shared styles
   Fonts: Barlow Condensed (headings/labels), Barlow (body)
   ========================================================================== */

:root {
  --color-accent: #00aeef;
  --color-accent-dim: rgba(0, 174, 239, 0.15);
  --color-ink: #161616;
  --color-heading: #0c0f36;
  --color-navy: #0c0f36;
  --color-dark: #1a1a2e;
  --color-body: #6b7280;
  --color-muted: #a6a6a6;
  --color-border: #e2e2e2;
  --color-white: #ffffff;
  --color-offwhite: #f6f7fa;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --max-width: 1280px;
  --radius-md: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
  text-transform: none;
}

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

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border: none;
  margin: 16px 0 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.top-bar {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 13px;
  padding: 10px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.top-bar a {
  color: var(--color-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-ink);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: var(--color-white);
}

.logo .logo-text span {
  display: block;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-white);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-white);
  transition: all 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: linear-gradient(120deg, #14161c 0%, #262b36 55%, #1a1e27 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,12,16,0.75), rgba(10,12,16,0.4));
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
}

.hero .eyebrow-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero .eyebrow-block .bar {
  width: 6px;
  height: 24px;
  background: var(--color-accent);
}

.hero .eyebrow-block span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.05;
  color: var(--color-white);
  max-width: 780px;
  margin: 0 0 24px;
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 32px;
}

.hero .btn-row {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-stats .stat {
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.hero-stats .stat:last-child {
  border-right: none;
}

.hero-stats .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-accent);
  display: block;
  line-height: 1.1;
}

.hero-stats .label {
  font-size: 14px;
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background: linear-gradient(120deg, #14161c 0%, #262b36 55%, #1a1e27 100%);
  color: var(--color-white);
  padding: 64px 40px;
}

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

.page-hero h1 {
  color: var(--color-white);
  font-size: 48px;
  margin: 12px 0 0;
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-accent);
}

/* ---- Marquee strip ---- */
.marquee-strip {
  background: var(--color-accent);
  color: var(--color-ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}

.marquee-strip .track {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  animation: marquee 22s linear infinite;
}

.marquee-strip .track span {
  margin-right: 48px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 80px 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-head h2 {
  font-size: 40px;
  margin: 10px 0 0;
  line-height: 1.15;
}

.section-head p.lead {
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin-top: 16px;
}

/* dark section variant */
.section-dark {
  background: linear-gradient(90deg, var(--color-ink), #232323);
  color: var(--color-white);
}

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

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

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

.section-offwhite {
  background: var(--color-offwhite);
}

/* ---- About section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}

.badge-years {
  position: absolute;
  left: 0;
  bottom: -40px;
  background: var(--color-accent);
  color: var(--color-ink);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  max-width: 200px;
}

.about-copy p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--color-ink);
}

.check-list .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 64px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  padding-left: 24px;
  border-left: 6px solid var(--color-accent);
}

.service-card .icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Why choose us ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
}

.why-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.why-item:last-child {
  border-right: none;
}

.why-item:first-child {
  padding-left: 0;
}

.why-item .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-accent-dim);
  display: block;
}

.why-item h3 {
  color: var(--color-accent);
  font-size: 20px;
  margin: 8px 0 12px;
}

.why-item p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Gated request-access block ---- */
.request-access {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 96px 40px;
  position: relative;
  overflow: hidden;
}

.request-access h2 {
  color: var(--color-white);
  font-size: 48px;
  text-transform: uppercase;
  margin: 20px 0 20px;
}

.request-access p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #d1d6e0;
  font-size: 17px;
  line-height: 1.6;
}

.request-access .eyebrow-line {
  margin: 0 auto;
}

/* ---- Portfolio header (projects section on home / projects page) ---- */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.portfolio-header .subtitle {
  font-size: 15px;
  color: var(--color-body);
  margin-top: 10px;
}

.btn-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Stats strip ---- */
.stats-strip {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 48px 0;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stats-row .stat {
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stats-row .stat:last-child {
  border-right: none;
}

.stats-row .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-accent);
  display: block;
}

.stats-row .label {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--color-white);
  padding: 24px;
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}

.testimonial-card p.quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.testimonial-card .person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card .person strong {
  display: block;
  font-size: 15px;
  color: var(--color-ink);
}

.testimonial-card .person span {
  font-size: 13px;
  color: var(--color-muted);
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--color-accent);
  color: var(--color-ink);
}

.cta-banner .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--color-ink);
  font-size: 32px;
  margin: 0 0 8px;
}

.cta-banner p {
  margin: 0;
  font-size: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--color-accent);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #c7cbe0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col li {
  font-size: 14px;
  color: #c7cbe0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #c7cbe0;
}

.footer-bottom a {
  color: #c7cbe0;
}

/* ==========================================================================
   Generic inner-page components
   ========================================================================== */
.placeholder-media {
  min-height: 320px;
  background: linear-gradient(135deg, #1c1f26, #3a4150 55%, #1c1f26);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.media-photo {
  overflow: hidden;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-offwhite);
}

.value-card .icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--color-body);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card .photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1c1f26, #3a4150 55%, #1c1f26);
  margin-bottom: 16px;
  overflow: hidden;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-step .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-accent-dim);
  display: block;
}

.process-step h3 {
  font-size: 20px;
  margin: 8px 0 12px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Services list page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse .service-media {
  order: 2;
}

.service-detail h3 {
  font-size: 30px;
  margin: 12px 0 16px;
}

.service-detail p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* Project filter / grid */
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.filter-pill {
  border: 1.5px solid var(--color-border);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
  background: var(--color-white);
}

.filter-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 15px;
  color: var(--color-body);
  margin: 0;
}

.contact-form {
  background: var(--color-offwhite);
  padding: 40px;
  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: 8px;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--color-ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-ink);
  background: var(--color-white);
}

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

.form-success {
  display: none;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent);
  padding: 16px;
  color: var(--color-ink);
  font-size: 14px;
}

.form-success.visible {
  display: block;
}

.map-section {
  background: var(--color-offwhite);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 52px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid,
  .why-grid,
  .values-grid,
  .team-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .why-item {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail.reverse .service-media {
    order: 0;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 11px;
    padding: 8px 20px;
    justify-content: center;
    text-align: center;
  }

  .navbar {
    padding: 12px 20px;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .navbar > a.btn {
    flex: 1 1 100%;
    text-align: center;
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 90;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner,
  .section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .services-grid,
  .why-grid,
  .values-grid,
  .team-grid,
  .process-steps,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 48px 20px 24px;
  }

  .cta-banner .inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .request-access h2 {
    font-size: 32px;
  }

  .contact-form {
    padding: 24px;
  }
}
