/* ========================================
   ROVER WOODWORKS — Style System
   ======================================== */

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

:root {
  --black: #0a0a0a;
  --brown: #b8860b;
  --brown-light: #d4a235;
  --brown-dark: #8b6914;
  --white: #fafaf8;
  --text: #e8e8e4;
  --text-body: #c8c8c0;
  --text-muted: #707068;
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}


/* --- Section Dividers --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(184, 134, 11, 0.3) 20%,
    rgba(184, 134, 11, 0.5) 50%,
    rgba(184, 134, 11, 0.3) 80%,
    transparent 100%
  );
  max-width: 1280px;
  margin: 0 auto;
}


/* --- Typography --- */
.section-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.section-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-body);
  max-width: 500px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.accent {
  color: var(--brown);
}

.section-header {
  margin-bottom: 4rem;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--brown-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.2);
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}


/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050505;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  filter: saturate(0.7) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 105, 20, 0.06) 0%, transparent 60%),
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.88) 0%,
      rgba(5, 5, 5, 0.5) 45%,
      rgba(5, 5, 5, 0.65) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 420px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  right: clamp(1.5rem, 4vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  font-weight: 300;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--brown), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}


/* ========================================
   ABOUT
   ======================================== */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-about {
  background: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-img-main:hover img {
  transform: scale(1.03);
}

.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--black);
  aspect-ratio: 3/4;
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  padding: 2rem 0;
}

.about-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184, 134, 11, 0.15);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ========================================
   WORK / PORTFOLIO
   ======================================== */
.section-work {
  background: var(--black);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.work-item-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.work-item-wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.work-img {
  width: 100%;
  height: 100%;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.15) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.work-cat {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.work-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}


/* ========================================
   PELLETS
   ======================================== */
.section-pellets {
  background: var(--black);
}

.pellets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.pellets-features {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pellets-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-body);
  letter-spacing: 0.01em;
}

.pellets-features svg {
  color: var(--brown);
  flex-shrink: 0;
}

.pellets-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.pellets-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pellets-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--brown);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.badge-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.badge-sub {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}


/* ========================================
   CONTACT
   ======================================== */
.section-contact {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid rgba(184, 134, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}

a.contact-value:hover {
  color: var(--brown);
}

/* Form */
.contact-form-wrap {
  background: rgba(184, 134, 11, 0.03);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(184, 134, 11, 0.08);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23707068' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  color: var(--text-muted);
}

.form-group select:valid {
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brown);
}

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


/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  padding: 3rem 0;
  border-top: 1px solid rgba(184, 134, 11, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-brand p {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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


/* ========================================
   ANIMATIONS — Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about-grid,
  .pellets-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images {
    max-width: 500px;
  }

  .about-img-accent {
    bottom: -1rem;
    right: -1rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item-tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .work-item-wide {
    grid-column: span 2;
  }

  .pellets-image {
    max-width: 500px;
    aspect-ratio: 3/2;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(184, 134, 11, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-scroll {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item-wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .work-item {
    aspect-ratio: 4/3;
  }

  .work-overlay {
    opacity: 1;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-divider {
    margin: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}
