/* Terrace - warm hospitality. Soft shapes, a tinted page, everything a card.
   No literal colours. */

.tp-theme-terrace{background:var(--tp-brand-tint)}

/* ---- floating pill header ---- */
.terrace-header{position:sticky;top:0;z-index:60;padding:16px 0;background:transparent}
.terrace-bar{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  background:var(--tp-surface);border-radius:100px;padding:11px 13px 11px 26px;
  box-shadow:var(--tp-shadow-lg);border:1px solid var(--tp-border);
}
.terrace-brand{display:flex;align-items:center;gap:11px;font-family:var(--tp-ff-heading);font-weight:600;color:var(--tp-ink)}
.terrace-brand img{max-height:40px;width:auto}
.terrace-mark{width:36px;height:36px;border-radius:50%;background:var(--tp-theme-primary);color:var(--tp-brand-contrast);display:flex;align-items:center;justify-content:center;font-weight:700}
.terrace-nav{display:flex;gap:6px;align-items:center}
.terrace-nav a{padding:9px 18px;border-radius:100px;font-size:.93rem;font-weight:500;color:var(--tp-ink-muted)}
.terrace-nav a:hover{background:var(--tp-brand-tint);color:var(--tp-theme-primary)}
.terrace-nav a[aria-current=page]{background:var(--tp-theme-primary);color:var(--tp-brand-contrast)}

/* ---- collage hero: 1 large + up to 4 small ---- */
.terrace-collage{
  display:grid;gap:12px;
  grid-template-columns:repeat(4,1fr);grid-auto-rows:150px;
  margin-top:8px;
}
.terrace-collage>*{border-radius:var(--tp-radius-lg);overflow:hidden;background:var(--tp-surface-3)}
.terrace-collage>*:first-child{grid-column:span 2;grid-row:span 2}
.terrace-collage img{width:100%;height:100%;object-fit:cover}
/* The collage is a 4-column grid. Without these the middle counts leave
   visible holes, and 1-2 banners is what most sites actually have. */
.terrace-collage--1>*:first-child{grid-column:span 4;grid-row:span 2}
.terrace-collage--2>*{grid-column:span 2;grid-row:span 2}
.terrace-collage--3>*:first-child{grid-column:span 2;grid-row:span 2}
.terrace-collage--3>*:not(:first-child){grid-column:span 2;grid-row:span 1}
.terrace-collage--4>*{grid-column:span 2;grid-row:span 1}
.terrace-collage--4>*:first-child{grid-row:span 1}

.terrace-intro{text-align:center;padding:clamp(48px,6vw,84px) 0 var(--tp-sp-6);max-width:60ch;margin:0 auto}
.terrace-intro h1{margin:0 0 var(--tp-sp-4);font-size:clamp(2.2rem,1.4rem + 3.4vw,3.6rem);letter-spacing:-.03em}
.terrace-intro p{color:var(--tp-ink-muted);font-size:clamp(1.05rem,1rem + .35vw,1.2rem);margin-bottom:var(--tp-sp-6)}
.terrace-intro .tp-btn{margin:0 .3rem}

/* ---- overlapping about card ---- */
.terrace-card{
  background:var(--tp-surface);border-radius:var(--tp-radius-lg);
  padding:clamp(28px,4vw,56px);box-shadow:var(--tp-shadow-xl);
}
.terrace-card--overlap{margin-top:-60px;position:relative;z-index:3}
.terrace-about{display:grid;grid-template-columns:1fr 1.3fr;gap:40px;align-items:center}
.terrace-about img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--tp-radius-lg)}

/* ---- pill cards with circular images ---- */
.terrace-pill{
  background:var(--tp-surface);border-radius:var(--tp-radius-lg);padding:26px;text-align:center;
  transition:transform .24s,box-shadow .24s;
}
.terrace-pill:hover{transform:translateY(-7px);box-shadow:0 20px 44px rgba(var(--tp-brand-rgb),.2)}
.terrace-pill__img img{transition:transform .55s var(--tp-ease)}
.terrace-pill:hover .terrace-pill__img img{transform:scale(1.07)}
.terrace-pill__img{
  width:132px;height:132px;margin:0 auto 18px;border-radius:50%;overflow:hidden;
  border:4px solid var(--tp-brand-tint);
}
.terrace-pill__img img{width:100%;height:100%;object-fit:cover}
.terrace-pill h3{margin:0;font-size:1.03rem}

/* ---- speech-bubble testimonials, alternating sides ---- */
.terrace-bubbles{display:grid;gap:26px;max-width:820px;margin:0 auto}
.terrace-bubble{
  background:var(--tp-surface);border-radius:var(--tp-radius-lg);padding:var(--tp-sp-6) var(--tp-sp-7);
  position:relative;max-width:82%;box-shadow:var(--tp-shadow-md);
}
.terrace-bubble:nth-child(even){margin-left:auto}
.terrace-bubble::after{
  content:"";position:absolute;bottom:-11px;left:34px;
  border:12px solid transparent;border-top-color:var(--tp-surface);border-bottom:0;
}
.terrace-bubble:nth-child(even)::after{left:auto;right:34px}
.terrace-bubble p{margin:0 0 12px;color:var(--tp-ink-muted)}
.terrace-bubble cite{font-style:normal;font-family:var(--tp-ff-heading);font-weight:600;color:var(--tp-theme-primary)}

/* ---- circular client avatars ---- */
.terrace-avatars{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}
.terrace-avatars>div{
  width:88px;height:88px;border-radius:50%;overflow:hidden;
  background:var(--tp-surface);border:3px solid var(--tp-surface);box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.terrace-avatars img{width:100%;height:100%;object-fit:cover}

.tp-theme-terrace .tp-footer{background:var(--tp-surface);border-radius:var(--tp-radius-lg) var(--tp-radius-lg) 0 0;margin-top:40px}
.tp-theme-terrace .tp-newsletter{border-radius:var(--tp-radius-lg);max-width:var(--tp-container);margin:0 auto}
.tp-theme-terrace .tp-pagehead{background:transparent;text-align:center}
.tp-theme-terrace .tp-card{border:0;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.tp-theme-terrace .tp-crumb{border-bottom:0}

@media (max-width:991px){
  .terrace-about{grid-template-columns:1fr}
  .terrace-collage{grid-template-columns:repeat(2,1fr);grid-auto-rows:130px}
  .terrace-collage>*:first-child{grid-column:span 2}
}
@media (max-width:767px){
  .terrace-bar{border-radius:var(--tp-radius-lg);padding:12px 16px}
  .terrace-card{padding:26px}
  .terrace-card--overlap{margin-top:-24px}
  .terrace-bubble{max-width:100%}
  .terrace-nav{flex-direction:column;align-items:stretch}
}

/* ===== finishing layer ===== */
.tp-theme-terrace{
  background:
    radial-gradient(1200px 560px at 8% -10%, var(--tp-brand-light) 0%, transparent 60%),
    radial-gradient(900px 480px at 95% 6%, var(--tp-brand-tint) 0%, transparent 55%),
    var(--tp-surface-2);
  background-attachment:fixed;
}
.terrace-header{backdrop-filter:saturate(180%) blur(10px)}
.terrace-intro h1{letter-spacing:-.03em}
.terrace-pill{border:1px solid var(--tp-border)}
.terrace-pill__img{box-shadow:var(--tp-shadow-md)}
.tp-theme-terrace .tp-btn{border-radius:100px}
.tp-theme-terrace .tp-newsletter{box-shadow:var(--tp-shadow-xl)}
.tp-theme-terrace .tp-footer{box-shadow:0 -12px 40px rgba(var(--tp-ink-rgb),.05)}
