/* style.css */
/*
Theme Name: Apitch
Text Domain: apitch
*/
:root {
  --primary: #333333;
  --secondary: #FF3366;
  --bg: #FFFFFF;
  --bg-alt: #F9F9F9;
  --white: #ffffff;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--primary); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

/* Typography */
h1, h2, h3 { font-family: 'Montserrat', sans-serif; word-break: break-word; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 4rem); margin-bottom: 2rem; font-weight: 800; }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1rem; font-weight: 700; }
p { font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; background: var(--secondary); color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: bold; border-radius: 50px; transition: 0.3s; box-shadow: var(--shadow); }
.btn:hover { background: #E62E5C; transform: translateY(-3px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }

/* N-A Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; gap: clamp(1rem, 5vw, 4rem); }
.logo { font-size: clamp(1.2rem, 5vw, 2.5rem); font-weight: 900; color: var(--primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; font-family: 'Montserrat', sans-serif; display: inline-flex; min-height: 1em; min-width: 100px; gap: 2px; }
.logo span { color: var(--secondary); }
.nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--primary); }
.main-nav { flex: 1; min-width: 0; overflow: hidden; display: flex; justify-content: flex-end; }
.main-nav ul { list-style: none; display: flex; gap: 3.5rem; }
.main-nav a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 1rem; transition: 0.2s; white-space: normal; overflow-wrap: break-word; }
.main-nav a:hover { color: var(--secondary); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .header-inner { gap: 1rem; }
  .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg); z-index: 2000; transform: translateY(-100%); transition: transform 0.4s ease; visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-nav a { font-size: 1.5rem; }
}

.site-main { padding-top: 80px; min-height: 80vh; }

/* Sections */
.section { padding: var(--section-pad) 0; position: relative; }
.section.bg-alt { background: var(--bg-alt); }
/* D-A Diagonal Sections */
.diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%); padding-bottom: calc(var(--section-pad) + 5vw); }

/* H-A Full Bleed Overlay Hero */
.hero-full { position: relative; width: 100%; min-height: 85vh; display: flex; align-items: center; justify-content: center; }
.hero-full::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(51,51,51,0.6) 100%); z-index: 1; pointer-events: none; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 clamp(1rem, 5vw, 2rem); max-width: 900px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content h1 { color: var(--white); }

/* F-B Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--white); padding: 3rem 2rem; border-radius: 20px; box-shadow: var(--shadow); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card h3 { margin-bottom: 1rem; }

/* U-F Text Manifest */
.manifest-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--primary); color: var(--white); }
.manifest-content { max-width: 900px; padding: 2rem; }
.manifest-content h2 { color: var(--white); margin-top: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.2; margin-bottom: 2rem; }
.manifest-content p { font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1.6; opacity: 0.9; }

/* C-F Timeline Cards */
.timeline-grid { position: relative; margin-top: 4rem; padding-left: 2rem; }
.timeline-grid::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--secondary); border-radius: 4px; }
.timeline-card { position: relative; margin-bottom: 4rem; padding-left: 3rem; text-decoration: none; color: inherit; display: block; }
.timeline-card::before { content: ''; position: absolute; top: 0; left: -10px; width: 24px; height: 24px; background: var(--white); border: 6px solid var(--secondary); border-radius: 50%; z-index: 2; transition: 0.3s; }
.timeline-card:hover::before { background: var(--secondary); transform: scale(1.2); }
.timeline-content { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: row; transition: 0.3s; }
.timeline-card:hover .timeline-content { transform: translateX(10px); }
.timeline-thumb { width: 35%; flex-shrink: 0; }
.timeline-thumb img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.timeline-text { padding: 2rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.timeline-meta { font-size: 0.9rem; font-weight: bold; color: var(--secondary); margin-bottom: 0.5rem; text-transform: uppercase; }
@media (max-width: 768px) {
  .timeline-grid { padding-left: 1rem; }
  .timeline-grid::before { left: 0; }
  .timeline-card { padding-left: 2rem; }
  .timeline-card::before { left: -10px; width: 20px; height: 20px; border-width: 5px; }
  .timeline-content { flex-direction: column; }
  .timeline-thumb { width: 100%; }
  .timeline-thumb img { height: 200px; min-height: auto; }
}

/* FT-C 3-column Footer */
.site-footer { padding: 5rem 0; background: var(--primary); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 6rem); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: center; } }
.footer-logo { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; color: var(--white); text-decoration: none; margin-bottom: 1.5rem; display: block; font-family: 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.footer-text { opacity: 0.7; max-width: 100%; overflow-wrap: break-word; }
.footer-col h3 { color: var(--white); margin-top: 0; margin-bottom: 1.5rem; font-size: 1.2rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.7; transition: 0.3s; }
.site-footer a:hover { opacity: 1; color: var(--secondary); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 4rem 0; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 45px; height: 45px; text-decoration: none; font-weight: bold; color: var(--primary); border-radius: 50%; background: var(--white); box-shadow: var(--shadow); transition: 0.3s; }
.pagination .page-numbers.current { background: var(--secondary); color: var(--white); }
.pagination .page-numbers:hover:not(.current):not(.dots) { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pagination .page-numbers.dots { box-shadow: none; background: transparent; }

/* Content Protocol */
.post-content { max-width: 800px; margin: 0 auto; padding: var(--section-pad) 0; }
.post-content h2, .post-content h3 { color: var(--primary); margin-top: 2.5rem; }
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
.post-content th, .post-content td { padding: 1rem 1.5rem; text-align: left; }
.post-content th { background: var(--primary); color: var(--white); }
.post-content td { background: var(--white); border-bottom: 1px solid var(--bg-alt); }
