:root {
  --charcoal: #2E3638;
  --light: #F2F1EE;
  --accent: #B08D57;
  --white: #FAFAF8;
  --muted: #7a8284;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46,54,56,.12);
}
.nav {
  display:flex; align-items:center; justify-content:space-between;
  padding: .9rem 0;
}
.brand {
  display:flex; align-items:center; gap:.7rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand .mark {
  width: 95px; height: 95px;
  border-radius: 12px;
  background: var(--charcoal);
  display:grid; place-items:center;
  box-shadow: var(--shadow);
}
.brand .mark img {
  width: 75px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  display: block;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand small { display:block; font-weight:600; color: var(--muted); letter-spacing: .1px; }

.navlinks {
  display:flex; gap: 1.1rem; align-items:center;
}
.navlinks a {
  padding: .45rem .55rem;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(46,54,56,.92);
}
.navlinks a.active {
  background: rgba(176,141,87,.14);
  outline: 1px solid rgba(176,141,87,.25);
}
.cta {
  display:flex; gap:.6rem; align-items:center;
}
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:.55rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(46,54,56,.12);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  font-weight: 800;
}
.btn.primary {
  background: var(--accent);
  border-color: rgba(176,141,87,.55);
  color: var(--white);
}
.btn.primary:hover { filter: brightness(.97); }
.btn:hover { text-decoration:none; }
.btn svg { width: 18px; height: 18px; }

.mobile-toggle {
  display:none;
  border: 1px solid rgba(46,54,56,.14);
  background: var(--white);
  border-radius: 12px;
  padding: .55rem .65rem;
}

.hero {
  padding: 3.2rem 0 2.1rem;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(176,141,87,.18), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(46,54,56,.10), transparent 60%),
    linear-gradient(180deg, rgba(236,237,237,.65), transparent 55%);
}
.hero-grid {
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 2rem;
  align-items: start;
}
.showcase {
  width: 100%;
  height: 410px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 16px;
}
.showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.6s ease;
}
@media (max-width: 700px) {
  .showcase{
    height: auto;            /* stop forcing 410px */
    aspect-ratio: 4 / 5;     /* nice portrait crop for phones */
    margin-top: 16px;
  }

  .showcase img{
    height: 100%;
    object-position: center; /* default */
  }
}
.kicker {
  display:inline-flex; align-items:center; gap:.5rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(46,54,56,.06);
  border: 1px solid rgba(46,54,56,.10);
  font-weight: 800;
  color: rgba(46,54,56,.9);
}
.kicker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  margin: .9rem 0 .8rem;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.1rem;
  color: rgba(46,54,56,.86);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
  align-items: center;
}
.card {
  background: var(--white);
  border: 1px solid rgba(46,54,56,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.aside {
  padding: 1.1rem;
}
.aside h3 { margin: .3rem 0 .55rem; font-size: 1.05rem; }
.meta {
  display: grid;
  gap: .65rem;
  margin-top: .8rem;
  align-self: start;
  max-width: 420px;
}
.meta a {
  display:flex; gap:.6rem; align-items:center;
  padding: .6rem .7rem;
  border-radius: 14px;
  border: 1px solid rgba(46,54,56,.10);
  background: rgba(236,237,237,.55);
  text-decoration:none;
}
.meta a:hover { background: rgba(236,237,237,.85); }
.meta svg { width: 18px; height: 18px; flex: 0 0 auto; }
.meta a svg { width: 18px !important; height: 18px !important; }
.meta strong { display:block; font-size: .95rem; }
.meta span { display:block; font-size: .9rem; color: rgba(46,54,56,.78); }

section {
  padding: 2.4rem 0;
}
.section-title {
  display:flex; align-items:end; justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-title h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.section-title p {
  margin: 0;
  color: rgba(46,54,56,.78);
  max-width: 70ch;
}

.grid {
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.feature {
  grid-column: span 4;
  padding: 1.1rem;
}
.feature h3 { margin: .3rem 0 .45rem; font-size: 1.1rem; }
.feature p { margin: 0; color: rgba(46,54,56,.80); }
.icon {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(176,141,87,.18);
  border: 1px solid rgba(176,141,87,.28);
  display:grid; place-items:center;
}
.icon svg { width: 22px; height: 22px; }

.list-card {
  padding: 1.2rem;
}
.list-columns {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
ul.clean {
  margin: 0;
  padding-left: 1.1rem;
}
ul.clean li { margin: .35rem 0; }

.gallery {
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}
.gallery a {
  grid-column: span 4;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(46,54,56,.12);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  display:block;
  background: var(--light);
  position: relative;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Project slider */
.proj {
  margin: 16px auto 0;
  padding: 0 16px;        /* keeps nice spacing on small screens */
}

.proj-main{
  width: min(1100px, 100%);  /* ✅ only the main image area is narrower */
  margin: 0 auto;            /* ✅ centers the main image area */
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
}

.proj-frame {
  display: block;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proj-frame img {
  width: 100%;
  height: auto;
  max-height: 70vh;       /* ✅ bigger + more natural */
  object-fit: contain;
  display: block;
  background: #f2f2f2;
}

.proj-nav {
  height: 52px;
  width: 52px;
  border-radius: 16px;
  border: 1px solid rgba(46,54,56,.14);
  background: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.proj-nav:hover { 
  filter: brightness(.98); 
}

.proj-meta {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.proj-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

/* Thumbnails styled like gallery tiles */
.thumb {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(46,54,56,.12);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  background: var(--light);
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  outline: 2px solid rgba(176,141,87,.65);
  outline-offset: 2px;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .proj-main { 
    grid-template-columns: 44px 1fr 44px; 
  }
  .proj-frame img { 
    height: 360px; 
  }
  .proj-thumbs { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
  }
  .thumb img { 
    height: 76px; 
  }
}
.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .6rem .8rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.15),
    transparent
  );
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}

.form-wrap {
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
}
form {
  display:grid;
  gap: .8rem;
}
label {
  font-weight: 800;
  font-size: .95rem;
}
input, textarea {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(46,54,56,.14);
  background: rgba(236,237,237,.55);
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.help {
  font-size: .9rem;
  color: rgba(46,54,56,.78);
}

footer {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(46,54,56,.12);
  background: rgba(236,237,237,.45);
}
.footer-grid {
  display:flex; flex-wrap:wrap; gap: 1rem;
  align-items:center; justify-content:space-between;
}
.footer-grid small { color: rgba(46,54,56,.72); }
.pills {
  display:flex; gap:.6rem; flex-wrap:wrap;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.footer-mark{
  width:65px;
  height:65px;
  border-radius:12px;
  background: var(--charcoal);
  display:grid;
  place-items:center;
  box-shadow: var(--shadow);
  flex: 0 0 65px;
}
.footer-mark img{
  width:55px;
  height:auto;
  max-height:55px;
  object-fit:contain;
  display:block;
}
.pill {
  display:inline-flex; align-items:center; gap:.45rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(46,54,56,.12);
  background: rgba(255,255,255,.75);
  font-weight: 800;
  color: rgba(46,54,56,.86);
}
.pill svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  display:block;
}
.pill svg path,
.pill svg circle{
  stroke: currentColor;
}
.pill svg path[fill]{
  fill: currentColor;
}
.pill svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:block;
}
.footer-copy{
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(46,54,56,.12);
}

.footer-copy small{
  color: rgba(46,54,56,.72);
  display:block;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature { grid-column: span 6; }
  .gallery a { grid-column: span 6; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .navlinks, .cta { display:none; }
  .mobile-toggle { display:inline-flex; }
  .nav.open .navlinks {
    display:flex;
    flex-direction:column;
    position:absolute;
    left: 0; right: 0;
    top: 64px;
    padding: .9rem 1rem 1rem;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(46,54,56,.12);
  }
  .nav.open .cta {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:.6rem;
    padding: 0 1rem 1.1rem;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(46,54,56,.12);
  }
  .feature { grid-column: span 12; }
  .gallery a { grid-column: span 12; }
  .list-columns { grid-template-columns: 1fr; }
}

/* Services page buttons under External works */
.services-actions {
  width: 100%;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: 1rem;
}
@media (max-width: 720px) {

  .nav{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
  }

  /* 1) Brand top */
  .brand{
    order: 1;
    width: 100%;
  }

  /* 2) CTA buttons below brand */
  .cta{
    order: 2;
    width: 100%;
    display: flex;
    gap: .6rem;
  }
  .cta .btn{
    flex: 1;
    justify-content: center;
  }

  /* 3) Burger below the buttons, left aligned, NOT full width */
  .mobile-toggle{
    order: 3;
    width: auto;
    align-self: flex-start;
    margin-top: .25rem;
  }

  /* 4) Nav links below burger - hidden until opened */
  .navlinks{
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0 0;
  }
  .navlinks.is-open{
    display: flex;
  }

  .navlinks a{
    width: 100%;
    max-width: 260px;
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
  }
}
