/* ============================================
   QUALITY DECKS COLORADO SPRINGS
   Brand Colors: Black (#111111), Orange (#E87722), White (#FFFFFF)
   ============================================ */

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

:root {
  --black:   #111111;
  --orange:  #E87722;
  --orange-dark: #C45F0A;
  --white:   #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid:   #CCCCCC;
  --gray-dark:  #555555;
  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--gray-dark); }

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--black);
}
.section-subtitle {
  text-align: center;
  color: var(--gray-dark);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.orange { color: var(--orange); }
.section-divider {
  width: 60px; height: 4px;
  background: var(--orange);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 80px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--gray-mid); }
.section-dark .section-subtitle { color: var(--gray-mid); }
.section-gray { background: var(--gray-light); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-dark:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { text-decoration: underline; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.navbar-logo img {
  height: 56px;
  width: auto;
  max-width: 260px;
}
.navbar-logo-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
  display: none;
}
.navbar-logo-text span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
}
.nav-links .btn-primary {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
}
.nav-links .btn-primary:hover { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--black);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-light); color: var(--orange); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/deck_colorado_mountains.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 3rem 1.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--orange); }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num {
  display: block;
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ---- WHY CHOOSE US ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--orange);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; margin: 0; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { margin-bottom: 0.5rem; color: var(--black); }
.service-card-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.service-card-body a {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-card-body a:hover { color: var(--orange-dark); }

/* ---- PROCESS ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.process-step h4 { color: var(--white); margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--gray-mid); margin: 0; }

/* ---- PORTFOLIO GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,119,34,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}
.review-stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.review-author {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--black);
}
.review-source {
  font-size: 0.78rem;
  color: var(--gray-dark);
}
.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- PARTNERS ---- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: filter var(--transition);
}
.partners-row:hover { filter: grayscale(0%); opacity: 1; }
.partner-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--orange);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--orange); }

/* ---- ESTIMATE FORM ---- */
.form-section { background: var(--gray-light); }
.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.form-info h2 { margin-bottom: 0.5rem; }
.form-info .section-divider { margin: 0.75rem 0 1.5rem; }
.form-info p { margin-bottom: 1rem; }
.form-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-contact-item .icon { font-size: 1.3rem; }
.estimate-form {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.estimate-form h3 {
  margin-bottom: 1.5rem;
  color: var(--black);
  font-size: 1.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-mid);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group.full { grid-column: 1 / -1; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; }

/* ---- SERVICE DETAIL PAGE ---- */
.service-detail-hero {
  background: var(--black);
  padding: 80px 0 60px;
  text-align: center;
}
.service-detail-hero h1 { color: var(--white); }
.service-detail-hero p { color: var(--gray-mid); max-width: 600px; margin: 1rem auto 0; }
.service-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.service-detail-content img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.service-sidebar {
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem;
}
.service-sidebar h4 { color: var(--orange); margin-bottom: 1rem; }
.service-sidebar ul { list-style: none; }
.service-sidebar ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: var(--gray-mid);
}
.service-sidebar ul li::before { content: '✓ '; color: var(--orange); font-weight: 700; }

/* ---- ABOUT PAGE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 0.5rem; }
.about-text .section-divider { margin: 0.75rem 0 1.5rem; }
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-badge {
  background: var(--gray-light);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
  border-left: 3px solid var(--orange);
}

/* ---- FOOTER ---- */
footer {
  background: #0a0a0a;
  color: var(--gray-mid);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 60px; width: auto; max-width: 220px; margin-bottom: 1rem; }
.footer-brand-name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: none;
}
.footer-brand-name span { color: var(--orange); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: var(--gray-mid);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  align-items: flex-start;
}
.footer-contact-item .icon { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--orange); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--black);
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/hero_deck.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: var(--gray-mid); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  font-family: var(--font-main);
}
.breadcrumb a { color: var(--orange); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- MOBILE NAV ---- */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-top: 2px solid var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn-primary { margin: 0.75rem 0 0; text-align: center; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); }
  .dropdown-menu a { color: var(--gray-mid); padding-left: 1.5rem; }
  .nav-dropdown > a::after { content: ' ▾'; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .form-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-content { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
