/*
Theme Name: Majestic Updates
Theme URI: https://majestic.tz
Author: Zanziholics
Author URI: https://zanziholics.com
Description: Construction updates theme for Majestic Zanzibar — dark navy and gold branding.
Version: 1.0
License: Private
Text Domain: majestic-updates
*/

/* ── Reset & Base ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --navy: #1C2840;
  --navy-light: #2C3E5C;
  --navy-lighter: #3A4D6B;
  --gold: #BFA863;
  --gold-dark: #A89254;
  --cream: #F6F3EF;
  --cream-dark: #FAF8F4;
  --text-muted: rgba(246,243,239,0.5);
  --border-gold: rgba(191,168,99,0.15);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--cream);
}

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

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: Georgia, 'Playfair Display', serif;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; letter-spacing: 1px; }
h2 { font-size: 2rem; letter-spacing: 0.5px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246,243,239,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.site-logo-text {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #5C6B8A;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header-nav a:hover,
.header-nav a.current {
  color: var(--gold);
}

.header-cta {
  padding: 10px 20px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.25s ease;
}

.header-cta:hover {
  background: var(--navy);
  color: white;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 80px;
}

.site-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.55), rgba(0,0,0,0.7));
}

.site-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto;
}

.site-hero h1 {
  font-size: 3.5rem;
  color: white;
}

.site-hero h1 span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Post Grid (Archive) ─────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.post-card .card-image {
  position: relative;
  padding-top: 62.5%;
  overflow: hidden;
}

.post-card .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .card-image img {
  transform: scale(1.06);
}

.post-card .card-image .card-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

.post-card .card-body {
  padding: 20px;
}

.post-card .card-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.post-card .card-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card .card-title a {
  color: inherit;
}

.post-card .card-title a:hover {
  color: var(--gold);
}

.post-card .card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card .card-read-more {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.post-card .card-read-more:hover {
  color: var(--cream);
}

/* ── Single Post ─────────────────────────────────────────────────────────── */
.single-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
}

.single-post-content .post-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.single-post-content .post-meta .post-meta-date {
  color: var(--gold);
}

.single-post-content h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.single-post-content .featured-image {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

.single-post-content .entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(246,243,239,0.8);
}

.single-post-content .entry-content p {
  margin-bottom: 20px;
}

.single-post-content .entry-content h2 {
  margin: 40px 0 16px;
  font-size: 1.6rem;
}

.single-post-content .entry-content h3 {
  margin: 32px 0 12px;
}

.single-post-content .entry-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.single-post-content .entry-content li {
  margin-bottom: 8px;
}

.single-post-content .entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(191,168,99,0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(246,243,239,0.7);
}

/* ── Gallery in posts ────────────────────────────────────────────────────── */
.wp-block-gallery,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.wp-block-gallery img,
.gallery img {
  border-radius: 8px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wp-block-gallery img:hover,
.gallery img:hover {
  transform: scale(1.03);
}

/* ── Post Navigation ─────────────────────────────────────────────────────── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-gold);
}

.post-navigation a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.post-navigation a:hover {
  color: var(--cream);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer-full {
  background: #2C3E5C;
  padding: 64px 16px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 48px;
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr !important;
  gap: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-crown {
  width: 32px;
  height: 32px;
}

.footer-brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}

.footer-about {
  font-size: 14px;
  color: var(--cream);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}

.footer-divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
}

.footer-heading {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(246,243,239,0.5) !important;
  margin-bottom: 24px;
  line-height: 18px !important;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--cream);
  transition: color 0.25s ease;
}

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

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-hours > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hours-label-text {
  font-size: 14px;
  color: var(--cream);
}

.hours-value {
  font-size: 14px;
  color: var(--cream);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-item {
  font-size: 14px;
  color: var(--cream);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.contact-item a {
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item a:hover {
  color: var(--gold);
}

.whatsapp-link:hover {
  color: #25D366 !important;
}

.contact-icon-svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cream);
}

.whatsapp-icon {
  color: #25D366;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  background: #3A4D6B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
  border-radius: 4px;
}

.footer-socials a:hover {
  background: var(--gold);
}

.footer-socials a svg {
  stroke: #fff;
}

.footer-bottom {
  border-top: 1px solid #3A4D6B;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(246,243,239,0.5);
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(191,168,99,0.2);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.pagination a:hover {
  background: rgba(191,168,99,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

/* ── Mobile Menu Toggle ──────────────────────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.25s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 32px;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  color: #1C2840;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-nav a.current {
  color: var(--gold);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav .mobile-cta {
  display: block;
  text-align: center;
  padding: 16px;
  background: #1C2840;
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: none;
  margin-top: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { height: 65px; }
  .site-hero { margin-top: 65px; height: 60vh; }
  .site-hero h1 { font-size: 2.4rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .single-post-content h1 { font-size: 1.8rem; }
  .post-navigation { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}
