/* =========================
   BASIC RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: system-ui, sans-serif;
}

/* =========================
   HEADER / BANNER
   ========================= */
.site-header {
  position: relative;
  width: 100%;
  background-image: url("../images/banner-faded.png");
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  aspect-ratio: 8 / 5;
  background-size: cover; 
}

@media (min-width: 901px) {
  .site-header {
    aspect-ratio: 16 / 5; 
    background-size: 100% 100%; 
    max-height: 50vh;
  }
}

/* =========================
   RANGE-SPECIFIC BANNERS
   ========================= */
.banner--frog { background-image: url("../images/frog-banner-faded.jpg"); }
.banner--planet { background-image: url("../images/planet-banner-faded.jpg"); }
.banner--plant { background-image: url("../images/plant-banner-faded.jpg"); }
.banner--plaque { background-image: url("../images/plaque-banner-faded.jpg"); }

/* =========================
   TITLE PILL
   ========================= */
.title-pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.title-pill h1 {
  margin: 0;
  padding: 0.6em 1.4em;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  display: flex;
  gap: 0.35em;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(18px, 3.5vw, 56px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .title-pill h1 {
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 600;
    letter-spacing: 0.14em;
    max-width: 92vw;
    justify-content: center;
  }
}

.title-pill .science { color: #0b3c8c; }
.title-pill .curiosities { color: #0a8a6a; }

/* =========================
   BURGER BUTTON
   ========================= */
.menu-toggle {
  position: absolute;
  top: 0.75%;
  left: 0.5%;
  background: #fef4f2;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background-color: #f6e6e2;
}

/* =========================
   NAVIGATION PANEL
   ========================= */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(254, 244, 242, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;

  /* State: Closed */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  transition: max-height 0.5s ease, opacity 0.35s ease;
}

.site-nav.open {
  max-height: 100vh;
  opacity: 1;
  padding: 60px 0 30px;
  pointer-events: auto;
  overflow-y: auto;
}

.site-nav a, 
.submenu-toggle {
  display: block;
  width: 100%;
  max-width: 40ch;
  padding: 14px 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.site-nav a:hover, 
.submenu-toggle:hover {
  background-color: rgba(11, 60, 140, 0.08);
  color: #0b3c8c;
}

/* =========================
   SUBMENU (RANGES)
   ========================= */

.nav-item {
  position: relative;
  width: 100%;
  max-width: 40ch;
}

/* Base state */
.submenu {
  display: none;
  background: rgba(254, 244, 242, 0.98);
}

/* ----- DESKTOP (HOVER) ----- */
@media (min-width: 901px) {

  .submenu {
    display: none; /* keep hidden by default */
  }

  .has-submenu:hover .submenu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    padding: 10px 0;
    z-index: 20;
  }

  .submenu a {
    text-align: left;
    font-size: 15px;
  }
}

/* ----- MOBILE (TAP TO OPEN) ----- */
.has-submenu.open .submenu {
  display: block;
}

@media (max-width: 900px) {
  .submenu {
    width: 100%;
    padding: 0;
  }

  .submenu a {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* =========================
   WELCOME TEXT
   ========================= */

.welcome {
margin: 24px auto 0;
  text-align: center;

  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Colour styling for the two sentences */
.welcome-blue {
  color: #0b3c8c; /* your company blue */
  display: block;
}

.welcome-green {
  color: #0a8a6a; /* your company green */
  display: block;
}
/* =========================
   GRIDS & CONTENT
   ========================= */
main {
  padding: 10px 20px;
  text-align: center;
}
.range-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.range-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.range-card h2 {
  margin-top: 8px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.range-card.frog h2 {
  color: #0a8a6a; /* frog green */
}

.range-card.planet h2 {
  color: #9b7a5a; /* Saturn brown */
}

.range-card.plant h2 {
  color: #c56a40; /* terracotta */
}

.range-card.plaque h2 {
  color: #0b3c8c; /* company blue */
}

.range-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.range-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.range-image .hover-image {
  opacity: 0;
}

.range-card:hover .hover-image {
  opacity: 1;
}

.range-card:hover img:not(.hover-image) {
  opacity: 0;
}
@media (max-width: 900px) {
  .range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.range-card:hover .range-image {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.range-image {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (min-width: 900px) {
  .range-card h2 {
    margin-top: 6px;
  }
   }
/* =========================
   FROG GRID — CLEAN VERSION
   ========================= */

/* Base grid */
.frog-grid {
  display: grid;
  gap: 14px;
  justify-content: center;
  margin: 0 auto;
}

/* ===== MOBILE (≤ 640px): 2 x 2 + centred 5th ===== */
@media (max-width: 640px) {
  .frog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  /* Centre the 5th square icon */
  .frog-grid .frog-tile:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 48%;
  }

  /* Long “mix” icon full row */
  .frog-grid .frog-tile.wide {
    grid-column: 1 / -1;
    justify-self: center;
    width: 85%;
    margin-top: 18px;
  }

  /* Cross icon its own row */
  .frog-grid .frog-tile.large {
    grid-column: 1 / -1;
    justify-self: center;
    width: 80%;
    margin-top: 18px;
  }
}

/* ===== DESKTOP (≥ 641px): 5-COLUMN LOGIC ===== */
@media (min-width: 641px) {
  .frog-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 900px;
  }

  /* Top row: . a . b . c . */
  .frog-grid .frog-tile:nth-child(1) { grid-column: 2; }
  .frog-grid .frog-tile:nth-child(2) { grid-column: 3; }
  .frog-grid .frog-tile:nth-child(3) { grid-column: 4; }

  /* Second row: . d . e . */
  .frog-grid .frog-tile:nth-child(4) { grid-column: 2; }
  .frog-grid .frog-tile:nth-child(5) { grid-column: 4; }

  /* Long “mix” icon — full width, centred */
  .frog-grid .frog-tile.wide {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 80%;
    margin-top: 18px;
  }

  /* Cross icon — centred, same gap as others */
  .frog-grid .frog-tile.large {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 75%;
    margin-top: 18px;
  }
}

/* Icon proportions */
.frog-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.frog-tile.wide img {
  aspect-ratio: 5 / 1;   /* matches 1920 × 384 */
  object-fit: contain;
}
/* =========================
   PLANET GRID — CLEAN VERSION
   ========================= */

.planet-grid {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 420px;
}

/* ===== MOBILE: stacked (wide → row → tall) ===== */
@media (max-width: 640px) {
  .planet-grid {
    grid-template-columns: 1fr;
  }

  .planet-tile.wide,
  .planet-tile.row {
    width: 100%;
  }

  .planet-tile.tall {
    width: 70%;
    justify-self: center;
  }
}

/* ===== DESKTOP: tall on left, others stacked ===== */
@media (min-width: 900px) {
  .planet-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    align-items: center;
  }

  /* Tall spans two rows */
  .planet-tile.tall {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 85%;
    justify-self: center;
  }

  /* Wide above, row below */
  .planet-tile.wide {
    grid-column: 2 / span 2;
    grid-row: 1;
  }

  .planet-tile.row {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}

/* Icon styling */
.planet-tile img {
  width: 100%;
  border-radius: 18px;}
.ranges {
    margin-top: 10px;
  }
@media (max-width: 640px) {
     /* 2 × 2 icon grid */
  .range-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
/* 3. UNIVERSAL: Title containment */
.title-pill h1 {
  max-width: 92vw;
}
.range-hero {
  width: 100%;
  overflow: hidden;
  background: #fff; /* intentional white frame if needed */
}
.range-hero img {
  width: 70%;
  height: auto;          /* preserves full image */
  display: block;
  
  margin-left: auto;
  margin-right: auto;
   
  max-height: 35vh;      /* prevents it dominating small screens */
  object-fit: contain;  /* ensures NO cropping */
}
/* Plant range only — image is taller */
.range-hero--plants img {
  max-height: 40vh;
   margin-top: -16px;/* reduce vertical dominance */
}
@media (max-width: 640px) {
   .range-hero img {
  width: 100%;
  height: auto;          /* preserves full image */
  display: block;
 max-height: 55vh;      /* prevents it dominating small screens */
  object-fit: contain;  /* ensures NO cropping */
  margin-left: auto;
  margin-right: auto;
}


/* Plant range only — image is taller */
.range-hero--plants img {
  max-height: 40vh;
   margin-top: -16px;/* reduce vertical dominance */
}
}
      
.range-intro {
  margin: 24px auto 0;
  text-align: center;

  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #0b3c8c;
}
@media (max-width: 640px) {
  .range-intro {
    margin-top: 16px;
  }
}
/* Instruction text */
.range-instruction {
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 18px 0 22px;
}

/* Grid container */
.frog-grid {
  display: grid;
  gap: 14px;
  justify-content: center;
}

/* Mobile layout */
@media (max-width: 640px) {
  .frog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
    margin: 0 auto;
  }

  /* Centre the 5th square */
  .frog-grid .frog-tile:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 48%;
  }
}
@media (max-width: 640px) {
  .frog-grid .frog-tile.large {
    grid-column: 1 / -1;   /* full row */
    justify-self: center; /* centred */
    margin-top: 22px;     /* clearer separation */
    width: 65%;
  }
}
/* Desktop layout */
@media (min-width: 641px) {
  .frog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 14px;
  }

  /* Row 1: normal 3 icons */
  .frog-grid .frog-tile:nth-child(1),
  .frog-grid .frog-tile:nth-child(2),
  .frog-grid .frog-tile:nth-child(3) {
    grid-column: span 1;
  }

  /* Row 2: centre the TWO icons visually */
  .frog-grid {
    grid-template-areas:
      "a . b . c"
      ". d . e .";
  }

  .frog-grid .frog-tile:nth-child(1) { grid-area: a; }
  .frog-grid .frog-tile:nth-child(2) { grid-area: b; }
  .frog-grid .frog-tile:nth-child(3) { grid-area: c; }
  .frog-grid .frog-tile:nth-child(4) { grid-area: d; }
  .frog-grid .frog-tile:nth-child(5) { grid-area: e; }

  /* Wide (multi) icon: its own centred row */
  .frog-grid .frog-tile.wide {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 80%;
  }

  /* Large (cross) icon: its own centred row */
  .frog-grid .frog-tile.large {
    grid-column: 3;
    justify-self: center;
    max-width: 90%;
    margin-top: 18px; /* same gap as other rows */
  }
}


/* Tiles */
.frog-tile {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.frog-tile:focus {
  outline: none;
}
.frog-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frog-tile:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* Special sizes */
.frog-tile.wide {
  grid-column: span 2;
}

.frog-tile.large img {
  aspect-ratio: 1 / 1;
  transform: scale(1.15);
}
/* Wide (multi frog) tile */
.frog-tile.wide img {
  aspect-ratio: 5 / 1;   /* matches 1920 × 384 */
  object-fit: contain;  /* no cropping, no squashing */
}
.design-modal,
.frog-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.design-modal.open,
.frog-modal.open {
  display: flex;
}
.design-modal img,
.frog-modal img {
  width: 92%;
  max-width: 720px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Desktop tweak */
@media (min-width: 900px) {
   .design-modal img,
  .frog-modal img {
    max-height: 90vh;
  }
}
.planet-grid {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 420px;
}
.planet-tile {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.planet-tile img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planet-tile:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
@media (max-width: 640px) {
  .planet-tile.wide,
  .planet-tile.row {
    width: 100%;
  }

  .planet-tile.tall {
    width: 70%;
    justify-self: center;
  }
}
@media (min-width: 900px) {
  .planet-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    align-items: center;
  }

  /* Tall spans two rows */
  .planet-tile.tall {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 85%;
    justify-self: center;
  }

  /* Wide & row stacked beside */
  .planet-tile.wide {
    grid-column: 2 / span 2;
    grid-row: 1;
  }

  .planet-tile.row {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}
.design-modal img,
.frog-modal img {
  width: 92%;
  max-width: 720px;
  max-height: 85vh;
  object-fit: contain;
}
.plant-grid {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 420px;
}

.plant-tile {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.plant-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plant-tile:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
@media (max-width: 640px) {
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plant-tile.long {
    grid-column: 1 / -1;
  }

  .plant-tile.long img {
    aspect-ratio: 1920 / 872;
    object-fit: contain;
  }
}
@media (min-width: 900px) {
  .plant-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 960px;
  }

  .plant-tile.long {
    grid-column: 1 / -1;
    justify-self: center;
    width: 85%;
  }

  .plant-tile.long img {
    aspect-ratio: 1920 / 872;
    object-fit: contain;
  }
}
.plaque-grid {
  display: grid;
  place-items: center;
  margin: 0 auto;
  max-width: 320px;
}


.plaque-tile {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.plaque-tile img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plaque-tile:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.blue-plaque-page .welcome-blue {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.4;
   }
.blue-plaque-page .welcome span {
  white-space: normal;
}
.range-card { text-decoration: none; color: inherit; text-align: center; }
.range-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.4s ease;
}
  
.range-card:hover .range-image { transform: translateY(-4px); }
.range-image img { width: 100%; height: 100%; object-fit: cover; }

/* MODALS */
.design-modal, .frog-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.design-modal.open, .frog-modal.open { display: flex; }
.design-modal img, .frog-modal img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

footer { padding: 20px; text-align: center; }
   
   footer,   
.site-footer {
  text-align: center;
}
   
