/* styles.css */


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #fff;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

header {
  background-color: #5a2ca0;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

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

.logo {
  width: 80px;
  height: auto;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

header .tagline {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  font-style: italic;
}

nav {
  background-color: #f1c40f;
  padding: 1rem;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  margin: 0 1rem;
  font-size: 1.1rem;
}

nav a:hover {
  text-decoration: underline;
}

section {
  padding: 2rem;
}

.project {
  margin-bottom: 2rem;
}

.project h2 {
  color: #5a2ca0;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.project p {
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #eee;
  font-size: 0.9rem;
  color: #444;
  border-radius: 16px 16px 0 0;
}

/* === Mobile Optimizations === */
@media (max-width: 600px) {
  body {
    padding: 0 1rem;
  }

  header img {
    width: 60px;
    height: auto;
  }

  .form-wrapper {
    padding: 1rem;
    margin: 1rem auto;
  }

  input,
  textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }

  button,
  input[type="submit"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  h1,
  h2,
  h3 {
    font-size: 1.3em;
  }
}
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-flex h1 {
  font-size: 2rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: inline-block;
  max-width: 100%;
}

  .logo {
    max-width: 100px;         /* Resize logo slightly on mobile */
    margin-bottom: 10px;
  }
}
/* === Services Section Card Layout === */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #f9f9f9;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

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

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #5a2ca0;
}

.service-card h3 i {
  margin-right: 8px;
}

.service-card p,
.service-card li {
  color: #333;
  font-size: 0.95rem;
}

.service-card ul.material-list {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.service-card ul.material-list li {
  margin-bottom: 0.4rem;
}
/* --- Shop / product styles --- */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }

.shop-hero { text-align: center; margin-bottom: 1rem; }
.shop-hero h2 { margin: 0 0 .25rem; }

.shop-filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: .75rem 0 1.25rem; }
.chip { border: 1px solid #ddd; background: #fff; padding: .4rem .75rem; border-radius: 999px; cursor: pointer; }
.chip.active { background: #5a2ca0; color: #fff; border-color: transparent; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; transition: transform .15s ease; }
.product-card:hover { transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.product-link { text-decoration: none; color: inherit; }
.product-body { padding: .9rem; }
.product-body h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.price { font-weight: 700; color: #5a2ca0; }
.cta { font-weight: 600; font-size: .9rem; }

.note-shipping { text-align: center; color: #666; margin-top: 1rem; }

/* Product page layout */
.product-page .backlink { display: inline-block; margin: .25rem 0 1rem; text-decoration: none; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.product-gallery img { width: 100%; border-radius: 12px; margin-bottom: .75rem; border: 1px solid #eee; }
.product-info h2 { margin-top: 0; }
.product-price { font-weight: 700; color: #5a2ca0; margin: .25rem 0 1rem; }
.bullet { padding-left: 1.1rem; }
.bullet li { margin: .25rem 0; }

.button { display: inline-block; padding: .65rem 1rem; border-radius: 10px; text-decoration: none; }
.button.primary { background: #5a2ca0; color: #fff; }
.button.ghost { border: 1px solid #ccc; color: #333; background: #fff; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
}
/* === Unified price styling (overrides earlier rules) === */
.price,
.product-price {
  font-weight: 700;
  color: #5a2ca0;
  font-size: 1.12em;   /* slightly larger so prices pop */
  margin: .25rem 0 1rem;
}
/* Ensure services lay out in a responsive grid */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Make the printing card span the full row on tablets/desktops */
@media (min-width: 768px) {
  .service-card--wide {
    grid-column: 1 / -1;
  }
}

/* Let the video fill the wider card */
.service-card--wide video {
  width: 100%;
  height: auto;
  max-height: none;
}
.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}
/* --- Gutter wedges: bottom gallery sizing --- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.gallery-grid img{
  width: 100%;
  height: 240px;           /* keeps a consistent tile height */
  object-fit: cover;       /* crops edges instead of squishing */
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
@media (min-width: 900px){
  .gallery-grid img{ height: 280px; }
}
/* --- Hover zoom for the Gutter Wedges page --- */
/* Cards row (sizes & options) */
.cards-grid img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
  will-change: transform;
}
.cards-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 1;
}

/* Project Gallery row */
.gallery-grid img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
  will-change: transform;
}
.gallery-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 1;
}

/* Keep layout steady on small screens */
@media (max-width: 640px) {
  .cards-grid img:hover,
  .gallery-grid img:hover {
    transform: scale(1.03);
  }
}
/* Fix nav bar list styling */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.main-nav li {
  display: inline;
}

.main-nav a {
  text-decoration: none;
  font-weight: bold;
  color: #000;
}
/* Keep product images proportional and not huge */
.product-gallery img {
  width: 100%;
  max-width: 600px;   /* adjust up/down if you want larger/smaller */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* If you ever want to opt-out an image, add class="no-zoom" */
.no-zoom:hover { transform: none !important; box-shadow: none !important; }
/* ===== Product detail layout: image LEFT, info RIGHT ===== */
.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Image sizing (no stretching) */
.product-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Optional: keep the text column tidy */
.product-info {
  max-width: 680px;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-info {
    max-width: 720px;
  }
}
