/* ============================================================
   MID WALES INFLATABLES & CORPORATE FUN — style.css
   Palette: sky blue, hot pink, golden yellow, royal blue, green
   Type: Fredoka One (display) + Nunito (body)
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --pink:        #E8197D;
  --pink-dark:   #c2146a;
  --blue:        #1A4FC4;
  --blue-light:  #3a6fe8;
  --gold:        #F5A623;
  --gold-dark:   #d4891a;
  --sky:         #c8e8f5;
  --white:       #ffffff;
  --off-white:   #f0f8ff;
  --text-dark:   #1a1a2e;
  --text-mid:    #3a3a5c;
  --gap:         1.5rem;
  --radius:      1rem;
  --shadow-card: 0 4px 18px rgba(0,0,0,0.12);
  --shadow-hover:0 8px 30px rgba(0,0,0,0.18);
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== FULL-PAGE BACKGROUND =====
   contain = shows the full illustration at its natural proportions
   repeat-y = tiles it vertically so every section is covered
   center top = aligns sky at the very top on first tile              */
html {
  scroll-behavior: smooth;
  background-image: url('images/background.png');
  background-repeat: repeat-y;
  background-size: contain;
  background-position: center top;
  background-attachment: scroll;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  width: min(1200px, 95%);
  margin-inline: auto;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 3px solid var(--gold);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.header-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.header-services li {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.logo-link { display: block; }

.logo {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.04) rotate(-1deg); }

.header-coverage {
  text-align: right;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

.header-coverage .badge {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.04em;
}

.fb-link {
  display: inline-block;
  margin-top: 0.5rem;
  transition: transform 0.2s;
}
.fb-link:hover { transform: scale(1.15); }

/* Contact bar */
.contact-bar {
  background: var(--pink);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 0.6rem 1rem;
}

.contact-bar a {
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.contact-bar a:hover { opacity: 0.85; }

/* ===== SECTION BACKGROUNDS =====
   Semi-transparent so the background illustration shows through    */
.sky-section {
  background: rgba(255, 255, 255, 0.45);
}

.hills-section {
  background: rgba(240, 255, 240, 0.45);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--pink);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

.section-title.light {
  color: var(--white);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

/* ===== PRODUCT SECTIONS ===== */
.product-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.product-grid--center {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 700px;
  margin-inline: auto;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

/* Image wrapper — white background so no colour bleeds through */
.card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ffffff;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* Contain variant — fills box without cropping for awkward-shaped images */
.card-img-wrap.img-contain img {
  object-fit: contain;
}

.product-card:hover .card-img-wrap.img-contain img {
  transform: scale(1.04);
}

/* ===== CARD BODY ===== */
.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.card-body h3 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--blue);
  line-height: 1.3;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--text-mid);
  flex: 1;
}

.price-tag {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  border-top: 2px dashed var(--gold);
}

.price-tag span {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--pink);
}

.price-tag.poa span { color: var(--blue); }

/* ===== TRUST SECTION ===== */
.trust-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.trust-item {
  text-align: center;
  color: var(--white);
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}

.trust-item:hover { background: rgba(255,255,255,0.18); }

.trust-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.trust-item h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.trust-item p {
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.5;
}

.trust-item a { color: var(--gold); font-weight: 700; }

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.contact-intro {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  font-weight: 600;
}

.contact-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 22px rgba(0,0,0,0.28);
}

.phone-btn { background: var(--white); color: var(--pink); }
.email-btn { background: var(--gold);  color: var(--white); }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--blue) 0%, #0f2f80 100%);
  color: var(--white);
  padding: 2rem 0 1rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo {
  width: clamp(80px, 12vw, 120px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.footer-info { flex: 1; min-width: 200px; }

.footer-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-info p  { font-size: 0.88rem; opacity: 0.9; }
.footer-info a  { color: var(--gold); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.footer-links a         { opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover   { opacity: 1; color: var(--gold); }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 1rem;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .header-coverage { grid-column: 2; grid-row: 1; }
  .header-services { grid-column: 1; grid-row: 1; }
  .logo-link       { grid-column: 1 / -1; grid-row: 2; justify-self: center; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column */
@media (max-width: 580px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .header-services,
  .header-coverage { text-align: center; }

  .header-services ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.8rem;
  }

  .logo-link { grid-column: 1; }

  .product-grid { grid-template-columns: 1fr; }
  .trust-grid   { grid-template-columns: 1fr; }

  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo, .product-card, .contact-btn { animation: none; transition: none; }
}
