.contact-lines {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
}

.contact-lines .contact-line {
  display: grid;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-lines small {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-lines a.contact-line:hover,
.contact-lines a.contact-line:focus-visible {
  text-decoration: underline;
}

.cta-phone-group,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-project-cta {
  margin-top: 0.9rem;
}

.contact-social-links {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.footer-admin-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.18s, border-color 0.18s;
}

.contact-facebook-link,
.contact-whatsapp-link {
  display: inline-flex;
  width: 56px;
  height: 56px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  transition: transform 0.18s, background-color 0.18s, box-shadow 0.18s;
  animation: social-float 3.2s ease-in-out infinite;
}

.contact-whatsapp-link {
  animation-delay: 0.5s;
}

@keyframes social-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-facebook-link,
  .contact-whatsapp-link {
    animation: none;
  }
}

.hero-image-note .hero-project-link {
  display: none;
}

.contact-facebook-link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.contact-facebook-link {
  color: #fff;
  background: #1877f2;
  box-shadow: 0 4px 14px rgb(24 119 242 / 32%);
}

.contact-whatsapp-link {
  color: #fff;
  background: #168c55;
  box-shadow: 0 4px 14px rgb(22 140 85 / 30%);
}

.contact-whatsapp-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.contact-facebook-link:hover,
.contact-facebook-link:focus-visible,
.contact-whatsapp-link:hover,
.contact-whatsapp-link:focus-visible {
  transform: translateY(-2px);
}

.contact-facebook-link:hover,
.contact-facebook-link:focus-visible {
  background: #0c5fce;
  box-shadow: 0 7px 18px rgb(24 119 242 / 40%);
}

.contact-whatsapp-link:hover,
.contact-whatsapp-link:focus-visible {
  background: #117447;
  box-shadow: 0 7px 18px rgb(22 140 85 / 40%);
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.language-flag {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 2px;
  vertical-align: middle;
}

.contact-lines-page {
  margin: 1.5rem 0 0;
}

.project-seo {
  margin-top: 1rem;
  line-height: 1.7;
}

.related-link {
  margin-top: 1.25rem;
}

.related-link a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-credit {
  width: 100%;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 1101px) {
  .footer-bottom {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 16px 24px;
  }

  .footer-bottom > p {
    white-space: nowrap;
  }

  .footer-bottom .concept-disclaimer {
    text-align: center;
  }

  .footer-bottom .footer-credit {
    width: auto;
    margin: 0;
    white-space: nowrap;
  }

  .footer-bottom .footer-secondary {
    justify-content: flex-end;
  }
}

.services-section .service-grid {
  gap: 14px;
}

.services-section .service-card {
  min-height: 0;
  padding: 18px;
}

.services-section .service-card-top {
  margin-bottom: 10px;
}

.services-section .service-card h3 {
  margin-block: 8px 6px;
  font-size: clamp(20px, 2vw, 25px);
}

.services-section .service-card p {
  margin: 0;
  line-height: 1.55;
}

/* Hero carousel: stacked slides with a slow cross-fade; the wrapper keeps a fixed height so nothing shifts. */
.hero-photo-wrap .hero-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-photo-wrap .hero-photo.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-wrap .hero-photo {
    transition: none;
  }
}

/* Smaller, more refined project imagery. */
.project-image-wrap {
  height: 232px;
  border-radius: 6px;
}

.project-detail-cover {
  width: 100%;
  max-width: 860px;
  height: 380px;
  margin-inline: auto;
  border-radius: 8px;
}

/* Keep desktop content readable without stretching text and imagery across the viewport. */
@media (min-width: 701px) {
  .container {
    width: min(1200px, calc(100% - 64px));
  }

  .section-space {
    padding-block: 76px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(72px, 7vw, 94px);
  }

  .hero-photo-wrap {
    height: 500px;
  }

  .about-section {
    padding-block: 78px 72px;
  }

  .page-hero {
    padding-block: 30px 40px;
  }

  .breadcrumb {
    margin-bottom: 26px;
  }

  .page-intro-grid {
    gap: 54px;
  }

  .page-intro-grid h1 {
    font-size: clamp(48px, 5vw, 62px);
  }

  .project-story {
    padding-block: 40px 58px;
  }

  .project-detail-cover {
    height: 350px;
  }

  .project-story-grid {
    gap: 60px;
    margin-top: 42px;
  }

  .project-story-grid h2 {
    font-size: 42px;
    margin-block: 14px 18px;
  }

  .project-image-wrap {
    height: 216px;
  }
}

.hero-image-note,
.hero-note {
  display: none !important;
}

.hero-actions > .text-link {
  display: inline-flex;
  order: 3;
  font-size: 20px;
  line-height: 1.25;
}

.hero-actions::before {
  content: "";
  order: 2;
  flex: 0 0 100%;
  height: 0;
  margin-top: -8px;
}

.hero-actions > .button {
  order: 0;
}

.hero-actions > .contact-social-links {
  order: 1;
}

@media (min-width: 961px) {
  .hero-grid {
    grid-template-columns: 0.78fr 1.22fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .project-image-wrap {
    height: 210px;
  }

  .project-detail-cover {
    height: 250px;
  }

  .hero h1 {
    font-size: 58px;
    letter-spacing: -2px;
    margin: 20px 0 16px;
  }

  .hero-photo-wrap {
    height: 400px;
  }

  .hero-image-info a {
    font-size: 22px;
    line-height: 1.15;
  }

  .hero-visual .hero-seal {
    width: 76px;
    height: 76px;
    top: 14px;
    right: 14px;
  }

  .section-space {
    padding-block: 48px;
  }

  .services-section h2,
  .about-section h2,
  .projects-section h2 {
    font-size: 34px;
    line-height: 1.12;
  }

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

  .service-card {
    min-height: 0;
  }

  .projects-section .project-card:nth-child(n + 7) {
    display: none;
  }

  .project-card h3 {
    font-size: 25px;
  }

  .about-visual,
  .about-visual img {
    height: 340px;
  }

  .about-image-card {
    width: 210px;
    padding: 18px;
  }

  .hero-actions {
    gap: 16px;
  }

  .contact-social-links {
    gap: 10px;
  }

  .contact-facebook-link,
  .contact-whatsapp-link {
    width: 52px;
    height: 52px;
  }

  .site-footer {
    padding-block: 32px 88px;
  }

  .contact-dock {
    flex-direction: row;
    gap: 10px;
    right: 14px;
    bottom: 14px;
  }

  .contact-dock .dock-icon,
  .contact-dock .whatsapp-action .dock-icon {
    width: 48px;
    height: 48px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-top > div:first-child,
  .footer-contact,
  .footer-nav {
    width: 100%;
    min-width: 0;
  }

  .footer-contact {
    box-sizing: border-box;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgb(38 62 46 / 4%);
  }

  .footer-phone {
    order: 0;
    align-items: flex-start;
    padding-top: 0;
    font-size: 14px;
  }

  .footer-phone small {
    margin-bottom: 3px;
  }

  .footer-contact .contact-lines {
    gap: 0.7rem;
    margin-top: 0;
  }

  .footer-project-cta {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-top: 0;
    font-size: 14px;
  }

  .footer-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 12px;
    text-align: center;
  }

  .footer-bottom > p {
    margin: 0;
  }

  .footer-bottom .concept-disclaimer {
    max-width: 34ch;
  }

  .footer-bottom .footer-secondary {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-credit {
    margin-top: 14px;
    font-size: 12px;
  }
}

.local-intro { margin: 28px 0 8px; }
.local-intro h3 { margin: 0 0 10px; font-size: 1.25rem; }
.local-intro .about-description { margin-bottom: 10px; }
