/* =====================================================
   🧔 Burly Man Wines — Global Stylesheet
   Organized: Base → Layout → Components → Animations → Responsive
   ===================================================== */

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  background-color: #0e0e0e;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  overflow-x: hidden;
  padding-top: 90px; /* matches fixed header height */
}

/* new rule for main */
main {
  flex: 1; /* pushes footer to the bottom when content is short */
}

/* ===== LAYOUT: HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #1a1a1ae6; /* translucent for depth */
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #ff6a00;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  background-color: #1a1a1af2;
}

header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

header .brand img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

header .brand span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff6a00;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 1rem;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ff6a00;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 240px); /* header + footer space */
  padding: 3rem 1rem 9rem;
  background: radial-gradient(circle at top, rgba(255,106,0,0.15), rgba(0,0,0,0.8) 70%);
  box-sizing: border-box;
  animation: fadeIn 1.8s ease;
}

.hero img {
  width: clamp(420px, 35vw, 1024px); /* scales smoothly from 420px up to 1024px */
  height: auto;
  max-width: 90%;
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.8rem;
  color: #ff6a00;
  margin: 0.5rem 0;
}

.hero p {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.6;
}

.hero button {
  margin-top: 2rem;
  background-color: #ff6a00;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.hero button:hover {
  background-color: #ffa14d;
  transform: scale(1.05);
}

/* ===== ABOUT PAGE ===== */
.intro {
  padding: 2rem 1rem 1rem;
}
.intro h1 {
  font-size: 2.5rem;
  color: #ff6a00;
  margin-bottom: 0.5rem;
}
.intro p {
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
  line-height: 1.6;
}
hr.divider {
  border: none;
  height: 2px;
  background-color: #ff6a00;
  width: 60px;
  margin: 1.5rem auto;
  opacity: 0.8;
}
section.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center; /* centers tiles nicely */
}

.founder-tile {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform; /* smoother GPU transition */
}

.founder-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.2);
}

.founder-tile img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background-color: #333;
  margin-bottom: 1rem;

  /* 🧠 crisp on retina + desktop */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.founder-tile h2 {
  color: #ff6a00;
  margin-bottom: 0.3rem;
}

.founder-tile h3 {
  font-size: 1rem;
  color: #fff;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.founder-tile p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  padding: 2.5rem 0 1.5rem;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  z-index: 900;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero img {
    width: clamp(320px, 50vw, 600px);
  }
}

@media (max-width: 600px) {
  .hero img {
    width: clamp(260px, 70vw, 400px);
  }
}

/* ===== Mobile Menu (Hamburger) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Transform when active (turn into X) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Mobile layout: hamburger navigation ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  header nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1a1a1a;
    flex-direction: column; /* stack vertically */
    align-items: flex-start; /* align text left inside drawer */
    width: 200px;
    border-left: 2px solid #ff6a00;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1rem 1.5rem;
    z-index: 1000;
  }

  header nav.active {
    transform: translateX(0);
  }

  header nav a {
    display: block;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
  }

  header .brand span {
    font-size: 1.2rem;
  }
}

@media (min-width: 1200px) {
  .founder-tile img {
    max-width: 160px;
  }
}