/* ============================================
   Jones Custom Woodwork — Design System
   Hybrid: Rugged Craftsman + Modern + Warm
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-glass: rgba(17, 17, 17, 0.75);
  --gold: #C8942E;
  --gold-light: #D4A94A;
  --gold-dark: #A07522;
  --cream: #F5E6C8;
  --white: #FAFAFA;
  --text-body: #C0C0C0;
  --text-muted: #888888;
  --border-subtle: rgba(200, 148, 46, 0.15);
  --border-gold: rgba(200, 148, 46, 0.4);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold));
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo .logo-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  padding: 3px;
  background: rgba(200, 148, 46, 0.05);
  box-shadow: 0 0 14px rgba(200, 148, 46, 0.2);
  transition: box-shadow var(--transition-fast);
}

.nav-logo:hover .logo-badge {
  box-shadow: 0 0 22px rgba(200, 148, 46, 0.35);
}

.nav-logo .logo-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--border-gold), transparent);
}

.nav-logo .logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.nav-logo .logo-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-smooth);
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary) !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 148, 46, 0.3);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('pictures/Hero.jpg') center top/cover no-repeat,
    linear-gradient(135deg, #1a120a 0%, #0A0A0A 50%, #1a1510 100%);
  filter: brightness(0.3);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.6) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--border-gold);
  padding: 8px 24px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeInDown 0.8s 0.2s ease both;
}

.hero h1 .gold {
  color: var(--gold);
  display: block;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--cream);
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 40px;
  animation: fadeInDown 0.8s 0.4s ease both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 148, 46, 0.35);
}

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

.btn-outline:hover {
  background: rgba(200, 148, 46, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 148, 46, 0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

/* ============================================
   FEATURED PROJECTS
   ============================================ */
.featured {
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.3), transparent);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(200, 148, 46, 0.1);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.project-card-overlay p {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0;
  text-align: center;
  transition: all var(--transition-smooth);
  cursor: default;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200, 148, 46, 0.08);
}

.service-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-icon {
  width: 32px;
  height: 32px;
  margin: 20px auto 10px;
  display: block;
  color: var(--gold);
  stroke-width: 1.5;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
  transform: scale(1.15);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  padding: 0 20px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 20px 24px;
}

/* ============================================
   ABOUT / TIMELINE
   ============================================ */
.about {
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.4), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text h3 .gold {
  color: var(--gold);
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.about-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--border-gold);
  border-radius: 6px;
  pointer-events: none;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-gold) 10%, var(--border-gold) 90%, transparent);
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  text-align: center;
  flex: 1;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  margin: 18px auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(200, 148, 46, 0.3);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.timeline-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  padding: 0 8px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: var(--section-padding);
}

.gallery-grid {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 30px rgba(200, 148, 46, 0.1);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.4), transparent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: rgba(200, 148, 46, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 22px;
  height: 22px;
}

.contact-method-text strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-method-text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 148, 46, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.95rem;
  padding: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    column-count: 2;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .timeline::before {
    left: 24px;
    top: 0;
    bottom: 0;
    height: auto;
    width: 2px;
  }

  .timeline-items {
    flex-direction: column;
    gap: 30px;
    padding-left: 60px;
  }

  .timeline-item {
    text-align: left;
  }

  .timeline-dot {
    position: absolute;
    left: -44px;
    top: 4px;
    margin: 0;
  }

  .gallery-grid {
    column-count: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    gap: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}
