/* City Books International - styles */
:root {
  --navy: #1e3a5f;
  --navy-dark: #14273f;
  --amber: #f2a541;
  --amber-dark: #d98c22;
  --light: #f6f8fb;
  --text: #2b3445;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb857;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

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

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

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Maintenance banner ---------- */
.maintenance-banner {
  background: repeating-linear-gradient(45deg, #b3541e, #b3541e 15px, #c96a2e 15px, #c96a2e 30px);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1001;
}
.is-hidden { display: none !important; }
.maintenance-banner .close-btn {
  background: none; border: none; color: #fff; font-size: 1rem;
  cursor: pointer; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); opacity: 0.85; padding: 2px 8px;
}
.maintenance-banner .close-btn:hover { opacity: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(20, 39, 63, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.brand-name span { color: var(--amber-dark); }

.main-nav ul { list-style: none; display: flex; gap: 8px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover { background: var(--light); color: var(--navy); text-decoration: none; }
.main-nav a.active { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2c5282 100%);
  color: #fff;
  text-align: center;
  padding: 90px 20px 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -2px 0; height: 60px;
  background: var(--light);
  clip-path: polygon(0 100%, 100% 100%, 100% 45%, 0 100%);
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 800px; margin: 0 auto 14px; }
.hero h1 span { color: var(--amber); }
.hero p { max-width: 640px; margin: 0 auto 30px; font-size: 1.08rem; opacity: 0.92; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: 0.98rem; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.btn-amber { background: var(--amber); color: var(--navy-dark); }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 10px; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 1.9rem; }
.section-sub { text-align: center; color: #5c6b80; margin-bottom: 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: #fff; border: 1px solid #e3e8ef; border-radius: 12px;
  padding: 28px 24px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(20, 39, 63, 0.1); transform: translateY(-3px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: #eef4fb;
  color: var(--navy); font-size: 1.6rem; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.card p { font-size: 0.95rem; color: #5c6b80; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .grid-3 { text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--amber); }
.stat-label { opacity: 0.9; font-size: 0.95rem; }

/* ---------- CTA strip ---------- */
.cta-strip { background: #fdf3e2; text-align: center; padding: 46px 20px; }
.cta-strip h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* ---------- Forms (enquiry) ---------- */
.enquiry-wrapper {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 1px solid #e3e8ef; border-radius: 12px; padding: 34px 30px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d3e0;
  border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fbfcfe;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,165,65,0.2);
}
.form-note { font-size: 0.85rem; color: #5c6b80; margin-top: 10px; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact chips ---------- */
.contact-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid #e3e8ef; border-radius: 999px; padding: 10px 18px;
  font-size: 0.92rem; color: var(--navy); font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8c4d4; padding: 44px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; font-size: 0.92rem; }
.site-footer a { color: #b8c4d4; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px;
  padding-top: 18px; text-align: center; font-size: 0.85rem;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  background: var(--whatsapp); color: #fff; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--navy); color: #fff; text-align: center; padding: 48px 20px; }
.page-header h1 { color: #fff; font-size: 2rem; }
.page-header p { opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-outline-light { margin-left: 0; margin-top: 10px; }
  .hero { padding: 64px 20px 90px; }
}
