/* ===============================
   Perky Pen — Sustainability Page Styles
   Scope: .pp-sustainability
   Brand Colors & Fonts
   =============================== */

/* Root Tokens */

/* === TAN Ashford === */
@font-face {
  font-family: "TAN Ashford";
  src: url("/fonts/ashford-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TAN Ashford";
  src: url("/fonts/ashford-bold-italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === Canva Sans === */
@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === Apply globally === */
:root {
  --font-display: "TAN Ashford", Georgia, serif;
  --font-body: "Canva Sans", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

p, body {
  font-family: var(--font-body);
}

  button,
  .button,         /* common WP class */
  [type="button"],
  [type="submit"],
  [role="button"] {
    font-family: 'Schoolbell', cursive;
    font-weight: 400;   /* Schoolbell only has regular weight */
    letter-spacing: 0.5px; /* optional, improves readability */
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pp-sustainability {
  --pp-cream: #FFF6EF;
  --pp-brown: #694029;
  --pp-orange-300: #EB9C54;
  --pp-orange-500: #DD7A20;
  --pp-ink: #211D1A;

  --pp-radius: 16px;
  --pp-shadow: 0 6px 24px rgba(33, 29, 26, 0.08);

  --pp-h1: clamp(32px, 4vw, 52px);
  --pp-h2: clamp(24px, 3vw, 34px);
  --pp-h3: clamp(18px, 2vw, 22px);
  --pp-text: clamp(16px, 1.5vw, 18px);
}

/* Typography */
.pp-sustainability {
  font-family: "Inter", "Canva Sans", Arial, sans-serif;
  background: var(--pp-cream);
  color: var(--pp-ink);
  line-height: 1.6;
  padding-top: 3rem;
}

.pp-sustainability h1,
.pp-sustainability h2 {
  font-family: "Playfair Display", "TAN Ashford", Georgia, serif;
  font-weight: 600;
  color: var(--pp-brown);
  line-height: 1.2;
}

.pp-sustainability h1 {
  font-size: var(--pp-h1);
  margin-bottom: 12px;
}

.pp-sustainability h2 {
  font-size: var(--pp-h2);
  margin-bottom: 10px;
}

.pp-sustainability h3 {
  font-size: var(--pp-h3);
  color: var(--pp-orange-500);
}

.pp-sustainability .accent-hand {
  font-family: "Schoolbell", cursive;
  color: var(--pp-orange-500);
}

.pp-sustainability p {
  font-size: var(--pp-text);
  margin-bottom: 14px;
}

/* ===============================
   Hero Section
   =============================== */
.pp-sustainability .pp-hero {
  text-align: center;
  padding: 64px 20px 48px;
  background: linear-gradient(180deg, var(--pp-cream) 0%, #fff 100%);
  display: flex;
    flex-direction: column;
    align-items: center;
}
.pp-sustainability .pp-hero h1 {
  background: linear-gradient(90deg, var(--pp-brown), var(--pp-orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 5rem;
}

.pp-sustainability .pp-hero p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--pp-ink);
}

/* Compact, responsive hero */
.pp-hero{position:relative;overflow:hidden;border-radius:12px;max-width:1200px;margin:clamp(8px,2vw,24px) auto}
.pp-hero__media img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;max-height:clamp(220px,48vh,480px)}
.pp-hero__text{position:absolute;left:clamp(12px,2vw,24px);right:clamp(12px,2vw,24px);bottom:clamp(12px,2vw,20px);color:#fff;padding:clamp(8px,1.6vw,16px);border-radius:10px;max-width:min(90%,760px);text-wrap:balance}
.pp-hero__text h1{margin:0 0 .25rem;font-size:clamp(1.2rem,2.8vw,2rem);line-height:1.15}
.pp-hero__text p{margin:0;font-size:clamp(.95rem,1.8vw,1.05rem);line-height:1.35}

/* Mobile: place text below image if overlay feels crowded */
@media (max-width:480px){
  .pp-hero__text{position:static;margin:clamp(8px,2vw,12px)}
}

section.pp-intro.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ===============================
   Split Sections (Image + Text)
   =============================== */
.pp-sustainability .pp-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  width: min(1120px, 92%);
  margin: 0 auto var(--pp-section, 80px);
}
.pp-sustainability .pp-split--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.pp-sustainability .pp-split__media img {
  width: 100%;
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}
.pp-sustainability .pp-split__text {
  background: #fff;
  padding: 24px 28px;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(33, 29, 26, 0.08);
  box-shadow: var(--pp-shadow);
}

/* Bullets */
.pp-sustainability .pp-split__text ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.pp-sustainability .pp-split__text ul li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}
.pp-sustainability .pp-split__text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pp-orange-300), var(--pp-orange-500));
  box-shadow: 0 0 0 3px rgba(221,122,32,.18);
}

/* ===============================
   Why Section
   =============================== */
.pp-sustainability .pp-why {
  background: var(--pp-cream);
  padding: 64px 20px;
}
.pp-sustainability .pp-why h2 {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 4rem;
}
.pp-sustainability .pp-why .pp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pp-sustainability .pp-why h3 {
  margin-bottom: 8px;
}

/* ===============================
   Gallery
   =============================== */
.pp-sustainability .pp-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.pp-sustainability .pp-gallery__grid img {
  width: 100%;
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  background: #fff;
}

/* ===============================
   CTA
   =============================== */
.pp-sustainability .pp-cta {
  text-align: center;
  padding: 72px 20px;
}
.pp-sustainability .pp-cta h2 {
  margin-bottom: 12px;
  color: var(--pp-orange-500);
}
.pp-sustainability .pp-btn {
  display: inline-block;
  background: var(--pp-brown);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.pp-sustainability .pp-btn:hover {
  background: var(--pp-orange-500);
  transform: translateY(-2px);
}

/* ===============================
   FAQ (details/summary)
   =============================== */
.pp-sustainability .pp-faq details {
  margin: 12px 0;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(33,29,26,0.12);
  box-shadow: var(--pp-shadow);
}
.pp-sustainability .pp-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--pp-brown);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 900px) {
  .pp-sustainability .pp-split,
  .pp-sustainability .pp-split--reverse {
    grid-template-columns: 1fr;
  }
  .pp-sustainability .pp-why .pp-grid-2 {
    grid-template-columns: 1fr;
  }
  .pp-sustainability .pp-gallery__grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 560px) {
  .pp-sustainability .pp-gallery__grid {
    grid-template-columns: 1fr;
  }
}
