/* Irolita Books — irolita.css */

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

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  background: #E8E5DC;
  color: #2A3530;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #7A3020; text-decoration: underline; }
a:hover { text-decoration: underline; color: #5C2010; }

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

/* ── Layout ── */
.site-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  padding: 0 2rem;
}

/* ── Header ── */
.site-header {
  background: #1C2B23;
  width: 100%;
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.2rem;
  text-align: center;
}

.site-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #E8E5DC;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.site-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7AAF96;
  margin-top: 0.3rem;
}

/* ── Navigation ── */
.site-nav {
  background: #243320;
  border-bottom: 1px solid #1C2B23;
}

.site-nav ul:not(.dropdown) {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.site-nav a {
  display: block;
  color: #9DC4B0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-right: 0.5px solid #354D30;
  transition: color 0.15s, background 0.15s;
}

.site-nav a { text-decoration: none; }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; }

.site-nav a:hover,
.site-nav a.active {
  color: #E8E5DC;
  background: #1C2B23;
  text-decoration: none;
}

/* ── Page Content ── */
.page-content {
  flex: 1;
  background: #F0EDE4;
  width: 100%;
}
.page-content-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  background: #F7F5F0;
}

/* ── Home: Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 1rem 0 2.5rem;
  align-items: start;
}

.hero-img {
  border-radius: 3px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.75rem;
  color: #6B7A72;
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

.hero-img-placeholder {
  background: #C8C5BC;
  border-radius: 3px;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A7870;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-text h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1C2B23;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 0.9rem;
  color: #3D4A44;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  background: #243320;
  color: #E8E5DC;
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.btn:hover {
  background: #1C2B23;
  text-decoration: none;
  color: #E8E5DC;
}

/* ── Home: Search Form ── */
.hero-search {
  background: #EAE7DE;
  border: 0.5px solid #C0BDB4;
  border-radius: 3px;
  padding: 1.5rem;
  align-self: start;
}

.hero-search form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-search .adv-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-search .adv-field label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7A72;
}

.hero-search .adv-field input {
  padding: 0.5rem 0.75rem;
  border: 0.5px solid #C0BDB4;
  border-radius: 2px;
  background: #F7F5F0;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: #2A3530;
  width: 100%;
}

.hero-search .adv-field input:focus {
  outline: none;
  border-color: #7AAF96;
}

.hero-search button[type="submit"] {
  background: #243320;
  color: #E8E5DC;
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.15s;
}

.hero-search button[type="submit"]:hover {
  background: #1C2B23;
}

/* ── Divider ── */
.section-divider {
  height: 0.5px;
  background: #C0BDB4;
  margin: 0 2rem;
}

/* ── Specialities ── */
.specialities {
  padding: 1.8rem 2rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6B7A72;
  margin-bottom: 1rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.spec-tag {
  background: #E2DFD6;
  border: 0.5px solid #C0BDB4;
  border-radius: 2px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #3D4A44;
  text-align: center;
}

/* ── Shipping Notice ── */
.shipping-notice {
  background: #EAE7DE;
  border-top: 0.5px solid #C0BDB4;
  border-bottom: 0.5px solid #C0BDB4;
  padding: 1.1rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #4A5750;
  line-height: 1.6;
}

.shipping-notice strong {
  color: #1C2B23;
  font-weight: 500;
}

.shipping-notice a {
  color: #7A3020;
}

/* ── Marketplace Notice ── */
.marketplace-notice {
  padding: 0.8rem 2rem;
  text-align: center;
}

.marketplace-notice p {
  font-size: 0.78rem;
  color: #6B7A72;
  line-height: 1.6;
}

.marketplace-notice a {
  color: #7A3020;
}

/* ── Name Section ── */
.name-section {
  background: #243320;
  padding: 1.8rem 2rem;
}

.name-section .section-label {
  color: #7AAF96;
}

.name-section p {
  font-size: 0.85rem;
  color: #9DC4B0;
  line-height: 1.8;
}

.name-section a {
  color: #C0DDD0;
}

.name-section em {
  font-style: italic;
}

/* ── Generic Section ── */
.page-section {
  padding: 2.5rem 2rem;
}

.page-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1C2B23;
  margin-bottom: 1.2rem;
}

.page-section h3 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #1C2B23;
  margin: 1.5rem 0 0.6rem;
}

.page-section p {
  font-size: 0.9rem;
  color: #3D4A44;
  margin-bottom: 0.9rem;
}

.page-section a {
  color: #7A3020;
}

/* ── Inventory Page ── */
.inventory-platform {
  border: 0.5px solid #C0BDB4;
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  background: #F7F5F0;
}

.inventory-platform h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1C2B23;
  margin: 0 0 0.6rem;
}

.inventory-platform p {
  font-size: 0.85rem;
  color: #4A5750;
  margin-bottom: 0.7rem;
}

.inventory-platform .btn {
  font-size: 0.65rem;
  padding: 0.55rem 1.1rem;
}

.biblio-search {
  margin-top: 0.8rem;
}

/* ── Packing Page ── */
.packing-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid #C0BDB4;
}

.packing-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.packing-step.reverse { direction: rtl; }
.packing-step.reverse > * { direction: ltr; }

.packing-step img {
  border-radius: 3px;
  width: 100%;
}

.packing-step-text h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1C2B23;
  margin-bottom: 0.5rem;
}

.packing-step-text p {
  font-size: 0.85rem;
  color: #4A5750;
  line-height: 1.7;
}

.step-number {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7AAF96;
  margin-bottom: 0.3rem;
}

/* ── Contact Page ── */
.contact-block {
  max-width: 480px;
}

.contact-block p {
  font-size: 0.9rem;
  color: #3D4A44;
  margin-bottom: 1rem;
}

.contact-email {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #1C2B23;
  display: block;
  margin: 1.2rem 0;
}

.contact-email:hover {
  color: #7A3020;
}

/* ── Footer ── */
.site-footer {
  background: #141F18;
  width: 100%;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer p {
  font-size: 0.72rem;
  color: #4A6357;
}

.site-footer a {
  font-size: 0.72rem;
  color: #7AAF96;
  text-decoration: none;
}

.footer-motto {
  width: 100%;
  text-align: center;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: #C8E0D4;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

/* ── Reference Section ── */

/* ── Quotations ── */
.quote-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid #E0DDD4;
}

.quote-block:last-of-type {
  border-bottom: none;
}

.quote-block p {
  font-size: 0.9rem;
  color: #3D4A44;
  margin-bottom: 0.4rem;
}

.quote-attr {
  font-size: 0.82rem;
  color: #6B7A72;
  font-style: italic;
  padding-left: 1rem;
}

.ref-breadcrumb {
  font-size: 0.75rem;
  color: #6B7A72;
  margin-bottom: 1.2rem;
}

.ref-breadcrumb a { color: #7A3020; }

.ref-intro {
  font-size: 0.95rem;
  color: #3D4A44;
  border-left: 2px solid #7AAF96;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.condition-grades {
  margin: 1.2rem 0 1.5rem;
  border: 0.5px solid #C0BDB4;
  border-radius: 3px;
  overflow: hidden;
}

.condition-grade {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 0.5px solid #C0BDB4;
  font-size: 0.85rem;
}

.condition-grade:last-child { border-bottom: none; }

.grade-code {
  background: #E2DFD6;
  padding: 0.7rem 0.9rem;
  font-weight: 500;
  color: #1C2B23;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
}

.grade-desc {
  padding: 0.7rem 1rem;
  color: #3D4A44;
  line-height: 1.6;
  background: #F7F5F0;
}

.ref-list {
  margin: 0.5rem 0 1rem 1.2rem;
  font-size: 0.88rem;
  color: #3D4A44;
  line-height: 1.9;
}

.ref-list a { color: #7A3020; }

.ref-footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 0.5px solid #C0BDB4;
  font-size: 0.78rem;
  color: #6B7A72;
  font-style: italic;
}

.ref-index-group {
  margin-bottom: 1.5rem;
}

.ref-index-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6B7A72;
  margin-bottom: 0.6rem;
}

.ref-index-list {
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.9;
}

.ref-index-list a {
  color: #7A3020;
  font-weight: 500;
}

/* ── Nav Dropdown ── */
.has-dropdown { position: relative; }

.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.6em;
  vertical-align: middle;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1C2B23;
  border: 0.5px solid #354D30;
  list-style: none;
  min-width: 140px;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  flex-direction: column;
}

.dropdown li a {
  display: block;
  color: #9DC4B0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border-right: none;
  border-bottom: 0.5px solid #354D30;
  white-space: nowrap;
}

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

.dropdown li a:hover,
.dropdown li a.active {
  color: #E8E5DC;
  background: #243320;
  text-decoration: none;
}

.has-dropdown:hover .dropdown { display: block; }
.has-dropdown.open .dropdown { display: block; }

/* ── Favourite Books ── */
.fav-books {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fav-book {
  border-left: 2px solid #C0BDB4;
  padding-left: 1rem;
}

.fav-book-title {
  font-size: 0.88rem;
  color: #1C2B23;
  font-weight: 500;
}

.fav-book-note {
  font-size: 0.82rem;
  color: #6B7A72;
  margin-top: 0.2rem;
  padding-left: 0.75rem;
}

/* ── Hamburger button (hidden on desktop) ── */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #9DC4B0;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .packing-step { grid-template-columns: 1fr; }
  .packing-step.reverse { direction: ltr; }
  .site-footer { flex-direction: column; text-align: center; }

  .site-tagline { letter-spacing: 0.08em; }

  /* Hamburger visible, nav hidden until open */
  #nav-toggle { display: block; }

  .site-nav ul:not(.dropdown) {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .site-nav.nav-open ul:not(.dropdown) {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1.5rem;
    border-right: none;
    border-bottom: 0.5px solid #354D30;
  }

  /* Dropdown becomes inline on mobile */
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: #172418;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 2.5rem;
  }
}
