/* ============================================================
   RevHounds — style.css  v1.0
   Design: dark premium, amber accent, Cormorant + DM Sans
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* --- Tokens --- */
:root {
  --color-bg:           #0d0d0d;
  --color-surface:      #161616;
  --color-surface-alt:  #1e1e1e;
  --color-border:       #2a2a2a;
  --color-border-strong:#3d3d3d;

  --color-amber:        #c98a2e;
  --color-amber-light:  #e8a94a;
  --color-amber-dim:    rgba(201, 138, 46, 0.12);

  --color-text-primary:   #f0ece4;
  --color-text-secondary: #9a9389;
  --color-text-muted:     #5a5550;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-2xl: 144px;

  --container: 1120px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --nav-h: 72px;

  --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- Eyebrow --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: var(--color-amber);
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a.active { color: var(--color-amber); }
.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--color-amber) !important;
  border: 1px solid var(--color-amber);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--color-amber) !important;
  color: #0d0d0d !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--color-amber); }

/* ============================================================
   HERO
   ============================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1618773928121-c32242e63f39?w=1800&q=80');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.82) 0%,
    rgba(13, 13, 13, 0.65) 60%,
    rgba(13, 13, 13, 0.50) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.hero-headline em {
  font-style: italic;
  color: var(--color-amber);
}
.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-md);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--color-amber);
  color: #0d0d0d;
  border-color: var(--color-amber);
}
.btn-primary:hover {
  background: var(--color-amber-light);
  border-color: var(--color-amber-light);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  padding-block: var(--space-xl);
  background: var(--color-surface);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-primary);
}
.section-sub {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: var(--space-sm) auto 0;
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-amber);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-left-color: var(--color-border-strong);
  border-right-color: var(--color-border-strong);
  border-bottom-color: var(--color-border-strong);
  transform: translateY(-4px);
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--color-amber);
}

/* Systems experience */
.systems-block {
  border: 1px solid var(--color-border);
  padding: var(--space-md);
}
.systems-block-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.systems-category-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 10px;
}
.systems-items {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 2;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding-block: var(--space-xl);
  background: var(--color-bg);
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}
.about-intro-text p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-top: var(--space-sm);
}
.about-stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.about-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
}
.about-stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--color-amber);
  line-height: 1;
}
.about-stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Team */
.team-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--color-border-strong); }
.team-card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.team-card:hover .team-card-photo { filter: grayscale(0%); }
.team-card-info {
  padding: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.team-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 10px;
}
.team-card-bio {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding-block: var(--space-xl);
  background: var(--color-surface);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  align-items: start;
}
.contact-info-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.contact-info-sub {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: var(--space-md);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.contact-detail a:hover { color: var(--color-amber); }
.contact-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-amber);
  font-size: 16px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.form-input,
.form-textarea {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--color-amber); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }
.form-message {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(201, 138, 46, 0.1);
  border: 1px solid var(--color-amber);
  color: var(--color-amber-light);
}
.form-message.error {
  display: block;
  background: rgba(180, 40, 40, 0.1);
  border: 1px solid #a33;
  color: #e88;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-md);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-logo img { height: 36px; width: auto; opacity: 0.8; }
.footer-copy {
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-amber); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about-stat-block { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-stat-block { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
