/* ============================================
   HILLTOP UNLIMITED — Design System & Styles
   ============================================ */

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

:root {
  /* Monochrome palette */
  --black: #0a0a0a;
  --off-black: #141414;
  --dark-gray: #1e1e1e;
  --mid-gray: #2a2a2a;
  --gray: #888;
  --light-gray: #c4c4c4;
  --off-white: #f0f0f0;
  --white: #fafafa;
  --accent: #d4af37;
  /* subtle gold for CTAs */

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad-y: clamp(80px, 10vw, 140px);
  --section-pad-x: clamp(24px, 6vw, 120px);

  /* Motion */
  --ease: cubic-bezier(.25, .46, .45, .94);
}

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .3s var(--ease);
}

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

.navbar__logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.navbar__logo span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .25s var(--ease);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.navbar__links a:hover {
  color: var(--white);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  background: var(--accent);
  color: var(--black);
  padding: 10px 24px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, .25);
}

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

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  overflow: hidden;
}

/* Grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 40px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(1.4);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, .3);
}

.btn--outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, .15);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .05);
  transform: translateY(-2px);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-size: .65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}

.hero__scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 50%, transparent);
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--off-black);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  padding: 40px 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, .15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--mid-gray);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ---------- About / Ethos ---------- */
.about {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__visual img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: invert(1);
  opacity: .12;
}

.about__visual .ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  animation: ringPulse 4s infinite ease-in-out;
}

.about__visual .ring:nth-child(2) {
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.about__visual .ring:nth-child(3) {
  width: 380px;
  height: 380px;
  animation-delay: 1s;
}

.about__visual .ring:nth-child(4) {
  width: 460px;
  height: 460px;
  animation-delay: 2s;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(1);
  }

  50% {
    opacity: .08;
    transform: scale(1.04);
  }
}

.about__text .label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.about__text p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
}

.stat__label {
  font-size: .75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ---------- CTA / Contact ---------- */
.cta {
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 60px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  background: var(--off-black);
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .06), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 40px;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--section-pad-x);
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: .8rem;
  color: var(--gray);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: .8rem;
  color: var(--gray);
  transition: color .2s;
}

.footer__links a:hover {
  color: var(--off-white);
}

/* ---------- Animations (reveal-on-scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

/* ---------- Contact Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--off-black);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 48px 40px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  color: var(--gray);
  font-size: 1.6rem;
  line-height: 1;
  transition: color .2s;
}

.modal__close:hover {
  color: var(--white);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.form-group input,
.form-group textarea {
  background: var(--dark-gray);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .25);
}

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

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

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-status {
  text-align: center;
  font-size: .85rem;
  min-height: 20px;
  margin-top: 4px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, .95);
    padding: 32px var(--section-pad-x);
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .navbar__cta {
    width: 100%;
    text-align: center;
  }

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

  .about__stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta__inner {
    padding: 48px 28px;
  }
}