:root {
  --bg: #0f0f11;
  --text: #111;
  --muted: #555;
  --brand: #d62222;
  /* red accent from logo */
  --card: #fff;
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fafafa;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

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

/* header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  width: min(calc(100% - 24px), 1180px);
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(224, 205, 192, 0.9);
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.84);
  box-shadow: 0 18px 34px rgba(70, 44, 30, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 208, 198, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-header .logo:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 34, 34, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.site-header .logo img {
  height: 42px;
  width: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #241c17;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  background: rgba(214, 34, 34, 0.08);
  color: #7e2a20;
}

.site-nav a.active {
  background: linear-gradient(135deg, #d62222, #ef8b56);
  color: #fff;
  box-shadow: 0 10px 20px rgba(214, 34, 34, 0.22);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(223, 208, 198, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #241c17;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 34, 34, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

/* responsive nav */
@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 16px);
    padding: 10px 12px;
    gap: 10px;
  }

  .site-header .logo {
    padding: 7px 12px;
  }

  .site-header .logo img {
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    margin-left: 0;
    padding: 12px;
    border: 1px solid rgba(224, 205, 192, 0.92);
    border-radius: 22px;
    background: rgba(255, 250, 246, 0.94);
    box-shadow: 0 18px 30px rgba(70, 44, 30, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    gap: 0;
    flex-direction: column;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
  }
}

/* Visually hidden utility (keeps semantics without showing text) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact logo-only HERO */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  /* small so cards remain visible */
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-bottom: 16px;
  /* keep cards close */
}

.hero-logo img {
  height: clamp(64px, 10vw, 120px);
  /* scales nicely from mobile to desktop */
  width: auto;
  image-rendering: auto;
}

@media (max-width: 900px) {
  .hero-logo {
    min-height: 150px;
    padding: 14px;
    margin-bottom: 14px;
  }
}

/* CTA */
.btn-hero {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(214, 34, 34, 0.25);
}

.btn-hero:hover {
  background: #a81919;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(214, 34, 34, 0.35);
}

@media (max-width: 900px) {
  .hero.hero-bg {
    min-height: 360px;
    padding: 40px 16px;
  }

  .hero-overlay {
    padding: 18px 20px;
  }

  .hero-overlay .tagline {
    font-size: 16px;
  }
}

/* feature cards (UPDATED) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card img {
  border-bottom: 1px solid #eee;
}

.card .padded {
  padding: 18px;
  text-align: center;
  /* center content */
}

.card h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}

.card p {
  margin: 6px 0;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* quote */
.quote {
  background: #fff;
  border-left: 4px solid var(--brand);
  padding: 16px;
  margin: 24px 0;
  color: #333;
  border-radius: 12px;
}

/* Page head spacing */
.page-head h1 {
  margin: 0 0 8px;
}

.page-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Checklists */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0;
  line-height: 1.35;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}

/* Two-column list for longer sections (desktop only) */
@media (min-width: 900px) {
  .checklist.two-col {
    columns: 2;
    column-gap: 24px;
  }

  .checklist.two-col li {
    break-inside: avoid;
  }
}

/* Page intro */
.page-head h1 {
  margin: 0 0 8px;
  text-align: center;
}

.page-head p {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
}

/* Muted helper + micro note */
.muted {
  color: var(--muted);
}

.micro-note {
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}

/* Tags / chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.tag:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(214, 34, 34, 0.08);
  transform: translateY(-1px);
}

/* Slightly denser layout on mobile */
@media (max-width: 900px) {
  .tag {
    font-size: 13px;
    padding: 6px 9px;
  }
}

/* Page intro */
.page-head h1 {
  margin: 0 0 8px;
  text-align: center;
}

.page-head p {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
}

/* Balance the projetos grid specifically (doesn't affect other .grid) */
.projects-grid {
  grid-auto-flow: dense;
  /* allows smart backfilling of gaps */
  grid-template-columns: 1fr;
  /* mobile default */
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 2 cols on desktop */
  .projects-grid .card--wide {
    grid-column: 1 / -1;
  }

  /* wide card spans both */
}

/* Tags / chips */
.muted {
  color: var(--muted);
}

.micro-note {
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.tag:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(214, 34, 34, 0.08);
  transform: translateY(-1px);
}

/* Equal-width chip columns for long lists */
.equal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.equal-grid .tag {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  /* each chip fills its cell for clean columns */
}

@media (max-width: 900px) {
  .equal-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .tag {
    font-size: 13px;
    padding: 6px 9px;
  }
}

/* Projetos page */
body.projects-page {
  background:
    radial-gradient(circle at top left, rgba(239, 139, 86, 0.16), transparent 38%),
    radial-gradient(circle at top right, rgba(214, 34, 34, 0.10), transparent 34%),
    linear-gradient(180deg, #fff8f3 0%, #fbf6f0 52%, #f7f1ea 100%);
}

.projects-page .container {
  padding-top: 34px;
  padding-bottom: 56px;
}

.projects-page .projects-hero {
  max-width: 820px;
  margin: 0 auto 34px;
}

.projects-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(214, 34, 34, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-page .page-head h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.95;
}

.projects-page .projects-lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  color: #5e554d;
}

.projects-page .projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.projects-page .projects-grid .card--wide {
  grid-column: 1 / -1;
}

.projects-page .project-card {
  position: relative;
  border: 1px solid #e8dfd6;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 242, 0.98));
  box-shadow: 0 18px 36px rgba(48, 32, 23, 0.08);
}

.projects-page .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #d62222, #ef8b56);
}

.projects-page .project-card--specialties::before {
  background: linear-gradient(90deg, #171717, #d62222 60%, #ef8b56);
}

.projects-page .project-card .padded {
  padding: 30px;
  text-align: left;
}

.projects-page .project-card h3 {
  margin: 16px 0 10px;
  color: #161311;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
}

.projects-page .project-card .muted {
  margin: 0;
  color: #5f564e;
  font-size: 16px;
  line-height: 1.65;
}

.project-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(214, 34, 34, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.project-card__head h3,
.project-card__head .muted {
  max-width: 58ch;
}

.project-card__meta {
  margin: 0;
  color: #8d7f74;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.projects-page .tags {
  gap: 10px;
  margin-top: 22px;
}

.projects-page .tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e8ddd2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #211a16;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
}

.projects-page .tag:hover {
  border-color: rgba(214, 34, 34, 0.32);
  box-shadow: 0 10px 24px rgba(214, 34, 34, 0.08);
  transform: translateY(-1px);
}

.projects-page .project-note {
  margin-top: 22px;
  text-align: center;
  color: #60554d;
  font-size: 15px;
}

.specialties-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.specialty-group {
  padding: 22px;
  border: 1px solid #ece2d8;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 236, 0.92));
}

.specialty-group h4 {
  margin: 0 0 14px;
  color: #191512;
  font-size: 18px;
  line-height: 1.2;
}

.specialty-group .tags {
  margin-top: 0;
}

@media (max-width: 980px) {
  .projects-page .project-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .specialties-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .projects-page .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .projects-page .project-card .padded {
    padding: 24px;
  }

  .projects-page .project-card h3 {
    font-size: 30px;
  }

  .projects-page .tag {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }

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


/* gallery */
.gallery {
  columns: 3 240px;
  column-gap: 12px;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}

.gallery figcaption {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Contact page layout */
.page-head h1 {
  margin: 0 0 8px;
}

.page-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Top location card with map */
.location-card .loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-card address {
  font-style: normal;
  color: #555;
}

.location-card .loc-map {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.location-card .loc-map iframe {
  width: 100%;
  aspect-ratio: 16/9;
  /* responsive map */
  height: auto;
  border: 0;
}

@media (min-width: 900px) {
  .location-card .loc-grid {
    grid-template-columns: 1fr 1.4fr;
    /* address left, map right */
    align-items: start;
  }
}

@media (min-width: 900px){
  .location-card .loc-text{
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;       /* vertically center within the cell */
  }
}

/* Second row: three compact tiles */
.contact-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* Make contact tile links the same color as the address */
.contact-tiles a {
  color: var(--muted);         /* #555 */
  text-decoration: none;
}
.contact-tiles a:hover {
  color: #333;
  text-decoration: underline;  /* subtle hover cue */
}


@media (min-width: 900px) {
  .contact-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Optional: make links feel tappable */
.contact-tiles a {
  font-weight: 600;
}

/* Keep map link in brand color */
.map-link {
  color: var(--brand);
  font-weight: 600;
}

.map-link:hover {
  text-decoration: underline;
}

/* Gallery grid */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(220px, 320px));
  }
}
@media (max-width: 560px){
  .gallery-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}
.gallery-item{
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  aspect-ratio: 4 / 3;          /* uniform thumbnails */
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover{
  transform: translateY(-2px);
  border-color: #e6e6e6;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
/* optional small caption inside tile */
.gi-cap{
  position: absolute;
  left: 8px; bottom: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* Empty state */
.gallery-empty{
  border: 2px dashed #e5e5e5;
  color: #777;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  grid-column: 1 / -1;
}

/* Lightbox */
.lightbox[hidden]{ display: none; }
.lightbox{
  position: fixed; inset:0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.lightbox img{
  max-width: min(100%, 1100px);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  background: #fff;
}
.lightbox-caption{
  margin-top: 10px;
  color: #eee;
  text-align: center;
}
.lightbox-close{
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
/* Footer — dark variant + no italic address */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  color: #eadcd2;
  background:
    radial-gradient(circle at top right, rgba(239, 139, 86, 0.20), transparent 28%),
    radial-gradient(circle at top left, rgba(214, 34, 34, 0.16), transparent 24%),
    linear-gradient(180deg, #241a16 0%, #171110 100%);
  border-top: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #d62222, #ef8b56);
}

.site-footer a {
  color: #fff7f1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #ffc3ae;
  text-decoration: none;
}

/* remove default italics from <address> */
.site-footer address {
  font-style: normal;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 42px 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 22px;
  position: relative;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-right: 18px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: none;
}

.footer-brand p {
  margin: 0;
  color: #d7b3a5;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-col h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ffc6b4;
}

.footer-col p {
  margin: 0;
  color: #e6d8cf;
  line-height: 1.7;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: #f6ebe4;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}

.footer-col a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer .map-link {
  display: inline-flex;
  margin-top: 14px;
  color: #ffb199;
}

.site-footer .map-link:hover {
  color: #ffd2c3;
}

/* Make the map link pop with your brand red */
.map-link {
  color: var(--brand);
  font-weight: 600;
}

.map-link:hover {
  text-decoration: underline;
}

.social {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8eee8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.social-btn:hover {
  background: linear-gradient(135deg, rgba(214, 34, 34, 0.18), rgba(239, 139, 86, 0.16));
  border-color: rgba(255, 194, 175, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px 20px;
  text-align: center;
  color: #c6aea3;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
    padding-right: 0;
  }
}

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform .2s ease, opacity .2s ease;
}

.cookie-text{
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
}
.cookie-note{ color: #666; }

.btn-cookie{
  flex: 0 0 auto;
  border: 1px solid #eee;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-cookie:hover{
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(214,34,34,0.18);
  transform: translateY(-1px);
}

.cookie-hide{
  opacity: 0;
  transform: translateY(6px);
}

/* Tighter on small screens */
@media (max-width: 560px){
  .cookie-banner{
    left: 12px; right: 12px; bottom: 12px;
    padding: 10px 12px;
  }
  .cookie-text{ font-size: 13px; }
}

/* Shared refined language for home, construction and contacts */
body.home-page,
body.construction-page,
body.contacts-page {
  background:
    radial-gradient(circle at top left, rgba(239, 139, 86, 0.16), transparent 38%),
    radial-gradient(circle at top right, rgba(214, 34, 34, 0.10), transparent 34%),
    linear-gradient(180deg, #fff8f3 0%, #fbf6f0 52%, #f7f1ea 100%);
}

body.home-page .container,
body.construction-page .container,
body.contacts-page .container {
  padding-top: 34px;
  padding-bottom: 56px;
}

.refined-hero {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.refined-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(214, 34, 34, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #7e2a20;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.refined-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.96;
  color: #161210;
}

.refined-hero .page-lead {
  max-width: 720px;
  margin: 0 auto;
  color: #5e554d;
  font-size: 18px;
  line-height: 1.68;
}

.refined-card {
  position: relative;
  border: 1px solid #eadfd4;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #fffaf6 100%);
  box-shadow: 0 18px 36px rgba(70, 44, 30, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.refined-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #d62222, #ef8b56);
}

.refined-card:hover {
  transform: translateY(-6px);
  border-color: #e2c7ba;
  box-shadow: 0 24px 46px rgba(70, 44, 30, 0.12);
}

.refined-card .padded {
  padding: 30px;
  text-align: left;
}

.refined-card h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  color: #191513;
}

.refined-card h3 {
  margin: 16px 0 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.08;
  color: #191513;
}

.refined-card .muted {
  margin: 0;
  color: #5e544c;
  font-size: 16px;
  line-height: 1.65;
}

.refined-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.refined-head > div {
  max-width: 58ch;
}

.refined-meta {
  margin: 0;
  white-space: nowrap;
  color: #8b7c70;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid #e5d8cc;
  background: rgba(255, 255, 255, 0.92);
  color: #221b17;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.link-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 34, 34, 0.25);
  background: #fff;
  color: var(--brand);
}

/* Home page */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.home-hero__copy {
  max-width: none;
  margin: 0;
  padding: 22px 0 0;
  text-align: left;
  align-self: end;
}

.home-hero__copy h1 {
  text-align: left;
  margin-bottom: 0;
}

.home-hero__support {
  max-width: 62ch;
}

.home-hero__support .page-lead {
  margin: 0;
  color: #5e554d;
  font-size: 18px;
  line-height: 1.68;
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

.home-hero__mark {
  width: min(100%, 500px);
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
}

.home-hero__mark .home-hero__actions {
  width: auto;
  flex-wrap: nowrap;
}

.home-hero__logo {
  width: clamp(320px, 88%, 460px);
}

.home-page .home-hero__actions > a {
  white-space: nowrap;
}

.home-hero__note {
  margin: 0;
  color: #5c544d;
  font-size: 16px;
  line-height: 1.7;
}

.home-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.home-service-card {
  height: 100%;
}

.home-service-card img {
  width: calc(100% - 32px);
  margin: 18px 16px 0;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid #eadfd3;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.home-page .home-service-card .padded {
  display: grid;
  gap: 16px;
  padding: 24px 26px 28px;
  text-align: left;
}

.home-page .home-service-card h3 {
  margin: 0;
  color: #191513;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.05;
}

.home-page .tags {
  margin-top: 0;
  display: grid;
  gap: 10px;
}

.home-page .tag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214, 34, 34, 0.10);
  background: rgba(248, 242, 236, 0.95);
  color: #5f3c31;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.home-page .tag:hover {
  transform: none;
  border-color: rgba(214, 34, 34, 0.22);
  background: #fff;
}

.home-quote {
  margin-top: 30px;
}

.home-quote:hover {
  transform: none;
}

.home-quote .padded {
  display: grid;
  gap: 20px;
}

.home-quote .refined-kicker {
  justify-self: start;
  width: fit-content;
}

.home-quote__content {
  margin: 0;
  display: grid;
  gap: 16px;
  padding-left: 24px;
  border-left: 2px solid rgba(214, 34, 34, 0.18);
}

.home-quote__lead {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.28;
  color: #1e1815;
}

.home-quote p {
  margin: 0;
  color: #5d544d;
  font-size: 16px;
  line-height: 1.72;
}

.home-quote__closing {
  margin: 0;
  justify-self: start;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(214, 34, 34, 0.08);
  color: #6b2c24;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.home-quote strong {
  color: inherit;
}

/* Construction page */
.construction-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.construction-pillar .padded {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.construction-pillar h3 {
  margin-bottom: 4px;
}

.construction-gallery-panel:hover {
  transform: none;
}

.construction-gallery-panel .gallery-grid {
  margin-top: 24px;
}

.construction-page .gallery-item {
  border: 1px solid #e8ddd1;
  border-radius: 20px;
  box-shadow: 0 14px 26px rgba(70, 44, 30, 0.08);
}

.construction-page .gallery-item:hover {
  border-color: #e0c4b7;
  box-shadow: 0 20px 34px rgba(70, 44, 30, 0.12);
}

.construction-page .gi-cap {
  background: rgba(255, 250, 245, 0.95);
  border-color: #eadfd3;
  color: #46362e;
}

/* Contacts page */
.contacts-location-card:hover {
  transform: none;
}

.contacts-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contacts-page .location-card .loc-grid {
  gap: 20px;
}

.contacts-page .location-card .loc-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.contacts-page .location-card address {
  font-size: 18px;
  line-height: 1.8;
  color: #241d18;
}

.contacts-location-note {
  margin: 0;
  color: #5f564f;
  font-size: 15px;
  line-height: 1.6;
}

.contacts-page .location-card .loc-map {
  border: 1px solid #eadfd3;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(70, 44, 30, 0.08);
}

.contacts-tiles-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.contact-method-card .padded {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-method-card h3 {
  margin-bottom: 4px;
}

.contact-method-link {
  color: #211914;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.contact-method-link:hover {
  color: var(--brand);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #211914;
  font-size: 18px;
  font-weight: 700;
}

.contact-social-link:hover {
  color: var(--brand);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-hero__mark {
    width: min(100%, 500px);
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }

  .home-hero__copy,
  .home-hero__copy h1,
  .home-hero__support,
  .home-hero__support .page-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-services,
  .construction-pillars,
  .contacts-tiles-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refined-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .refined-meta {
    white-space: normal;
  }

  .contacts-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .home-hero__mark .home-hero__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body.home-page .container,
  body.construction-page .container,
  body.contacts-page .container {
    padding-top: 26px;
    padding-bottom: 42px;
  }

  .refined-hero {
    margin-bottom: 28px;
  }

  .refined-card .padded {
    padding: 24px;
  }

  .refined-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.02;
  }

  .refined-hero .page-lead {
    font-size: 17px;
  }

  .home-quote__content {
    padding-left: 18px;
  }

  .home-services,
  .construction-pillars,
  .contacts-tiles-clean {
    grid-template-columns: 1fr;
  }
}
