/* South Valley Specialties — svsco.com */
:root {
  --navy: #1a2a42;
  --teal: #2b7a8c;
  --light-teal: #e6f3f5;
  --gray: #f4f5f7;
  --text: #333333;
  --white: #ffffff;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 4px solid var(--teal);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

header a {
  color: var(--white);
  text-decoration: none;
}

.contact-top {
  font-size: 0.9rem;
  text-align: right;
}

.contact-top a:hover {
  color: var(--teal);
}

/* Navigation */
nav {
  background: var(--teal);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  transition: background 0.2s;
}

nav a:hover,
nav a.active {
  background: rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a6e 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-logo {
  max-width: 520px;
  width: 92%;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  display: inline-block;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #236b7a;
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 3rem 0;
}

section.alt {
  background: var(--gray);
}

h2 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

h3 {
  color: var(--teal);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-top: 3px solid var(--teal);
}

.card h3 {
  margin-top: 0;
}

/* Lists */
ul.bullets {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

ul.bullets li {
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-info {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--navy);
}

.map-placeholder {
  background: var(--light-teal);
  border: 2px dashed var(--teal);
  padding: 2rem;
  text-align: center;
  border-radius: 6px;
  color: var(--navy);
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

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

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
}

/* Customer grid */
.customer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.customer-grid span {
  background: var(--gray);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  background: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0 2rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  .contact-top {
    text-align: center;
    margin-top: 0.5rem;
  }

  nav ul {
    flex-direction: column;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}
