/* =========================================================
   Unity Focus, styles.css
   Editorial minimalism. Mobile-first.
   ========================================================= */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: #F5F1EB;
}

.section__title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section__sub {
  color: #6B6B6B;
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 540px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  padding: 0.85rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #7A9E7E;
  letter-spacing: 0.01em;
}

.nav__links {
  display: none;
  gap: 2.25rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: #1A1A1A;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: #7A9E7E;
}

/* hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: #1A1A1A;
  transition: transform 0.3s ease, opacity 0.2s ease;
  margin: 0 auto;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu (open state) */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #FAFAF8;
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background-color: #F5F0EB;
  /* Unsplash overhead candy photo with a warm cream overlay for readability. */
  background-image:
    linear-gradient(180deg, rgba(245, 240, 235, 0.82) 0%, rgba(60, 45, 35, 0.45) 100%),
    url("https://images.unsplash.com/photo-1588755821761-a4d1eafe2b19?w=2400&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  max-width: 880px;
  text-align: center;
  animation: fadeUp 1.2s ease both;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.96);
  max-width: 780px;
  margin: 0 auto;
  text-shadow: 0 1px 14px rgba(30, 20, 10, 0.55);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Brands grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.brand-card {
  padding: 2.25rem 1.75rem;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background-color: #FFFFFF;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.08);
  border-color: rgba(122, 158, 126, 0.3);
}

.brand-card__name {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.brand-card__desc {
  color: #6B6B6B;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Products grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  background-color: transparent;
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card:hover .product-card__media {
  box-shadow: 0 16px 36px rgba(26, 26, 26, 0.10);
}

.product-card__media {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #F5F0EB;
  aspect-ratio: 1 / 1;
  transition: box-shadow 0.25s ease;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__brand {
  font-size: 0.7rem;
  font-weight: 500;
  color: #7A9E7E;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

.product-card__name {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.product-card__desc {
  color: #6B6B6B;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about__heading .section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

.about__copy p {
  color: #1A1A1A;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

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

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  max-width: 640px;
}

.contact .section__title {
  text-align: center;
}

.contact .section__sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2rem;
}

.contact__email {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: #7A9E7E;
  margin-bottom: 2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact__email:hover {
  border-bottom-color: #7A9E7E;
}

.contact__address {
  font-style: normal;
  color: #6B6B6B;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #7A9E7E;
  padding: 1.5rem 0;
  background-color: #FAFAF8;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: #6B6B6B;
}

/* ---------- Responsive: Tablet ---------- */
@media (min-width: 768px) {
  .section {
    padding: 6.5rem 0;
  }

  .section__title {
    font-size: 2.75rem;
  }

  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

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

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

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Responsive: Desktop ---------- */
@media (min-width: 1200px) {
  .section {
    padding: 8rem 0;
  }

  .section__title {
    font-size: 3rem;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .about {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
