/* Jenkins Design & Build — Custom Styles
   Aesthetic: Trust & Authority + Luxury Contractor
   Palette: Charcoal/Slate + Yellow-Orange-Red Lion Gradient
*/

/* ===== BASE RESET & SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --brand-yellow: #F5A623;
  --brand-orange: #E8610A;
  --brand-red: #D4380D;
  --amber: #C4522A;
  --amber-light: #D46035;
  --charcoal: #1C1917;
  --slate: #292524;
  --stone: #44403C;
  --warm-white: #FAF9F6;
  --text-muted: #A8A29E;
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== NAVIGATION ===== */
.nav-transparent {
  background: transparent;
  backdrop-filter: none;
}

.nav-solid {
  background: rgba(28, 25, 23, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 82, 42, 0.15);
}

.nav-link {
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.5) 0%,
    rgba(28, 25, 23, 0.4) 50%,
    rgba(28, 25, 23, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--slate);
  border-top: 1px solid rgba(196, 82, 42, 0.2);
  border-bottom: 1px solid rgba(196, 82, 42, 0.2);
}

.trust-item {
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(196, 82, 42, 0.25);
}

@media (max-width: 767px) {
  .trust-item:not(:last-child)::after {
    display: none;
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--slate);
  transition: box-shadow var(--transition-base), transform 200ms ease;
  cursor: pointer;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(196, 82, 42, 0.3);
}

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-image {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 25, 23, 0.95) 0%,
    rgba(28, 25, 23, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.service-card-icon {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--slate) 0%, var(--charcoal) 100%);
  border-bottom: 2px solid rgba(196, 82, 42, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: -1rem;
  bottom: -1rem;
  left: 1rem;
  border: 2px solid var(--amber);
  border-radius: 4px;
  z-index: 0;
}

.about-image-wrapper img {
  position: relative;
  z-index: 1;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0);
  transition: background var(--transition-base);
}

.gallery-item:hover::after {
  background: rgba(28, 25, 23, 0.3);
}

/* ===== REVIEW CARDS ===== */
.review-card {
  background: var(--charcoal);
  border: 1px solid rgba(168, 162, 158, 0.1);
  border-radius: 4px;
  padding: 1.75rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
  border-color: rgba(196, 82, 42, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--warm-white);
}

.review-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #0C0A09 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
}

/* ===== CONTACT FORM ===== */
.form-input {
  background: rgba(68, 64, 60, 0.5);
  border: 1px solid rgba(168, 162, 158, 0.2);
  color: var(--warm-white);
  padding: 0.875rem 1rem;
  border-radius: 4px;
  width: 100%;
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--warm-white);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A8A29E' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 4px 20px rgba(196, 82, 42, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  border: 2px solid rgba(250, 249, 246, 0.4);
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(196, 82, 42, 0.08);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 480ms; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.98);
  backdrop-filter: blur(16px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.mobile-menu a:hover {
  color: var(--amber);
}

/* ===== FOOTER ===== */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--amber);
}

/* ===== SECTION LABEL (small caps label above headings) ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ===== FORM SUCCESS ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.form-success.show {
  display: block;
}

.form-success svg {
  margin: 0 auto 1rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .service-card-image,
  .gallery-item img {
    transition: none;
  }
}

/* ===== HAMBURGER ICON ===== */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  transition: transform 280ms ease, opacity 280ms ease;
}

.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== PLACEHOLDER IMAGE FALLBACKS ===== */
.img-placeholder {
  background: linear-gradient(135deg, var(--stone) 0%, var(--charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
