/*
 * Global styles for the KumaszTo e‑commerce site.
 *
 * Colour palette inspired by the company logo: greens for energy and growth,
 * teal for harmony and calm, and warm gold for accents.  The layout
 * emphasises generous white space and rounded shapes, reflecting the
 * minimalistic example provided by the client.  Throughout the site
 * you will see custom CSS variables to make colour and spacing easy to
 * adjust.  The custom cursor is configured in the ``body`` rule using
 * the frog image provided.
 */

:root {
  /* Updated palette sampled from the provided logo and mascot artwork. */
  --primary-green: #5fb74b;   /* fresh green from the frog body and logo text */
  --secondary-teal: #008bb6;  /* vibrant teal/blue used in the 'To' lettering and accessories */
  --accent-gold: #d4b25f;     /* soft gold for highlights */
  /*
   * A very pale gold used for subtle backgrounds.
   * The previous design relied on a bright, almost neon yellow for many
   * elements which clashed with the minimal aesthetic.  To harmonise the
   * palette and echo the warm beige tones of the inspiration sites, we
   * introduce a pale gold.  It is light enough to keep good contrast
   * while providing a hint of warmth and playfulness suitable for a
   * children‑oriented brand.
   */
  --pale-gold: #f7f3e8;
  --light-bg: #fafafa;        /* light background for sections */
  --dark-text: #2e3d49;       /* dark neutral for text */
  --muted-text: #6b7a86;      /* muted for secondary text */
  --max-width: 1200px;
  --radius: 12px;
  --spacing-lg: 4rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
  --transition: 0.3s ease;
}

/* Reset some basic elements */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: var(--dark-text);
  line-height: 1.6;
  cursor: url('../img/frog_cursor.png') 0 0, auto;
}

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

h1, h2, h3, h4, h5 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  color: var(--primary-green);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin: 0.5rem 0; }
h4 { font-size: 1.2rem; margin: 0.3rem 0; }

p { margin-bottom: 1rem; color: var(--muted-text); }

a {
  color: var(--secondary-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-green);
}

/* Container utility */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation bar */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--dark-text);
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-green);
}

.cart-count {
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  margin-left: 0.3rem;
}

/* Navigation toggle for small screens */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  /* Use a pale gold backdrop on the hero instead of plain light grey.
     This sets a warm and inviting tone right from the start. */
  background: var(--pale-gold);
  overflow: hidden;
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted-text);
}

.hero-decor {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 300px;
  opacity: 0.07;
}

/* An additional frog illustration in the hero.  We position it below
   the call‑to‑action button and constrain its size so it remains
   playful without overwhelming the hero text. */
.hero-img {
  margin: 2rem auto 0;
  height: 140px;
  width: auto;
}

/* Buttons */
.button-primary, .button-secondary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  text-align: center;
  white-space: nowrap;
}

.button-primary {
  background: var(--secondary-teal);
  color: #fff;
}
.button-primary:hover {
  background: var(--primary-green);
}
.button-secondary {
  background: transparent;
  color: var(--secondary-teal);
  border: 2px solid var(--secondary-teal);
}
.button-secondary:hover {
  background: var(--secondary-teal);
  color: #fff;
}
.button-primary.small, .button-secondary.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Section styles */
section {
  padding: var(--spacing-lg) 0;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  align-items: center;
}

/* About preview */
.about-preview {
  background: var(--pale-gold);
}

.about-image img {
  max-width: 350px;
  margin: 0 auto;
}

/* Services overview */
.services-overview {
  background: var(--pale-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.service-card {
  background: #fff;
  padding: var(--spacing-sm);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.service-card .service-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.service-card h3 {
  margin: 0.5rem 0;
}

.link-readmore {
  font-size: 0.9rem;
  color: var(--secondary-teal);
  margin-top: 0.5rem;
  display: inline-block;
}

/* Popular products */
.popular-products {
  background: var(--pale-gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h4 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
  color: var(--dark-text);
}

.product-desc {
  font-size: 0.9rem;
  flex-grow: 1;
}

.product-price {
  font-weight: 600;
  color: var(--primary-green);
  margin: 0.5rem 0;
}

.centered {
  text-align: center;
  margin-top: var(--spacing-md);
}

/* Testimonials */
.testimonials {
  background: var(--pale-gold);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.testimonial .author {
  font-weight: 600;
  color: var(--primary-green);
}

/* Call to action contact */
.cta-contact {
  /* Rework the CTA styling to harmonise with the pale gold palette.
     A soft backdrop improves contrast and feels warmer for children
     and parents. */
  background: var(--pale-gold);
  color: var(--dark-text);
  text-align: center;
  padding: var(--spacing-lg) 0;
}

/* Reset heading and paragraph colours within the CTA */
.cta-content h2 {
  color: var(--primary-green);
}

.cta-content p {
  color: var(--muted-text);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.cta-contact .button-primary {
  /* Use accent gold for the primary call‑to‑action button on a light
     background.  The text is white for better contrast. */
  background: var(--accent-gold);
  color: #fff;
}

.cta-contact .button-primary:hover {
  /* Darken the gold on hover */
  background: #b89947;
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  padding: var(--spacing-lg) 0 0;
  margin-top: var(--spacing-lg);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-links a {
  color: var(--dark-text);
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-newsletter input[type='email'] {
  flex-grow: 1;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.footer-newsletter button {
  background: var(--secondary-teal);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.footer-newsletter button:hover {
  background: var(--primary-green);
}

.footer-newsletter .newsletter-message {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  background: #eaeaea;
  text-align: center;
  padding: 1rem 0;
  margin-top: var(--spacing-md);
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Page hero (used on internal pages) */
.page-hero {
  background: var(--pale-gold);
  text-align: center;
  padding: 5rem 0 3rem;
}

.small-hero h1 {
  font-size: 2rem;
}

.small-hero p {
  color: var(--muted-text);
}

/* Offer page */
.offer-list {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.offer-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.offer-img img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 1rem;
  background: var(--light-bg);
}

.offer-content {
  flex-grow: 1;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-content h3 {
  margin-bottom: 0.5rem;
}

.offer-content p {
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Team section */
.team {
  background: var(--pale-gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.team-member {
  text-align: center;
  background: #fff;
  padding: var(--spacing-sm);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.team-member img {
  height: 120px;
  margin: 0 auto 0.8rem;
}

.team-member h3 {
  margin: 0.5rem 0;
  color: var(--primary-green);
}

.team-member p {
  font-size: 0.9rem;
}

/* Guides section: introduces the friendly frog mascots for different age groups */
.guides {
  background: var(--pale-gold);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.guides-intro {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted-text);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.guide-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card img {
  height: 100px;
  width: auto;
  margin: 0 auto 1rem;
}

.guide-card h3 {
  margin: 0.5rem 0 0.3rem;
  color: var(--primary-green);
  font-family: 'Playfair Display', serif;
}

.guide-card .age-range {
  font-size: 0.85rem;
  color: var(--secondary-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--muted-text);
  flex-grow: 1;
}

/* Values section */
.values {
  background: var(--pale-gold);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.value {
  background: var(--light-bg);
  padding: var(--spacing-sm);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.value h4 {
  margin-bottom: 0.4rem;
  color: var(--secondary-teal);
}

.value p {
  font-size: 0.9rem;
}

/* Shop and cart */
.shop {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.cart-container {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th, .cart-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
}

.cart-table th {
  background: var(--light-bg);
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.cart-total-row td {
  font-weight: 700;
  color: var(--primary-green);
}

.remove-link {
  color: var(--secondary-teal);
  font-size: 1.4rem;
  line-height: 1;
}

.remove-link:hover {
  color: var(--primary-green);
}

.cart-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cart-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contact page */
.contact-section {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  /* Provide a subtle coloured backdrop for the contact section */
  background: var(--pale-gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin: 0.4rem 0;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form input,
  .contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  /* Apply pale gold tint to inputs and textareas so they blend with the
     overall palette and feel softer on the eye than stark white fields. */
  background: var(--pale-gold);
  color: var(--dark-text);
}

.contact-form button {
  align-self: flex-start;
}

.contact-message {
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: 4px;
}
.contact-message.success {
  background: #e6f5e9;
  color: var(--primary-green);
}

/* Responsive styles */
@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
}