/* =========================================================
   Maddison Middleton — Book Marketing Specialist
   New York, USA | Data-First, Long-Form Design System
   ========================================================= */

:root {
  --bg-main: #FBF9F4; /* Paper / Parchment tone */
  --bg-subtle: #EFEAE0; 
  --bg-card: #ffffff;
  --bg-dark: #1B222C; /* Deep ink slate */
  --bg-dark-card: #252e3b;
  
  --text-dark: #1B222C;
  --text-body: #3A424D;
  --text-muted: #5B6470;
  --text-light: #FBF9F4;

  --oxblood: #7C2A33;
  --oxblood-hover: #5E1F27;
  --oxblood-light: #f9ecee;
  --oxblood-border: #e8b8bc;

  --accent-green: #047857;
  --accent-green-bg: #d1fae5;

  --border: rgba(27, 34, 44, 0.14);
  --border-light: rgba(251, 249, 244, 0.2);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 12px -1px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.5rem; max-width: 78ch; }
p.lead { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; line-height: 1.7; }

a { color: var(--oxblood); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--oxblood-hover); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* --- Badges & Buttons --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--oxblood-light);
  color: var(--oxblood);
  border: 1px solid var(--oxblood-border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--oxblood);
  color: white !important;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--oxblood-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark) !important;
  border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: white !important;
}

.btn-large { padding: 1.2rem 2.75rem; font-size: 1.1rem; }

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 244, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--oxblood);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* --- Layout Sections --- */
.section { padding: 6.5rem 0; }
.section-lg { padding: 8.5rem 0; }
.bg-subtle { background-color: var(--bg-subtle); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }

.section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 4.5rem;
}

.section-head h2 { margin-bottom: 1.25rem; }

/* --- Grids & Cards --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--oxblood-border);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--oxblood-light);
  color: var(--oxblood);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.callout-box {
  background: var(--oxblood-light);
  border-left: 5px solid var(--oxblood);
  border-radius: var(--radius-sm);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}

/* --- Hero Layout --- */
.hero {
  padding: 7rem 0 5.5rem;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.hero-portrait-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  max-width: 440px;
  margin: 0 auto;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--oxblood);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

/* --- Custom Lists & Tables --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.1rem;
  color: var(--text-body);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--oxblood);
  font-weight: 800;
  font-size: 1.1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.98rem;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 1.15rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: var(--bg-subtle);
  color: var(--text-dark);
  font-weight: 700;
  font-family: var(--font-sans);
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 950px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-toggle {
  width: 100%;
  padding: 1.75rem 2.25rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.faq-toggle span.icon {
  font-size: 1.5rem;
  color: var(--oxblood);
  transition: var(--transition);
  font-weight: 800;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
  padding: 0 2.25rem;
  background: var(--bg-subtle);
}

.faq-item.active .faq-answer {
  max-height: 1400px;
  padding: 1.5rem 2.25rem 2rem;
  transition: max-height 0.45s ease-in-out;
}

.faq-item.active .faq-toggle span.icon {
  transform: rotate(45deg);
}

/* --- Form Styles --- */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.55rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--oxblood);
  background: white;
  box-shadow: 0 0 0 4px var(--oxblood-light);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(251, 249, 244, 0.75);
  padding: 5.5rem 0 3rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
}

.footer-brand h3 { color: white; margin-bottom: 1rem; font-size: 1.35rem; }
.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-sans); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.95rem; }
.footer-links a { color: rgba(251, 249, 244, 0.75); font-size: 0.95rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    flex-direction: column;
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1.25rem; text-align: center; }
  .form-card { padding: 2rem; }
}
