/*
Theme Name: ErgoRocks
Theme URI: https://www.ergorocks.com
Author: Shawni DeSalvo
Author URI: https://www.linkedin.com/in/shawnidesalvo
Description: ErgoRocks corporate ergonomics and workplace health website
Version: 1.0
License: Proprietary
Text Domain: ergorocks
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1e1620;
  --white: #ffffff;
  --orange: #8E2680;
  --orange-light: #f3e9f1;
  --accent-deep: #571a51;
  --accent-on-dark: #dd92d1;
  --charcoal: #3a2a3a;
  --mid: #6f6573;
  --rule: #ece2ed;
  --section-bg: #f7f1f8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-decoration: none;
}
.nav-logo-mark { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #574d5c;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 2px;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white);
  padding: 24px 0;
  box-shadow: 0 12px 24px rgba(40,16,38,0.08);
  z-index: 99;
  flex-direction: column;
  align-items: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mob-cta { color: var(--orange); font-weight: 700; }

@media (max-width: 840px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 0.1s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(55,18,52,0.78) 0%, rgba(87,26,81,0.42) 55%, rgba(40,12,38,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 32px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(221,146,209,0.5);
  border-radius: 2px;
}
.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; color: var(--orange-light); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(250,250,248,0.72);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250,250,248,0.45);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: rgba(250,250,248,0.3);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTIONS COMMON ── */
section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 640px) { .container { padding: 0 24px; } }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1; color: var(--black); margin-bottom: 20px; text-wrap: pretty;
}
.section-title em { font-style: italic; }
.section-intro { font-size: 18px; color: var(--mid); font-weight: 300; max-width: 560px; line-height: 1.7; }

/* ── TRUST BAR ── */
.trust-bar { padding: 48px 0; background: var(--accent-deep); }
.trust-bar-inner { display: flex; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.trust-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,250,248,0.35); white-space: nowrap; flex-shrink: 0; }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-logo-item { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: rgba(250,250,248,0.4); text-transform: uppercase; transition: color 0.2s; }
.trust-logo-item:hover { color: rgba(250,250,248,0.7); }
.trust-logo-item.nike { display: flex; align-items: center; gap: 8px; }
.trust-logo-item.nike svg { width: 40px; height: auto; fill: rgba(250,250,248,0.4); transition: fill 0.2s; }
.trust-logo-item.nike:hover svg { fill: rgba(250,250,248,0.7); }
@media (max-width: 640px) {
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 24px; }
  .trust-logos { gap: 28px; }
}

/* ── SERVICES ── */
.services { background: var(--white); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 72px; align-items: end; }
@media (max-width: 768px) { .services-header { grid-template-columns: 1fr; gap: 24px; } }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--white); padding: 44px 36px; transition: background 0.25s; cursor: default; }
.service-card:hover { background: var(--section-bg); }
.service-number { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--orange); margin-bottom: 24px; }
.service-icon { width: 36px; height: 36px; margin-bottom: 20px; color: var(--charcoal); }
.service-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; line-height: 1.2; margin-bottom: 14px; color: var(--black); }
.service-card p { font-size: 15px; color: var(--mid); line-height: 1.65; }

/* ── ABOUT ── */
.about { background: var(--section-bg); color: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about .section-title { color: var(--black); }
.about .section-intro { color: var(--mid); }
.about-image { position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 4/3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-image-badge { position: absolute; bottom: 24px; left: 24px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 18px; border-radius: 2px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.about-stat-number { font-family: 'DM Serif Display', Georgia, serif; font-size: 44px; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.about-stat-label { font-size: 13px; color: var(--mid); letter-spacing: 0.05em; line-height: 1.4; }
.linkedin-cta { margin-top: 40px; }
.linkedin-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: #0077b5; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; border-radius: 2px; transition: opacity 0.2s; }
.linkedin-btn:hover { opacity: 0.86; }
.linkedin-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ── PROCESS ── */
.process { background: var(--section-bg); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); margin-top: 64px; border: 1px solid var(--rule); }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { background: var(--section-bg); padding: 44px 32px; position: relative; }
.step-num { font-family: 'DM Serif Display', Georgia, serif; font-size: 64px; color: rgba(142,38,128,0.10); line-height: 1; margin-bottom: 16px; display: block; }
.step-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; margin-bottom: 12px; color: var(--black); }
.step-desc { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* ── INSTAGRAM ── */
.instagram-section { background: var(--white); }
.instagram-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.instagram-follow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); text-decoration: none; border-bottom: 1px solid var(--black); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.instagram-follow:hover { color: var(--orange); border-color: var(--orange); }
.instagram-follow svg { width: 18px; height: 18px; }
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .instagram-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .instagram-grid { grid-template-columns: repeat(2,1fr); gap: 8px; } }
.instagram-post { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--section-bg); cursor: pointer; display: block; }
.instagram-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.instagram-post:hover img { transform: scale(1.06); }
.instagram-post-overlay { position: absolute; inset: 0; background: rgba(19,19,18,0.0); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.instagram-post:hover .instagram-post-overlay { background: rgba(19,19,18,0.45); }
.instagram-post-overlay svg { width: 32px; height: 32px; fill: #fff; opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s; }
.instagram-post:hover .instagram-post-overlay svg { opacity: 1; transform: scale(1); }
.ig-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(-45deg, var(--section-bg), var(--section-bg) 4px, var(--rule) 4px, var(--rule) 8px); font-size: 11px; color: var(--mid); letter-spacing: 0.05em; text-align: center; padding: 16px; font-family: monospace; }

/* ── CONTACT ── */
.contact-section { background: var(--accent-deep); }
.contact-section .section-label { color: var(--accent-on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-left .section-title { color: var(--white); }
.contact-left .section-intro { color: rgba(250,250,248,0.6); margin-bottom: 40px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--accent-on-dark); }
.contact-detail-text { font-size: 14px; color: rgba(250,250,248,0.65); line-height: 1.5; }
.contact-detail-text a { color: rgba(250,250,248,0.65); text-decoration: none; transition: color 0.2s; }
.contact-detail-text a:hover { color: var(--white); }
.contact-social { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; color: rgba(250,250,248,0.65); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.social-link:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: 48px; border-radius: 2px; }
@media (max-width: 640px) { .contact-form { padding: 28px 24px; } }
.form-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; color: var(--white); margin-bottom: 8px; }
.form-subtitle { font-size: 14px; color: rgba(250,250,248,0.45); margin-bottom: 32px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,250,248,0.5); }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px; padding: 13px 16px; border-radius: 2px; outline: none; transition: border-color 0.2s; width: 100%; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(250,250,248,0.25); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(250,250,248,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.form-group select option { background: #3a1a38; color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.calendar-note { font-size: 12px; color: rgba(250,250,248,0.35); margin-top: 4px; font-style: italic; }
.form-submit { width: 100%; padding: 16px; background: var(--orange); color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 2px; cursor: pointer; margin-top: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.form-success { display: none; text-align: center; padding: 40px 24px; }
.form-success.visible { display: block; }
.form-success-icon { width: 56px; height: 56px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success-icon svg { width: 28px; height: 28px; fill: #fff; }
.form-success h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; color: var(--white); margin-bottom: 12px; }
.form-success p { font-size: 14px; color: rgba(250,250,248,0.6); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: #2a0f26; padding: 48px 0 32px; color: rgba(250,250,248,0.4); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 24px; }
.footer-logo { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.02em; color: rgba(250,250,248,0.85); text-decoration: none; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,250,248,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(250,250,248,0.7); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(250,250,248,0.3); transition: color 0.2s; }
.footer-social a:hover { color: rgba(250,250,248,0.7); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 640px) { .footer-inner { padding: 0 24px; } .footer-top { flex-direction: column; } }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
