/*
 * Style sheet for Print.Net website
 *
 * Colours are inspired by the Print.Net logo: deep blues, rich reds and warm oranges.
 * The layout uses a simple flexbox/grid structure for responsive behaviour.
 */

/* CSS Variables for easy theming */
:root {
  --color-dark-blue: #0a3d62;
  --color-medium-blue: #1e5aa8;
  --color-light-blue: #00a8e8;
  --color-red: #d90429;
  --color-orange: #f48c06;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-grey: #e9ecef;
  --color-text: #2c3e50;
  --transition-fast: 0.3s ease;
  --max-width: 1200px;
  --border-radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  font-size: 16px;
}

/* Global resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 100%);
  position: relative;
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header & Navigation */
header {
  background: var(--color-orange);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-white);
}

.brand .logo {
  height: 40px;
  width: auto;
}

.navbar {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-light-blue);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  transition: transform var(--transition-fast);
}

/* Hero Section */
.hero {
  background: url('images/Hero.png') top center/cover no-repeat;
  min-height: 110vh;
  color: var(--color-white);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  width: min(1400px, 95%);
  max-width: 1400px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

  @media (max-width: 768px) {
    .hero {
      min-height: 95vh;
      padding: 5rem 1rem 3rem;
      background-position: top center;
      background-repeat: no-repeat;
    }

  .hero-buttons {
    flex-direction: column;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(var(--color-orange), transparent 70%);
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(30deg);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 20, 35, 0.8) 0%, rgba(0, 123, 255, 0.45) 100%);
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw + 0.5rem, 1.5rem);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background-color: var(--color-red);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

/* Sections */
section {
  padding: 4rem 0;
}

section:not(.hero) {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 100%);
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

section:not(.hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

section:not(.hero) .container {
  position: relative;
  z-index: 1;
}

section:not(.hero) h2,
section:not(.hero) h3,
section:not(.hero) h4,
section:not(.hero) h5,
section:not(.hero) p,
section:not(.hero) li,
section:not(.hero) label,
section:not(.hero) span,
section:not(.hero) strong {
  color: var(--color-white);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-white);
}

/* Button for the Completed Projects header linking to the full gallery */
.projects-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  font-weight: 700;
}

.projects-button:hover {
  background-color: var(--color-red);
  transform: translateY(-2px);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: transparent;
}

.services .section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-white);
  letter-spacing: 2px;
}

.services .section-description {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  color: var(--color-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: Improve layout for 5 cards */
@media (min-width: 769px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Projects Gallery */
.projects {
  background-color: var(--color-grey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Active navigation link styling */
.nav-link.active {
  color: var(--color-medium-blue);
  font-weight: 700;
}

/* Page hero banner for secondary pages (e.g. gallery) */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 100%);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(var(--color-orange), transparent 70%);
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(20deg);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-orange);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-white);
}

/* About Section */
.about {
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  order: 1;
  text-align: center;
}

.about-image {
  order: 2;
  text-align: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-lead {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.about-body + .about-body {
  margin-top: 1rem;
}

/* What We Do Section */
.what-we-do {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.what-we-do .section-title {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.what-we-do .section-description {
  color: var(--color-white);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: Create 2x2 grid layout */
@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

.product-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-bubble:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.bubble-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.bubble-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bubble-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.bubble-title {
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.product-item {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.product-item:hover {
  background: var(--color-orange);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-hover-preview {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
  min-width: 220px;
  max-width: 90vw;
}

.product-hover-preview img {
  width: 420px;
  height: 280px;
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.product-hover-preview .preview-label {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.product-hover-preview.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-hover-preview {
    padding: 0.6rem;
  }
  .product-hover-preview img {
    width: 320px;
    height: 220px;
  }
}

.bubble-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-orange), var(--color-red), var(--color-light-blue), var(--color-orange));
  border-radius: 25px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: glow-rotate 3s linear infinite;
}

.product-bubble:hover .bubble-glow {
  opacity: 0.6;
}

@keyframes glow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Individual bubble colors */
.signage-bubble:hover {
  background: rgba(255, 140, 0, 0.1);
}

.digital-bubble:hover {
  background: rgba(217, 4, 41, 0.1);
}

.litho-bubble:hover {
  background: rgba(0, 168, 232, 0.1);
}

.specialty-bubble:hover {
  background: rgba(244, 140, 6, 0.1);
}

/* Responsive design for what we do */
@media (max-width: 768px) {
  .what-we-do .section-title {
    font-size: 2.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-bubble {
    min-height: 350px;
    padding: 1.5rem;
  }
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.contact-info {
  font-size: 0.95rem;
  color: var(--color-white);
}

.contact-info ul {
  margin-top: 1rem;
}

.contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
}

.contact-info li i {
  color: var(--color-orange);
  font-size: 1rem;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--color-white);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-light-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

.contact-form button {
  margin-top: 1rem;
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.footer-column {
  text-align: left;
}

.footer-column h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  color: var(--color-white);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--color-light-blue);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.75;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 12, 21, 0.95);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90%;
  z-index: 1100;
}

.cookie-banner button {
  background: var(--color-orange);
  border: none;
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cookie-banner a {
  color: var(--color-light-blue);
  text-decoration: underline;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-policy {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
}

.cookie-policy .section-description {
  color: rgba(255, 255, 255, 0.85);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--color-white);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--color-light-blue);
}

/* Responsive layout */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition-fast);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .nav-list .nav-link {
    color: var(--color-dark-blue);
  }
  .nav-list.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
  /* Do not hide the navbar itself on small screens. The nav-list will overlay instead. */
  /* .navbar {
    display: none;
  } */
}

/* Price Calculator Section */
.calculator {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-guidance {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}

.calculator-guidance h2 {
  margin-top: 0;
}

.calculator-guidance ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.calculator-guidance li + li {
  margin-top: 0.75rem;
}

.calculator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-image: url('./images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.calculator .container {
  position: relative;
  z-index: 2;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.calculator-inputs {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}

.calculator-inputs h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--color-white);
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-light-blue);
}

.calculator-results {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}

.vat-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.calculator-results h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.result-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.material-options h4 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.material-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-light-blue);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.material-card h5 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.material-costs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.material-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.material-actions .qty-input {
  width: 70px;
  max-width: 80px;
}

.qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .material-actions {
    flex-wrap: wrap;
  }

  .material-actions .btn-cart {
    width: 100%;
  }
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-grey);
}

.cost-row.total {
  border-top: 2px solid var(--color-medium-blue);
  border-bottom: 2px solid var(--color-medium-blue);
  font-weight: 600;
  margin-top: 0.5rem;
}

.cost-row.selling {
  background: var(--color-light-blue);
  color: var(--color-white);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  margin-top: 0.5rem;
}

/* Responsive design for calculator */
@media (max-width: 768px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.btn-cart {
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  margin-top: 1rem;
  width: 100%;
}

.btn-cart:hover {
  background: #e07b00;
}

/* Shopping Cart Section */
.cart {
  padding: 2rem 0;
  background: transparent;
}

.cart-items {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.empty-cart {
  text-align: center;
  color: var(--color-white);
  font-style: italic;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.cart-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.cart-item-details h4 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cart-item-specs {
  color: var(--color-white);
  font-size: 0.8rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-orange);
  font-size: 1rem;
}

.remove-item {
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 1rem;
}

.remove-item:hover {
  background: #b8031f;
}

.cart-total {
  text-align: right;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Checkout Section */
.checkout-section {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.checkout-section h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-white);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--color-grey);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-medium-blue);
}

.form-group small {
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.85rem;
}

.checkout-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.checkout-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Business cards & flyers pricing */
.price-list {
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 0;
  overflow: hidden;
}

.pricing-accordion summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.pricing-accordion summary::-webkit-details-marker {
  display: none;
}

.pricing-accordion summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--color-white);
  transition: transform var(--transition-fast);
}

.pricing-accordion[open] summary::after {
  content: '-';
}

.pricing-panel {
  padding: 0 1rem 0.9rem;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.45rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-table th {
  background: rgba(0, 168, 232, 0.2);
  font-weight: 600;
}

.pricing-table .btn-cart {
  width: auto;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  margin: 0.2rem 0.2rem 0 0;
  white-space: nowrap;
}

.add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qty-input {
  width: 70px;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 0.85rem;
}

@media (min-width: 769px) {
  .pricing-panel {
    overflow-x: visible;
  }

  .pricing-table {
    table-layout: fixed;
    font-size: 0.85rem;
  }

  .pricing-table th,
  .pricing-table td {
    word-wrap: break-word;
  }

  .pricing-table .btn-cart {
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
    white-space: normal;
  }

  .add-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .qty-input {
    width: 56px;
  }
}

.qty-input:focus {
  outline: none;
  border-color: var(--color-light-blue);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-accordion summary {
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
  }

  .pricing-panel {
    padding: 0 0.9rem 0.8rem;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tr {
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .pricing-table td {
    border-bottom: none;
    padding: 0.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .pricing-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }

  .add-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .pricing-table .btn-cart {
    width: 100%;
  }

  .qty-input {
    width: 64px;
    max-width: 64px;
    padding: 0.3rem 0.35rem;
    font-size: 0.8rem;
  }
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.price-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive design for cart and checkout */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkout-buttons {
    flex-direction: column;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item-price {
    margin-top: 1rem;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition-fast);
  background: none;
  border: none;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--color-orange);
  transform: scale(1.1);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

#lightbox-image:hover {
  transform: scale(1.05);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-orange);
  transform: scale(1.1);
}

.lightbox-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-item {
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  transition: var(--transition-fast);
}

.gallery-item:hover img {
  opacity: 0.9;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: -30px;
    font-size: 1.5rem;
  }

  .lightbox-btn {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .lightbox-content {
    max-width: 98%;
    max-height: 92%;
  }

  #lightbox-image {
    max-height: 88vh;
  }
}
