/* ============================================================
   WRITTEN ROADS — Global Header & Footer Styles
   Upload this file to your root via File Manager
   Then link it in every page's <head>:
   <link rel="stylesheet" href="/writtenroads-header-footer.css">
   ============================================================ */

/* ===== CSS VARIABLES (required by header/footer) ===== */
:root {
  --white: #FFFFFF;
  --cream: #FFF8EF;
  --cream-2: #FFF1DE;
  --ink: #2B2620;
  --ink-dim: #8B8478;
  --coral: #FF6B4A;
  --coral-dim: #FFE1D8;
  --yellow: #FFC857;
  --yellow-dim: #FFF0CE;
  --green: #5FB878;
  --green-dim: #E3F5E8;
  --line: rgba(43, 38, 32, 0.08);
  --shadow: 0 20px 40px -14px rgba(43, 38, 32, 0.18);
  --shadow-sm: 0 10px 24px -8px rgba(255, 107, 74, 0.35);
}

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* ===== BASE RESET (only what's needed) ===== */
* { box-sizing: border-box; }
body {
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
}

/* ===== NAVIGATION ===== */
#writtenroads-header nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
}
.wr-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wr-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.wr-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.wr-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.wr-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wr-nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}
.wr-nav-links a:hover { color: var(--coral); }
.wr-nav-cta {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none !important;
  display: inline-block;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--coral), #FF8A63);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.wr-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(255, 107, 74, 0.65);
}

/* ===== HAMBURGER (mobile) ===== */
.wr-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.wr-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== FOOTER ===== */
#writtenroads-footer {
  background: var(--ink);
  color: #D8D2C4;
  padding: 80px 32px 30px;
  margin-top: 100px;
}
.wr-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.wr-footer-brand .wr-logo {
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
}
.wr-footer-brand p {
  font-size: 14px;
  max-width: 270px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #D8D2C4;
}
.wr-footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  margin-top: 0;
}
.wr-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wr-footer-col ul li { margin-bottom: 12px; }
.wr-footer-col ul a {
  color: #D8D2C4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}
.wr-footer-col ul a:hover { color: var(--white); }
.wr-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 14px;
  color: #D8D2C4;
  font-family: 'Nunito Sans', sans-serif;
}
.wr-footer-legal {
  display: flex;
  gap: 22px;
}
.wr-footer-legal a {
  color: #D8D2C4;
  text-decoration: none;
  transition: color 0.2s;
}
.wr-footer-legal a:hover { color: var(--white); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 980px) {
  .wr-footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
}

@media (max-width: 760px) {
  #writtenroads-header nav {
    padding: 18px 24px;
  }
  .wr-nav-links {
    display: none;
  }
  .wr-nav-links.wr-nav-links-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 22px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 200;
  }
  .wr-hamburger {
    display: flex;
  }
  #writtenroads-footer {
    padding: 60px 24px 24px;
  }
  .wr-footer-inner {
    grid-template-columns: 1fr;
  }
}
