/* =========================================================
   master-page.css
   Content layout for IGD pages
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --igd-bg: #ffffff;
  --igd-text: #111111;
  --igd-muted: #616161;
  --igd-border: #ececec;
  --igd-shadow-sm: 0 10px 28px rgba(0,0,0,.03);
  --igd-shadow-md: 0 16px 38px rgba(0,0,0,.03);
  --igd-green: #1aada3;
  --igd-green-hover: #158a83;
}

/* =========================================================
   BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--igd-bg);
  color: var(--igd-text);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--igd-green);
  outline-offset: 2px;
}
p {
  font-weight: 400;
}

/* small helpers */
.text-center { text-align: center; }
.centred { text-align: center; }
.gap { margin-bottom: 1.2rem; }

/* =========================================================
   TOP BANNER
   ========================================================= */
.top-banner-wrap {
  width: 100%;
  position: relative;
  z-index: 30;
  background: #fff;
}

/* =========================================================
   PAGE FRAME (90%)
   ========================================================= */
#content-frame {
  position: relative;
  width: 90%;
  margin: 160px auto 3.5rem;
  background: #fff;
}
@media (max-width: 900px) {
  #content-frame {
    width: 96%;
    margin-top: 150px;
  }
}

/* If the page has a hero just before main, tighten margin */
.igd-home-hero + main #content-frame,
.igd-home-hero + .igd-page #content-frame,
.igd-hero-banner + main #content-frame,
.igd-hero-banner + .igd-page #content-frame {
  margin-top: 3rem !important;
}
body.has-igd-header #content-frame {
  padding-top: var(--igd-header-h, 120px);
}

@media (max-width: 768px) {
  body.has-igd-header #content-frame {
    padding-top: var(--igd-header-h-mobile, 140px);
  }
}

/* =========================================================
   HOME HERO (index-test.php)
   ========================================================= */
.igd-home-hero {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.igd-home-hero .igd-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.igd-home-hero .igd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.igd-home-hero .igd-hero-media--mobile {
  display: none;
}
.igd-home-hero .igd-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  pointer-events: none;
}
.igd-home-hero .igd-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 750px;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 3rem;
}

/* hero text (shared) */
.hero-kicker {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}
.hero-cta {
  display: inline-block;
  background: #f5b95a;
  color: #1f2933;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 35px rgba(245,185,90,0.45);
}
.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

/* mobile switch for home hero */
@media (max-width: 850px) {
  .igd-home-hero {
    min-height: 290px;
  }
  .igd-home-hero .igd-hero-media--desktop { display: none; }
  .igd-home-hero .igd-hero-media--mobile { display: block; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
}
/* =========================================================
   CATEGORY BANNER + TITLE
   ========================================================= */
/* =========================================================
   CATEGORY BANNER + TITLE
   ========================================================= */
/* =========================================================
   CATEGORY BANNER + TITLE
   ========================================================= */
.category-banner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  line-height: 0;          /* so the img doesn't add extra gap */
  z-index: 1;
}

.category-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Title OVER the banner image */
.category-banner #category-title {
  position: absolute;
  left: 50%;
  top: 50%;               /* vertical position over image */
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 1rem;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,.6);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  text-align: center;
  z-index: 5;
  pointer-events: none;   /* clicks go through to links below if any */
}

@media (max-width: 600px) {
  .category-banner #category-title {
    top: 42%;             /* sits a bit higher on mobile */
    font-size: 1.8rem;
  }
}



/* =========================================================
   CATEGORY GRID (80%, overlapping)
   ========================================================= */
.category-wrap {
  width: 80%;
  margin: -100px auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.category-panel {
  flex: 0 0 calc(25% - 1.125rem);
  max-width: calc(25% - 1.125rem);
  background: #fff;
  border: 1px solid var(--igd-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: var(--igd-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.category-panel .category-inner {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 4;
}
.category-panel .category-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.category-panel .category-inner img:hover {
  transform: scale(1.08);
}
.category-panel .category-title {
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
}
.category-panel .category-title a {
  color: var(--igd-green);
}
.category-panel .category-title a:hover {
  color: var(--igd-green-hover);
  text-decoration: underline;
}
.category-panel .centred {
  margin: 0;
  text-align: center;
  font-size: .85rem;
  color: var(--igd-muted);
  line-height: 1.45;
}
.category-panel .centred a {
  color: var(--igd-green);
}

/* responsive categories */
@media (max-width: 1100px) {
  .category-panel {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}
@media (max-width: 850px) {
  .category-wrap {
    width: 94%;
    margin-top: -35px;
  }
  .category-panel {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
@media (max-width: 520px) {
  .category-panel {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .category-panel .category-inner {
    aspect-ratio: 16 / 10;
  }
  .category-wrap {
    width: 96%;
    margin-top: -20px;
  }
}

/* =========================================================
   PAGE-WIDE IMAGE
   (no forced aspect-ratio — lets leather pages use their own)
   ========================================================= */
.page-wide-image {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 0 150px 0;
}
.page-wide-image img {
  width: 100%;
}

/* =========================================================
   MODERN 25/75 PANEL = .igd-panel
   ========================================================= */
.igd-panel {
  width: 100%;
  margin: 0 0 2.5rem 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 1.6rem 1.8rem 2rem;
  box-shadow: 0 16px 38px rgba(0,0,0,.03);
  box-sizing: border-box;
  clear: both;
}
.igd-panel__media {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.igd-panel__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}
.igd-panel__btn {
  display: inline-block;
  background: #1aada3;
  color: #fff;
  text-align: center;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .6rem 1.1rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  text-transform: uppercase;
}
.igd-panel__btn:hover {
  background: #158a83;
}
.igd-panel__body {
  flex: 0 0 75%;
  max-width: 75%;
  min-width: 0;
}
.igd-panel__body h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.igd-panel__body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #3a3a3a;
}
@media (max-width: 980px) {
  .igd-panel {
    flex-direction: column;
  }
  .igd-panel__media,
  .igd-panel__body {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .igd-panel__media img {
    max-width: 240px;
  }
}
@media (max-width: 600px) {
  .igd-panel {
    padding: 1.25rem 1.1rem 1.5rem;
  }
  .igd-panel__media img {
    max-width: 140px;
  }
}

/* =========================================================
   INTRO + PAGE TITLES
   ========================================================= */
.igd-leather-intro {
  width: 100%;
  margin: 0 0 2.5rem 0;
  text-align: center;
}
.page-title {
  margin: 0 0 1.1rem 0;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}

/* badges */
.benefit-badges {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  justify-content: center;
  max-width: 1100px;
}
.benefit-badges li {
  background: #f6faf9;
  border: 1px solid #d9f1ee;
  color: #0a5e58;
  padding: .45rem .85rem .55rem;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .benefit-badges li {
    white-space: normal;
  }
}

/* =========================================================
   TEASE GRID
   ========================================================= */
.tease-leather {
  width: 100%;
  margin: 0 0 2.8rem 0;
  clear: both;
}
.tease-leather__heading {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
}
.tease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.tease-card {
  background: #fff;
  border: 1px solid var(--igd-border);
  border-radius: 14px;
  box-shadow: var(--igd-shadow-sm);
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
  transition: transform .2s ease;
}
.tease-card:hover {
  transform: translateY(-3px);
}
.tease-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}
.tease-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tease-card:hover .tease-card__img img {
  transform: scale(1.04);
}
.tease-card__title {
  margin: .4rem 0 0 0;
  font-size: 1rem;
  font-weight: 600;
}
.tease-card__subtitle {
  margin: 0;
  font-size: .85rem;
  color: var(--igd-muted);
  font-weight: 400;
  line-height: 1.4;
}
.tease-card__price {
  margin: .3rem 0 0 0;
  font-weight: 600;
  color: #111;
  font-size: .9rem;
}
.tease-card__placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #f2f2f2, #f2f2f2 12px, #e4e4e4 12px, #e4e4e4 24px);
}
@media (max-width: 600px) {
  .tease-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* =========================================================
   LONG-FORM SECTIONS
   ========================================================= */
.wrap-100 {
  width: 100%;
  margin: 0 0 2.5rem 0;
}
.igd-section p {
  margin-bottom: 1rem;
  line-height: 1.65;
  font-weight: 400;
}
.igd-section h2,
.wrap-100 h2 {
  margin: 0 0 .8rem 0;
  font-size: 1.6rem;
  font-weight: 600;
}
.page-subtitle,
h2.page-subtitle {
  margin: 0 0 1.4rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* CTA links (centered) */
.igd-cta-link,
.page-panel-link {
  display: block;
  width: fit-content;
  margin: 0.8rem auto 1.5rem;
  background: var(--igd-green);
  color: #fff;
  padding: .55rem 1.4rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.igd-cta-link:hover,
.page-panel-link:hover {
  background: var(--igd-green-hover);
}

/* smaller h3 for FAQ */
#content-frame h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.1rem 0 .5rem;
}

/* =========================================================
   PAGE PANELS (25/75)
   ========================================================= */
.page-panel-wrap {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 2.3rem;
  align-items: stretch;
}
.wrap-25 {
  flex: 0 0 25%;
  max-width: 25%;
}
.wrap-75 {
  flex: 0 0 75%;
  max-width: 75%;
}
.page-panel-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.page-panel-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.image-square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}
.image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 980px) {
  .page-panel-wrap {
    flex-direction: column;
  }
  .wrap-25,
  .wrap-75 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* pale grey blog wrap */
.pale-grey {
  background: #f7f7f7;
  padding: 2.5rem 1.4rem 2.7rem;
  border-radius: 16px;
}
.index-blog-logo {
  display: block;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.index-blog-wrap {
  display: grid;
  gap: 1.15rem;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.customers-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  clear: both;
  margin-top: 3rem;
}
.customers-panel {
  flex: 1 1 calc(33.333% - 1rem);
  background: #fff;
  border: 1px solid var(--igd-border);
  border-radius: 14px;
  padding: 3.2rem 1.4rem 1.3rem;
  box-shadow: var(--igd-shadow-sm);
  position: relative;
  text-align: center;
  max-width: 360px;
}
.customers-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
}
.customers-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.index-text {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .customers-panel {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* =========================================================
   INDEX PANELS (revised inc.index-panels.php)
   ========================================================= */
.igd-index-panels {
  width: 100%;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}
.igd-feature-row {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--igd-border);
  border-radius: 16px;
  box-shadow: var(--igd-shadow-sm);
  padding: 1.6rem 1.4rem 1.6rem 1.6rem;
}
.igd-feature-text {
  flex: 0 0 55%;
  max-width: 55%;
}
.igd-feature-media {
  flex: 0 0 45%;
  max-width: 45%;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  background: #f4f4f4;
}
.igd-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igd-feature-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: repeating-linear-gradient(135deg, #f2f2f2, #f2f2f2 12px, #e4e4e4 12px, #e4e4e4 24px);
}
.igd-feature-kicker {
  margin: 0 0 .5rem 0;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--igd-muted);
}
.igd-feature-title {
  margin: 0 0 .7rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.igd-feature-subtitle {
  margin: 0 0 .5rem 0;
  color: var(--igd-muted);
  line-height: 1.4;
}
.igd-feature-price {
  margin: 0 0 .5rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}
.igd-feature-body {
  margin: 0 0 1rem 0;
  line-height: 1.55;
}

/* reveal states for index panels (shared) */
.igd-reveal {
  opacity: 0;
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.215,.61,.355,1);
  transition-duration: 800ms;
}
.igd-reveal[data-reveal="from-left"]  { transform: translate3d(-48px, 0, 0); }
.igd-reveal[data-reveal="from-right"] { transform: translate3d( 48px, 0, 0); }
.igd-reveal.is-inview {
  opacity: 1;
  transform: none;
}
.igd-reveal.leave-left  { opacity: 0; transform: translate3d(-48px, 0, 0); }
.igd-reveal.leave-right { opacity: 0; transform: translate3d( 48px, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .igd-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .igd-feature-row {
    flex-direction: column;
  }
  .igd-feature-text,
  .igd-feature-media {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .igd-feature-media {
    min-height: 220px;
  }
}

/* =========================================================
   LEATHER HERO (generic + optional leather bg)
   ========================================================= */
.igd-hero-banner {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #1f2933 0%, rgba(31,41,51,0.1) 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem 3rem;
  text-align: center;
  color: #fff;
}
.igd-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.75));
  pointer-events: none;
}
.igd-hero-inner {
  position: relative;
  max-width: 900px;
  z-index: 1;
}
/* use this ONLY on the leather page */
.igd-hero-banner--leather {
  background:
    linear-gradient(135deg, #1f2933 0%, rgba(31,41,51,0.1) 50%),
    url("https://italygiftsdirect.b-cdn.net/images/italian-leather-bags/leather-bag-categories.jpg") center/cover no-repeat;
}

/* =========================================================
   ANIMATION UTILITIES
   ========================================================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.animate-fade-in {
  animation: fadeIn 0.7s ease-out 0.1s both;
}
.animate-slide-up {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.animate-delay {
  animation: fadeInUp 0.8s ease-out 0.35s both;
}
.animate-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.55s both;
}

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */
@media (max-width: 768px) {
  .igd-hero-banner {
    min-height: 240px;
    padding: 3.75rem 1rem 2.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
