:root {
  --trenety-green: #0b3b0b;
  --trenety-gold: #d4af37;
  --trenety-dark: #111111;
  --trenety-light: #f7f7f7;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Nav */
header {
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--trenety-green);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #555;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  color: #333;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--trenety-gold);
  transition: width 0.2s ease-out;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--trenety-green);
  color: #fff;
  background: var(--trenety-green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Layout helpers */
main {
  flex: 1;
}

section {
  padding: 3.5rem 1.25rem;
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--trenety-green);
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trenety-gold);
  margin-bottom: 0.35rem;
}

.section-subtitle {
  max-width: 620px;
  color: #555;
  font-size: 0.98rem;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #f2f6f2 0, #ffffff 55%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trenety-gold);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--trenety-dark);
}

.hero-highlight {
  color: var(--trenety-green);
}

.hero-text {
  font-size: 1rem;
  color: #444;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-markets {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary {
  background: var(--trenety-green);
  color: #ffffff;
  border-color: var(--trenety-green);
}

.btn-outline {
  background: transparent;
  color: var(--trenety-dark);
  border-color: #cccccc;
}

.hero-note {
  font-size: 0.8rem;
  color: #777;
}

.hero-media {
  border-radius: 1.5rem;
  border: 1px solid #e2e2e2;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.06);
}

.hero-media-tag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trenety-green);
  margin-bottom: 0.5rem;
}

.hero-media-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #ddd;
  position: relative;
  background: #000;
  aspect-ratio: 4 / 3;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: #f0f0f0;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
}

.hero-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  font-size: 0.8rem;
}

/* About */
.about {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.about-tagline {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--trenety-dark);
}

.about-body {
  font-size: 0.96rem;
  color: #444;
  margin-bottom: 1rem;
}

.about-note {
  font-size: 0.85rem;
  color: #777;
}

.about-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  font-size: 0.9rem;
}

.about-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--trenety-green);
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.about-pill {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.78rem;
  background: #fff;
}

/* Services */
.services {
  background-color: var(--trenety-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--trenety-gold);
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--trenety-dark);
}

.service-text {
  font-size: 0.9rem;
  color: #555;
  flex: 1;
}

.service-meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Testimonials */
.testimonials {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #eee;
  background: #fafafa;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-quote {
  font-style: italic;
  color: #444;
}

.testimonial-name {
  font-weight: 600;
  color: var(--trenety-dark);
}

.testimonial-role {
  font-size: 0.8rem;
  color: #777;
}

/* CTA */
.cta {
  background: radial-gradient(circle at top left, #f0f5ef 0, #ffffff 60%);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.cta-box {
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid #ddd;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.cta-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--trenety-dark);
}

.cta-text {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.9rem;
}

.cta-contact-line {
  font-size: 0.9rem;
  color: #333;
}

.cta-contact-line strong {
  color: var(--trenety-green);
}

/* Contact / Netlify form */
.contact {
  background-color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-form {
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  background: #fafafa;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #444;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #cccccc;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.form-row small {
  font-size: 0.78rem;
  color: #777;
}

.contact-info {
  font-size: 0.9rem;
  color: #444;
}

.contact-info-block {
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--trenety-gold);
  margin-bottom: 0.3rem;
}

/* Footer */
footer {
  border-top: 1px solid #e5e5e5;
  padding: 1.5rem 1.25rem;
  background-color: #ffffff;
  font-size: 0.8rem;
  color: #777;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .services-grid,
  .testimonials-grid,
  .cta-box,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }

  .cta-box {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 2.75rem 1rem;
  }
}
/* =========================
   MOBILE REFINEMENTS
   ========================= */
@media (max-width: 768px) {

  /* General page padding */
  body {
    font-size: 15px;
  }

  .page-wrapper {
    padding: 0;
  }

  .section-inner {
    padding: 1.75rem 1.25rem;
  }

  /* Header / Nav stacking on mobile */
  header {
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
  }

  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
  }

  header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
  }

  header nav ul li a {
    padding: 0.1rem 0;
  }

  .nav-cta {
    align-self: stretch;
    text-align: center;
    margin-top: 0.25rem;
  }

  /* Hero section layout */
  .hero {
    padding-top: 2.25rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero-text,
  .hero-markets,
  .hero-note {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-media {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Services grid → single column */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.1rem 1rem;
  }

  /* About / Who We Serve grids */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    order: 2;           /* text first, card second */
  }

  /* Testimonials */
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.1rem 1rem;
  }

  /* CTA section */
  .cta-box {
    flex-direction: column;
    gap: 1.25rem;
  }

  .cta-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Contact section */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-info {
    order: 1;
  }

  .contact-form {
    order: 2;
  }

  .form-row label {
    font-size: 0.9rem;
  }

  .form-row input,
  .form-row textarea {
    font-size: 0.9rem;
  }

  /* Footer */
  footer .footer-inner {
    padding: 1.5rem 1.25rem;
    text-align: center;
    gap: 0.75rem;
  }

  footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
