/* Desktop footer refinement shared across Tetoura pages. */

@media (min-width: 1024px) {
  .footer {
    max-width: 1300px;
    margin: clamp(44px, 6vw, 86px) auto 34px;
    padding: clamp(34px, 4.2vw, 58px);
    border-radius: 42px;
    background:
      linear-gradient(90deg, rgba(22, 20, 18, .055) 1px, transparent 1px),
      linear-gradient(180deg, rgba(22, 20, 18, .045) 1px, transparent 1px),
      radial-gradient(circle at 8% 12%, rgba(207, 232, 221, .72), transparent 28%),
      radial-gradient(circle at 94% 94%, rgba(240, 184, 200, .54), transparent 32%),
      linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 249, 239, .78));
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
    box-shadow: 0 28px 90px rgba(22, 20, 18, .075);
  }

  .footer::before {
    inset: 34px auto auto 38px;
    width: 78px;
    height: 78px;
    border-radius: 0;
    border-top: 16px solid var(--ink);
    border-left: 16px solid transparent;
    background: transparent;
    transform: skewX(-14deg);
    opacity: .08;
  }

  .footer::after {
    inset: auto 34px 30px auto;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(49, 87, 213, .14);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(49, 87, 213, .1), transparent 62%);
  }

  .footer-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1.12fr) minmax(138px, .46fr) minmax(200px, .62fr) minmax(260px, .78fr);
    gap: clamp(22px, 3vw, 44px);
    align-items: start;
  }

  .footer-brand {
    max-width: 520px;
    gap: 22px;
  }

  .footer-logo {
    height: 54px;
  }

  .footer-lead {
    max-width: 430px;
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.75;
    color: #342f2a;
  }

  .footer-title {
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: .24em;
  }

  .footer-nav {
    gap: 10px;
  }

  .footer-nav a {
    width: fit-content;
    padding: 7px 0;
    color: #2d2924;
    font-size: 15px;
    font-weight: 820;
    line-height: 1.25;
  }

  .footer-nav a:hover {
    color: var(--blue);
  }

  .footer-contact {
    padding: 22px;
    border: 1px solid rgba(49, 87, 213, .2);
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 20px 58px rgba(22, 20, 18, .075);
  }

  .footer-address {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    font-style: normal;
  }

  .footer-address span,
  .footer-address a {
    display: block;
    line-height: 1.35;
  }

  .footer-mail {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
  }

  .footer-social-link {
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(222, 209, 190, .86);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: #4d463f;
    font-size: 13px;
    font-weight: 850;
  }

  .footer-btn {
    min-height: 48px;
    padding-inline: 20px;
  }

  .footer-bottom {
    margin-top: clamp(30px, 4vw, 50px);
    padding-top: 20px;
    border-top-color: rgba(22, 20, 18, .12);
  }

  .footer-bottom p {
    color: #4d463f;
    font-size: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1599px) {
  .home-page .hero h1 {
    max-width: 700px;
    font-size: clamp(60px, 7.2vw, 98px);
    text-wrap: balance;
  }
}

@media (min-width: 1600px) {
  .home-page .hero h1 {
    max-width: 920px;
  }
}

@media (min-width: 901px) {
  .home-page .hero {
    min-height: min(760px, calc(100vh - 72px));
    padding-top: clamp(42px, 5vw, 76px);
    padding-bottom: clamp(42px, 5vw, 76px);
  }

  .home-page .split-section.section-pad {
    padding-top: clamp(30px, 4.4vw, 56px);
  }

  .home-page .home-rlz-section {
    padding-bottom: clamp(62px, 7vw, 94px);
  }
}

@media (min-width: 760px) and (max-width: 900px) {
  .local-strip {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
  }

  .local-strip-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .local-strip-tags span {
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .home-page .hero-visual {
    min-height: 390px;
  }

  .service-page .service-hero {
    padding-bottom: clamp(32px, 8vw, 50px);
  }

  .service-page .service-blueprint {
    min-height: 340px;
    transform: scale(.94);
    transform-origin: center top;
  }

  .contact-hero-visual {
    order: 2;
    min-height: 300px;
  }

  .contact-hero-copy {
    order: 1;
  }

  .contact-location {
    margin-top: 18px;
    opacity: .78;
  }
}

@media (max-width: 520px) {
  .home-page .hero-visual {
    min-height: 350px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-page .service-blueprint {
    min-height: 310px;
  }

  .contact-hero-visual {
    min-height: 260px;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .contact-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-note {
    padding: 22px 18px;
  }
}

@media (max-width: 759px) {
  .realisations-page .rlz-grid {
    grid-auto-columns: minmax(78vw, 80vw);
    gap: 16px;
  }
}

/* Final Tetoura polish pass: alignment, laptop rhythm and subpage refinement. */

.footer-bottom {
  display: grid !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 6px !important;
  text-align: center !important;
}

.footer-bottom p {
  max-width: 100% !important;
  text-align: center !important;
}

@media (min-width: 760px) {
  .footer-bottom {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .footer-shell,
  .footer-brand,
  .footer-column,
  .footer-contact,
  .footer-address {
    justify-items: center;
    text-align: center;
  }

  .footer-logo-link,
  .footer-nav a,
  .footer-social-link,
  .footer-btn {
    justify-self: center;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .home-page .hero h1 {
    max-width: min(100%, 760px) !important;
    white-space: normal !important;
    text-wrap: balance;
    font-size: clamp(48px, 5.7vw, 76px) !important;
    line-height: .9;
  }

  .home-page .hero-text {
    max-width: 610px;
  }
}

@media (min-width: 1281px) and (max-width: 1480px) {
  .home-page .hero h1 {
    max-width: 850px !important;
    white-space: normal !important;
    text-wrap: balance;
    font-size: clamp(64px, 5.9vw, 86px) !important;
  }
}

.page-hero h1,
.service-hero h1,
.realisations-page .rlz-heading h2,
.home-page .section-heading h2,
.home-page .home-rlz-copy h2 {
  text-wrap: balance;
}

body:not(.home-page):not(.service-page):not(.realisations-page) .page-hero {
  max-width: 1180px;
  margin-inline: auto;
  padding-bottom: clamp(26px, 4vw, 50px);
}

body:not(.home-page):not(.service-page):not(.realisations-page) .page-grid {
  width: min(100% - clamp(36px, 10vw, 144px), 1180px);
  margin-inline: auto;
  padding-inline: 0;
  gap: clamp(14px, 2vw, 22px);
}

body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card {
  position: relative;
  min-height: clamp(230px, 24vw, 310px);
  padding: clamp(24px, 3vw, 38px);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,249,239,.7)),
    radial-gradient(circle at 88% 14%, rgba(207,232,221,.34), transparent 34%);
}

body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(49,87,213,.12);
  border-radius: 24px;
  pointer-events: none;
}

body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card h2,
body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card p {
  position: relative;
  z-index: 1;
}

body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card h2 {
  max-width: 12ch;
  font-size: clamp(30px, 3.4vw, 48px);
  text-wrap: balance;
}

body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card p {
  max-width: 520px;
}

@media (min-width: 901px) {
  body:not(.home-page):not(.service-page):not(.realisations-page) .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body:not(.home-page):not(.service-page):not(.realisations-page) .page-grid {
    width: min(100% - 28px, 1180px);
  }

  body:not(.home-page):not(.service-page):not(.realisations-page) .simple-card {
    min-height: auto;
    border-radius: 28px;
  }
}

/* Contact page reinforcement: architectural brief and clear paths. */

.contact-page .contact-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.contact-page .contact-actions .btn.ghost {
  border-color: rgba(49, 87, 213, .18);
  background: rgba(255, 255, 255, .62);
}

.contact-brief-section,
.contact-methods-section {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(36px, 10vw, 144px), 1180px);
  margin-inline: auto;
}

.contact-brief-section {
  padding-bottom: clamp(34px, 6vw, 78px);
}

.contact-brief-shell {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(222, 209, 190, .92);
  border-radius: 40px;
  background:
    linear-gradient(90deg, rgba(22,20,18,.04) 1px, transparent 1px),
    linear-gradient(rgba(22,20,18,.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,249,239,.48));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 22px 72px rgba(22, 20, 18, .075);
}

.contact-brief-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.contact-brief-copy h2,
.contact-methods-head h2 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 72px);
  text-wrap: balance;
}

.contact-brief-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 22px 0 0;
  color: #4d463f;
}

.contact-brief-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(222, 209, 190, .92);
  background: rgba(222, 209, 190, .92);
}

.contact-brief-item {
  min-height: 190px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 249, 239, .9);
}

.contact-brief-item span,
.contact-method-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-brief-item strong,
.contact-method-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: -.055em;
}

.contact-brief-item p,
.contact-method-card em {
  display: block;
  margin: 14px 0 0;
  color: #5b534a;
  font-style: normal;
}

.contact-methods-section {
  padding-bottom: clamp(62px, 9vw, 126px);
}

.contact-methods-head {
  display: grid;
  grid-template-columns: minmax(180px, .32fr) minmax(0, .68fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(20px, 4vw, 42px);
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-method-card {
  position: relative;
  min-height: 230px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(222, 209, 190, .9);
  border-radius: 34px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 58px rgba(22, 20, 18, .055);
  overflow: hidden;
}

.contact-method-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(49,87,213,.16), transparent 68%);
  pointer-events: none;
}

.contact-method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 87, 213, .22);
}

.contact-method-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .contact-brief-section,
  .contact-methods-section {
    width: min(100% - 36px, 1180px);
  }

  .contact-brief-shell,
  .contact-methods-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .contact-brief-section,
  .contact-methods-section {
    width: min(100% - 28px, 1180px);
  }

  .contact-brief-shell {
    padding: 18px;
    border-radius: 30px;
  }

  .contact-brief-card,
  .contact-methods-grid {
    grid-template-columns: 1fr;
  }

  .contact-brief-item,
  .contact-method-card {
    min-height: auto;
    border-radius: 26px;
  }
}
