/* =============================================
   Brand Brothers – Static Clone Stylesheet
   ============================================= */

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

:root {
  --color-black:      #000000;
  --color-white:      #ffffff;
  --color-navy:       #0e2096;
  --color-navy-dark:  #070f50;
  --color-red:        #ed1c24;
  --color-blue:       #0088cb;
  --color-yellow:     #ffcb05;
  --color-grey-light: #e8e6e6;
  --color-grey:       #727272;

  --font-main: Arial, Helvetica, sans-serif;
  --header-height: 80px;
  --max-width: 1200px;
  --section-pad: 80px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  height: var(--header-height);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.97);
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-instagram {
  margin-left: 40px;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.header-instagram:hover {
  opacity: 1;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 56px;
}

.main-nav a {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.9;
}

.main-nav a:hover,
.main-nav a.nav-link-active {
  opacity: 1;
  border-bottom-color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: auto;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo-wrap {
  display: block;
}

.hero-logo {
  width: clamp(280px, 45vw, 560px);
  height: auto;
  filter: brightness(0) invert(1);
  animation: fadeInDown 0.9s ease both,
             logo-glow-pulse 4s 1s ease-in-out infinite;
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(13px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fadeInDown 0.9s 0.15s ease both;
}

.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  animation: fadeInDown 0.9s 0.3s ease both;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid var(--color-white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  animation: fadeInDown 0.9s 0.45s ease both;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-white);
}

/* ---------- Section Shared ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 56px;
}

/* ---------- About ---------- */
.about {
  background: var(--color-white);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.about-main-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 72px;
}

/* Each alternating row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--color-grey-light);
}

.about-row:last-child {
  border-bottom: 1px solid var(--color-grey-light);
}

/* Row 2 & 4: hex is first in DOM → naturally appears left */

/* Hexagon image */
.about-hex img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-hex img:hover {
  transform: scale(1.03);
}

/* Slide-in animation setup — shared transition */
.about-hex,
.about-text {
  transition: transform 2.25s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   2.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Rows 1 & 3: hex on RIGHT starts right, text on LEFT starts left */
.about-row .about-hex  { transform: translateX(80px);  opacity: 0; }
.about-row .about-text { transform: translateX(-80px); opacity: 0; }

/* Rows 2 & 4: hex on LEFT starts left, text on RIGHT starts right */
.about-row--reverse .about-hex  { transform: translateX(-80px); opacity: 0; }
.about-row--reverse .about-text { transform: translateX(80px);  opacity: 0; }

/* Triggered by IntersectionObserver */
.about-hex.slide-in,
.about-text.slide-in {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* Text side */
.about-sub-title {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--color-black);
}

.about-sub-title--gold {
  color: #c8920a;
}

.about-list {
  list-style: none;
  counter-reset: about-counter;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  counter-increment: about-counter;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
}

.about-list li::before {
  content: counter(about-counter) ".";
  font-weight: 700;
  color: var(--color-black);
  padding-top: 1px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}

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

.about-text--quote blockquote {
  font-size: clamp(14px, 1.5vw, 18px);
  font-style: italic;
  line-height: 1.8;
  color: #444;
  border-left: 4px solid var(--color-black);
  padding-left: 24px;
}

/* ---------- Clients ---------- */
.clients {
  background: #111111;
  overflow: hidden;
}

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

.clients-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.clients-track {
  /* Static grid on desktop, marquee on mobile handled via JS */
}

.clients-sub {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-top: -44px;
  margin-bottom: 56px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Contact ---------- */
.contact {
  background: #222222;
  text-align: center;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.contact-title {
  color: var(--color-white);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 10px;
  text-transform: uppercase;
}

.contact-intro {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.9;
}

.contact-email {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--color-white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-title {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
}

.footer-col-title--link:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2e2e2e;
  transition: background 0.2s;
}

.social-icon:hover {
  background: #444;
}

.footer-address {
  font-style: normal;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 2;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: var(--color-white);
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-glow-pulse {
  0%, 100%  { filter: brightness(0) invert(1) drop-shadow(0 0 4px  rgba(255,255,255,0.1)); }
  15%       { filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(255,255,255,0.5)); }
  30%       { filter: brightness(0) invert(1) drop-shadow(0 0 4px  rgba(255,255,255,0.1)); }
  45%       { filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(255,255,255,0.5)); }
  60%, 99%  { filter: brightness(0) invert(1) drop-shadow(0 0 4px  rgba(255,255,255,0.1)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* On mobile always show hex above text regardless of row type */
  .about-row .about-hex,
  .about-row--reverse .about-hex {
    order: -1;
  }

  .about-hex img {
    max-width: 260px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
    --section-pad: 56px 20px;
  }

  .logo {
    height: 42px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }

  .client-logo img {
    max-width: 130px;
    max-height: 70px;
  }

  .hero-logo {
    width: 120px;
  }
}

@media (max-width: 400px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none !important; }
  .about-hex,
  .about-text {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
