/* =============================================
   AKWARANDEX BOOKS — MAIN STYLESHEET
   Academic Bookseller | Port Harcourt, Nigeria
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --navy:       #0d1b2a;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f9f5ef;
  --white:      #ffffff;
  --mid-grey:   #6b7280;
  --light-grey: #e8e4dd;
  --text-dark:  #1a1a2e;
  --text-body:  #3a3a4a;
  --accent-red: #8b1a1a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --section-pad: 72px 24px;
  --radius: 4px;
  --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);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--cream);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / NAV ---- */
header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  flex-direction: column;
}

.site-brand .logo-main {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-brand .logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
}

nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(201,168,76,0.07) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(201,168,76,0.07) 60px
    );
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 14px;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  padding: var(--section-pad);
}

.content-section.alt-bg {
  background: var(--white);
}

.content-section.dark-bg {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
}

.content-section.dark-bg h2,
.content-section.dark-bg h3 {
  color: var(--gold-light);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.12);
  transform: translateY(-3px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ---- PARTNERS GRID ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.partner-card .pub-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.partner-card .pub-desc {
  font-size: 0.85rem;
  color: var(--mid-grey);
}

/* ---- CONTACT INFO ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

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

.contact-block h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.contact-block p {
  font-size: 0.97rem;
  color: var(--text-body);
  margin-bottom: 10px;
}

.contact-block a {
  color: var(--navy);
  font-weight: 500;
}
.contact-block a:hover { color: var(--gold); }

/* ---- FORM ---- */
.form-section {
  background: var(--white);
  padding: var(--section-pad);
}

.request-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}

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

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 0.83rem;
  color: var(--mid-grey);
  margin-top: 6px;
}

.form-submit {
  margin-top: 8px;
}

/* ---- ALERT BOXES ---- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.alert-success {
  background: #ecfdf5;
  border-left: 4px solid #16a34a;
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
}

/* ---- DIVIDER ---- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 32px;
}

/* ---- ABOUT PAGE ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; }
}

.about-stat-box {
  background: var(--navy);
  color: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.about-stat-box .stat {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat-box .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 56px 24px 48px;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 560px;
  margin: 0;
}

/* ---- FOOTER ---- */
footer {
  background: #070f18;
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
  border-top: 2px solid rgba(201,168,76,0.25);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

footer .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

footer .footer-links a:hover { color: var(--gold); }

footer .footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  nav { gap: 16px; }
  .hero { padding: 64px 24px 56px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
