/* ==========================================================================
   Eco Nest — editorial theme layer
   Palette pulled from the studio's own project photography:
   sage (kitchen cabinetry), brass (hardware), terracotta (dining chair),
   walnut (joinery). Display face Fraunces used with restraint over the
   existing Poppins body type. Loads after style.css — every rule below is
   an intentional override, not a patch.
   ========================================================================== */

html, body { max-width: 100%; overflow-x: hidden; }

:root {
  --paper: #ffffff;
  --paper-warm: #F7F5EF;
  --ink: #1B1B18;
  --ink-70: rgba(27, 27, 24, .7);
  --ink-50: rgba(27, 27, 24, .5);
  --line: #E4E0D6;
  --sage: #5C6B4E;
  --sage-dark: #434E39;
  --brass: #AD8A52;
  --terracotta: #BE6A46;
  --walnut: #6B4A33;
  --font-display: 'Fraunces', serif;
}

/* ---- base type ---------------------------------------------------- */

body { color: var(--ink); }

.hero-editorial h1,
.statement-band h2,
.heading-section h2 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.heading-section h2 {
  font-size: 34px;
  font-weight: 600;
}

.heading-section .subheading {
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
}
.heading-section .subheading.subheading-with-line:after { background: var(--line); }

.heading-section .category { gap: 10px; display: flex; flex-wrap: wrap; }
.heading-section .category span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  transition: all .2s ease;
}
.heading-section .category span a { color: var(--ink-70) !important; font-weight: 600; }
.heading-section .category span.active { background: var(--ink); border-color: var(--ink); }
.heading-section .category span.active a { color: #fff !important; }
.heading-section .category span:hover { border-color: var(--ink); }

/* ---- nav ------------------------------------------------------------ */

.navbar-brand .site-logo { height: 115px; }

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-weight: 500;
  letter-spacing: .01em;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
  color: var(--sage) !important;
}

@media (max-width: 991.98px) {
  .ftco-navbar-light { background: var(--paper) !important; border-bottom: 1px solid var(--line); }
  .ftco-navbar-light .navbar-brand,
  .ftco-navbar-light .navbar-brand:hover,
  .ftco-navbar-light .navbar-brand:focus { color: var(--ink) !important; }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link { color: var(--ink) !important; }
  .ftco-navbar-light .navbar-toggler,
  .ftco-navbar-light .navbar-toggler .oi { color: var(--ink) !important; border-color: var(--line); }
}

.ftco-navbar-light.scrolled .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-link.active,
.ftco-navbar-light.scrolled .nav-link:hover { color: var(--sage) !important; }

/* ---- buttons ---------------------------------------------------------- */

.btn-ink,
.btn-line {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
  text-decoration: none !important;
}
.btn-ink {
  background: var(--ink);
  color: #fff !important;
  border: 1.5px solid var(--ink);
}
.btn-ink:hover { background: var(--sage); border-color: var(--sage); transform: translateY(-1px); }
.btn-line {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff !important; }
.btn-line--light { border-color: rgba(255,255,255,.45); color: #fff !important; }
.btn-line--light:hover { background: #fff; border-color: #fff; color: var(--ink) !important; }

.hero-wrap .overlay {
  background: var(--ink) !important;
  opacity: .55 !important;
}
.hero-wrap.hero-wrap-2 .breadcrumbs span.mr-2 a { color: var(--brass) !important; }

.btn.btn-primary {
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  color: #fff !important;
}
.btn.btn-primary:hover {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
  color: #fff !important;
}

/* ---- hero -------------------------------------------------------------- */

.hero-editorial { background: var(--paper); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(400px, 0.68fr) 1.32fr;
  min-height: 78vh;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 32px 60px clamp(24px, 6vw, 90px);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.hero-copy > * { max-width: 100%; box-sizing: border-box; }

.hero-photo { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--brass); }

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.06;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 11ch;
  overflow-wrap: break-word;
}
.hero-copy h1 em { font-style: italic; font-weight: 400; color: var(--sage); }

.hero-lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.material-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.material-strip .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-70);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}
.material-strip .chip { transition: transform .2s ease, border-color .2s ease; }
.material-strip .chip:hover { transform: translateY(-2px); border-color: var(--chip); }
.material-strip .chip::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chip);
  flex: none;
}

.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
  transition: transform 1.2s ease;
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-stat {
  position: absolute;
  left: 36px;
  bottom: 36px;
  background: var(--paper);
  padding: 18px 24px;
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(27, 27, 24, .2);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero-stat strong { font-family: var(--font-display); font-size: 30px; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--ink-70); }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 24px 40px; order: 1; }
  .hero-photo { order: 2; }
  .hero-photo img { min-height: 360px; }
  .hero-copy h1 { max-width: none; }
}

@media (max-width: 575.98px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-ink, .hero-cta .btn-line { justify-content: center; }
  .hero-photo { min-height: 0; }
  .hero-photo img { min-height: 280px; }
  .hero-stat {
    position: static;
    margin-top: -40px;
    margin-left: 20px;
    margin-right: 20px;
    box-shadow: 0 12px 28px rgba(27,27,24,.18);
  }
}

/* ---- about (image + copy) ---------------------------------------------- */

.img-2 { position: relative; }
.img-2::before,
.img-2::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--brass);
  z-index: 1;
}
.img-2::before { top: -14px; left: -14px; border-right: none; border-bottom: none; }
.img-2::after { bottom: -14px; right: -14px; border-left: none; border-top: none; }

.founder-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: var(--paper);
  padding: 12px 18px;
  border-radius: 3px;
  box-shadow: 0 16px 32px rgba(27,27,24,.18);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.founder-label small {
  display: block;
  font-family: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brass);
  margin-top: 3px;
}

@media (max-width: 767.98px) {
  .founder-label { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 14px; }
}

.wrap-about h2 { font-size: 30px; font-weight: 600; }
.btn-custom {
  font-family: inherit;
  font-weight: 600;
  color: var(--ink) !important;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 2px;
}

/* ---- stats / counter ---------------------------------------------------- */

.ftco-counter {
  background: var(--paper-warm) !important;
  background-image: none !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.6em 0 !important;
}
#section-counter:after { display: none !important; }
.ftco-counter .counter-wrap {
  position: relative;
}
.ftco-counter .counter-wrap:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: var(--line);
}
@media (max-width: 767.98px) {
  .ftco-counter .counter-wrap:not(:last-child)::after { display: none; }
}
.ftco-counter .text strong.number {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  font-size: 28px;
}
.ftco-counter .text span {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  color: var(--brass);
  font-weight: 600;
}

/* ---- work flow icons ----------------------------------------------------- */

.ftco-services .services .icon {
  background: var(--sage) !important;
  transition: transform .3s ease, background .3s ease;
}
.ftco-services .services:hover .icon { transform: scale(1.08) rotate(-4deg); }
.ftco-services .services.services-2 .icon {
  border: 1.5px solid var(--line);
  background: transparent !important;
}
.ftco-services .services.services-2 .icon span { color: var(--brass) !important; }
.ftco-services .services.services-2 .icon .svc-icon {
  width: 30px;
  height: 30px;
  color: var(--brass);
  transition: transform .3s ease;
}
.ftco-services .services .media-body h3 { font-size: 15px; }

.ftco-services .row.d-flex > .col-md-6 .services-2 {
  transition: transform .3s ease, box-shadow .3s ease;
}
.ftco-services .row.d-flex > .col-md-6 .services-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(27,27,24,.08);
}
.ftco-services .row.d-flex > .col-md-6 .services-2:hover .svc-icon { transform: scale(1.12); }

.ftco-services .row.d-flex > .col-md-6 { position: relative; }
.ftco-services .row.d-flex > .col-md-6 .services-2 { position: relative; overflow: hidden; }
.ftco-services .row.d-flex > .col-md-6 .services-2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--sage));
}
.ftco-services .row.d-flex > .col-md-6:nth-child(4n+1) .services-2 { --accent: var(--sage); }
.ftco-services .row.d-flex > .col-md-6:nth-child(4n+2) .services-2 { --accent: var(--brass); }
.ftco-services .row.d-flex > .col-md-6:nth-child(4n+3) .services-2 { --accent: var(--terracotta); }
.ftco-services .row.d-flex > .col-md-6:nth-child(4n+4) .services-2 { --accent: var(--walnut); }

/* ---- statement band ------------------------------------------------------- */

.statement-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  overflow: hidden;
}
.statement-band .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(27,27,24,.88) 20%, rgba(27,27,24,.45) 85%);
}
.statement-band .container { position: relative; z-index: 1; max-width: 620px; }
.statement-band .eyebrow { color: var(--brass); }
.statement-band h2 {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  color: #fff;
  line-height: 1.16;
  margin-bottom: 22px;
}
.statement-band p {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 460px;
}

@media (max-width: 767.98px) {
  .statement-band { padding: 90px 0; }
}

/* ---- project / gallery tiles ---------------------------------------------- */

.project-grid > div:nth-child(4n+1) .project { --accent: var(--sage); }
.project-grid > div:nth-child(4n+2) .project { --accent: var(--brass); }
.project-grid > div:nth-child(4n+3) .project { --accent: var(--terracotta); }
.project-grid > div:nth-child(4n+4) .project { --accent: var(--walnut); }

.project {
  border-top: 4px solid var(--accent, var(--sage));
}
.project:after {
  background: linear-gradient(to top, rgba(27,27,24,.92) 0%, rgba(27,27,24,.1) 65%) !important;
}
.project .text span {
  display: inline-block;
  background: var(--accent, var(--sage));
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 8px;
  color: #fff !important;
}
.project .text h3 { font-size: 19px; font-weight: 600; }
.project .icon { background: #fff !important; }
.project .icon span { color: var(--ink) !important; }

/* ---- testimonials ---------------------------------------------------------- */

.testimony-section.bg-light { background: var(--paper-warm) !important; }
.testimony-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(27,27,24,.05);
}
.testimony-wrap .user-img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brass); }
.testimony-wrap .user-img .quote { background: var(--brass) !important; }
.testimony-wrap .user-img .quote i { color: #fff !important; }
.testimony-wrap .line:after { background: var(--brass) !important; }
.testimony-wrap .name { font-weight: 600; color: var(--ink); }
.testimony-section .owl-dots .owl-dot.active,
.ftco-client .owl-dots .owl-dot.active { background: var(--ink) !important; }
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next { color: var(--ink) !important; }

/* ---- blog cards -------------------------------------------------------------- */

.blog-entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-entry:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(27,27,24,.1); }
.blog-entry .block-20 { border-radius: 0; }
.blog-entry .text { padding: 22px 20px !important; }
.blog-entry .text .heading a { color: var(--ink); font-weight: 600; }
.blog-entry .text .heading a:hover { color: var(--sage); }

/* ---- footer -------------------------------------------------------------------- */

.categories li a,
.sidelink li a { color: var(--ink) !important; }
.categories li a:hover,
.sidelink li a:hover { color: var(--sage) !important; }
.tagcloud a:hover { border-color: var(--brass) !important; color: var(--brass) !important; }
.block-21 .text .heading a:hover,
.block-21 .text .heading a:active,
.block-21 .text .heading a:focus { color: var(--sage) !important; }

.block-27 ul li a,
.block-27 ul li span { border-color: var(--line) !important; color: var(--ink) !important; }
.block-27 ul li.active a,
.block-27 ul li.active span { background: var(--ink) !important; color: #fff !important; }

.ftco-bg-dark { background: var(--ink) !important; }
.ftco-footer a:hover { color: var(--brass) !important; }
.ftco-footer .ftco-footer-social a:hover { background: var(--brass) !important; border-color: var(--brass) !important; }
.ftco-footer .subscribe-form .form-group .submit {
  background: var(--brass) !important;
  color: var(--ink) !important;
}
.ftco-footer .subscribe-form .form-group .submit:hover { background: #fff !important; }

/* ---- accessibility --------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.btn-ink:focus-visible,
.btn-line:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-entry,
  .btn-ink,
  .btn-line,
  .project img,
  .hero-photo img,
  .ftco-services .services .icon,
  .ftco-services .services-2,
  .material-strip .chip {
    transition: none !important;
  }
}
