/* ============================================
   TANDEM TALKS — Brand variables
   ============================================ */

/*
  COLO PRO FONT:
  Colo Pro is a commercial font — to use it on the web you need the .woff2
  and .woff files (check your license allows web embedding, or purchase a
  web license from the foundry). Once you have them:
  1. Drop the files into assets/fonts/
  2. Update the src paths below
  3. Reload — it will work automatically
  Until then, Nunito (loaded from Google Fonts) is the fallback.
*/
@font-face {
  font-family: 'Colo Pro';
  src: url('../assets/fonts/ColoProRegular.woff2') format('woff2'),
       url('../assets/fonts/ColoProRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Colo Pro';
  src: url('../assets/fonts/ColoProBold.woff2') format('woff2'),
       url('../assets/fonts/ColoProBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary:    #841462;   /* deep magenta — nav, footer, dark sections */
  --color-accent:     #ad3734;   /* deep red — CTAs, buttons                  */
  --color-accent-alt: #faa5f2;   /* soft pink — labels on dark backgrounds    */
  --color-highlight:  #b3f9f2;   /* mint teal — backgrounds, borders          */
  --color-detail:     #84faac;   /* mint green — checkmarks, fine details     */
  --color-bg:         #f8f5f0;   /* warm white — page background              */
  --color-text:       #222222;
  --color-text-light: #555555;
  --color-white:      #ffffff;

  --font-heading: 'Colo Pro', 'Nunito', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.45rem); }

/* ============ LAYOUT UTILITIES ============ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--teal {
  background: var(--color-highlight);
  color: var(--color-text);
}

.section--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

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

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
}

.nav__logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-highlight);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--color-white); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  background: var(--color-highlight) !important;
  color: var(--color-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition) !important;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px);
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn--primary:hover { opacity: 0.88; }

.btn--teal {
  background: var(--color-highlight);
  color: var(--color-primary);
}

.btn--teal:hover { opacity: 0.88; }

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

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

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

/* ============ HERO ============ */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 70% 50%, rgba(179,249,242,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(173,55,52,0.15) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--color-highlight);
  color: var(--color-primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero__title span { color: var(--color-highlight); }

.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo {
  width: 380px;
  height: 380px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.3));
}

/* Bike illustration — transparent bg, floats in hero */
.bike-annotation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__bike {
  width: 360px;
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(0,0,0,0.22));
}

/* Robin label annotation */
.robin-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
  padding-left: 24px;
  align-self: flex-start;
}

.robin-label__text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-accent-alt);
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: right;
}

/* Buttons with icons */
.btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn__icon {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.btn__icon--bike {
  height: 30px;
}

/* Helmet images */
.helmet-hero {
  width: 160px;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18));
}

.helmet-card {
  width: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.12));
}

.rule-box__helmet {
  width: 130px;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-highlight);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card__title {
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}

.card__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Cards inside a teal section */
.section--teal .card { border-top-color: var(--color-primary); }
.section--teal .card__title { color: var(--color-primary); }

/* Cards inside a dark section */
.section--dark .card { border-top-color: var(--color-highlight); }

/* ============ SECTION HEADER ============ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__label {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section--teal .section-header__label { color: var(--color-accent); }
.section--dark .section-header__label { color: var(--color-highlight); }

.section-header__title { margin-bottom: 1rem; }

.section-header__sub {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.section--teal .section-header__sub { color: rgba(0,0,0,0.6); }
.section--dark .section-header__sub { color: rgba(255,255,255,0.65); }

/* ============ TEAL DIVIDER ============ */
.teal-band {
  background: var(--color-highlight);
  padding: 2rem 0;
  text-align: center;
}

.teal-band p {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 1.5rem;
}

/* ============ INSTAGRAM STRIP ============ */
.instagram-strip {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  padding: 1.1rem 0;
  text-align: center;
}

.instagram-strip a {
  color: var(--color-white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.instagram-strip a:hover { opacity: 0.85; }

/* ============ BOOKING FORM ============ */
.form-section {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  border-top: 4px solid var(--color-highlight);
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.form-group label .req {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0dbd4;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(179,249,242,0.45);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.time-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.time-picker select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0dbd4;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  cursor: pointer;
}

.time-picker select:focus {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(179,249,242,0.45);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--color-highlight);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.form-check label {
  font-size: 0.9rem;
  color: var(--color-primary);
  line-height: 1.55;
  font-weight: 500;
}

.form-check label a {
  text-decoration: underline;
  color: var(--color-accent);
}

.helmet-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.4rem;
  padding-left: 1.6rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step { text-align: center; }

.step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-highlight);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step__title {
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.step__text {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ============ SAFETY PAGE ============ */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.safety-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-highlight);
}

.safety-card__title {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.safety-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.safety-card__list li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  padding-left: 1.4rem;
  position: relative;
}

.safety-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-detail);
  font-weight: 700;
}

/* ============ HELMET RULE BOX ============ */
.rule-box {
  background: var(--color-highlight);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.rule-box__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.rule-box__text {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__contact {
  margin-top: 1rem;
}

.footer__contact a {
  display: inline-block;
  background: var(--color-highlight);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity var(--transition);
}

.footer__contact a:hover { opacity: 0.82; }

.footer__brand-name {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer__social a {
  color: var(--color-highlight);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity var(--transition);
}

.footer__social a:hover { opacity: 0.8; }

.footer__col-title {
  color: var(--color-highlight);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-highlight); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: var(--color-primary);
  padding: 5rem 0 4rem;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 120%, rgba(179,249,242,0.14) 0%, transparent 65%);
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__label {
  display: inline-block;
  background: var(--color-highlight);
  color: var(--color-primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero__title { color: var(--color-white); margin-bottom: 1rem; }

.page-hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============ SUCCESS MESSAGE ============ */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success__title { color: var(--color-primary); margin-bottom: 0.5rem; font-family: var(--font-heading); }
.form-success__text { color: var(--color-text-light); }

/* ============ FLOATING BOOK A RIDE CTA ============ */
.float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: var(--color-highlight);
  border-radius: 50px;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 0.5rem;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
  overflow: hidden;
  width: 58px;
  height: 58px;
  transition: width 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.25s ease;
  text-decoration: none;
}

.float-cta:hover {
  width: 190px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.26);
}

/* Text sits before the icon in DOM order so it appears on the left when revealed */
.float-cta__text {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  padding-left: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease 0.08s, transform 0.2s ease 0.08s;
  order: -1;
}

.float-cta:hover .float-cta__text {
  opacity: 1;
  transform: translateX(0);
}

.float-cta__bike {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: darken;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 0.85rem 1.5rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-section { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; }
  .hero__inner { padding: 3rem 1.5rem; }
}
