/* Gift Lab — Custom Gift Design pages */
.gl-cgd {
  --gl-navy: #2F4364;
  --gl-cream: #FBFAF8;
  --gl-cream-soft: #FBFAF8;
  --gl-mist: #EEF0F3;
  --gl-wine: #4D0E12;
  --gl-line: rgba(47, 67, 100, .14);
  color: var(--gl-navy);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.gl-cgd > section, .gl-cgd > .gl-block { border-top: 1px solid var(--gl-line); }
.gl-cgd > .gl-block--first, .gl-cgd > .gl-block--flush { border-top: 0; }
.gl-cgd > .gl-block--flush { padding-top: 0; }
.gl-cgd section, .gl-cgd .gl-block { padding: 64px 0; }

.gl-head { text-align: center; margin-bottom: 48px; }
.gl-eyebrow {
  display: block;
  font-style: italic;
  text-transform: lowercase;
  font-size: 22px;
  line-height: 1.2;
  color: var(--gl-wine);
}
.gl-title, .gl-cgd h1.gl-title {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gl-navy);
}
.gl-center { text-align: center; margin: 48px 0 0; }

.gl-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gl-navy);
  color: #fff !important;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease;
}
.gl-btn:hover, .gl-btn:focus-visible { background: var(--gl-wine); }
.gl-btn--ghost { background: transparent; color: var(--gl-navy) !important; border: 1px solid var(--gl-navy); padding: 11px 26px; }
.gl-btn--ghost:hover { background: var(--gl-navy); color: #fff !important; }

/* Intro */
.gl-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.gl-intro p { font-size: 18px; line-height: 1.7; margin: 0 0 1.2em; }
.gl-intro .gl-intro__lead, .gl-intro .gl-intro__close { font-style: italic; font-size: 20px; }
.gl-cta { text-align: center; }
.gl-cta__line { font-style: italic; font-size: 24px; margin: 0 0 24px; }

/* Hub tiles */
.gl-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 30px;
}
.gl-tile { display: block; text-align: center; text-decoration: none; color: var(--gl-navy); }
.gl-tile__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gl-cream); }
.gl-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gl-tile__img--empty { background: linear-gradient(135deg, var(--gl-cream), var(--gl-cream-soft)); }
.gl-tile:hover .gl-tile__img { transform: scale(1.04); }
.gl-tile__name { display: block; margin-top: 14px; font-size: 20px; letter-spacing: .04em; }
.gl-tile:hover .gl-tile__name { color: var(--gl-wine); }

/* Process: 3×2 cards, alternating backgrounds */
.gl-process__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
}
.gl-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 340px;
  padding: 42px;
  background: var(--gl-cream-soft);
  margin: 0;
}
.gl-step:nth-child(even) { background: #FFFFFF; }
.gl-step__num { font-style: italic; font-size: 16px; color: var(--gl-wine); }
.gl-step__title {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gl-navy);
}
.gl-step__text { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.85; }

/* Featured blogs */
.gl-blogs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.gl-blog { text-align: center; }
.gl-blog__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gl-cream); }
.gl-blog__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-blog__img--empty { background: linear-gradient(160deg, var(--gl-cream-soft), var(--gl-cream)); }
.gl-blog__title { margin: 22px 0 16px; font-size: 20px; line-height: 1.35; color: var(--gl-navy); }
.gl-blog__title a { color: inherit; text-decoration: none; }
.gl-blog__soon { font-style: italic; font-size: 14px; color: var(--gl-wine); }

/* Instagram strip — full-bleed, flush with the footer */
.gl-ig {
  width: 100vw;
  margin: 72px 0 0 calc(50% - 50vw);
  padding: 0;
  color: #2F4364;
}
.gl-ig__bar {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px 22px;
  text-align: center;
}
.gl-ig__eyebrow { font-style: italic; font-size: 20px; color: #4D0E12; }
.gl-ig__bar a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #2F4364; text-decoration: none; border-bottom: 1px solid currentColor; }
.gl-ig__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; line-height: 0; }
.gl-ig__item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #FBFAF8; }
.gl-ig__item img { transition: transform .6s ease; }

/* The theme forces height:auto on images; pin every cropped image to its frame */
.gl-tile__media, .gl-blog__media, .gl-ig__item { position: relative; }
.gl-tile__media > img, .gl-blog__media > img, .gl-ig__item > img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
}
.gl-ig__hover {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; background: rgba(47, 67, 100, .45);
  opacity: 0; transition: opacity .25s ease;
}
.gl-ig__item:hover img { transform: scale(1.05); }
.gl-ig__item:hover .gl-ig__hover, .gl-ig__item:focus-visible .gl-ig__hover { opacity: 1; }

/* Remove the gaps between the strip and the footer */
body.gl-ig-flush .page_content_wrap,
body.gl-ig-flush .content_wrap,
body.gl-ig-flush .content,
body.gl-ig-flush article.page,
body.gl-ig-flush .post_content,
body.gl-ig-flush .elementor-section:last-child,
body.gl-ig-flush .elementor-widget:last-child { padding-bottom: 0 !important; margin-bottom: 0 !important; }
body.gl-ig-flush .elementor-widget-wrap:has(.gl-ig) { padding-bottom: 0 !important; }
body.gl-ig-flush { overflow-x: hidden; }

@media (max-width: 1024px) {
  .gl-tiles, .gl-process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .gl-cgd section, .gl-cgd .gl-block { padding: 48px 0; }
  .gl-tiles, .gl-process__grid, .gl-blogs__grid { grid-template-columns: 1fr; }
  .gl-step { min-height: 0; padding: 36px 28px; }
  .gl-intro p { font-size: 17px; }
  .gl-ig { margin-top: 48px; }
  .gl-ig__strip { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .gl-tile__img, .gl-btn, .gl-ig__item img, .gl-ig__hover { transition: none; }
}

/* Inquiry form */
.gl-form { max-width: 640px; margin: 0 auto 64px; padding: 0 16px; color: #2F4364; }
.gl-form label { display: block; margin-bottom: 18px; font-size: 14px; letter-spacing: .04em; }
.gl-form input:not([type=submit]), .gl-form select, .gl-form textarea { width: 100%; margin-top: 6px; }
.gl-form input[type=submit] { background: #2F4364; color: #fff; border: 0; padding: 14px 32px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; cursor: pointer; }
.gl-form input[type=submit]:hover { background: #4D0E12; }

/* ---- v1.2 depth: soft full-bleed bands, raised cards (brand palette only) ---- */
.gl-cgd {
  --gl-shadow: 0 1px 2px rgba(47, 67, 100, .06), 0 8px 24px rgba(47, 67, 100, .08);
  --gl-shadow-up: 0 2px 4px rgba(47, 67, 100, .08), 0 16px 36px rgba(47, 67, 100, .14);
}
/* A band paints edge to edge of the viewport while the content stays in the 1200px column */
.gl-cgd > .gl-process, .gl-cgd > .gl-blogs, .gl-cgd > .gl-cta {
  position: relative;
  clip-path: inset(0 -100vmax);
  border-top: 0;
}
.gl-cgd > .gl-process { background: var(--gl-cream-soft); box-shadow: 0 0 0 100vmax var(--gl-cream-soft); }
.gl-cgd > .gl-blogs   { background: var(--gl-mist);       box-shadow: 0 0 0 100vmax var(--gl-mist); }
.gl-cgd > .gl-cta     { background: var(--gl-cream);      box-shadow: 0 0 0 100vmax var(--gl-cream); }
.gl-cgd > .gl-cta .gl-cta__line { color: var(--gl-navy); }
.gl-cgd > .gl-block--first { padding-bottom: 56px; }

/* Process cards: white raised cards with a wine accent edge */
.gl-process__grid { counter-reset: gl-step; }
.gl-step {
  position: relative;
  background: #fff !important;
  border-top: 3px solid var(--gl-wine);
  box-shadow: var(--gl-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gl-step:nth-child(even) { border-top-color: var(--gl-navy); }
.gl-step:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow-up); }
.gl-step__num {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--gl-cream-soft);
  color: var(--gl-wine);
  font-size: 15px;
  letter-spacing: .04em;
}
.gl-step__text { color: #3b4a63; }

/* Hub tiles: photo + name sit on a raised white card */
.gl-tile { background: #fff; box-shadow: var(--gl-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.gl-tile:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow-up); }
.gl-tile__name { margin: 0; padding: 18px 12px 20px; }
.gl-cgd > .gl-block--flush { padding-bottom: 72px; }

/* Featured blogs: white cards on the mist band */
.gl-blog { background: #fff; box-shadow: var(--gl-shadow); padding: 0 0 26px; transition: transform .25s ease, box-shadow .25s ease; }
.gl-blog:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow-up); }
.gl-blog__title { margin: 22px 18px 16px; }
.gl-blog--soon:hover { transform: none; box-shadow: var(--gl-shadow); }

/* Intro copy: better contrast on white */
.gl-intro p { color: #2a3a56; }

@media (prefers-reduced-motion: reduce) {
  .gl-step, .gl-tile, .gl-blog { transition: none; }
  .gl-step:hover, .gl-tile:hover, .gl-blog:hover { transform: none; }
}

/* ---- v1.2.2 layout QA: no dead gap under the menu, centred last rows ---- */
body.gl-ig-flush .page_content_wrap { padding-top: 0 !important; }
body.gl-ig-flush .content > .elementor > .elementor-top-section:first-child { padding-top: 0 !important; }

.gl-tiles, .gl-blogs__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.gl-tiles { gap: 40px 30px; }
.gl-blogs__grid { gap: 30px; }
.gl-tiles > .gl-tile { flex: 0 0 calc((100% - 60px) / 3); max-width: calc((100% - 60px) / 3); }
.gl-blogs__grid > .gl-blog { flex: 0 0 calc((100% - 60px) / 3); max-width: calc((100% - 60px) / 3); }
@media (max-width: 1024px) {
  .gl-tiles > .gl-tile { flex-basis: calc((100% - 30px) / 2); max-width: calc((100% - 30px) / 2); }
}
@media (max-width: 680px) {
  .gl-tiles > .gl-tile, .gl-blogs__grid > .gl-blog { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 680px) {
  .gl-tiles { gap: 28px 16px; }
  .gl-tiles > .gl-tile { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
  .gl-tile__name { font-size: 16px; margin-top: 10px; }
}
.gl-cta__line { line-height: 1.35; }
/* Inquiry page: no dead gap under the menu, sensible textarea */
.page_content_wrap:has(.gl-form) { padding-top: 0 !important; }
.content > .elementor > .elementor-top-section:has(.gl-form):first-child { padding-top: 0 !important; }
.gl-form textarea.wpcf7-textarea { min-height: 0 !important; height: 150px !important; }
