/* =============================================
   G Industries — Main Stylesheet
   ============================================= */

/* --- Color Tokens --- */
:root {
  --navy:      #2d3d4a;   /* darkest — logo text + hero bg */
  --teal-dark: #3f6474;   /* outer arc */
  --teal-mid:  #5c8a8e;   /* mid arc */
  --teal-light:#7ba8b0;   /* inner arc highlight */
  --rust:      #9e5040;   /* terracotta accent */
  --gold:      #c4a040;   /* gold accent */
  --cream:     #f5f3ee;   /* warm off-white background */
  --white:     #ffffff;
  --text:      #2d3d4a;
  --text-muted:#5e7282;

  --radius:    6px;
  --transition:160ms ease;
}

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

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

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #d4b050;
  border-color: #d4b050;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- Typography Helpers --- */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Tomorrow', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-desc {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc { margin-inline: auto; }

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

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 61, 74, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(45,61,74,0.10);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

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

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

.nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }

.nav-links .btn {
  padding: 8px 20px;
  font-size: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 60%, var(--teal-mid) 100%);
  z-index: 0;
}

/* Subtle geometric texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 30%, rgba(196,160,64,0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(158,80,64,0.10) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 104px; /* header offset */
  max-width: 680px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Tomorrow', sans-serif;
  font-size: clamp(2.75rem, 6.25vw, 5.25rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
}

.hero-badge-img {
  height: 44px;
  width: auto;
  display: block;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about-logo-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-shadow: 0 8px 48px rgba(45,61,74,0.10);
}

.about-logo { width: 100%; height: auto; }

.about-stat-row {
  display: flex;
  gap: 32px;
  width: 100%;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: 'Tomorrow', sans-serif;
  font-size: 2.4rem;
  color: var(--teal-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products { background: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(45,61,74,0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45,61,74,0.12);
  border-color: var(--teal-mid);
}

.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

.product-card {
  position: relative;
}

.coming-soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  transform: translate(-50%, -50%) rotate(-30deg);
  pointer-events: none;
  opacity: 1;
}

.product-card-body {
  padding: 32px;
  position: relative;
}

.google-play-badge {
  display: block;
  height: 40px;
  width: auto;
  margin-top: 16px;
  margin-left: auto;
}

.product-card-body h3 {
  font-family: 'Tomorrow', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.product-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ============================================
   TUTORIALS
   ============================================ */
.tutorials { background: var(--navy); }

.tutorials .section-eyebrow { color: var(--gold); }
.tutorials .section-title   { color: var(--white); }
.tutorials .section-desc    { color: rgba(255,255,255,0.60); }

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.tutorial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 36px 32px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.tutorial-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.tutorial-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196,160,64,0.45);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.tutorial-card h3 {
  font-family: 'Tomorrow', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.tutorial-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.tutorial-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}

.tutorial-link:hover { opacity: 0.75; }

.tutorial-link--disabled {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--cream);
}

.contact-inner {
  max-width: 760px;
  margin-inline: auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 52px;
}

.contact-header .section-desc {
  margin-inline: auto;
}

.contact .section-title { margin-bottom: 16px; }

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  border: 1px solid rgba(45,61,74,0.08);
  box-shadow: 0 4px 32px rgba(45,61,74,0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid rgba(45,61,74,0.18);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(92,138,142,0.15);
  background: var(--white);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(158,80,64,0.12);
}

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

.form-status {
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success {
  color: #2d7a4a;
}

.form-status.error {
  color: var(--rust);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 40px 0;
}

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

.footer-logo { height: 36px; width: auto; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-media { order: -1; }

  .about-logo-wrap {
    width: 200px;
    height: 200px;
  }

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

@media (max-width: 600px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none; /* mobile nav kept minimal — can expand with JS */
  }

  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }

  .product-grid,
  .tutorial-grid { grid-template-columns: 1fr; }

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

  .about-stat-row { gap: 16px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact-form { padding: 28px 20px; }
}
