/* ============================================
   Grow Remote — styles.css
   Light theme — Wix migration
   Brand: #1A415D (blue), #EB6B45 (orange), #606161 (gray)
   Fonts: Bitsumishi (headings), Nunito Sans (body)
   ============================================ */

/* --- Custom Fonts --- */
@font-face {
  font-family: 'Bitsumishi Pro';
  src: url('/fonts/BitsumishiProBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bitsumishi Pro';
  src: url('/fonts/BitsumishiProMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bitsumishi Pro';
  src: url('/fonts/BitsumishiProBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bitsumishi';
  src: url('/fonts/BITSUMIS.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --white: #ffffff;
  --off-white: #f7f8f9;
  --light-gray: #dde2e5;
  --gr-blue: #1A415D;
  --gr-blue-dark: #132f44;
  --gr-blue-light: #245578;
  --gr-orange: #EB6B45;
  --gr-orange-dark: #d45a36;
  --gr-orange-light: rgba(235, 107, 69, 0.1);
  --gr-gray: #606161;
  --gr-gray-light: #8a8b8b;
  --text-dark: #2a2a2a;
  --section-bg: #e8eef2;
  --font-heading: 'Bitsumishi', 'Bitsumishi Pro', monospace;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gr-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gr-orange);
}

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

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  height: 75px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo-area {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 0 0 20px;
  flex-shrink: 0;
  position: relative;
}

/* Angled edge on logo area */
.nav-logo-area::after {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  width: 40px;
  height: 100%;
  background: var(--white);
  clip-path: polygon(0 0, 60% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links-area {
  background: var(--gr-blue);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px 0 60px;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gr-orange);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  background: var(--gr-blue);
  padding: 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
}

.mobile-menu a:hover {
  color: var(--gr-orange);
}

.mobile-menu.active {
  display: flex;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 75px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 65, 93, 0.55) 0%,
    rgba(60, 100, 130, 0.45) 50%,
    rgba(26, 65, 93, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 800px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 48px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subheadline {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.btn-submit {
  background: var(--gr-orange);
  color: var(--white);
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--gr-orange-dark);
  box-shadow: 0 4px 16px rgba(235, 107, 69, 0.3);
}

.btn-join {
  background: var(--gr-blue);
  color: var(--white);
  padding: 12px 28px;
  flex-shrink: 0;
}

.btn-join:hover {
  background: var(--gr-blue-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  background: var(--gr-blue);
  color: var(--white);
}

.btn-sm:hover {
  background: var(--gr-blue-dark);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 96px 0;
}

.section-white {
  background: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gr-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title.centered {
  text-align: center;
}

.section-title.light {
  color: var(--white);
}

.title-bar {
  width: 56px;
  height: 4px;
  background: var(--gr-orange);
  margin-bottom: 40px;
  border-radius: 2px;
}

.title-bar.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   SERVICES
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 28px 24px;
}

.service-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--gr-blue);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gr-gray);
}

/* ==========================================
   ABOUT
   ========================================== */
.section-about {
  background: var(--section-bg);
  padding: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.about-image {
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  padding: 64px 56px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text .section-title {
  margin-bottom: 8px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gr-gray);
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: var(--gr-orange);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 120px,
    rgba(255,255,255,0.03) 120px,
    rgba(255,255,255,0.03) 121px
  );
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 64px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* ==========================================
   SYSTEMS
   ========================================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 56px;
  margin-top: 56px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.system-item {
  text-align: center;
  padding: 8px 0;
}

.system-item span {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 10px;
}

.system-underline {
  width: 44px;
  height: 3px;
  background: var(--gr-orange);
  margin: 0 auto;
  border-radius: 2px;
  transition: width var(--transition);
}

.system-item:hover .system-underline {
  width: 64px;
}

/* ==========================================
   VENDORS
   ========================================== */
.section-vendors {
  background: var(--off-white);
  padding: 96px 0;
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.vendor-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--gr-blue);
  text-align: center;
  padding: 18px 10px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.vendor-name:hover {
  border-color: var(--gr-orange);
  box-shadow: var(--shadow-sm);
  color: var(--gr-orange);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gr-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 36px;
}

.contact-heading:first-child {
  margin-top: 0;
}

.contact-left p,
.contact-right p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gr-gray);
  margin-bottom: 16px;
}

.contact-left a,
.contact-right a {
  color: var(--gr-orange);
  font-weight: 600;
}

.cta-phone {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.cta-phone a {
  color: var(--gr-blue);
  font-weight: 400;
}

.cta-phone a:hover {
  color: var(--gr-orange);
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gr-gray);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.required {
  color: var(--gr-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 0;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gr-blue);
  box-shadow: 0 0 0 3px rgba(26, 65, 93, 0.08);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #e53935;
}

.field-error {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #e53935;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success {
  color: #43a047;
}

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

/* --- Newsletter Form --- */
.newsletter-form {
  margin-bottom: 28px;
}

.newsletter-row {
  display: flex;
  gap: 0;
}

.newsletter-row input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--light-gray);
  border-right: none;
  border-radius: 0;
  outline: none;
  color: var(--text-dark);
  transition: border-color var(--transition);
}

.newsletter-row input:focus {
  border-color: var(--gr-blue);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner > p {
  font-size: 13px;
  color: var(--gr-gray-light);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gr-gray-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gr-blue);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  color: var(--gr-blue);
  transition: all var(--transition);
}

.social-links a:hover {
  color: var(--gr-orange);
  transform: translateY(-1px);
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--gr-gray);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--gr-orange);
  font-weight: 600;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-headline,
  .hero-subheadline {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 42px;
  }

  .hero-subheadline {
    font-size: 28px;
  }

  .section-title {
    font-size: 30px;
  }

  .stat {
    padding: 0 40px;
  }

  .stat-value {
    font-size: 34px;
  }

  .systems-grid {
    gap: 28px 36px;
  }

  .nav-links {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .nav-logo-area::after {
    display: none;
  }

  .hero {
    height: 75vh;
  }

  .hero-bg {
    background-attachment: scroll;
  }

  .hero-headline {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .hero-subheadline {
    font-size: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 280px;
  }

  .about-text {
    padding: 40px 24px;
  }

  .stats-row {
    flex-direction: column;
    gap: 28px;
  }

  .stat {
    padding: 0;
  }

  .stat-divider {
    width: 56px;
    height: 1px;
  }

  .systems-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 24px;
  }

  .hero-subheadline {
    font-size: 17px;
  }

  .container {
    padding: 0 16px;
  }

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

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

  .stat-value {
    font-size: 28px;
  }
}
