/* ==========================================================================
   Grindstone Mechanical — modern one-page site
   Palette: black / white / gold, per app.grindstonemechanical.com brand
   ========================================================================== */

:root {
  --black: #060606;
  --black-soft: #0e0e0e;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --white: #f7f6f3;
  --gray: #a8a8a3;
  --gray-dim: #78776f;
  --gold: #c9a24b;
  --gold-light: #e4c780;
  --gold-dim: #8a6f34;
  --line: rgba(247, 246, 243, 0.1);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--gray);
  max-width: 620px;
  font-size: 1.02rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

section { position: relative; padding: 96px 0; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 3px 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17130a;
  box-shadow: 0 8px 24px -8px rgba(201, 162, 75, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(201, 162, 75, 0.7); }

.btn-outline {
  border-color: var(--line);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline-light {
  border: 1px solid rgba(247,246,243,0.35);
  color: var(--white);
  background: transparent;
  margin-top: 12px;
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(247,246,243,0.06); }

.btn-dark {
  background: var(--black);
  color: var(--gold-light);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(6,6,6,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.menu-wrap {
  display: contents;
}

.brand { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.brand-logo { width: 50px; height: 50px; flex-shrink: 0; }

/* Header wordmark: large, crisp white, with a light drop-shadow for pop */
.site-header .brand-logo {
  width: 130px;
  height: 130px;
  filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0,0,0,0.5) saturate(1.1));  
  transition: width 0.35s var(--ease), height 0.35s var(--ease), transform 0.6s ease;
  animation: logoSpin 18s linear infinite;
  opacity: 0.5;
}
.site-header .brand-white {
  opacity: 0.9;
}
.site-header.scrolled .brand-logo {
  width: 62px;
  height: 62px;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .brand-logo { animation: none; }
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand-text em { font-style: normal; color: var(--gold); font-weight: 600; }

.site-header .brand-text {
  font-size: 1.85rem;
  transition: font-size 0.35s var(--ease);
}
.site-header.scrolled .brand-text {
  font-size: 1.15rem;
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-basis: 100%;
  margin-top: 14px;
}
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--white); }
.phone-link svg { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--white); margin: 0 auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 190px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;

  background-position:center;
  background-repeat: no-repeat;  
  filter: brightness(0.2) saturate(1.1) scale(2  );
  will-change: transform;
  transition: filter 2s ease;
  
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(201,162,75,0.14), transparent 60%),
    linear-gradient(180deg, rgba(6,6,6,0.5) 0%, rgba(6,6,6,0.78) 45%, var(--black) 96%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-sub { color: var(--gray); font-size: 1.12rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-suffix {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  display: inline;
}
.stat-suffix { color: var(--gold); }
.stat-label { color: var(--gray-dim); font-size: 0.82rem; margin-top: 4px; max-width: 140px; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(247,246,243,0.35);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
  padding: 0;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  padding: 22px 28px;
}
.trust-item span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}
.trust-item span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,75,0.45);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.7);
}
.service-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) brightness(0.8);
  transition: filter 0.4s ease, transform 0.6s ease;
}
.service-card:hover .service-img { filter: grayscale(0%) brightness(0.95); transform: scale(1.04); }
.service-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-body p { color: var(--gray); font-size: 0.92rem; flex: 1; margin: 0 0 16px; }
.service-link { color: var(--gold); font-weight: 600; font-size: 0.88rem; }

.service-card-cta {
  background: linear-gradient(160deg, var(--panel-2), var(--black-soft));
  justify-content: center;
}
.service-card-cta .service-body { justify-content: center; text-align: left; }
.service-card-cta h3 { font-size: 1.3rem; }
.service-card-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- About ---------- */
.about { background: var(--black-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  filter: grayscale(35%) contrast(1.05);
  border: 1px solid var(--line);
}
.about-media-caption {
  font-size: 0.8rem;
  color: var(--gray-dim);
  font-style: italic;
  margin-top: 12px;
}
.about-copy p { color: var(--gray); }
.about-badges {
  display: flex;
  gap: 30px;
  margin: 26px 0 30px;
  flex-wrap: wrap;
}
.badge-item { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 14px; }
.badge-item strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); }
.badge-item span { font-size: 0.78rem; color: var(--gray-dim); margin-top: 2px; max-width: 130px; }

/* ---------- Service Area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 46px;
}
.area-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.area-col h3 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.area-col p { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* ---------- Emergency banner ---------- */
.emergency-banner {
  padding: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--gold-dim));
  color: #16120a;
}
.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 56px 28px;
}
.emergency-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.emergency-inner p { margin: 0; color: rgba(22,18,10,0.75); max-width: 480px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
}
.contact-copy p { color: var(--gray); }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-label { width: 76px; flex-shrink: 0; color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  align-self: start;
}
.contact-panel h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-panel-sub { color: var(--gray); font-size: 0.9rem; margin: 0 0 6px; }
.contact-panel-divider { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.contact-panel-divider span { font-size: 0.78rem; color: var(--gray-dim); }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0 34px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-brand { margin: 0; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--gray); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-fine { color: var(--gray-dim); font-size: 0.78rem; margin: 0; }

/* ---------- Floating action buttons ---------- */
.fab-call {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17130a;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(201,162,75,0.6);
  z-index: 40;
  animation: pulseFab 2.6s infinite;
}
@keyframes pulseFab {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(201,162,75,0.6); }
  50% { box-shadow: 0 12px 34px -4px rgba(201,162,75,0.85); }
}

.back-to-top {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease;
  z-index: 40;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
}

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

  .site-header .brand-logo { width: 66px; height: 66px; }
  .site-header .brand-text { font-size: 1.15rem; }
  .site-header.scrolled .brand-logo { width: 48px; height: 48px; }
  .site-header.scrolled .brand-text { font-size: 0.98rem; }
  .hero { padding-top: 140px; }

  .menu-wrap {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6,6,6,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .menu-wrap.open { max-height: 420px; }

  .main-nav {
    flex-direction: column;
    gap: 6px;
    padding: 22px 28px 10px;
  }
  .main-nav a { padding: 8px 0; }

  .header-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 28px 26px;
  }
  .phone-link { justify-content: center; padding: 8px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .emergency-inner { flex-direction: column; align-items: flex-start; }
  .fab-call { display: flex; }
  section { padding: 70px 0; }
}
