/* ═══════════════════════════════════════════
   EveryPoint® — Global Stylesheet
   Based on brand guidelines + live site analysis
   ═══════════════════════════════════════════ */

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

:root {
  /* EveryPoint monochromatic palette */
  --near-black: #0A0A0A;
  --dark-gray: #333333;
  --mid-gray: #666666;
  --light-gray: #8F8F8F;
  --off-white: #EFEFEF;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  --font-body: 'Avenir', 'Avenir Roman', 'Nunito Sans', Helvetica, Arial, Lucida, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 74px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--mid-gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--near-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

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

ul, ol {
  list-style: none;
}

/* ── Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Transparent nav state — applied on homepage at top of page */
.site-header.transparent {
  background: transparent;
  box-shadow: none;
}

.site-header.transparent .nav-logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.site-header.transparent .nav-links a {
  color: var(--white);
}

.site-header.transparent .hamburger span {
  background: var(--white);
}

/* Scrolled state (overrides transparent) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .nav-logo img {
  filter: none;
}

.site-header.scrolled .nav-links a {
  color: var(--mid-gray);
}

.site-header.scrolled .hamburger span {
  background: var(--near-black);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 17px 48px;
  height: var(--nav-height);
}

.nav-logo img {
  height: 43px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.25s;
}

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

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 48px;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--near-black);
}

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  height: 723px;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.3);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  text-align: left;
  padding: 0 13%;
}

.hero-logo {
  width: 505px;
  height: auto;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: normal;
  line-height: 1;
  padding-left: 164px;
}

/* Slider pagination dots */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 16px;
}

.slider-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dot.active {
  background: var(--white);
}

/* ── Video Section ── */
.video-section {
  background: var(--near-black);
  padding: 140px 0;
}

.video-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 80px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── History / Counter Section ── */
.history-section {
  background: var(--white);
  padding: 120px 48px;
  text-align: center;
}

.history-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.history-text {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  color: var(--near-black);
  white-space: nowrap;
  margin: 0 auto;
}

/* ── Products Section ── */
.products-section {
  padding: 120px 48px;
  background: var(--white);
}

.products-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.products-heading {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -1px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}

.product-card {
  text-align: center;
  padding: 40px 24px;
}

.product-card img {
  height: 60px;
  width: auto;
  margin: 0 auto 32px;
  object-fit: contain;
}

.product-card-icon--rounded {
  border-radius: 12px;
}

.product-card p {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card .btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--near-black);
  color: var(--near-black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s;
}

.product-card .btn-outline:hover {
  background: var(--near-black);
  color: var(--white);
}

/* ── Team Section ── */
.team-section {
  padding: 120px 48px;
  background: var(--white);
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.board-heading {
  margin-top: 80px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 222px;
  height: 222px;
  border-radius: 0;
  object-fit: cover;
  margin: 0 auto 20px;
  filter: grayscale(100%);
}

.team-member h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-member .role {
  font-size: 14px;
  color: var(--mid-gray);
  margin-bottom: 12px;
}

.team-member .social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-member .social-links a {
  font-size: 13px;
  color: var(--light-gray);
  font-weight: 500;
  transition: color 0.2s;
}

.team-member .social-links a:hover {
  color: var(--near-black);
}

/* ── Contact Section ── */
.contact-section {
  padding: 120px 48px;
  background: var(--white);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--dark-gray);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail p {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.7;
}

.contact-detail a:hover {
  color: var(--near-black);
}

.social-heading {
  font-size: 18px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.social-icons a:hover {
  background: var(--near-black);
}

.social-icons a:hover svg {
  stroke: var(--white);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  stroke: var(--dark-gray);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ── Footer ── */
.site-footer {
  background: var(--near-black);
  padding: 40px 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--light-gray);
}

.footer-copyright a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Focus States ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--near-black);
  outline-offset: 3px;
  border-radius: 2px;
}

.slider-dot:focus-visible {
  outline-color: var(--white);
}

/* ── Skip to Content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--near-black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ── Page Load Fade-in ── */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-fade-in {
  opacity: 0;
  animation: pageFadeIn 1s ease forwards;
}

.page-fade-in-delay {
  opacity: 0;
  animation: pageFadeIn 1s ease 0.3s forwards;
}

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-inner {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-slider {
    height: 500px;
  }

  .hero-slide-content {
    padding: 0 6%;
  }

  .hero-logo {
    width: clamp(250px, 70vw, 400px);
  }

  .hero-tagline {
    font-size: 18px;
    padding-left: 97px;
  }

  .history-section,
  .products-section,
  .team-section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .history-text {
    white-space: normal;
    font-size: 22px;
  }

  .video-inner {
    padding: 0 24px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .site-footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* ── iPhone 12+ (390px) ── */
@media (max-width: 430px) {
  .hero-slider {
    height: 420px;
  }

  .hero-slide-content {
    padding: 0 24px;
  }

  .hero-tagline {
    font-size: 15px;
    padding-left: 0;
  }

  .hero-logo {
    width: clamp(220px, 65vw, 300px);
  }

  .nav-inner {
    padding: 16px 16px;
  }

  .history-section,
  .products-section,
  .team-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .video-section {
    padding: 80px 0;
  }

  .video-inner {
    padding: 0 16px;
  }

  .team-member-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .board-heading {
    margin-top: 60px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}


/* ==========================================================================
   JOBS PAGE
   ========================================================================== */

/* ── Jobs Hero ── */
.jobs-hero {
  background: var(--white);
  text-align: center;
  padding: 120px 48px 60px;
  margin-top: var(--nav-height);
}

.jobs-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.2;
  margin-bottom: 24px;
}

.jobs-hero p {
  font-size: 18px;
  color: var(--mid-gray);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ── Jobs Video ── */
.jobs-video {
  background: var(--white);
  padding: 40px 48px 80px;
}

.jobs-video-inner {
  max-width: 700px;
  margin: 0 auto;
}

.jobs-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
}

.jobs-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Our Story ── */
.jobs-story {
  background: var(--white);
  padding: 80px 48px;
}

.jobs-story-inner {
  max-width: 800px;
  margin: 0 auto;
}

.jobs-story h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--near-black);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.jobs-story p {
  font-size: 18px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Reasons Not To / What You'll Gain ── */
.jobs-reasons {
  background: var(--off-white);
  padding: 80px 48px;
}

.jobs-reasons-inner {
  max-width: 800px;
  margin: 0 auto;
}

.jobs-reasons h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--near-black);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -1px;
}

.jobs-reasons h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 12px;
  margin-top: 0;
}

.jobs-reasons p {
  font-size: 18px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.jobs-reasons .intro-text {
  text-align: center;
  margin-bottom: 40px;
}

.reason-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.reason-item-text {
  flex: 1;
}

.reason-item-text h3 {
  margin-bottom: 16px;
}

.reason-item img {
  width: 350px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

.jobs-reasons--continued {
  padding-top: 0;
}

/* ── Gains grid ── */
.gains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.gain-item h3 {
  margin-top: 0;
}

.gain-item p {
  font-size: 16px;
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.45)),
              url('../images/contact/hero-bg.jpg') center center / cover no-repeat;
  padding: 200px 48px 180px;
  text-align: center;
  margin-top: var(--nav-height);
}

.contact-hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(52px, 8vw, 90px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 32px;
}

.contact-hero p {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.contact-section .contact-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section .contact-details-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-section .contact-detail {
  text-align: left;
}

.contact-section .contact-detail p {
  text-align: left;
}

.contact-section .social-icons {
  justify-content: center;
}


/* ==========================================================================
   PRIVACY PAGE
   ========================================================================== */

.privacy-hero {
  background: var(--near-black);
  padding: 120px 48px 60px;
  text-align: center;
  margin-top: var(--nav-height);
}

.privacy-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  color: var(--white);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 48px;
}

.privacy-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--near-black);
  margin-top: 48px;
  margin-bottom: 16px;
}

.privacy-content p {
  font-size: 17px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}


/* ==========================================================================
   RESPONSIVE — JOBS & CONTACT
   ========================================================================== */

@media (max-width: 768px) {
  .jobs-hero,
  .jobs-video,
  .jobs-story,
  .jobs-reasons {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .reason-item {
    flex-direction: column;
  }

  .reason-item img {
    width: 100%;
  }

  .contact-hero {
    padding: 120px 24px 100px;
  }

  .contact-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .contact-hero p {
    font-size: 18px;
  }

  .privacy-content {
    padding: 60px 24px;
  }
}

@media (max-width: 430px) {
  .jobs-hero,
  .jobs-video,
  .jobs-story,
  .jobs-reasons {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jobs-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .contact-hero {
    padding: 100px 16px 80px;
  }

  .contact-hero h1 {
    font-size: clamp(28px, 10vw, 44px);
  }

  .privacy-hero {
    padding: 100px 16px 40px;
  }

  .privacy-content {
    padding: 48px 16px;
  }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .hamburger,
  .mobile-nav,
  .hero-slider,
  .slider-dots,
  .video-section,
  .jobs-video,
  .contact-hero,
  .privacy-hero,
  .social-links,
  .social-icons,
  .btn-outline {
    display: none !important;
  }

  .history-section,
  .products-section,
  .team-section,
  .contact-section,
  .jobs-hero,
  .jobs-story,
  .jobs-reasons {
    padding: 20px 0 !important;
    margin-top: 0 !important;
  }

  img {
    max-width: 100% !important;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  .site-footer {
    border-top: 1px solid #ccc;
    padding: 10px 0;
  }
}
