/* ============================================
   RYDON PUBLISHING — MAIN STYLESHEET
   Brand colours from official guidelines
   ============================================ */

:root {
  --teal:       #008EB3;
  --orange:     #EC6839;
  --yellow:     #FFD618;
  --light-blue: #749BA9;
  --dark-grey:  #5B6163;
  --white:      #ffffff;
  --off-white:  #f8f8f6;
  --border:     #e2e2de;
  --text:       #3a3a3a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Trebuchet MS', 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-grey);
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 30px 0 60px;
}

.section--grey {
  background: var(--off-white);
}

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  width: 100%;
  box-sizing: border-box;
}

.site-logo img {
  height: 52px;
  width: auto;
}

/* ============ NAVIGATION ============ */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-grey);
  transition: color 0.2s;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
  color: var(--teal);
}

/* Dropdown */
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 200;
}

.site-nav li:hover .dropdown {
  display: block;
}

.site-nav .dropdown li a {
  display: block;
  padding: 10px 18px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-grey);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.site-nav .dropdown li:last-child a {
  border-bottom: none;
}

.site-nav .dropdown li a:hover {
  background: var(--teal);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-grey);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============ CAROUSEL ============ */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark-grey);
  line-height: 0;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  line-height: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { background: var(--teal); }
.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.carousel-dot.active { background: var(--white); }

/* ============ HOMEPAGE SECTIONS ============ */
.section-title {
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

/* ============ BOOK GRID ============ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.book-grid--wide {
  grid-template-columns: repeat(4, 1fr);
}

.book-card {
  text-align: center;
  transition: transform 0.2s;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-card__cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
}

.book-card:hover .book-card__cover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.book-card__title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-grey);
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.book-card__author {
  font-size: 13px;
  color: var(--light-blue);
  font-style: italic;
  margin-top: 3px;
}

.book-card__img-wrap {
  position: relative;
}

.book-card__new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  z-index: 1;
}

.book-detail__new-title {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.ae-intro {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  border-left: 4px solid var(--yellow);
  padding-left: 20px;
  margin-bottom: 8px;
}

/* ============ AE FACTS PROMO ============ */
.ae-promo {
  background: var(--white);
  border-top: 4px solid var(--teal);
  border-bottom: 4px solid var(--teal);
  padding: 60px 0;
}

.ae-promo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ae-promo__text h2 {
  color: var(--teal);
  font-size: 32px;
  margin-bottom: 16px;
}

.ae-promo__text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}

.ae-promo__image img {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  max-width: 260px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.98); }

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

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

.btn--secondary {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn--secondary:hover {
  background: var(--teal);
  color: var(--white);
}

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

.btn--teal:hover {
  background: #006d8a;
  color: var(--white);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--dark-grey);
}

.btn--yellow:hover {
  background: #e6c000;
  color: var(--dark-grey);
}

/* ============ BOOK DETAIL PAGE ============ */
.book-detail {
  padding: 48px 0 64px;
}

.book-detail__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.book-detail__cover-wrap {
  position: sticky;
  top: 100px;
}

.book-detail__cover {
  width: 100%;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.book-detail__back-cover {
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.book-detail__series {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.book-detail__title {
  font-size: 38px;
  color: var(--dark-grey);
  margin-bottom: 6px;
}

.book-detail__author {
  font-size: 18px;
  color: var(--light-blue);
  font-style: italic;
  margin-bottom: 24px;
}

.book-detail__description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
  border-left: 4px solid var(--yellow);
  padding-left: 20px;
}

.book-detail__meta {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 14px;
}

.book-detail__meta-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.book-detail__meta-row:last-child { border-bottom: none; }

.book-detail__meta-label {
  font-weight: 700;
  color: var(--dark-grey);
  min-width: 100px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.book-detail__meta-value {
  color: var(--text);
}

.buy-section h3 {
  font-size: 18px;
  color: var(--dark-grey);
  margin-bottom: 16px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ SPREADS / LOOK INSIDE ============ */
.spreads-section {
  padding: 56px 0 16px;
  background: var(--off-white);
}

.spreads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.spread-image {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
}

.spread-image:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--light-blue);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--light-blue);
}

.breadcrumb a:hover { color: var(--teal); }

.breadcrumb span { margin: 0 8px; }

/* ============ ABOUT PAGE ============ */
.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 24px;
  color: var(--text);
}

/* ============ TRADE PAGE ============ */
.trade-section {
  margin-bottom: 48px;
}

.trade-section h2 {
  font-size: 20px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
}

.trade-contact {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.trade-contact strong {
  display: block;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 16px;
  color: var(--dark-grey);
  margin-bottom: 6px;
}

.trade-contact p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.trade-contact a { color: var(--teal); }
.trade-contact a:hover { color: var(--orange); }

/* ============ FOOTER LOGO ============ */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo__rp {
  background: var(--teal);
  color: var(--white);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo__text {
  color: var(--white);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

/* ============ RETAILER BUY BUTTONS ============ */
.buy-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn--amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF9900;
  color: #111;
  padding: 11px 22px;
  border-radius: 3px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}

.btn--amazon:hover {
  background: #e68a00;
  color: #111;
}

.btn--amazon svg {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.btn--giftstome {
  display: inline-flex;
  align-items: center;
}

.btn--giftstome:hover {
  opacity: 0.85;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark-grey);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--yellow);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-col address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.75;
}

.footer-col address a {
  color: rgba(255,255,255,0.7);
}

.footer-col address a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
}

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

.footer-social a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-social a:hover { color: var(--yellow); }

/* ============ PAGE HERO (non-home pages) ============ */
.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 40px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 8px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .book-detail__grid {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .ae-promo__inner {
    grid-template-columns: 1fr;
  }

  .spreads-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .book-detail__grid {
    grid-template-columns: 1fr;
  }

  .book-detail__cover-wrap {
    position: static;
    max-width: 240px;
    margin: 0 auto 32px;
  }

  .site-nav { display: none; }
  .site-nav.open { display: block; }

  .nav-toggle { display: block; }

  .header-inner { flex-wrap: wrap; }

  .site-nav {
    width: 100%;
    margin-top: 12px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav .dropdown {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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