/* ============================================================
   Thea Group — site-level layout & section styles
   Builds on the design-system tokens in styles.css
   ============================================================ */

html, body { margin: 0; }
body { background: var(--canvas); scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

/* Skip link — visible on focus only */
.tg-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--warm-white); padding: .6rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-sans); z-index: 9999; }
.tg-skip:focus { left: 1rem; top: 1rem; }

.tg-container { max-width: var(--container-xl); margin-inline: auto; padding-inline: var(--page-gutter); }
.tg-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.tg-section--alt { background: var(--canvas-raised); }
.tg-section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.tg-section__head h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin: .8rem 0; }
.tg-section__head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.tg-center-rule { display: flex; justify-content: center; margin: .5rem 0 1rem; }

/* ---------- Brand utilities ---------- */
.tg-eyebrow--center { display: inline-flex; align-items: center; gap: .6rem; }
.tg-eyebrow--center::before, .tg-eyebrow--center::after { content: ""; width: 1.5rem; height: 1px; background: var(--border-gold); }
.tg-eyebrow--start { display: inline-flex; align-items: center; gap: .6rem; }
.tg-eyebrow--start::after { content: ""; width: 1.5rem; height: 1px; background: var(--border-gold); }
.tg-diamond { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); display: inline-block; }
.tg-rule { display: flex; align-items: center; gap: var(--space-3); color: var(--border-gold); max-width: 200px; }
.tg-rule::before, .tg-rule::after { content: ""; height: 1px; flex: 1; background: var(--border-gold); }
.tg-rule > span { width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }
.tg-rule--on-dark { color: color-mix(in srgb, var(--gold-400) 60%, transparent); }
.tg-rule--on-dark::before, .tg-rule--on-dark::after { background: color-mix(in srgb, var(--gold-400) 60%, transparent); }
.tg-rule--center { margin-inline: auto; }

.tg-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.tg-ico svg { width: 1em; height: 1em; display: block; stroke-width: 1.75; }

/* ---------- Buttons ---------- */
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .08em; padding: .85rem 1.6rem; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); font-size: .95rem; text-decoration: none; }
.tg-btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.tg-btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-gold); }
.tg-btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: var(--on-accent); }
.tg-btn--primary:active { background: var(--accent-press); transform: translateY(0); }
.tg-btn--secondary { background: transparent; color: var(--text-strong); border-color: var(--ink); }
.tg-btn--secondary:hover { background: var(--ink); color: var(--stone-100); }
.tg-btn--secondary-on-dark { background: transparent; color: var(--warm-white); border-color: var(--stone-300); }
.tg-btn--secondary-on-dark:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--on-accent); }
.tg-btn--block { width: 100%; }
.tg-btn .tg-ico { font-size: 1.05em; }

/* ---------- Header ---------- */
.tg-header { position: sticky; top: 0; z-index: var(--z-sticky); transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), border-color var(--dur-base); border-bottom: 1px solid transparent; }
.tg-header.is-solid { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.tg-header__inner { max-width: var(--container-xl); margin-inline: auto; padding: .85rem var(--page-gutter); display: flex; align-items: center; gap: 2rem; }
.tg-header__brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text-strong); text-decoration: none; }
.tg-header__mark { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.tg-header__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.tg-header__tag { display: block; font-family: var(--font-sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hover); margin-top: .15rem; }
.tg-header__nav { display: flex; gap: 1.7rem; margin-left: auto; }
.tg-header__nav a { font-family: var(--font-sans); font-size: .95rem; font-weight: 500; color: var(--text-body); letter-spacing: .01em; text-decoration: none; }
.tg-header__nav a:hover { color: var(--accent-hover); }
.tg-header__actions { display: flex; align-items: center; gap: 1.1rem; }
.tg-header__phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-sans); font-weight: 500; font-size: .9rem; color: var(--text-strong); text-decoration: none; }
.tg-header__phone:hover { color: var(--accent-hover); }
.tg-header__menu { display: none; background: none; border: 0; color: var(--text-strong); cursor: pointer; padding: .3rem; }
.tg-header__name { white-space: nowrap; }
/* Quote CTA + phone live in the dropdown on mobile only (hidden in desktop nav). */
.tg-header__nav-phone, .tg-header__nav-cta { display: none; }

/* ---------- Hero ---------- */
.tg-hero { position: relative; overflow: hidden; }
.tg-hero__bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 85% -10%, color-mix(in srgb, var(--gold-200) 55%, transparent), transparent 60%), linear-gradient(180deg, var(--canvas), var(--canvas-raised)); }
.tg-hero__inner { position: relative; max-width: var(--container-xl); margin-inline: auto; padding: clamp(2.5rem, 5vw, 5rem) var(--page-gutter) clamp(3rem, 5vw, 5rem); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.tg-hero__title { font-family: var(--font-display); font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; color: var(--text-strong); margin: 1rem 0 1.1rem; font-weight: 600; }
.tg-hero__title em { font-style: italic; color: var(--accent-hover); font-weight: 500; }
.tg-hero__lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); max-width: 46ch; margin: 1.4rem 0 0; }
.tg-hero__cta { display: flex; gap: .9rem; margin: 2rem 0 1.6rem; flex-wrap: wrap; }
.tg-hero__trust { display: flex; align-items: center; gap: .7rem; font-family: var(--font-sans); font-size: .95rem; color: var(--text-muted); }
.tg-hero__trust strong { color: var(--text-strong); }
.tg-hero__stars { color: var(--gold-500); display: inline-flex; gap: 2px; font-size: 1.1rem; }
.tg-hero__panel { position: relative; }
.tg-hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background-image: url('/assets/blends/alhambra.webp'); }
/* Hero finish rotates per load — the data-hero attribute is set before paint
   by the inline script in index.html (falls back to Alhambra above if no JS). */
[data-hero="paloma"] .tg-hero__photo      { background-image: url('/assets/blends/paloma.webp'); }
[data-hero="bellagio"] .tg-hero__photo    { background-image: url('/assets/blends/bellagio.webp'); }
[data-hero="alhambra"] .tg-hero__photo    { background-image: url('/assets/blends/alhambra.webp'); }
[data-hero="pantheon"] .tg-hero__photo    { background-image: url('/assets/blends/pantheon.webp'); }
[data-hero="kilimanjaro"] .tg-hero__photo { background-image: url('/assets/blends/kilimanjaro.webp'); }
[data-hero="anthracite"] .tg-hero__photo  { background-image: url('/assets/blends/anthracite.webp'); }
.tg-hero__finish::after { content: "Alhambra finish"; }
[data-hero="paloma"] .tg-hero__finish::after      { content: "Paloma finish"; }
[data-hero="bellagio"] .tg-hero__finish::after    { content: "Bellagio finish"; }
[data-hero="alhambra"] .tg-hero__finish::after    { content: "Alhambra finish"; }
[data-hero="pantheon"] .tg-hero__finish::after    { content: "Pantheon finish"; }
[data-hero="kilimanjaro"] .tg-hero__finish::after { content: "Kilimanjaro finish"; }
[data-hero="anthracite"] .tg-hero__finish::after  { content: "Anthracite finish"; }
.tg-hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-inset); background: linear-gradient(180deg, transparent 55%, rgba(38,36,31,.18)); }
.tg-hero__chip { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: var(--ink); color: var(--stone-100); padding: .35rem .7rem; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: .78rem; letter-spacing: .04em; }
.tg-hero__card { position: absolute; bottom: -1.4rem; right: -1.2rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; }
.tg-hero__card-row { display: flex; gap: .65rem; align-items: center; color: var(--accent-hover); }
.tg-hero__card-row strong { display: block; font-family: var(--font-sans); font-size: .9rem; color: var(--text-strong); }
.tg-hero__card-row span { font-family: var(--font-sans); font-size: .78rem; color: var(--text-muted); }
.tg-hero__card-div { width: 1px; align-self: stretch; background: var(--divider); }

/* ---------- Trust strip ---------- */
.tg-trust { background: var(--surface-inverse); }
.tg-trust__inner { max-width: var(--container-lg); margin-inline: auto; padding: 1.6rem var(--page-gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tg-trust__item { text-align: center; border-right: 1px solid color-mix(in srgb, var(--gold-500) 22%, transparent); }
.tg-trust__item:last-child { border-right: 0; }
.tg-trust__value { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--gold-300); line-height: 1; }
.tg-trust__label { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-400); margin-top: .4rem; }

/* ---------- Services ---------- */
.tg-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1rem; }
.tg-service { padding: 1.6rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: .6rem; transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.tg-service:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tg-service__icon { width: 54px; height: 54px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--gold-700); font-size: 1.5rem; }
.tg-service h3 { margin: 0; font-size: 1.4rem; }
.tg-service p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.tg-service__link { margin-top: auto; padding-top: .6rem; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: var(--accent-hover); text-decoration: none; }
.tg-service__link:hover { color: var(--accent-press); gap: .6rem; }

/* ---------- Why band ---------- */
.tg-why { background: var(--surface-inverse); padding: clamp(3rem, 6vw, 5rem) 0; color: var(--stone-200); }
.tg-why__head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.tg-why__head h2 { color: var(--warm-white); font-size: clamp(2rem, 3.5vw, 2.75rem); margin: .8rem 0; }
.tg-why__head p { color: var(--stone-300); font-size: 1.1rem; margin: 0; }
.tg-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.tg-why__item { color: var(--stone-200); text-align: center; }
.tg-why__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent); color: var(--gold-300); margin: 0 auto 1rem; font-size: 1.4rem; }
.tg-why__item h4 { color: var(--warm-white); margin: 0 0 .5rem; font-size: 1.25rem; font-family: var(--font-display); }
.tg-why__item p { color: var(--stone-400); font-size: .95rem; margin: 0; line-height: 1.6; }

/* ---------- Finishes ---------- */
.tg-finishes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; margin-top: 1rem; align-items: center; }
.tg-finishes__preview { position: relative; }
.tg-finishes__img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background-size: cover; background-position: center; box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: background-image var(--dur-base) var(--ease-standard); }
.tg-finishes__meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.tg-finishes__meta h3 { margin: 0; font-size: 1.6rem; }
.tg-finishes__meta p { margin: .15rem 0 0; color: var(--text-muted); }
.tg-finishes__list { display: flex; flex-direction: column; gap: .6rem; max-height: 520px; overflow-y: auto; padding-right: .25rem; }
.tg-swatch { display: flex; align-items: center; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast); font-family: var(--font-sans); text-align: left; width: 100%; }
.tg-swatch:hover { border-color: var(--border-gold); transform: translateX(2px); }
.tg-swatch.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.tg-swatch__chip { width: 46px; height: 46px; border-radius: var(--radius-sm); background-size: cover; background-position: center; flex: none; box-shadow: var(--shadow-xs); }
.tg-swatch__name { font-weight: 600; color: var(--text-strong); font-size: 1rem; display: block; }
.tg-swatch__desc { font-size: .8rem; color: var(--text-muted); display: block; }
.tg-swatch__tick { margin-left: auto; color: var(--accent); display: none; }
.tg-swatch.is-active .tg-swatch__tick { display: inline-flex; }

/* ---------- Process ---------- */
.tg-process { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.tg-process__step { position: relative; padding: 1.6rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.tg-process__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tg-process__n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--gold-400); line-height: 1; }
.tg-process__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold-700); font-size: 1.2rem; }
.tg-process__step h4 { margin: 0 0 .4rem; font-size: 1.25rem; font-family: var(--font-display); }
.tg-process__step p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.55; }

/* ---------- Work / Gallery ---------- */
.tg-work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.tg-work__head h2 { margin: .5rem 0; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.tg-work__head p { margin: 0; color: var(--text-muted); }
.tg-work__tabs { display: flex; gap: .5rem; margin: 1.8rem 0 1.6rem; flex-wrap: wrap; }
.tg-tab { font-family: var(--font-sans); font-weight: 500; font-size: .9rem; padding: .5rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: transparent; color: var(--text-body); cursor: pointer; transition: all var(--dur-fast); }
.tg-tab:hover { border-color: var(--ink); }
.tg-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--stone-100); }
.tg-work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tg-work__tile { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.tg-work__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tg-work__img { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.tg-work__type { position: absolute; top: .8rem; left: .8rem; background: rgba(38,36,31,.85); color: var(--stone-100); padding: .25rem .65rem; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tg-work__meta { padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tg-work__place { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-weight: 600; color: var(--text-strong); font-size: .98rem; }
.tg-work__spec { font-family: var(--font-sans); font-size: .82rem; color: var(--text-muted); text-align: right; }

/* ---------- Reviews ---------- */
.tg-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1rem; }
.tg-review { padding: 1.8rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.tg-review__mark { color: var(--gold-400); font-size: 1.4rem; }
.tg-review__stars { color: var(--gold-500); margin-top: .2rem; }
.tg-review__quote { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--text-body); font-style: italic; margin: .6rem 0 0; }
.tg-review__person { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1.2rem; }
.tg-review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--gold-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.tg-review__name { font-family: var(--font-sans); font-weight: 600; color: var(--text-strong); }
.tg-review__place { font-family: var(--font-sans); font-size: .85rem; color: var(--text-muted); }
.tg-reviews__foot { display: flex; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 2.4rem; flex-wrap: wrap; color: var(--text-muted); font-family: var(--font-sans); font-size: .9rem; }
.tg-reviews__foot .tg-acc { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-card); }

/* ---------- Contact / Quote form ---------- */
.tg-quote { background: linear-gradient(180deg, var(--stone-900), var(--ink)); }
.tg-quote__inner { max-width: var(--container-xl); margin-inline: auto; padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.tg-quote__title { color: var(--warm-white); font-size: clamp(2rem, 3.5vw, 3rem); margin: 1rem 0; font-family: var(--font-display); }
.tg-quote__intro { color: var(--stone-300); }
.tg-quote__intro > p { color: var(--stone-300); font-size: 1.1rem; line-height: 1.6; max-width: 42ch; }
.tg-quote__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .8rem; }
.tg-quote__list li { display: flex; align-items: center; gap: .7rem; color: var(--stone-200); font-family: var(--font-sans); }
.tg-quote__list li .tg-ico { color: var(--gold-400); }
.tg-quote__list a { color: var(--gold-300); font-weight: 600; text-decoration: none; }
.tg-quote__list a:hover { color: var(--gold-200); }
.tg-quote__panel { background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.tg-form { display: flex; flex-direction: column; gap: 1rem; }
.tg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tg-field { display: flex; flex-direction: column; gap: .35rem; }
.tg-field label { font-family: var(--font-sans); font-size: .82rem; font-weight: 500; color: var(--text-strong); letter-spacing: .02em; }
.tg-field label .req { color: var(--accent-hover); }
.tg-field input, .tg-field select, .tg-field textarea { width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--text-strong); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: .7rem .9rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.tg-field textarea { min-height: 110px; resize: vertical; }
.tg-field input:focus, .tg-field select:focus, .tg-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.tg-field.has-error input, .tg-field.has-error select, .tg-field.has-error textarea { border-color: var(--danger-500); background: var(--danger-50); }
.tg-field__err { color: var(--danger-500); font-family: var(--font-sans); font-size: .8rem; min-height: 1em; }
.tg-check { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-sans); font-size: .9rem; color: var(--text-body); cursor: pointer; }
.tg-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.tg-form__status { font-family: var(--font-sans); font-size: .9rem; color: var(--danger-500); min-height: 1em; }
.tg-form__status.is-ok { color: var(--success-500); }
.cf-turnstile { display: block; min-height: 65px; }
.tg-quote__success { text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.tg-quote__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--success-50); color: var(--success-500); display: grid; place-items: center; margin-bottom: .4rem; font-size: 2rem; }
.tg-quote__success h3 { margin: 0; font-size: 1.8rem; }
.tg-quote__success p { color: var(--text-muted); max-width: 38ch; margin: 0 0 .6rem; }
.tg-hide { display: none !important; }

/* ---------- Footer ---------- */
.tg-footer { background: var(--surface-inverse); color: var(--stone-300); }
.tg-footer__cta { border-bottom: 1px solid color-mix(in srgb, var(--gold-500) 20%, transparent); }
.tg-footer__cta-inner { padding: 2.4rem var(--page-gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: var(--container-xl); margin-inline: auto; }
.tg-footer__cta h3 { color: var(--warm-white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; font-family: var(--font-display); }
.tg-footer__main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; max-width: var(--container-xl); margin-inline: auto; padding-inline: var(--page-gutter); }
.tg-footer__brand p { margin: 1rem 0; font-size: .92rem; line-height: 1.6; color: var(--stone-400); max-width: 34ch; }
.tg-footer__brand .tg-header__brand { color: var(--warm-white); }
.tg-footer__col { display: flex; flex-direction: column; gap: .7rem; }
.tg-footer__col h5 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 .4rem; }
.tg-footer__col a, .tg-footer__addr { color: var(--stone-300); font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-sans); }
.tg-footer__col a:hover { color: var(--gold-300); }
.tg-footer__bar { border-top: 1px solid color-mix(in srgb, var(--stone-100) 12%, transparent); }
.tg-footer__bar-inner { display: flex; justify-content: space-between; padding: 1.2rem var(--page-gutter); font-size: .82rem; color: var(--stone-500); flex-wrap: wrap; gap: 1rem; max-width: var(--container-xl); margin-inline: auto; font-family: var(--font-sans); }
.tg-footer__legal { display: flex; gap: 1.2rem; }
.tg-footer__legal a { color: var(--stone-500); text-decoration: none; }
.tg-footer__legal a:hover { color: var(--gold-300); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tg-header__nav, .tg-header__phone { display: none; }
  .tg-header__menu { display: inline-flex; }
  /* Bar collapses to brand + hamburger; the standalone quote button moves into the menu. */
  .tg-header__inner { gap: 1rem; }
  .tg-header__brand { min-width: 0; }
  .tg-header__actions { margin-left: auto; gap: .25rem; flex: none; }
  .tg-header__actions .tg-btn--primary { display: none; }
  .tg-header__nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--canvas); padding: .5rem var(--page-gutter) 1.25rem; flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .tg-header__nav.is-open a { padding: .85rem .25rem; font-size: 1.02rem; border-bottom: 1px solid var(--border-hair); }
  .tg-header__nav.is-open .tg-header__nav-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-strong); font-weight: 600; }
  .tg-header__nav.is-open .tg-header__nav-cta { display: inline-flex; margin-top: 1rem; border-bottom: 0; padding: 1rem 1.6rem; font-size: 1rem; }
  .tg-hero__inner, .tg-finishes, .tg-quote__inner { grid-template-columns: 1fr; }
  .tg-hero__card { position: static; margin-top: 1.5rem; }
  .tg-services, .tg-why__grid, .tg-process, .tg-work__grid, .tg-reviews, .tg-trust__inner { grid-template-columns: repeat(2, 1fr); }
  .tg-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .tg-services, .tg-why__grid, .tg-process, .tg-work__grid, .tg-reviews, .tg-trust__inner { grid-template-columns: 1fr; }
  .tg-footer__main { grid-template-columns: 1fr; }
  .tg-row { grid-template-columns: 1fr; }
  .tg-hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  /* Free up width for the hamburger on phones: drop the tagline, trim the name. */
  .tg-header__tag { display: none; }
  .tg-header__name { font-size: 1.25rem; }
  .tg-header__mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   FINISHES PAGE  (/finishes)
   ============================================================ */

/* ---------- Page hero ---------- */
.tg-pagehero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.tg-pagehero__bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 85% -10%, color-mix(in srgb, var(--gold-200) 55%, transparent), transparent 60%), linear-gradient(180deg, var(--canvas), var(--canvas-raised)); z-index: -1; }
.tg-pagehero__inner { max-width: 60ch; }
.tg-pagehero__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.015em; color: var(--text-strong); margin: 1rem 0 1.1rem; font-weight: 600; }
.tg-pagehero__title em { font-style: italic; color: var(--accent-hover); font-weight: 500; }
.tg-pagehero__lead { font-size: 1.12rem; line-height: 1.65; color: var(--text-muted); margin: 1.3rem 0 0; }
.tg-pagehero__cta { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.tg-crumbs { display: flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.tg-crumbs a { color: var(--text-muted); text-decoration: none; }
.tg-crumbs a:hover { color: var(--accent); }
.tg-crumbs span[aria-current] { color: var(--text-strong); font-weight: 600; }

/* ---------- Tone chips ---------- */
.tg-tone { display: inline-block; font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .6rem; border-radius: var(--radius-pill); white-space: nowrap; }
.tg-tone--light { background: color-mix(in srgb, var(--gold-200) 55%, var(--warm-white)); color: var(--stone-700, #4a463d); border: 1px solid var(--border-gold); }
.tg-tone--warm  { background: color-mix(in srgb, var(--gold-400) 30%, transparent); color: var(--accent-press, #8a6a1f); border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent); }
.tg-tone--grey  { background: color-mix(in srgb, var(--stone-400) 22%, transparent); color: var(--text-strong); border: 1px solid var(--border-strong); }
.tg-tone--dark  { background: color-mix(in srgb, var(--ink) 85%, transparent); color: var(--stone-100); border: 1px solid var(--ink); }

/* ---------- Signature blend cards ---------- */
.tg-finishcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.5rem; }
.tg-finishcard { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.tg-finishcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tg-finishcard__img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.tg-finishcard__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.tg-finishcard__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.tg-finishcard__top h3 { margin: 0; font-size: 1.45rem; }
.tg-finishcard__body p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
.tg-finishcard__for { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-sans); font-size: .82rem; color: var(--text-strong); margin-top: .2rem; }
.tg-finishcard__for .tg-ico { color: var(--accent); font-size: 1rem; }

/* ---------- Catalogue (wider range) ---------- */
.tg-cat__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.8rem 0 1rem; flex-wrap: wrap; }
.tg-cat__tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tg-cat__search { position: relative; display: inline-flex; align-items: center; }
.tg-cat__search .tg-ico { position: absolute; left: .8rem; color: var(--text-muted); font-size: 1.05rem; pointer-events: none; }
.tg-cat__search input { font-family: var(--font-sans); font-size: .92rem; padding: .55rem .9rem .55rem 2.3rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--text-strong); min-width: 220px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.tg-cat__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.tg-cat__count { font-family: var(--font-sans); font-size: .85rem; color: var(--text-muted); margin: 0 0 1.1rem; }

.tg-cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1.1rem; }
.tg-cat__tile { display: flex; flex-direction: column; gap: .55rem; }
.tg-cat__imgwrap { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xs); aspect-ratio: 1 / 1; background: var(--canvas-raised); }
.tg-cat__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-base) var(--ease-out); }
.tg-cat__tile:hover .tg-cat__img { transform: scale(1.05); }
.tg-cat__tone { position: absolute; top: .55rem; left: .55rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tg-cat__name { font-family: var(--font-sans); font-weight: 600; font-size: .92rem; color: var(--text-strong); padding-left: .1rem; }

.tg-cat__empty { text-align: center; color: var(--text-muted); font-family: var(--font-sans); padding: 2rem 0; }
.tg-linkbtn { background: none; border: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.tg-cat__note { display: flex; align-items: flex-start; gap: .55rem; margin-top: 1.8rem; font-family: var(--font-sans); font-size: .85rem; line-height: 1.55; color: var(--text-muted); max-width: 72ch; }
.tg-cat__note .tg-ico { color: var(--accent); flex: none; margin-top: .1rem; }

/* ---------- Simple CTA band ---------- */
.tg-quote--simple .tg-cta { text-align: center; max-width: 660px; margin-inline: auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.tg-quote--simple h2 { color: var(--warm-white); font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 1rem 0 .8rem; }
.tg-quote--simple p { color: var(--stone-300); font-size: 1.05rem; line-height: 1.6; margin: 0 auto; max-width: 50ch; }
.tg-quote--simple .tg-eyebrow { justify-content: center; }
.tg-cta__btns { display: flex; gap: .9rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }

/* ---------- Finishes page responsive ---------- */
@media (max-width: 980px) {
  .tg-finishcards { grid-template-columns: repeat(2, 1fr); }
  .tg-cat__toolbar { flex-direction: column; align-items: stretch; }
  .tg-cat__search input { width: 100%; }
}
@media (max-width: 580px) {
  .tg-finishcards { grid-template-columns: 1fr; }
  .tg-cat__grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .tg-pagehero__title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}

/* "View all finishes" link under the homepage teaser */
.tg-finishes__more { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.tg-finishes__more span { font-family: var(--font-sans); font-size: .9rem; color: var(--text-muted); }

/* ---------- Areas we cover (local SEO) ---------- */
.tg-areas { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tg-areas li { font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--text-strong); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .5rem 1.1rem; box-shadow: var(--shadow-xs); }
.tg-areas__note { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.6rem; font-family: var(--font-sans); font-size: .92rem; color: var(--text-muted); text-align: center; }
.tg-areas__note .tg-ico { color: var(--accent); flex: none; }
.tg-areas__note a { color: var(--accent); font-weight: 600; }
