/* =============================================
   GAIENNIE INDUSTRIAL — style.css
   ============================================= */

/* === VARIABLES === */
:root {
  --charcoal:      #4A4A4A;
  --charcoal-dark: #2C2C2C;
  --charcoal-mid:  #3A3A3A;
  --gold:          #EDB837;
  --gold-dark:     #C99A20;
  --cream:         #F8F5F0;
  --white:         #FFFFFF;
  --text:          #2C2C2C;
  --text-mid:      #555555;
  --text-light:    #888888;
  --border:        #E0DAD0;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-height: 72px;
  --section-pad: 90px;
  --inner-max:   1140px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* === TYPOGRAPHY === */
h1 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; }
h2 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* === SECTION HELPERS === */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--charcoal-dark); margin-bottom: 16px; }
.section-header p   { font-size: 1.05rem; color: var(--text-mid); }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.75); }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#navbar.scrolled {
  background: var(--charcoal-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

.nav-logo img {
  height: 42px;
  width: auto;
  /* filter: brightness(0) invert(1); /* uncomment if logo needs to be white on dark */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--charcoal-dark) !important;
  padding: 8px 22px;
  border-radius: 3px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--charcoal-dark) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--charcoal-dark);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,28,28,0.88) 0%,
    rgba(44,44,44,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 120px 24px 80px;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 40px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   STATS BAR
   ============================================= */
#stats {
  background: var(--charcoal-dark);
  border-top: 3px solid var(--gold);
  padding: 0;
}

.stats-grid {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.product-cat {
  background: var(--white);
  padding: 32px 28px;
  transition: background 0.2s;
}
.product-cat:hover { background: #FDFBF7; }

.cat-accent {
  width: 40px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 16px;
  border-radius: 2px;
}

.product-cat.featured .cat-accent { width: 60px; }

.product-cat h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-cat ul { display: flex; flex-direction: column; gap: 8px; }
.product-cat ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  padding-left: 14px;
  position: relative;
}
.product-cat ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Photo band */
.photo-band {
  height: 380px;
  overflow: hidden;
  margin-top: 60px;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* =============================================
   WHY GAIENNIE
   ============================================= */
#why {
  background: var(--charcoal);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.why-card {
  background: var(--charcoal-mid);
  padding: 36px 28px;
  transition: background 0.2s;
}
.why-card:hover { background: #424242; }

.why-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 20px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.why-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* =============================================
   HISTORY
   ============================================= */
#history {
  background: var(--white);
  padding: var(--section-pad) 0;
}

.history-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.history-text .section-tag { margin-bottom: 12px; }
.history-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--charcoal-dark);
  margin-bottom: 28px;
}

.history-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.history-motto {
  font-style: italic;
  font-size: 1.05rem !important;
  color: var(--charcoal) !important;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-top: 28px !important;
  line-height: 1.6 !important;
}

.history-photo {
  position: relative;
}
.history-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  filter: grayscale(20%);
}
.history-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
  letter-spacing: 0.04em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.contact-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  margin-bottom: 4px;
}

.contact-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--charcoal-dark);
  margin-bottom: 4px;
}
.contact-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--gold-dark); }
.contact-email {
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: color 0.2s;
}
.contact-email:hover { color: var(--gold-dark); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--charcoal-dark);
  padding: 48px 24px;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.footer-inner { max-width: 400px; margin: 0 auto; }

.footer-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.9;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

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

/* =============================================
   RESPONSIVE — Tablet (max 900px)
   ============================================= */
@media (max-width: 900px) {

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav open state */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--charcoal-dark);
    padding: 16px 0 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 14px 28px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open .nav-cta {
    margin: 16px 28px 0;
    text-align: center;
    border-radius: 3px;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }

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

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

  .history-inner { grid-template-columns: 1fr; gap: 40px; }
  .history-photo { order: -1; }
  .history-photo img { max-height: 360px; object-fit: cover; }

  .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* =============================================
   RESPONSIVE — Mobile (max 600px)
   ============================================= */
@media (max-width: 600px) {

  :root { --section-pad: 60px; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-logo { height: 60px; }

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

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

  .photo-band { height: 220px; }

  .section-header h2 { font-size: 1.9rem; }
}
