/* -------- Reset & Base -------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fafafa;
}

/* Optional page background image — swap as needed */
body.has-bg {
  background-image: url("");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* Gradient background for home page */
body.gradient-bg {
  background: linear-gradient(135deg, #081d3b, #0571d3); 
  /* fallback if gradients not supported */
  background-color: #00a3e0;
}

/* Other pages background image */
body.pages-bg {
  background-image: url("./pp_homepage.png");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Soft illustration overlay background */
body.illustration-bg {
  position: relative;
}

body.illustration-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./PAP2025_Illustrations_Background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.14;              /* keep illustration subtle */
  pointer-events: none;
  z-index: -1;
}

.wordmark-block img {
  display: block;        /* removes inline gap */
  margin: 0 auto;        /* centers horizontally if smaller than column */
}

.caption {
  margin-top: 0;         /* no extra gap */
  text-align: center;
  font-style: italic;
  color: #444;
}

.caption p {
  margin: 0;             /* remove default <p> spacing */
  line-height: 1.3;
}

.full-image-section {
  width: 100%;
  height: 100vh;              /* full screen height */
  overflow: hidden;
}

.full-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* makes it fill the section */
  display: block;
}

.text-section {
  max-width: 900px;       /* keeps text readable on wide screens */
  margin: 3rem auto;      /* center + spacing */
  padding: 0 1.5rem;      /* side padding for mobile */
  text-align: center;     /* or left if you prefer */
}

.text-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.text-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.about-row {
  min-height: 100vh;            /* fill full screen height */
  display: flex;
  align-items: center;          /* vertically center children */
  justify-content: center;      /* optional: center horizontally */
  padding: 2rem;                /* some breathing room */
  box-sizing: border-box;
}

.card-row {
  display: flex;
  flex-wrap: wrap;             
  gap: 2rem;
  justify-content: center;     /* centers cards horizontally */
  align-items: center;         /* centers cards vertically within the row */
  max-width: 1200px;
  margin: 3rem auto;           /* centers the whole row block */
  padding: 0 1rem;
  min-height: 60vh;            /* optional: pushes row toward vertical middle of screen */
}

.card {
  flex: 1 1 300px;             /* minimum width of 300px, flexible growth */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;           /* crops nicely */
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

:root {
    --card-bg: #ffffff;
    --card-fg: #111111;
    --card-radius: 16px;
    --card-pad: 1.25rem 1.25rem;
    --card-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
    --card-border: 1px solid rgba(17,17,17,0.06);
    --card-maxw: 70ch;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --card-bg: #161618;
      --card-fg: #e9e9ea;
      --card-border: 1px solid rgba(255,255,255,0.08);
      --card-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 3px 12px rgba(0,0,0,0.35);
    }
  }

  .text-card {
    background: var(--card-bg);
    color: var(--card-fg);
    border-radius: var(--card-radius);
    padding: var(--card-pad);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    max-width: var(--card-maxw);
    line-height: 1.65;
    margin: clamp(1rem, 3vw, 2rem) auto;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .text-card:hover {
    transform: translateY(-2px);
  }

  @media (prefers-reduced-motion: reduce) {
    .text-card { transition: none; }
    .text-card:hover { transform: none; }
  }

  .text-card h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: 0.2px;
  }

  .text-card p { margin: 0.5rem 0; }

.text-card a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 2px;
  }

.centered-card { text-align: center; }

.centered-main .text-card {
  margin: clamp(1.5rem, 5vw, 3rem) auto;
}

.rfp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  width: 100%;
}

.rfp-grid .text-card {
  flex: 1 1 clamp(280px, 36vw, 380px);
  margin: 0;
  max-width: 420px;
}

.about-hero-image {
  width: min(100%, 760px);
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: clamp(0.25rem, 1.5vw, 1rem) auto 0;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.about-main .text-card {
  margin: clamp(0.5rem, 1.5vw, 1rem) auto clamp(1.5rem, 5vw, 3rem);
}

.contact-card {
  width: min(100%, 720px);
  text-align: center;
}

.contact-address {
  margin: clamp(0.75rem, 2vw, 1.25rem) 0;
  font-style: normal;
  line-height: 1.6;
}

.map-frame {
  width: 100%;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

main { flex: 1; }

.centered-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1.5rem;
  gap: clamp(1rem, 3vw, 2rem);
}

/* -------- Navbar -------- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #222; color: #fff; padding: 1rem; flex-wrap: wrap;
}
.logo { font-size: 1.5rem; font-weight: 700; }
.nav-links { list-style: none; display: flex; gap: 1rem; }
.nav-links a {
  color: #fff; text-decoration: none; padding: .5rem; border-radius: 6px; transition: background .2s;
}
.nav-links a:hover { background: #444; }
.nav-links a.nav-link--shop {
  background: #2b8a3e;
  color: #fff;
}
.nav-links a.nav-link--shop:hover {
  background: #256f33;
}
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 0.75rem;
  }
  .nav-links.nav-links--open { display: flex; }
  .nav-links li { text-align: center; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 1rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #eee; /* optional */
}

.row.no-divider {
  border-bottom: none;
}

.row:nth-child(even) {
  flex-direction: row-reverse; /* flips text/image on alternating rows */
}

.text, .image {
  flex: 1 1 320px; /* flexible columns */
}

.text {
  font-size: 1rem;
  line-height: 1.6;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* -------- Footer -------- */
footer {
  text-align: center;
  padding: 1.25rem;
  background: #f4f4f4;
  color: #555;
  margin-top: auto;
}
