/* ==========================================================
   PHILNOTARY MASTER STYLESHEET (v2026.3)
   Pillars: Navy (#0F2C59) for Trust, Gold (#FFC436) for Action
   ========================================================== */

:root {
    --pn-blue: #0F2C59;       
    --pn-gold: #FFC436;       
    --pn-light: #F8FAFC;      
    --text-dark: #334155;
    --radius: 16px;           
}

/* 1. RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Sticky Header Offset Fix */
section { scroll-margin-top: 100px; }

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 { 
    font-family: 'M PLUS Rounded 1c', sans-serif; /* CHANGED TO SANS SERIF */
    font-weight: 700; 
    color: var(--pn-blue);
    line-height: 1.3; 
}

a { text-decoration: none; transition: 0.2s; color: var(--pn-blue); }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* 2. HEADER & NAVIGATION */
header { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; padding: 15px 0; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 45px; width: auto; }
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-menu a, .nav-menu button { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; background:none; border:none; cursor:pointer; font-family: inherit;}

/* 3. BUTTONS */
.btn-primary { 
    background-color: var(--pn-gold); color: #000; padding: 12px 25px; 
    border-radius: var(--radius); font-weight: 800; display: inline-block; cursor: pointer; border: none; font-size: 1rem;
    box-shadow: 0 4px 10px rgba(255, 196, 54, 0.3); font-family: 'M PLUS Rounded 1c', sans-serif;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(255, 196, 54, 0.4); }

.btn-outline { 
    border: 2px solid var(--pn-blue); color: var(--pn-blue); padding: 10px 25px; 
    border-radius: var(--radius); font-weight: 700; cursor: pointer; background: transparent; font-family: 'M PLUS Rounded 1c', sans-serif;
}
.btn-outline:hover { background: var(--pn-blue); color: #fff; }

/* FIXED: Visible Lawyer Button (Solid Navy) */
.btn-lawyer {
    background-color: #0F2C59 !important;
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    border: none; 
    font-family: 'M PLUS Rounded 1c', sans-serif;
    display: inline-block;
}
.btn-lawyer:hover { 
    background-color: #1e40af !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.3);
}

.btn-text { background: none; border: none; text-decoration: underline; color: #666; margin-top: 20px; cursor: pointer; font-size: 0.9rem;}

/* 4. HERO SECTION */
.hero { background: linear-gradient(180deg, #fff 0%, var(--pn-light) 100%); padding: 60px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero-text { padding-bottom: 60px; }
.hero-text h1 { font-size: 3.2rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero-text p { font-size: 1.2rem; color: #64748b; margin-bottom: 30px; }
.badge-new { 
    background: #DCFCE7; color: #166534; padding: 5px 12px; 
    border-radius: 99px; font-size: 0.8rem; font-weight: 800; margin-bottom: 15px; display: inline-block; 
}
.hero-mascot-img { 
    width: 100%; max-width: 420px; margin: 0 auto; 
    transform: translateY(10px); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); 
}

/* Search Bar */
.search-box-hero {
    background: #fff; border: 2px solid #cbd5e1; padding: 6px; border-radius: var(--radius);
    display: flex; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 500px;
}
.search-input { border: none; flex: 1; padding: 12px 20px; font-size: 1rem; outline: none; border-radius: var(--radius); font-family: 'M PLUS Rounded 1c', sans-serif;}
.search-btn { background: var(--pn-blue); color: #fff; border: none; padding: 0 25px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* 5. TRUST BAR */
.trust-bar { background: var(--pn-blue); color: #fff; padding: 15px 0; font-size: 0.85rem; }
.trust-bar .divider { margin: 0 15px; opacity: 0.5; }

/* 6. FEATURED TOPICS BOXES */
.featured-section { padding: 40px 0; background: #fff; }
.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-top: 20px; 
}
.featured-tile { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    padding: 20px; 
    border-radius: 12px; 
    text-align: center; 
    font-weight: 700; 
    color: var(--pn-blue); 
    transition: 0.2s; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: block; 
    text-decoration: none;
}
.featured-tile:hover { 
    transform: translateY(-3px); 
    border-color: var(--pn-gold); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    color: var(--pn-blue);
}

/* 7. SERVICE MATCHER (QUIZ) */
.assessment-wrapper {
    background: #fff; border: 4px solid var(--pn-blue); border-radius: 24px;
    overflow: hidden; max-width: 800px; margin: 0 auto; box-shadow: 0 20px 50px rgba(15, 44, 89, 0.15);
}
.assessment-header { background: var(--pn-blue); color: #fff; padding: 25px; text-align: center; }
.assessment-header h2 { color: #fff; margin: 0; font-size: 1.4rem; }
.assessment-header p { color: rgba(255,255,255,0.8); margin-top: 5px; font-size: 0.95rem; }
.quiz-box { padding: 40px; text-align: center; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.step-counter { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: #94a3b8; font-weight: 800; display: block; margin-bottom: 15px; }
.quiz-options { display: flex; gap: 15px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.btn-quiz { 
    background: #fff; border: 2px solid #e2e8f0; padding: 15px 25px; 
    border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; font-family: 'M PLUS Rounded 1c', sans-serif; min-width: 180px;
}
.btn-quiz:hover { border-color: var(--pn-blue); color: var(--pn-blue); background: #f8fafc; }

.quiz-fail h3 { color: #dc2626; margin: 10px 0; }
.quiz-success h3 { color: #16a34a; margin: 10px 0; }
.info-box { background: #fef2f2; color: #991b1b; padding: 15px; border-radius: 12px; margin: 20px 0; text-align: left; font-size: 0.95rem; }

/* 8. KNOWLEDGE HUB GRID */
.section { padding: 80px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 10px; }
.section-sub { color: #64748b; margin-bottom: 50px; font-size: 1.1rem; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-card {
    background: #fff; padding: 30px; border-radius: 20px; border: 2px solid #f1f5f9; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left; display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer;
}
.topic-card:hover { transform: translateY(-5px); border-color: var(--pn-gold); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.topic-icon { 
    font-size: 2.5rem; margin-bottom: 15px; display: inline-block;
    filter: grayscale(100%) opacity(0.5); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.topic-card:hover .topic-icon { filter: grayscale(0%) opacity(1); transform: translateX(10px) scale(1.1); }
.btn-citation {
    background: none; border: none; color: #94a3b8; font-size: 0.75rem; font-weight: 700; cursor: pointer;
    margin-top: 15px; display: flex; align-items: center; gap: 5px; padding: 0;
}

/* 9. LAWYER RECRUITMENT SECTION */
#for-lawyers .feature-grid { display: block; max-width: 800px; margin: 0 auto; text-align: center; }
#for-lawyers .check-list { text-align: left; display: inline-block; margin: 30px 0; }
.check-list li { 
    list-style: none; margin-bottom: 15px; display: block; position: relative; padding-left: 30px; text-align: left;
}
.check-list li::before { 
    content: "✓"; color: var(--pn-gold); font-weight: 900; position: absolute; left: 0; top: 0;
}

/* 10. FINAL FOOTER (LAYERED) */
footer.pn-footer { background:#0b1220; color:#e2e8f0; padding: 0; font-size: 0.9rem; }
footer.pn-footer a { color: rgba(226,232,240,0.88); }
footer.pn-footer a:hover { color: var(--pn-gold); text-decoration: underline; }

.pn-footer-top { padding: 34px 0 22px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.pn-footer-top-grid { display:flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.pn-footer-brand { max-width: 720px; }
.pn-footer-logo { height: 40px; width: auto; display:block; }
.pn-footer-tagline { margin-top: 12px; color: rgba(226,232,240,0.80); line-height: 1.65; font-size: 0.95rem; }
.pn-footer-top-notes { display:flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pn-pill { font-size: 0.82rem; color: rgba(226,232,240,0.90); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); padding: 8px 10px; border-radius: 999px; white-space: nowrap; }

.pn-footer-mid { padding: 26px 0 20px; }
.pn-footer-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pn-footer-title { color: #fff; font-weight: 900; margin-bottom: 12px; font-size: 0.95rem; letter-spacing: 0.2px; }
.pn-footer-links { list-style:none; padding:0; margin:0; }
.pn-footer-links li { margin-bottom: 10px; }
.pn-footer-kv { display:grid; grid-template-columns: 1fr; gap: 8px; font-size: 0.88rem; line-height: 1.6; color: rgba(226,232,240,0.80); }
.pn-footer-k { font-weight: 900; color: rgba(226,232,240,0.88); }
.pn-footer-v { color: rgba(226,232,240,0.78); }

.pn-footer-disclaimer { padding: 18px 0 18px; border-top: 1px solid rgba(255,255,255,0.10); border-bottom: 1px solid rgba(255,255,255,0.10); }
.pn-disclaimer-details { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px 24px; }
.pn-disclaimer-list { margin-top: 10px; padding-left: 18px; color: rgba(226,232,240,0.82); font-size: 0.90rem; line-height: 1.65; column-count: 2; column-gap: 28px; }
.pn-disclaimer-list li { margin: 0 0 10px 0; break-inside: avoid; }

.pn-footer-bottom { padding: 16px 0 18px; }
.pn-footer-bottom-grid { display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: rgba(226,232,240,0.68); }

/* 11. MODAL COMPONENT (POPUPS) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-box {
    background: #fff; width: 90%; max-width: 500px; border-radius: 20px; padding: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease; z-index: 10000;
    max-height: 80vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    background: var(--pn-light); padding: 15px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;
    border-radius: 20px 20px 0 0; position: sticky; top: 0; z-index: 10; background: #fff; border-bottom:1px solid #eee;
}
.modal-header h3 { font-size: 1rem; margin: 0; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.modal-content { padding: 30px 25px; }
.text-center { text-align: center; }

/* FIX: Add spacing to bullet points inside "What to Prepare" gray box in Modals */
#modal-reqs-content ul { padding-left: 25px; margin-top: 5px; list-style-position: outside; }
#modal-reqs-content li { margin-bottom: 8px; }

/* 12. ARTICLE STYLES (KUYA PHIL EXPLAINS) */
.kp-article .kp-article-container { max-width: 900px; padding: 30px 20px 70px; margin: 0 auto; } /* UPDATED WIDTH */
.kp-article .kp-title, .kp-article h1, .kp-article h2, .kp-article h3 { font-family: 'M PLUS Rounded 1c', sans-serif; }
.kp-badge-wrap { text-align: center; width: 100%; display: block; }
.kp-badge-img { display: block; max-width: 320px; width: auto; height: auto; margin: 0 auto 18px; }
.kp-title { margin: 14px 0 10px; text-align: center; }
.kp-lede { text-align: center; color: #475569; font-size: 1.05rem; margin: 0 auto 28px; }
.kp-section { margin-top: 34px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.kp-section:first-of-type { margin-top: 22px; }
.kp-section h2 { margin-bottom: 10px; }
.kp-section ul { padding-left: 22px; margin-top: 8px; }
.kp-section li { margin-bottom: 6px; }
.kp-faq { background: var(--pn-light); border-radius: var(--radius); padding: 24px; }
.kp-faq-item h3 { margin: 18px 0 6px; }

details.kp-legal {
    margin: 15px 0 25px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.2s ease;
}
details.kp-legal:hover { border-color: var(--pn-gold); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
details.kp-legal summary.kp-legal__summary {
    cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 800; color: var(--pn-blue);
    display: flex; justify-content: space-between; align-items: center;
}
details.kp-legal summary.kp-legal__summary::-webkit-details-marker { display:none; }
details.kp-legal summary.kp-legal__summary::after { content: '▼'; font-size: 0.7rem; color: #94a3b8; transition: transform 0.3s ease; }
details[open].kp-legal summary.kp-legal__summary::after { transform: rotate(180deg); color: var(--pn-gold); }
.kp-legal-body { padding: 12px 16px 16px; border-top: 1px solid #e2e8f0; color: #334155; font-size: 0.95rem; background: #fff; }
.kp-legal-body ul { margin: 0; padding-left: 18px; }
.kp-legal-body li { margin: 6px 0; }
.kp-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: var(--radius); background: #fff; }
.kp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.kp-table th, .kp-table td { padding: 12px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.kp-table thead th { background: var(--pn-light); color: var(--pn-blue); font-weight: 900; }
.kp-table tbody tr:last-child td { border-bottom:none; }
.kp-table td:first-child { font-weight: 800; width: 22%; }
.kp-cta-center { text-align: center; margin-top: 28px; }

/* ==========================================================
   13. MASTER MOBILE RESPONSIVE DIRECTIVES
   ========================================================== */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 3px; margin: 5px auto; background: var(--pn-blue); border-radius: 3px; transition: 0.3s; }

@media (max-width: 768px) {
    /* 1. Force all grids to stack */
    .hero-grid, 
    .topics-grid, 
    .featured-grid, 
    .pn-footer-grid, 
    .pn-footer-top-grid,
    .pn-footer-bottom-grid { 
        grid-template-columns: 1fr !important; 
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    /* 2. Hamburger Menu Logic */
    .nav-menu { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 75px; 
        left: 0; 
        width: 100%; 
        background: #fff; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        padding: 30px 20px; 
        text-align: center; 
        gap: 25px; 
        z-index: 1000;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }

    /* 3. Hero Section Cascade */
    .hero { padding-top: 40px; }
    .hero-grid { flex-direction: column-reverse !important; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-text p { font-size: 1rem; }
    .hero-mascot-img { max-width: 220px; margin: 0 auto; }
    
    /* 4. Search Box Logic */
    .search-box-hero { 
        flex-direction: column; 
        background: transparent; 
        border: none; 
        box-shadow: none; 
        padding: 0;
        width: 100%;
    }
    .search-input { 
        border: 2px solid #cbd5e1; 
        margin-bottom: 10px; 
        width: 100%; 
        border-radius: 12px;
    }
    .search-btn { 
        width: 100%; 
        padding: 15px; 
        border-radius: 12px;
    }

    /* 5. Buttons & Links Cascade */
    .hero-text div[style*="flex-wrap:wrap"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    .btn-primary { width: 100%; text-align: center; }

    /* 6. Quiz Box Cascade */
    .quiz-box { padding: 25px 15px; }
    .quiz-options { flex-direction: column !important; width: 100%; }
    .btn-quiz { width: 100% !important; min-width: unset; }
    .assessment-header h2 { font-size: 1.2rem; }

    /* 7. Footer Cleanup */
    .trust-bar .divider { display: none; }
    .trust-bar p span { display: block; margin-bottom: 8px; }
    .pn-footer-top-notes { justify-content: center; }
    .pn-disclaimer-list { column-count: 1; padding-left: 10px; }
    .pn-footer-address { text-align: center !important; margin-top: 20px; }
    
    /* 8. Inside Page Article Width */
    .kp-article .kp-article-container { padding: 20px 15px; }
    .kp-badge-img { max-width: 200px; }
}

/* Improve list spacing inside information boxes */
.section ul {
    padding-left: 30px;
    margin-top: 12px;
}


.kp-section > details.kp-legal {
  margin-bottom: 14px;
}

.kp-section > details.kp-legal > summary.kp-legal__summary {
  font-size: 1rem;
  font-weight: 800;
}


.kp-premium-subtitle{
  margin:6px 0 14px 0;
  font-weight:800;
  font-style:italic;
  opacity:0.95;
  text-align:center;
}

.kp-quick-box{
  margin:22px 0 10px;
  padding:20px 22px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
}

.kp-quick-box h2{
  font-size:1.08rem;
  margin:0 0 12px 0;
}

.kp-quick-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px 18px;
  color:#475569;
  font-size:0.96rem;
}

.kp-question-list{
  padding-left:22px;
  margin:10px 0 0;
}

.kp-question-list li{
  margin-bottom:8px;
}

.kp-muted-intro{
  color:#64748b;
  margin-bottom:14px;
}

.kp-accordion-group{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}

.kp-accordion-card{
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(15,44,89,0.04);
  transition:all 0.2s ease;
}

.kp-accordion-card:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 24px rgba(15,44,89,0.07);
}

.kp-accordion-summary{
  cursor:pointer;
  list-style:none;
  padding:18px 20px;
  font-weight:800;
  color:var(--pn-blue);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
}

.kp-accordion-summary::-webkit-details-marker{
  display:none;
}

.kp-accordion-summary::after{
  content:"+";
  font-size:1.25rem;
  font-weight:800;
  color:#94a3b8;
  flex-shrink:0;
  transition:transform 0.2s ease;
}

.kp-accordion-card[open] .kp-accordion-summary{
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}

.kp-accordion-card[open] .kp-accordion-summary::after{
  content:"–";
}

.kp-accordion-body{
  padding:18px 20px 20px;
  color:#334155;
}

.kp-accordion-body p:last-child{
  margin-bottom:0;
}

.kp-step-list{
  padding-left:20px;
  margin:0;
}

.kp-step-list li{
  margin-bottom:10px;
}

.kp-inline-cta{
  margin-top:18px;
  padding:18px 20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  text-align:center;
}

.kp-inline-cta p{
  margin:0 0 12px 0;
  color:#475569;
}

.kp-notice-premium{
  background:#fff7ed;
  padding:25px;
  border-radius:16px;
  margin-bottom:35px;
  text-align:left;
  border:1px solid #fed7aa;
}

@media (max-width:768px){
  .kp-quick-grid{
    grid-template-columns:1fr;
  }

  .kp-accordion-summary{
    padding:16px 16px;
    font-size:0.98rem;
  }

  .kp-accordion-body{
    padding:16px;
  }
}



