/*
Theme Name: Premium Cycle Brands
Theme URI: https://premiumcyclebrands.co.uk
Author: Premium Cycle Brands
Author URI: https://premiumcyclebrands.co.uk
Description: Official website theme for Premium Cycle Brands - Official UK & Europe Distributor for Eastern Bikes
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: premium-cycle-brands
*/

/* ─── TOKENS ─── */
:root {
  --navy:   #09073c;
  --navy2:  #14116b;
  --cream:  #f7f6f2;
  --white:  #ffffff;
  --sand:   #eae7de;
  --border: rgba(9,7,60,0.1);
  --mid:    #7a7a9a;
  --font:   'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── TOP NAV ─── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  background: rgba(9,7,60,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.top-nav img {
  height: 56px;
  width: auto;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.cog {
  position: absolute;
  opacity: 0.04;
  animation: spin 20s linear infinite;
  pointer-events: none;
}
.cog-1 { width: 380px; height: 380px; top: -100px; left: -100px; animation-duration: 30s; }
.cog-2 { width: 280px; height: 280px; bottom: -80px; right: -60px; animation-duration: 22s; animation-direction: reverse; }
.cog-3 { width: 180px; height: 180px; top: 20%; right: 5%; animation-duration: 18s; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeDown { from { opacity:0; transform: translateY(-16px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes bounceY  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.hero-inner { position: relative; z-index: 1; max-width: 640px; }

.under-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeDown 0.7s 0.1s ease both;
}
.under-badge span.dot {
  width: 6px; height: 6px;
  background: #f0a500;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  animation: fadeDown 0.7s 0.15s ease both;
}
.hero h1 em { font-style: normal; color: rgba(255,255,255,0.35); }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2.8rem;
  animation: fadeDown 0.7s 0.22s ease both;
}
.dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.7s 0.29s ease both;
}
.dist-badge-icon { font-size: 1.5rem; }
.dist-badge-text { text-align: left; }
.dist-badge-text strong {
  display: block; font-size: 0.82rem; font-weight: 700; color: #fff;
}
.dist-badge-text span {
  font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: #ffffff;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  animation: fadeIn 1s 0.6s ease both;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  margin-top: 0.5rem;
}
.scroll-cta:hover { background: #e8e6ff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.scroll-cta svg { animation: bounceY 1.4s ease-in-out infinite; }

/* ─── SECTION SHARED ─── */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 1rem; }
.section-rule { width: 40px; height: 3px; background: var(--navy); border-radius: 2px; margin-bottom: 3rem; }

/* ─── BRANDS ─── */
#brands { background: var(--white); padding: 5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#brands .section { padding-top: 0; padding-bottom: 0; }
#brands .section-label { color: var(--mid); }
#brands .section-title { color: var(--navy); }
#brands .section-rule { background: var(--navy); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.brand-card {
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.8rem 1.5rem 2rem;
  transition: background 0.25s; position: relative; gap: 0.9rem;
}
.brand-card:hover { background: var(--cream); }
.brand-img-wrap {
  width: 100%; height: 220px; border-radius: 8px; overflow: hidden;
  background: var(--navy); position: relative;
}
.brand-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.brand-card:hover .brand-img-wrap img { transform: scale(1.04); }
.brand-name { font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 0.03em; }
.brand-type { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }
.brand-official-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--navy); color: #fff; padding: 0.3rem 0.7rem; border-radius: 3px;
}

/* ─── WHERE TO BUY ─── */
#buy { border-bottom: 1px solid var(--border); }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.market-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center;
  gap: 0.9rem; text-decoration: none;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s; position: relative;
}
.market-card:hover { box-shadow: 0 6px 32px rgba(9,7,60,0.1); transform: translateY(-3px); border-color: rgba(9,7,60,0.2); }
.market-card.coming-soon { opacity: 0.55; cursor: default; }
.market-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.market-card:not(a):not(.coming-soon) { cursor: default; }
.market-card:not(a):not(.coming-soon):hover { box-shadow: none; transform: none; border-color: var(--border); }
.market-card:not(a) .market-tag { color: var(--mid); }
.market-logo-wrap { height: 48px; display: flex; align-items: center; justify-content: center; }
.market-logo-wrap img { max-height: 48px; max-width: 130px; width: auto; object-fit: contain; }
.market-name { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; }
.market-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.market-card:not(.coming-soon) .market-tag { color: #2e8b57; }
.coming-pill {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #f0a500; color: #fff; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 0.25rem 0.7rem;
  border-radius: 100px; white-space: nowrap;
}

/* ─── LOCATION ─── */
#location { border-bottom: 1px solid var(--border); }
.map-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.map-info { display: flex; flex-direction: column; gap: 1.5rem; }
.addr-block { display: flex; flex-direction: column; gap: 0.3rem; }
.addr-block h3 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.3rem; }
.addr-block p, .addr-block a { font-size: 0.95rem; font-weight: 400; color: var(--navy); line-height: 1.65; text-decoration: none; }
.addr-block a:hover { text-decoration: underline; }
.map-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); height: 420px; box-shadow: 0 4px 24px rgba(9,7,60,0.07); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── FOOTER ─── */
footer { background: var(--navy); padding: 3rem 2rem; text-align: center; }
.footer-logo { height: auto; width: 240px; margin: 0 auto 1.5rem; display: block; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); line-height: 1.8; }
.footer-dist { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-top: 0.6rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
  .top-nav { padding: 0 1.2rem; }
}
@media (max-width: 540px) {
  .brands-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── TOP BAR ─── */
.top-bar {
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 2.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.top-bar-link:hover { color: #fff; }
.top-bar-link svg { flex-shrink: 0; }

/* push hero down to account for top bar + nav */
.hero { padding-top: 116px; }

/* ─── FOOTER CONTACT ─── */
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-divider {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

/* ─── NAV EMAIL (top right) ─── */
.top-nav {
  justify-content: space-between;
}
.nav-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  margin-left: auto;
}
.nav-email:hover { color: #fff; }
.nav-email svg { flex-shrink: 0; opacity: 0.7; }
