/* The MSW Desk — shared styles */
:root {
  --navy: #1f3350;
  --navy-dark: #16263d;
  --teal: #2f8f7f;
  --teal-dark: #23705f;
  --sand: #f7f3ec;
  --cream: #fffdf9;
  --ink: #26313f;
  --muted: #6b7686;
  --border: #e4ddd0;
  --danger: #b3543f;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(31, 51, 80, 0.08);
  --max-width: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

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

p { margin: 0 0 1em; }

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

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

/* Header / nav */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.2px;
}

.brand:hover { text-decoration: none; }

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

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

nav.main-nav a {
  color: #eef1f5;
  font-size: 0.97rem;
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--teal); text-decoration: none; }

nav.main-nav a.active { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0 84px;
}

.hero .wrap { display: flex; gap: 48px; align-items: center; }
.hero-copy { flex: 1.1; }
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-copy h1 { color: #fff; font-size: 2.5rem; margin-bottom: 18px; }
.hero-copy p.lead { font-size: 1.1rem; color: #d9dfe8; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* Any h1/eyebrow/lead sitting directly in a .hero section (not just inside .hero-copy)
   must also be forced to white/light text — otherwise the global h1 color (navy) makes
   headings unreadable against the dark hero background. */
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal); }
.hero p.lead { color: #d9dfe8; }

.hero-card {
  flex: 1;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 340px;
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin-bottom: 8px; }

@media (max-width: 760px) {
  .hero .wrap { flex-direction: column; }
  .hero-copy h1 { font-size: 2rem; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.1rem; }
.card .muted { color: var(--muted); font-size: 0.92rem; }

.badge {
  display: inline-block;
  background: rgba(47,143,127,0.12);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  text-align: center;
  padding: 14px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* Article card */
.article-card { display: flex; flex-direction: column; gap: 10px; }
.article-card .meta { color: var(--muted); font-size: 0.82rem; }

/* Forms */
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,143,127,0.15);
}

/* Table (hours tracker) */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-card .num { font-size: 1.7rem; font-weight: 800; color: var(--navy); font-family: Georgia, serif; }
.stat-card .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c2cf;
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer .grid-2 { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; }
footer.site-footer a { color: #b9c2cf; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8b95a4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  footer.site-footer .grid-2 { grid-template-columns: 1fr; }
}

.note-banner {
  background: #fff7e6;
  border: 1px solid #f0d999;
  color: #7a5a13;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}
