/* =========================================================
   Teak Wood Factory — gallery edition (loads after style.css)

   Edge-to-edge photo gallery: square photos, underlined uppercase captions,
   serif overlay lines and a script accent. Walnut, ivory and champagne-teak.
   Header: announcement strip, logo row, category row.
   ========================================================= */

@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/josefin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Parisienne"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/parisienne.woff2") format("woff2"); }

:root {
	--g-walnut: #2f2017;       /* strip, footer, buttons */
	--g-walnut-deep: #20160f;
	--g-ivory: #fbf7f0;        /* page */
	--g-sand: #f1e8d9;         /* bands */
	--g-champ: #b8894f;        /* champagne-teak accent */
	--g-ink: #1f1a16;
	--g-mute: #6c6259;
	--g-line: #e5dccd;

	/* base theme tokens, remapped */
	--ivory: var(--g-ivory);
	--paper: #fffdf9;
	--stone: var(--g-sand);
	--ink: var(--g-ink);
	--walnut: var(--g-walnut);
	--walnut-deep: var(--g-walnut-deep);
	--teak: var(--g-champ);
	--teak-dark: #8f6534;
	--muted: var(--g-mute);
	--line: var(--g-line);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Josefin Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
	--script: "Parisienne", "Snell Roundhand", cursive;
	--radius: 0px;
	--radius-sm: 0px;
}

/* ---------- type ---------- */
body { background: var(--g-ivory); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.7; }
p { font-weight: 400; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .24em; color: var(--g-champ); }
.gcap { display: block; margin-top: 14px; text-align: center; font: 600 14px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; color: var(--g-ink); }

/* ---------- buttons: crisp rectangles ---------- */
.btn { border-radius: 2px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.btn-dark { background: var(--g-walnut); color: #fff; }
.btn-dark:hover { background: var(--g-champ); }
.btn-outline { border-color: var(--g-walnut); color: var(--g-walnut); }
.btn-outline:hover { background: var(--g-walnut); color: #fff; }

/* ---------- announcement strip ---------- */
.announce { background: var(--g-walnut); color: #f3ebdd; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 40px; padding: 0 max(16px, calc((100vw - 1320px) / 2)); font: 400 13px/1.3 var(--sans); letter-spacing: .04em; }
.announce button { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; opacity: .85; cursor: pointer; }
.announce button:hover { opacity: 1; }
.announce-msgs { text-align: center; }
.announce-msgs p { margin: 0; display: none; color: inherit; }
.announce-msgs p.on { display: block; animation: tw-fade .5s var(--ease); }

/* ---------- header: logo row + category row ---------- */
.g-hdr { position: sticky; top: 0; z-index: 60; background: var(--g-ivory); border-bottom: 1px solid var(--g-line); backdrop-filter: none; }
.g-hdr .header-inner { grid-template-columns: 1fr auto 1fr; height: 82px; gap: 24px; border-bottom: 1px solid var(--g-line); width: 100%; padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2)); }
.g-hdr.is-scrolled .header-inner { height: 70px; }
.g-hdr .nav-primary { justify-self: start; }
.g-hdr .nav-primary .menu { gap: 28px; }
.g-hdr .nav-primary a { font: 400 14px/1 var(--sans); letter-spacing: .02em; text-transform: none; }
.g-hdr .nav-primary a::after { background: var(--g-champ); height: 1px; bottom: -4px; }
.g-hdr .header-brand img { height: 26px; }
.g-hdr .header-actions { gap: 20px; }
.hdr-wa { display: grid; place-items: center; color: var(--g-walnut); }
.hdr-wa svg { width: 20px; height: 20px; }
.hdr-wa:hover { color: #1f9e55; }
.hdr-contact { padding: 10px 18px; border: 1px solid var(--g-walnut); background: none; cursor: pointer; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--g-walnut); transition: background .3s, color .3s; }
.hdr-contact:hover { background: var(--g-walnut); color: #fff; }
.catbar-inner { display: flex; justify-content: safe center; gap: clamp(16px, 2vw, 34px); padding: 13px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { flex: none; padding: 2px 0; border-bottom: 1px solid transparent; font: 400 14px/1.3 var(--sans); letter-spacing: .02em; color: var(--g-ink); white-space: nowrap; transition: border-color .25s, color .25s; }
.catbar a:hover, .catbar a[aria-current="page"] { border-bottom-color: var(--g-champ); color: var(--g-walnut); }

/* Logo on the left, page links centred, actions on the right */
.g-hdr .header-inner { grid-template-columns: auto 1fr auto; }
.g-hdr .header-brand { justify-self: start; }
.g-hdr .nav-primary { justify-self: center; }
.g-hdr .header-brand img { height: 30px; }

/* ---------- 0. banner video under the menu ---------- */
.g-hero-video { position: relative; overflow: hidden; height: clamp(460px, calc(100vh - 210px), 760px); margin-bottom: clamp(40px, 5vw, 64px); background: var(--g-walnut-deep); }
.g-hero-video video, .g-hero-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero-video video { opacity: 0; transition: opacity .9s ease; }
.g-hero-video video.is-playing { opacity: 1; }
.g-hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 17, 11, .62) 0%, rgba(25, 17, 11, .25) 45%, rgba(25, 17, 11, 0) 70%), linear-gradient(0deg, rgba(25, 17, 11, .35) 0%, transparent 40%); pointer-events: none; }
.g-hero-copy { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - 1320px) / 2)); top: 50%; transform: translateY(-50%); max-width: 560px; color: #fbf7f0; }
.g-hero-kicker { margin: 0 0 18px; font: 600 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #f1d9ad; }
.g-hero-copy h1 { margin: 0; font: 500 clamp(40px, 5vw, 76px)/1.02 var(--serif); color: #fbf7f0; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.g-hero-copy h1 .script { display: block; font-size: 1.1em; line-height: 1.1; color: #f1d9ad; }
.g-hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.g-hero-btn { background: #fbf7f0; color: var(--g-walnut); }
.g-hero-btn:hover { background: var(--g-champ); color: #fff; }
.g-hero-link { margin: 0; color: #fbf7f0; text-decoration-color: rgba(251, 247, 240, .6); }
.g-hero-link:hover { color: #f1d9ad; }

/* Rotating seal — frosted glass, white type (as in the brief) */
.g-hero-video .seal { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - 1320px) / 2)); bottom: clamp(28px, 6vh, 64px); width: clamp(120px, 11vw, 168px); border-radius: 50%; backdrop-filter: blur(7px) saturate(1.1); -webkit-backdrop-filter: blur(7px) saturate(1.1); transform: none; }
.g-hero-video .seal-bg { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.g-hero-video .seal-text { fill: #fff; font: 600 13.5px/1 var(--sans); letter-spacing: .16em; }
.g-hero-video .seal img { width: 38%; }

/* ---------- gallery tiles ---------- */
.gtile { display: block; color: var(--g-ink); }
.gtile-img { position: relative; display: block; overflow: hidden; background: var(--g-sand); }
.gtile-img img, .gtile-img video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.gtile:hover .gtile-img img { transform: scale(1.035); }
.gtile:hover .gcap { color: var(--g-walnut); text-decoration-color: var(--g-champ); }
.gtile-img.has-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(25, 17, 11, .55) 0%, rgba(25, 17, 11, .18) 42%, transparent 65%); pointer-events: none; }
.gtile-overlay { position: absolute; z-index: 1; left: clamp(18px, 3vw, 44px); top: clamp(18px, 4vw, 60px); max-width: 80%; font: 500 clamp(26px, 2.8vw, 42px)/1.08 var(--serif); color: #fbf7f0; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.gtile-overlay .script { font-size: 1.5em; line-height: 1; color: #f1d9ad; }

/* 1. mosaic: two large photos and a column of three, edge to edge */
.g-mosaic { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 0 22px; padding-bottom: clamp(48px, 6vw, 80px); }
.g-mosaic-a .gtile-img, .g-mosaic-b .gtile-img { height: clamp(380px, 47vw, 700px); }
.g-mosaic-c { display: grid; gap: 10px; align-content: start; }
.g-mosaic-c .gcap { margin-top: 8px; font-size: 13px; }
.g-mosaic-c .gtile-img { height: calc((clamp(380px, 47vw, 700px) - 2 * 10px - 3 * 32px) / 3); }

/* 2. split banner */
.g-split { display: grid; grid-template-columns: 2.25fr 1fr; gap: 0 18px; padding-bottom: clamp(48px, 6vw, 80px); }
.g-split .gtile-img { height: clamp(300px, 34vw, 500px); }
.g-split-wide .gtile-overlay { left: auto; right: clamp(20px, 8%, 120px); top: 50%; transform: translateY(-50%); font-size: clamp(34px, 4vw, 64px); }
.g-split-wide .gtile-img.has-overlay::after, .g-banner .gtile-img.has-overlay::after { background: linear-gradient(-90deg, rgba(25, 17, 11, .6) 0%, rgba(25, 17, 11, .2) 40%, transparent 62%); }

/* 3. shop the look */
.g-look { padding-bottom: clamp(48px, 6vw, 80px); }
.g-look-band { display: grid; grid-template-columns: 1fr 2fr; height: clamp(240px, 24vw, 340px); background: var(--g-sand); }
.g-look-copy { display: grid; place-items: center; padding: 24px; text-align: center; }
.g-look-copy h2 { font-size: clamp(28px, 3vw, 40px); }
.g-look-copy .script { display: block; font-size: 2em; line-height: 1.1; color: var(--g-walnut); }
.g-look-sub { font-family: var(--serif); font-style: italic; color: var(--g-mute); }
.g-look-img { overflow: hidden; }
.g-look-img img { width: 100%; height: 100%; object-fit: cover; }
.g-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; margin-top: 12px; }
.g-looks .gtile-img { aspect-ratio: 4 / 5; }

/* 4. full-width film banner (hero video) */
.g-banner { padding-bottom: clamp(48px, 6vw, 80px); }
.g-banner .gtile-img { height: clamp(340px, 44vw, 680px); }
.g-banner .gtile-overlay { left: auto; right: clamp(24px, 8vw, 140px); top: 50%; transform: translateY(-50%); font-size: clamp(40px, 5vw, 80px); text-align: right; }
.g-video .gtile-overlay .script { display: inline-block; }
.g-video-sub { display: block; margin-top: 18px; font: 600 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #fbf7f0; text-shadow: none; }

/* 5. best selling */
.g-best { padding-bottom: clamp(48px, 6vw, 80px); }
.g-boxed { margin: 0 12px 14px; padding: 14px; background: var(--g-sand); border: 1px solid var(--g-champ); text-align: center; font-size: clamp(26px, 2.6vw, 36px); }
.g-boxed .script { color: var(--g-walnut); font-size: 1.25em; }
.g-best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.g-best-grid .gtile-img { aspect-ratio: 4 / 5; }

/* 6. promo strip */
.g-promo { background: var(--g-walnut); color: #f3ebdd; }
.g-promo-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); max-width: 1320px; margin: 0 auto; padding: clamp(22px, 3vw, 36px) var(--gutter); }
.g-promo p { margin: 0; color: inherit; }
.g-promo-left { font: 500 clamp(20px, 2.2vw, 30px)/1.2 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.g-promo-left .script { font-size: 1.5em; letter-spacing: 0; text-transform: none; color: #e2c38f; }
.g-promo-rule { flex: 1; min-width: 40px; height: 1px; background: rgba(226, 195, 143, .6); }
.g-promo-right { font-size: 14px; letter-spacing: .06em; }
.g-promo-btn { flex: none; background: #f3ebdd; color: var(--g-walnut); }
.g-promo-btn:hover { background: #e2c38f; color: var(--g-walnut-deep); }

/* 7–9. sections */
.g-section { padding-block: clamp(56px, 7vw, 96px); }
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.g-head h2, .g-faq h2 { font-size: clamp(28px, 3vw, 42px); }
.g-head h2 .script, .g-faq h2 .script { font-size: 1.25em; color: var(--g-walnut); }
.g-head .gcap { margin: 0; }
.g-faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.g-faq-item { padding: 18px 0; border-bottom: 1px solid var(--g-line); }
.g-faq-item summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font: 500 21px/1.3 var(--serif); }
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--g-champ); }
.g-faq-item[open] summary::after { content: "–"; }
.g-faq-item p { margin: 10px 0 0; color: var(--g-mute); }
.g-faq-more { margin-top: 26px; text-align: left; }

/* Reviews band */
.reviews.tone { background: var(--g-sand); }
.review { border: 1px solid var(--g-line); background: var(--g-ivory); }
.review blockquote { font: italic 400 1.15rem/1.6 var(--serif); }

/* ---------- product cards: square, white, quiet, centred ---------- */
.product-card { background: transparent; border: 0; box-shadow: none; }
.product-card:hover { box-shadow: none; transform: none; }
.product-media { border: 1px solid var(--g-line); background: #fff; }
.product-card:hover .product-media { border-color: var(--g-champ); }
.product-media .img-main { padding: 6%; object-fit: contain; }
.product-meta { padding: 16px 6px 0; text-align: center; justify-items: center; gap: 4px; }
.product-col { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; color: var(--g-champ); }
.product-meta h3 { font: 500 21px/1.25 var(--serif); }
.product-wood { font-size: 13px; color: var(--g-mute); }
.card-poa { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--g-champ); }
.product-wa { justify-self: center; font: 600 11px/1 var(--sans); letter-spacing: .14em; color: var(--g-walnut); }
.product-cta { background: rgba(251, 247, 240, .96); color: var(--g-ink); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- inner pages ---------- */
.page-header { background: var(--g-sand); }
.page-header h1 { font-weight: 500; }
.filter-bar a { font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pdp-title, .pd-info h1 { font-weight: 500; }
.pdp-buy { background: #fff; }
.pdp-price strong { font-weight: 500; }
.tabs button { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; }

/* ---------- footer ---------- */
.site-footer { background: var(--g-walnut-deep); color: rgba(243, 235, 221, .72); }
.site-footer h4 { font: 600 12px/1 var(--sans); letter-spacing: .24em; color: var(--g-champ); }
.site-footer ul, .site-footer p, .site-footer address { font-size: 15px; }
.g-social { display: flex; gap: 10px; margin-top: 22px; }
.g-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(243, 235, 221, .3); border-radius: 50%; color: #f3ebdd; transition: border-color .3s, color .3s; }
.g-social a:hover { border-color: var(--g-champ); color: var(--g-champ); }
.g-social svg { width: 17px; height: 17px; }
.wa-float { background: #1f9e55; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .g-promo-inner { flex-wrap: wrap; } }
@media (max-width: 960px) {
	.g-hdr .header-inner { grid-template-columns: auto 1fr; height: 68px; }
	.g-hdr .header-actions .hdr-contact { display: none; }
	.catbar-inner { justify-content: flex-start; }
	.announce { font-size: 12px; }
}
@media (max-width: 860px) {
	.g-hero-video { height: 78vh; min-height: 480px; }
	.g-hero-copy { left: 20px; right: 20px; top: auto; bottom: 150px; transform: none; }
	.g-hero-video::after { background: linear-gradient(0deg, rgba(25, 17, 11, .78) 0%, rgba(25, 17, 11, .3) 55%, transparent 80%); }
	.g-hero-video .seal { right: 16px; top: 16px; bottom: auto; width: 92px; }
	.g-hero-actions { gap: 16px; }
	.g-hdr .header-brand img { height: 22px; }
	.g-mosaic { grid-template-columns: 1fr; gap: 28px; }
	.g-mosaic-a .gtile-img, .g-mosaic-b .gtile-img { height: auto; aspect-ratio: 4 / 5; }
	.g-mosaic-c { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.g-mosaic-c .gtile-img { height: auto; aspect-ratio: 1; }
	.g-mosaic-c .gcap { font-size: 11px; letter-spacing: .04em; }
	.g-split { grid-template-columns: 1fr; gap: 28px; }
	.g-split .gtile-img { height: auto; aspect-ratio: 4 / 3; }
	.g-split-wide .gtile-overlay { right: auto; left: 20px; }
	.g-look-band { grid-template-columns: 1fr; height: auto; }
	.g-look-img { height: 220px; }
	.g-looks { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
	.g-banner .gtile-img { height: auto; aspect-ratio: 4 / 5; }
	.g-banner .gtile-overlay { right: 20px; left: 20px; top: auto; bottom: 24px; transform: none; max-width: none; text-align: left; font-size: 30px; line-height: 1.05; }
	.g-banner .gtile-img.has-overlay::after { background: linear-gradient(0deg, rgba(25, 17, 11, .72) 0%, rgba(25, 17, 11, .25) 45%, transparent 70%); }
	.g-video-sub { margin-top: 12px; font-size: 10.5px; letter-spacing: .18em; }
	.g-best-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72vw; gap: 10px; padding: 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
	.g-best-grid .gtile { scroll-snap-align: start; }
	.g-faq-inner { grid-template-columns: 1fr; }
	.g-promo-rule { display: none; }
	.gcap { font-size: 12.5px; }
}
