:root {
  --bg: #faf8f5;
  --fg: #1a2740;
  --card: #ffffff;
  --gold: #d4a843;
  --gold-light: #e8c97a;
  --deep-blue: #1a2e4a;
  --deep-blue-light: #2d4a6e;
  --sage-light: #e3ede6;
  --cream: #f0e8d8;
  --muted: #6b7a8d;
  --border: #d5dae0;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--fg); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100px; position: relative; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li > a:not(.nav-dropdown-trigger) { padding: 10px 22px; font-size: 1.15rem; font-weight: 600; border-radius: var(--radius); transition: color 0.2s; display: inline-block; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; font-size: 1.15rem; font-weight: 600; border-radius: var(--radius); transition: color 0.2s; cursor: pointer; }
.nav-caret { font-size: 0.65em; opacity: 0.85; margin-top: 2px; }
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.active > .nav-dropdown-trigger { color: var(--gold); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,0.1); min-width: 220px; padding: 8px 0; list-style: none; z-index: 110; }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 12px 22px; font-size: 1rem; font-weight: 500; color: var(--fg); border-radius: 0; }
.nav-dropdown-menu a:hover { background: var(--sage-light); color: var(--fg); }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--fg); }

/* HERO (home slider) */
.hero { position: relative; height: min(80vh, 620px); min-height: 480px; background: var(--deep-blue); color: #faf8f5; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,46,74,0.92) 0%, rgba(45,74,110,0.45) 100%); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; width: 100%; }
.hero-text { animation: heroFadeIn 0.55s ease; }
.hero-text h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: #faf8f5; }
.hero-text p { font-size: 1.2rem; opacity: 0.88; max-width: 520px; margin-bottom: 28px; }
.hero-image { display: flex; justify-content: center; animation: heroFadeIn 0.55s ease; }
.hero-image img { max-height: 420px; width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); object-fit: contain; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(250,248,245,0.12); border: 1px solid rgba(250,248,245,0.2); color: #faf8f5; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; font-size: 1.35rem; line-height: 1; }
.slider-btn:hover { background: rgba(250,248,245,0.22); border-color: rgba(212,168,67,0.5); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.slider-dot { width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; background: rgba(250,248,245,0.35); padding: 0; }
.slider-dot:hover { background: rgba(250,248,245,0.55); }
.slider-dot.active { background: var(--gold); transform: scale(1.15); }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-gold { display: inline-block; padding: 14px 36px; background: var(--gold); color: var(--deep-blue); font-weight: 700; border-radius: var(--radius); font-size: 1rem; transition: opacity 0.2s; border: none; cursor: pointer; }
.btn-gold:hover { opacity: 0.88; }

/* PAGE HEADER (inner pages) */
.page-header { background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-light) 100%); color: #faf8f5; padding: 56px 0 48px; }
.page-header h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { opacity: 0.85; max-width: 640px; }
.breadcrumb { font-size: 0.9rem; opacity: 0.75; margin-bottom: 12px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: 2.8rem; font-weight: 700; }
.section-heading h2 span { color: var(--gold); }
.section-heading p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }

/* BOOKS — home featured cards */
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.book-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.book-card:not(.book-card--catalog):hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
/* Featured books: show full cover (no crop), same idea as catalog cards */
.book-card:not(.book-card--catalog) > a {
  display: grid;
  place-items: center;
  background: var(--sage-light);
  aspect-ratio: 3 / 4;
  padding: 24px;
  overflow: hidden;
}
.book-card:not(.book-card--catalog) > a > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.book-card-body { padding: 24px; }
.book-card-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.book-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.book-card-body a { color: var(--gold); font-weight: 600; font-size: 0.95rem; }

/* Books catalog (silder-style listing) */
.page-books-intro { text-align: center; padding: 48px 0 16px; background: var(--bg); }
.page-books-intro h1 { font-size: 2.6rem; font-weight: 700; font-family: 'Cormorant Garamond', serif; }
.page-books-intro h1 span { color: var(--gold); }
.page-books-intro > .container > p { color: var(--muted); margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }
.page-books-bar { width: 64px; height: 4px; background: var(--gold); margin: 18px auto 0; border-radius: 2px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 36px 0 40px; }
.tab-btn { padding: 10px 22px; border-radius: 999px; font-size: 0.95rem; font-weight: 600; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-family: 'Montserrat', sans-serif; color: var(--fg); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.tab-btn:hover:not(.active) { background: var(--sage-light); }
.tab-btn.active { background: var(--deep-blue); color: #faf8f5; border-color: var(--deep-blue); }
.books-catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; padding-bottom: 72px; }
a.book-card--catalog { text-decoration: none; color: inherit; display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s; }
a.book-card--catalog:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.book-card--catalog .book-card-img { aspect-ratio: 3/4; background: var(--sage-light); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.book-card--catalog .book-card-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.3s; }
.book-card--catalog:hover .book-card-img img { transform: scale(1.05); }
.book-card--catalog .book-card-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.book-card--catalog .book-card-body .book-cat { color: var(--gold); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.book-card--catalog .book-card-body p.desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.book-card--catalog .book-link { color: var(--gold); font-weight: 600; font-size: 0.92rem; }
.book-card--catalog .book-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* NEWS */
.bg-sage { background: var(--sage-light); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.news-column h3 { font-size: 1.6rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.news-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.news-item .date { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.news-item h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.news-item p { color: var(--muted); font-size: 0.95rem; }

/* BIO */
.bio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.bio-img img { width: 100%; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); aspect-ratio: 3/4; object-fit: cover; }
.bio-content p { margin-bottom: 16px; }
.bio-content p.muted { color: var(--muted); }
.bio-section { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.bio-item { display: flex; gap: 14px; margin-bottom: 20px; }
.bio-item .icon { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 3px; }
.bio-item h4 { font-weight: 600; margin-bottom: 4px; }
.bio-item p, .bio-item ul { color: var(--muted); font-size: 0.92rem; }
.bio-item ul { list-style: none; padding: 0; }
.bio-item li { margin-bottom: 2px; }

/* BOOK DETAIL — silder-style layout */
.section--book-detail { padding-top: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--gold); }
.book-detail { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 48px; max-width: 900px; margin: 0 auto; align-items: start; padding-bottom: 80px; }
.book-detail-img { background: var(--sage-light); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: center; }
.book-detail-img img { max-height: 420px; width: 100%; object-fit: contain; }
.book-detail-info h1 { font-size: 2.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.book-detail-info .cat { font-size: 0.75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Montserrat', sans-serif; }
.book-detail-info > p { color: var(--muted); margin-top: 18px; line-height: 1.75; font-size: 0.98rem; }
.buy-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--deep-blue); padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 0.95rem; margin-top: 24px; transition: opacity 0.2s; }
.buy-btn:hover { opacity: 0.9; }
.book-detail-hr { border: none; border-top: 1px solid var(--border); margin: 28px 0 22px; }
.book-detail-details-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.details-grid .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.details-grid .value { font-size: 0.95rem; font-weight: 600; color: var(--fg); margin-top: 2px; }

/* Legacy grid (if used elsewhere) */
.book-detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.book-detail-grid img.cover { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); width: 100%; }
.book-detail-meta { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.book-detail-specs { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 20px; }
.book-detail-specs h4 { margin-bottom: 12px; font-family: 'Montserrat', sans-serif; font-size: 1rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.9rem; }
.spec-grid .label { color: var(--muted); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s; }
.blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.blog-card-top { height: 4px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.blog-card-body { padding: 24px; }
.blog-card-body .date { font-size: 0.8rem; color: var(--muted); }
.blog-card-body h3 { font-size: 1.2rem; margin: 8px 0; }
.blog-card-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.blog-card-body a { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* BLOG POST (detail) */
.section--blog-post { padding-top: 28px; padding-bottom: 88px; }
.blog-post { max-width: 720px; margin: 0 auto; }
.blog-post-accent { height: 4px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 2px; margin-bottom: 28px; width: 72px; }
.blog-post .blog-post-date { font-size: 0.88rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 14px; font-family: 'Montserrat', sans-serif; }
.blog-post h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.blog-post-lead { font-size: 1.12rem; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }
.blog-post-content { font-size: 1.05rem; line-height: 1.82; color: var(--fg); }
.blog-post-content p { margin-bottom: 1.3em; }
.blog-post-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 700; margin: 2.2em 0 0.85em; line-height: 1.25; color: var(--fg); }
.blog-post-content ul { margin: 0 0 1.3em 1.25em; color: var(--muted); }
.blog-post-content li { margin-bottom: 0.5em; }
.blog-post-content a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-post-content a:hover { opacity: 0.9; }
.blog-post-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.blog-post-footer p { font-size: 0.95rem; color: var(--muted); }
.blog-post-footer a { color: var(--gold); font-weight: 600; }

/* OFFERS */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
.offer-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 36px; text-align: center; transition: box-shadow 0.3s; }
.offer-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.offer-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--gold); }
.offer-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.offer-card p { color: var(--muted); font-size: 0.92rem; }

/* NEWSLETTER */
.bg-cream { background: var(--cream); }
.newsletter { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: 2.2rem; margin-bottom: 10px; }
.newsletter h2 span { color: var(--gold); }
.newsletter > p { color: var(--muted); margin-bottom: 24px; }
.newsletter form { text-align: left; }
.newsletter input, .newsletter select { width: 100%; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; margin-bottom: 14px; background: var(--card); }
.newsletter input:focus, .newsletter select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.2); }
.newsletter button { width: 100%; padding: 14px; }

/* FOOTER */
.footer { background: var(--deep-blue); color: #faf8f5; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h3 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.footer h3 span { color: var(--gold); }
.footer h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.footer p { opacity: 0.7; font-size: 0.95rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { opacity: 0.7; transition: opacity 0.2s; font-size: 0.95rem; }
.footer li a:hover { opacity: 1; color: var(--gold); }
.social-links { display: flex; gap: 10px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s; font-size: 1rem; }
.social-link:hover { background: var(--gold); color: var(--deep-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 36px; padding: 20px 0; text-align: center; font-size: 0.85rem; opacity: 0.5; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 20px 24px; z-index: 99; gap: 4px; }
  .nav-links.open > li > a:not(.nav-dropdown-trigger) { padding: 12px 16px; }
  .nav-links.open .nav-dropdown-menu { display: flex !important; flex-direction: column; position: static; margin: 0 0 8px 0; padding: 4px 0 8px 8px; border: none; box-shadow: none; background: transparent; min-width: auto; }
  .nav-links.open .nav-dropdown-menu a { padding: 10px 16px; border-radius: var(--radius); }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 16px; }
  .hero { min-height: 0; height: auto; padding: 40px 0 64px; }
  .hero-inner { height: auto; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; align-items: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-image { display: flex; justify-content: center; padding: 0 12px; }
  .hero-image img { max-height: min(280px, 48vh); max-width: 100%; width: auto; height: auto; object-fit: contain; }
  .hero-text h1 { font-size: 2.35rem; }
  .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .slider-dots { bottom: 20px; }
  .books-grid, .books-catalog-grid, .news-grid, .bio-grid, .book-detail-grid, .book-detail { grid-template-columns: 1fr; }
  .page-books-intro h1 { font-size: 2rem; }
  .tabs { margin: 24px 0 28px; }
  .blog-grid, .offers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 2rem; }
  .page-header h1 { font-size: 2rem; }
  .blog-post h1 { font-size: 1.85rem; }
}

html { scroll-behavior: smooth; }
