/*
  High End Painting LLC – custom stylesheet
  This file defines the visual appearance of the web site. A light, modern
  palette inspired by the company's logo uses golden accents and dark
  typography. The layout is responsive and mobile‑friendly.
*/

:root {
  --color-primary: #F5B400; /* golden accent inspired by the logo */
  --color-secondary: #2F2F2F; /* dark charcoal for text */
  --color-light: #FFFFFF; /* white for backgrounds */
  --color-background: #F8F9FA; /* light grey background */
  --border-radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-secondary);
  background-color: var(--color-background);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Utility container class to limit width and center content */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Header styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

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

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-primary);
}

.nav a {
  margin: 0 0.75rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #d69e00;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Hero section */
.hero {
  position: relative;
  height: 65vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--color-light);
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Services section */
.services {
  padding: 4rem 0;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.service-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.3rem;
}

.card p {
  padding: 0 1rem 1.5rem;
  flex-grow: 1;
}

/* Estimate section */
.estimate {
  background-color: var(--color-light);
  padding: 4rem 0;
}

.estimate h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}

.estimate-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .estimate-container {
    flex-direction: row;
  }
}

.estimate-group {
  flex: 1;
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.estimate-group h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

.grid label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
}

.grid input,
.grid select {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.estimate-results {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.estimate-results p {
  margin: 0.2rem 0;
  font-weight: 600;
}

.estimate-results span {
  font-weight: 600;
  color: var(--color-primary);
}

.estimate-results small {
  display: block;
  margin-top: 0.8rem;
  color: #777;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Reviews section */
.reviews {
  padding: 4rem 0;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.reviews-list {
  margin-bottom: 2rem;
}

.review-item {
  background-color: var(--color-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.review-item .review-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.review-item .review-stars {
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.review-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.review-grid label {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-form input,
.review-form textarea,
.review-form select {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.review-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Contact section */
.contact {
  background-color: var(--color-light);
  padding: 4rem 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-content {
    flex-direction: row;
  }
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-info {
  flex: 1;
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info p {
  margin: 0.3rem 0;
}

.contact-info .contact-qr {
  margin-top: 1rem;
  width: 180px;
  height: 180px;
}

.contact-info .qr-caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}

/* Footer */
.footer {
  background-color: var(--color-light);
  border-top: 1px solid #eee;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* Responsive navigation for small screens (hide nav links, keep CTA) */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav {
    display: none;
  }
  .header-cta {
    align-self: stretch;
    text-align: center;
  }
}

/* === Gallery === */
.gallery { padding: 60px 0; background: #fafafa; }
.gallery h2 { margin-bottom: 10px; }
.gallery .muted { color: #666; margin-bottom: 20px; }
.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 12px; 
}
.gallery-grid a { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* Lightbox */
.lightbox { 
  position: fixed; inset: 0; background: rgba(0,0,0,.85); 
  display: none; align-items: center; justify-content: center; z-index: 1000; 
}
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox.show { display: flex; }
.lightbox-close { 
  position: absolute; top: 14px; right: 18px; 
  font-size: 28px; line-height: 1; 
  background: #fff; border: none; border-radius: 4px; padding: 4px 10px; cursor: pointer;
}
@media (min-width: 768px) {
  .gallery-grid img { height: 200px; }
}


/* Gallery filters & pagination */
.gallery-filters { display:flex; flex-wrap:wrap; gap:8px; margin: 10px 0 18px; }
.gallery-filters button { border:1px solid #ddd; background:#fff; padding:6px 12px; border-radius:20px; cursor:pointer; }
.gallery-filters button.active { background:#111; color:#fff; border-color:#111; }
.gallery-pagination { display:flex; gap:8px; justify-content:center; margin-top:16px; }
.gallery-pagination button { border:1px solid #ddd; background:#fff; padding:6px 10px; border-radius:6px; cursor:pointer; }
.gallery-pagination button.active { background:#111; color:#fff; border-color:#111; }


/* === Slider Gallery === */
.slider { position: relative; overflow: hidden; }
.slides { 
  display: flex; gap: 10px; padding: 6px; 
  overflow-x: auto; scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { 
  flex: 0 0 85%; max-width: 85%; 
  scroll-snap-align: start; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); background: #fff;
}
@media (min-width: 768px) { .slide { flex-basis: 48%; max-width: 48%; } }
@media (min-width: 1100px) { .slide { flex-basis: 32%; max-width: 32%; } }
.slide img { width: 100%; height: 240px; object-fit: cover; display: block; }
.slide .cap { padding: 8px 10px; font-size: 14px; color:#555; }

.slider .nav { 
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: 1px solid #ddd; 
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.slider .nav.prev { left: 6px; } .slider .nav.next { right: 6px; }

.slider-dots { display:flex; gap:6px; justify-content:center; margin-top:8px; }
.slider-dots button { width:8px; height:8px; border-radius:50%; border:none; background:#ddd; }
.slider-dots button.active { background:#111; }

/* Lightbox (already defined above, keep) */


/* === Simple Album (horizontal scroll) === */
.album-scroll { 
  display: flex; gap: 10px; overflow-x: auto; 
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; 
  padding: 6px 2px 10px;
}
.album-scroll::-webkit-scrollbar { display: none; }
.album-item { 
  flex: 0 0 86%; max-width: 86%; scroll-snap-align: start; 
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
@media (min-width: 768px){ .album-item { flex-basis: 48%; max-width:48%; } }
@media (min-width: 1100px){ .album-item { flex-basis: 32%; max-width:32%; } }
.album-item img { width: 100%; height: 240px; object-fit: cover; display: block; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); 
  display: none; align-items: center; justify-content: center; z-index: 1000; }
.lb.show { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; }
.lb-close { position: absolute; top: 12px; right: 14px; 
  background: #fff; border: none; border-radius: 6px; padding: 4px 10px; 
  font-size: 22px; cursor: pointer; }


/* === Album thumbnail size fix === */
.album-item img { height: 180px; }
@media (min-width: 768px){ .album-item img { height: 220px; } }
@media (min-width: 1100px){ .album-item img { height: 240px; } }


/* === Compact Slider Album (stable layout) === */
.gallery .container { max-width: 1100px; margin: 0 auto; }
.slider { position: relative; overflow: hidden; }
.slides { 
  display: flex; gap: 8px; padding: 4px; 
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { 
  flex: 0 0 58%; max-width: 58%;  /* show ~1.7 slides on mobile */
  scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
@media (min-width: 768px){ .slide { flex-basis: 40%; max-width: 40%; } }
@media (min-width: 1100px){ .slide { flex-basis: 28%; max-width: 28%; } }
.slide img { width: 100%; height: 140px; object-fit: cover; display: block; } /* small thumbs */
@media (min-width: 768px){ .slide img { height: 160px; } }
@media (min-width: 1100px){ .slide img { height: 180px; } }

.slider .nav { 
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid #ddd;
  display:flex; align-items:center; justify-content:center; font-size: 18px; cursor: pointer;
}
.slider .nav.prev { left: 6px; } .slider .nav.next { right: 6px; }

.slider-dots { display:flex; gap:6px; justify-content:center; margin: 6px 0 0; }
.slider-dots button { width:6px; height:6px; border-radius:50%; border:none; background:#ddd; }
.slider-dots button.active { background:#111; }

/* Lightbox overlay (prevents page reflow) */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center; z-index: 1000; }
.lb.show { display:flex; }
.lb img { max-width: 92vw; max-height: 88vh; }
.lb-close { position:absolute; top:12px; right:14px; background:#fff; border:none; border-radius:6px; padding:4px 10px; font-size:22px; cursor:pointer; }

/* Prevent body scroll when lightbox is open */
body.no-scroll { overflow: hidden; touch-action: none; }
