/* ─────────────────────────────────────────
   QUMA MOTORSPORTS — Light Sporty UI System
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,800;0,900;1,400;1,600;1,800;1,900&display=swap');

:root {
  /* Yamaha Brand Colors */
  --red: #E60000;
  --red-dark: #b30000;
  --red-glow: rgba(230, 0, 0, 0.25);
  
  --black: #050505;
  --gray-dark: #222222;
  --gray: #666666;
  --gray-light: #e5e5e5;
  --white: #ffffff;
  --bg-color: #f4f4f4;

  /* Social Colors */
  --wa-green: #25D366;
  --fb-blue: #1877F2;
  --maps-red: #EA4335;

  --font: 'Montserrat', sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.3s var(--ease);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--black);
  font-family: var(--font);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* ── BACKGROUND ANGLED ACCENTS ── */
.bg-accent {
  position: absolute;
  z-index: 0;
}
.bg-accent-1 {
  top: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}
.bg-accent-2 {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 40vh;
  background: var(--black);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

/* ── LAYOUT ── */
.layout-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 15px 100px;
}

@media (min-width: 900px) {
  .layout-container {
    grid-template-columns: 400px 1fr;
    gap: 40px;
    padding: 60px 20px;
    align-items: start;
  }
}

/* ── BRAND COLUMN (Left) ── */
.brand-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.header {
  text-align: left;
  animation: slideInLeft 0.6s var(--ease) both;
}

@media (max-width: 899px) {
  .brand-column {
    align-items: center;
  }
  .header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .badges, .brand-badges {
    justify-content: center;
  }
  .branch-section, .global-actions, .social-section {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
}

.main-logo {
  max-width: 180px;
  margin-bottom: 15px;
}

.text-red { color: var(--red); }
.text-black { color: var(--black); font-style: italic; }

.tagline {
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tagline strong {
  color: var(--red);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
  transform: skewX(-10deg);
}

.badge i {
  transform: skewX(10deg);
}

.badge-red {
  background: var(--red);
  color: var(--white);
}

.badge-dark {
  background: var(--black);
  color: var(--white);
}

/* Section Title */
.section-title {
  font-size: 1rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--red);
  transform: skewX(-20deg);
}

/* Tabs */
.branch-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  animation: slideInLeft 0.6s var(--ease) 0.1s both;
}
@media (min-width: 480px) {
  .branch-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.branch-tab {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--r-md);
  padding: 12px 6px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-dark);
  cursor: pointer;
  transition: var(--t);
  transform: skewX(-5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.branch-tab-icon {
  font-size: 1.2rem;
  transform: skewX(5deg); /* Counter skew */
}

.branch-tab span {
  transform: skewX(5deg);
}

.branch-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.branch-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* Cards & Links */
.empty-state {
  margin-top: 15px;
  background: var(--white);
  border: 2px dashed var(--gray-light);
  padding: 20px;
  text-align: center;
  border-radius: var(--r-md);
  color: var(--gray);
  font-weight: 600;
  font-style: italic;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state i {
  font-size: 1.5rem;
  color: var(--red);
}

.branch-card {
  margin-top: 15px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}

.branch-card.hidden {
  display: none;
}

.branch-card-header {
  padding: 15px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.3; }
}

.branch-card-name {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branch-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.link-tile {
  padding: 20px 15px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: var(--t);
  position: relative;
}

.link-tile:first-child {
  border-right: 1px solid var(--gray-light);
}

.link-tile:hover {
  background: #fafafa;
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  transform: skewX(-10deg);
}
.tile-icon i {
  transform: skewX(10deg);
}

.tile-fb .tile-icon { background: var(--fb-blue); }
.tile-maps .tile-icon { background: var(--maps-red); }

.tile-label {
  font-weight: 800;
  color: var(--black);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.tile-sub {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 600;
}

.tile-arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--gray-light);
  transition: var(--t);
}
.link-tile:hover .tile-arrow {
  color: var(--black);
  transform: translate(2px, -2px);
}

/* Global Actions */
.global-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: slideInLeft 0.6s var(--ease) 0.2s both;
}

.action-btn {
  text-decoration: none;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 6px solid var(--black);
  transition: var(--t);
  transform: skewX(-5deg);
}
.action-btn:hover {
  transform: skewX(-5deg) translateX(5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn-icon, .btn-text, .btn-arrow {
  transform: skewX(5deg); /* Counter skew */
}

.btn-icon {
  font-size: 1.8rem;
  width: 40px;
  text-align: center;
}

.btn-wa { border-left-color: var(--wa-green); }
.btn-wa .btn-icon { color: var(--wa-green); }

.btn-catalog { border-left-color: var(--red); }
.btn-catalog .btn-icon { color: var(--red); }

.btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-main {
  font-weight: 900;
  font-size: 1rem;
  color: var(--black);
  text-transform: uppercase;
  font-style: italic;
}

.btn-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
}

.btn-arrow {
  color: var(--gray);
  transition: var(--t);
}
.action-btn:hover .btn-arrow {
  color: var(--black);
  transform: skewX(5deg) translateX(5px);
}

/* Social Section */
.social-section {
  display: flex;
  gap: 10px;
  animation: slideInLeft 0.6s var(--ease) 0.3s both;
}

.social-pill {
  flex: 1;
  text-decoration: none;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-sm);
  transition: var(--t);
  transform: skewX(-10deg);
}
.social-pill i, .social-pill span {
  transform: skewX(10deg);
}

.social-pill:hover {
  background: var(--red);
  transform: skewX(-10deg) translateY(-3px);
}

.site-footer {
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 10px;
}
@media (min-width: 900px) {
  .site-footer {
    color: rgba(255,255,255,0.4);
  }
}


/* ── CAROUSEL COLUMN (Right) ── */
.promo-column {
  animation: slideInRight 0.8s var(--ease) both;
  width: 100%;
}

.carousel-container {
  width: 100%;
  background: var(--white);
  padding: 15px;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  /* Angled style */
  clip-path: polygon(0 2%, 100% 0, 98% 100%, 2% 98%);
}

.carousel-clip {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f8f8f8; /* Background for non-filling images */
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.c-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  /* Instead of aspect-ratio, we will let the image dictate height up to a max */
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* The fix requested by user */
  display: block;
}

.carousel-pips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.pip {
  width: 30px;
  height: 6px;
  background: var(--gray-light);
  transform: skewX(-20deg);
  cursor: pointer;
  transition: var(--t);
}
.pip.active {
  background: var(--red);
  width: 45px;
}

/* ── FLOATING FABS ── */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 999;
}

.mini-fab {
  background: var(--white);
  color: var(--gray-dark);
  border: 1px solid var(--gray-light);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: var(--t);
  animation: slideInRight 0.6s var(--ease) 0.5s both;
}

.mini-fab:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.wa-fab {
  background: var(--wa-green);
  color: var(--white);
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--t);
  text-transform: uppercase;
  animation: slideInRight 0.6s var(--ease) 0.6s both;
}
.wa-fab i { font-size: 1.5rem; }

.wa-fab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

@media (max-width: 600px) {
  .wa-fab {
    padding: 15px;
    border-radius: 50%;
  }
  .wa-fab-label {
    display: none;
  }
  
  .carousel-container {
    clip-path: none;
    border-radius: var(--r-md);
  }
}


/* ── ANIMATIONS ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in {
  animation: slideInLeft 0.4s var(--ease) both;
}
