/*
 * Global Trading Export website style sheet
 *
 * The design follows modern, minimalist principles: generous whitespace,
 * a restrained colour palette and clear typography.  You can adjust
 * colours, fonts and breakpoints to match your branding.  The layout
 * uses flexbox for responsive rows and columns.  Media queries adapt
 * certain sections for smaller screens.
 */

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
}

/*
 * Constrain overall page width on larger screens.
 * Wrapping content in a container keeps the layout centred and
 * prevents sections from stretching edge‑to‑edge on very wide
 * monitors.  This sizing is similar to ecommerce sites like
 * Amazon, providing generous whitespace on either side while
 * still adapting down for smaller devices.
 */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

/* Colours */
:root {
  --primary: #2e7d32;       /* dark green accent */
  --primary-light: #4caf50; /* lighter green used for hover */
  --secondary: #8d6e63;     /* earthy brown used for backgrounds */
  --highlight: #cddc39;     /* lime for callouts */
  --light-bg: #ffffff;
  --dark-text: #333333;
}

/* Header */
header {
  background-color: var(--light-bg);
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styling */
.logo {
  /* remove default font styles because logo will now be an image */
  display: flex;
  align-items: center;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li a {
  color: var(--dark-text);
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

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

/* Hero section */
/*
 * Hero banner
 *
 * The hero section appears on the home page.  It uses a generic garden collage
 * assembled from category images (patio furniture, tomatoes and planters) to
 * represent our product range.  The height has been reduced to a more
 * reasonable proportion (50 vh) so that the banner doesn’t dominate large
 * screens while still providing an impactful introduction.  A semi‑transparent
 * overlay darkens the background to improve text contrast.
 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Use the high‑quality banner provided by the user for the home page hero */
  background-image: url('images/homepage_banner.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  /* Reduce hero height further so it sits adjacent to other content */
  height: 30vh;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Slightly lighter overlay to reveal more of the background image */
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: var(--primary-light);
}

/* Category cards */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background-color: var(--light-bg);
}

.category-card {
  background-color: var(--light-bg);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-card h3 {
  font-size: 1.4rem;
  margin: 1rem;
  color: var(--primary);
}

.category-card p {
  flex-grow: 1;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
}

.category-card .btn {
  margin: 1rem;
}

/* Feature section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 3rem 2rem;
  background-color: #f5f5f5;
}

.feature {
  flex: 1 1 200px;
  text-align: center;
  margin: 1rem;
}

.feature h4 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary);
}

/* Featured products */
.featured-products {
  padding: 3rem 2rem;
  background-color: var(--light-bg);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.product-card {
  background-color: var(--light-bg);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 250px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h4 {
  margin: 1rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.product-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.product-card .price {
  margin: 0 1rem 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.product-card .btn {
  margin: 0 1rem 1rem;
}

/* Sections headings */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

section p.section-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #555;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  margin-bottom: 0.75rem;
  color: var(--highlight);
}

.footer-column ul {
  list-style: none;
  line-height: 1.8;
}

.footer-column ul li a {
  color: #ddd;
  transition: color 0.2s ease-in-out;
}

.footer-column ul li a:hover {
  color: var(--highlight);
}

/* Filter buttons on the product selection page
 * Redesigned as a segmented control: the container appears as a pill with
 * subtle border and holds equal-width buttons.  The active and hover
 * states fill with the primary colour while inactive buttons remain
 * transparent.
 */
/*
 * Category navigation on the product selection page
 *
 * The category nav is styled as a row of pill‑shaped buttons with an icon
 * representing each category.  Each segment uses a subtle border and
 * displays its image in a circular thumbnail.  Active and hover states
 * fill with the primary colour and invert the text colour.
 */
.category-nav {
  /*
   * Display category filters as a single segmented control.  The
   * container has a surrounding border and rounded ends.  Each
   * button flexes to share available space evenly.  A dividing
   * border separates the segments.  Active and hover states fill
   * the segment with the primary colour and invert the text colour.
   */
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  border: 1px solid var(--primary);
  border-radius: 40px;
  overflow: hidden;
}

.category-nav button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #fff;
  color: var(--primary);
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Add a separating border between segments */
.category-nav button:not(:last-child) {
  border-right: 1px solid var(--primary);
}

.category-nav button img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.category-nav button:hover,
.category-nav button.active {
  background-color: var(--primary);
  color: #fff;
}

.category-nav button:hover img,
.category-nav button.active img {
  filter: brightness(1.2);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s ease-in-out;
}

/* Colour each social icon to loosely evoke popular social platforms without reproducing their logos */
.social-icons a.facebook { background-color: #3b5998; } /* deep blue */
.social-icons a.instagram { background-color: #E4405F; } /* vibrant pink */
.social-icons a.linkedin { background-color: #0A66C2; } /* professional blue */

.social-icons a:hover {
  opacity: 0.9;
}

/* Modal styling for the quote form on product pages */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
}

.modal-content .close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.modal-content form div {
  margin-bottom: 1rem;
}

.modal-content label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.modal-content textarea {
  resize: vertical;
}

.modal-content button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.modal-content button:hover {
  background-color: var(--primary-light);
}

/* Product page */
.product-page {
  padding: 3rem 2rem;
  background-color: var(--light-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.product-gallery {
  flex: 1 1 400px;
  max-width: 500px;
}

.product-info {
  flex: 1 1 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info h2 {
  font-size: 2rem;
  color: var(--primary);
}

.product-info .price {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 700;
}

.rating {
  color: #f0c14b;
}

.quantity-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-select input[type="number"] {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.product-sections {
  margin-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
form[name="cart_quantity"] .product-sections {margin-bottom:2rem}

.product-sections h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: var(--primary);
}

.product-sections p,
.product-sections ul,
.product-sections table {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-sections ul {
  list-style: disc inside;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  /* add outer border and some spacing to make the table feel less abrupt */
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

/* light background for specification header cells */
.spec-table th {
  background-color: #f5f5f5;
}

.reviews {
  margin-top: 1rem;
}

.review {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
}

/*
 * Generic page banners (about, contact and products pages)
 *
 * These banners reuse the same collage image as the home page to give
 * consistency.  The reduced height (35 vh) keeps the banners from
 * overwhelming the page.  A subtle overlay darkens the background for
 * better text readability.
 */
.about-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  /* Reduced height for secondary page banners to improve proportion */
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Banner background images inserted via <img> tag inside the banner */
.about-banner .banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Very light overlay for secondary banners to reveal the underlying image */
  background: rgba(0, 0, 0, 0.15);
}

.about-banner .banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.about-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-section {
  padding: 3rem 2rem;
  background-color: var(--light-bg);
}

.timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.05rem;
  top: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.fast-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 2rem;
}

.fact {
  flex: 1 1 200px;
  margin: 1rem;
  text-align: center;
}

.fact h3 {
  font-size: 2rem;
  color: var(--primary);
}

.fact p {
  font-size: 0.9rem;
  color: #666;
}

.team {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-member {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
}

.team-member img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
}

.team-member h4 {
  margin-top: 0.75rem;
  color: var(--primary);
}

.values {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}

/* Team strengths list */
.team-strengths {
  margin: 1.5rem 2rem;
  padding-left: 1.5rem;
  list-style: disc;
  line-height: 1.6;
  color: #555;
}

.team-strengths li {
  margin-bottom: 0.5rem;
}

/* Increase spacing before subheadings in About page for better readability */
.about-section h3 {
  margin-top: 2rem;
}

.value {
  flex: 1 1 200px;
  max-width: 250px;
  text-align: center;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.value h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Contact page */
.contact-section {
  padding: 3rem 2rem;
  background-color: var(--light-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-details {
  flex: 1 1 300px;
  max-width: 400px;
}

.contact-form {
  flex: 1 1 300px;
  max-width: 500px;
  width: 100%;
}

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

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
    width: 100%;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.contact-form button:hover {
  background-color: var(--primary-light);
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background-image: url('https://picsum.photos/600/400?random=15');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .categories {
    padding: 2rem 1rem;
  }
  .product-page {
    flex-direction: column;
  }
  .contact-section {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    flex: 1 1 100%;
  }
}

/* -------------------------------------------------------------------- */
/* Product gallery thumbnails and zoom */

/* Layout thumbnails and main image side by side on larger screens */
/* Position thumbnails as a vertical strip on the left of the main image */
/* The row layout for smaller screens is defined in the media query below */
.product-page .product-gallery {
  display: flex;
  gap: 1rem;
  /* Stretch children to the same height so the thumbnail column matches the main image height */
  align-items: stretch;
}

.product-gallery .thumbnails {
  display: flex;
  flex-direction: column;
  /* Distribute thumbnails evenly throughout the container so they align with the main image height */
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0;
  /* Ensure the thumbnail column stretches to match the height of the main image container */
  height: 100%;
}

.product-gallery .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-gallery .thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Selected thumbnail with primary coloured border */
.product-gallery .thumbnails img.selected {
  border: 2px solid var(--primary);
}

.product-gallery .main-image-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.product-gallery .main-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

/* On hover, slightly zoom the main image */
.product-gallery .main-image-container:hover img {
  transform: scale(1.08);
}

/* Adjust the gallery layout on smaller screens: place thumbnails below the main image */
@media screen and (max-width: 768px) {
  .product-gallery {
    flex-direction: column;
  }
  .product-gallery .thumbnails {
    flex-direction: row;
    justify-content: center;
  }
    .product-gallery .thumbnails img {
    width: 65px;
    height: 65px;
  }
}
a.rqstQuoteBtn{
border: 2px solid #000;
    font-size: 14px;
    text-align: center;
    padding: 0.50rem 1rem;
}
/* Add a separating border between segments */
.category-nav button:not(:last-child) {
  border-right: 1px solid var(--primary);
}

.category-nav button img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.category-nav button:hover,
.category-nav button.active {
  background-color: var(--primary);
  color: #fff;
}

.category-nav button:hover img,
.category-nav button.active img {
  filter: brightness(1.2);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s ease-in-out;
}

/* Colour each social icon to loosely evoke popular social platforms without reproducing their logos */
.social-icons a.facebook { background-color: #3b5998; } /* deep blue */
.social-icons a.instagram { background-color: #E4405F; } /* vibrant pink */
.social-icons a.linkedin { background-color: #0A66C2; } /* professional blue */

.social-icons a:hover {
  opacity: 0.9;
}