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

body {
  font-family: 'Outfit', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #f8f6f3 0%, #ebe8e4 100%);
  color: #1a1a1a;
  padding: 2rem;
  text-align: center;
}

nav {
  width: 100%;
  max-width: 980px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav a {
  color: #424245;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 1.5rem;
}

nav a:hover {
  color: #2d6a4f;
  text-decoration: underline;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
}

/* Home page */
main .card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  max-width: 28rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

main h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-top: 0.25rem;
}

.loader {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1.5rem auto 0;
  border: 3px solid rgba(45, 106, 79, 0.2);
  border-top-color: #2d6a4f;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Products page */
.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.product-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
}

.product-jump a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d6a4f;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.product-jump a:hover {
  background: rgba(45, 106, 79, 0.18);
}

.product-section {
  width: 100%;
  margin-bottom: 2.5rem;
  scroll-margin-top: 1rem;
}

.product-section-panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 0.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.product-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(45, 106, 79, 0.35);
  text-align: left;
}

.product-section-panel .product:last-child {
  margin-bottom: 1.5rem;
}

.product {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.product-image {
  flex: 0 0 260px;
  width: 260px;
  height: 220px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e8e8e8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
  cursor: zoom-in;
}

.product-image:hover img {
  transform: scale(1.12);
}

/* Full-size image lightbox (products page) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(95vw, 1400px);
  max-height: 92vh;
}

.lightbox-img {
  max-width: min(95vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  transform: translate(0, -100%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-close:hover {
  background: #f0f0f0;
}

@media (max-width: 600px) {
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
  }
}

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

.product-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product-info .price {
  font-size: 1rem;
  font-weight: 600;
  color: #2d6a4f;
  margin-bottom: 0.75rem;
}

.product-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.product-info p + p {
  margin-top: 0.75rem;
}

.product-info h3.subheading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.25rem 0 0.4rem;
  letter-spacing: 0.02em;
}

.product-info ul.detail-list {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
  padding-left: 1.2rem;
  margin-top: 0.25rem;
}

.product-info ul.detail-list li {
  margin-bottom: 0.35rem;
}

/* Contact page */
.contact-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 56rem;
  flex-wrap: wrap;
}

.contact-row .card {
  flex: 1;
  min-width: 18rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: left;
}

.contact-row .card h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  font-size: 1rem;
  color: #424245;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.contact-list li strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: #2d6a4f;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.map-section {
  flex: 1;
  min-width: 18rem;
  display: flex;
  flex-direction: column;
}

.map-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
  color: #1a1a1a;
}

#map {
  flex: 1;
  min-height: 220px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e8e8e8;
}

#map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-address {
  font-size: 0.75rem;
  color: #6e6e73;
  margin-top: 0.5rem;
  text-align: left;
}

.map-open-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #2d6a4f;
  text-decoration: none;
}

.map-open-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  width: 100%;
  max-width: 980px;
  margin-top: 3rem;
  padding: 2rem 1.5rem 1rem;
  background: #f5f5f7;
  border-radius: 0.75rem 0.75rem 0 0;
  text-align: left;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  font-size: 0.875rem;
  color: #424245;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-section a,
.footer-links a {
  color: #424245;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-section a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-copyright {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #d2d2d7;
  font-size: 0.75rem;
  color: #6e6e73;
}

/* Products hub (choose category) */
main.browse-main {
  justify-content: flex-start;
  align-items: stretch;
}

.hub-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.75rem;
  width: 100%;
}

.browse-main .hub-intro {
  text-align: left;
}

.category-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 720px;
}

.category-card {
  display: block;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.category-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.category-card p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.45;
}

.category-card-arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d6a4f;
}

/* Category browse: grid of product thumbnails */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.product-tile {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 0;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-tile:focus {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}

.product-tile-image {
  height: 180px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-tile-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-tile:hover .product-tile-image img {
  transform: scale(1.06);
}

.product-tile-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 1rem 0.75rem;
  line-height: 1.35;
}

/* Full product detail modal */
.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-detail-modal.is-open {
  display: flex;
}

.product-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.product-detail-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-detail-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-detail-close:hover {
  background: #f0f0f0;
}

.product-detail-scroll {
  overflow-y: auto;
  max-height: 90vh;
  text-align: left;
}

.product-detail-image-wrap {
  background: #f0f0f0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-detail-image-wrap img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-detail-text {
  padding: 1.5rem 1.5rem 1.75rem;
}

.product-detail-text h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  padding-right: 2.5rem;
}

.product-detail-text .price {
  font-size: 1rem;
  font-weight: 600;
  color: #2d6a4f;
  margin-bottom: 1rem;
}

.product-detail-text p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.product-detail-text p:last-child {
  margin-bottom: 0;
}

.product-detail-text .subheading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.15rem 0 0.4rem;
}

.product-detail-text .detail-list {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-detail-text .detail-list li {
  margin-bottom: 0.35rem;
}

.back-to-products {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #2d6a4f;
  text-decoration: none;
  align-self: flex-start;
}

.back-to-products:hover {
  text-decoration: underline;
}

/* Request quote (product modal) — sits under title + price, above description */
.product-detail-actions {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.btn-request-quote {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #2d6a4f;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-request-quote:hover {
  background: #246348;
}

.btn-request-quote:active {
  transform: scale(0.99);
}

.request-quote-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #6e6e73;
  line-height: 1.4;
  text-align: center;
}

/* Quote request modal */
.quote-request-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quote-request-modal.is-open {
  display: flex;
}

.quote-request-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.quote-request-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.quote-request-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.quote-request-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.quote-request-inner {
  padding: 1.5rem 1.5rem 1.65rem;
  overflow-y: auto;
  max-height: 92vh;
  text-align: left;
}

.quote-modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
  color: #1a1a1a;
}

.quote-product-ref {
  font-size: 0.8125rem;
  color: #2d6a4f;
  font-weight: 600;
  margin-bottom: 1.15rem;
  line-height: 1.4;
}

.quote-field {
  margin-bottom: 1rem;
}

.quote-field label,
.quote-legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

.quote-field .req {
  color: #c1121f;
  font-weight: 600;
}

.quote-field input[type='text'],
.quote-field input[type='email'],
.quote-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.4rem;
  background: #fafafa;
}

.quote-field input[type='text']:focus,
.quote-field input[type='email']:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: #2d6a4f;
  background: #fff;
}

.quote-field textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.5;
}

.quote-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.quote-fieldset .quote-legend {
  padding: 0;
  margin-bottom: 0.5rem;
}

.quote-radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 400px) {
  .quote-radio-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
}

.quote-radio-label {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.quote-radio-label input {
  width: auto;
  accent-color: #2d6a4f;
}

.quote-form-status {
  font-size: 0.8125rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.45;
  min-height: 1.2em;
}

.quote-form-status.is-success {
  color: #2d6a4f;
  font-weight: 500;
}

.quote-form-status.is-error {
  color: #9d0208;
}

.btn-quote-submit {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #2d6a4f;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.btn-quote-submit:hover:not(:disabled) {
  background: #246348;
}

.btn-quote-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
