/*
Theme Name:  Vallalar Friends Blood Support
Theme URI:   https://yoursite.com
Description: Official theme for Vallalar's Friends Blood Support. White background with navy & red brand colors.
Version:     3.0.0
Author:      Vallalar Friends Blood Support
License:     GPL v2 or later
Text Domain: vfbs
*/

/* ═══════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════ */
:root {
  --navy:        #0A1F5C;
  --navy-dark:   #061240;
  --navy-light:  #EEF2FF;
  --red:         #CC1E1E;
  --red-dark:    #991515;
  --red-light:   #FFF0F0;
  --green:       #1A7A35;
  --green-light: #E8F5EE;
  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --bg-alt:      #F7F8FC;
  --border:      #E2E6F0;
  --text:        #1A1F36;
  --text-muted:  #5A6380;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(10,31,92,.08);
  --shadow-md:   0 4px 20px rgba(10,31,92,.12);
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ═══════════════════════════════════════
   BASE RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--text); }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 20px; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container    { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 20px; }
.section      { padding: 64px 0; background: var(--bg); }
.section-alt  { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:900px){ .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width:680px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:28px} .mt-4{margin-top:44px}
.mb-2{margin-bottom:16px} .mb-3{margin-bottom:28px}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; font-size: 15px; font-weight: 700;
  border-radius: 8px; cursor: pointer; border: 2px solid transparent;
  text-decoration: none; font-family: var(--font); transition: all .18s;
  letter-spacing: .01em; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-red   { background: var(--red);   color: #fff; border-color: var(--red);   }
.btn-red:hover   { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy  { background: var(--navy);  color: #fff; border-color: var(--navy);  }
.btn-navy:hover  { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-red  { background: transparent; color: var(--red);  border-color: var(--red);  }
.btn-outline-red:hover  { background: var(--red);  color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: rgba(255,255,255,.7); }
.btn-white:hover { background: var(--navy-light); color: var(--navy); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: #145C28; color: #fff; }
.btn-lg  { padding: 14px 34px; font-size: 17px; border-radius: 10px; }
.btn-sm  { padding: 7px 16px;  font-size: 13px; border-radius: 6px;  }

/* ═══════════════════════════════════════
   HEADER — white bg
═══════════════════════════════════════ */
#site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(10,31,92,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1120px; margin: 0 auto; padding: 0 20px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.logo-img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.logo-fallback {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.logo-name    { display: block; font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.logo-tagline { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

#primary-nav ul { list-style: none; padding: 0; display: flex; gap: 2px; align-items: center; }
#primary-nav a  {
  display: block; padding: 8px 13px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-radius: 7px; transition: all .15s;
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a { color: var(--navy); background: var(--navy-light); }
.header-cta {
  margin-left: 8px; padding: 8px 18px; font-size: 13px; font-weight: 700;
  background: var(--red); color: #fff; border-radius: 7px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s; border: none; cursor: pointer;
}
.header-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--navy); font-size: 26px; padding: 4px; line-height: 1;
}
@media(max-width:900px){
  .nav-toggle { display: block; }
  #primary-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--border);
    padding: 12px 20px 18px; z-index: 999;
  }
  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 2px; }
  #primary-nav a  { font-size: 15px; padding: 10px 14px; }
  .header-cta { display: none; }
}

/* ═══════════════════════════════════════
   HERO — white bg with subtle gradient
═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 60%, #FFF5F5 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,30,30,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
@media(max-width:768px){ .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-light); border: 1px solid rgba(204,30,30,.2);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--red); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(26px,4vw,48px); color: var(--navy); margin-bottom: 14px; line-height: 1.2; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p  { font-size: clamp(15px,2vw,17px); color: var(--text-muted); max-width: 540px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--navy); }
.hero-stat span   { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-logo-wrap { display: flex; align-items: center; justify-content: center; }
.hero-logo-img  {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--border);
  box-shadow: var(--shadow-md);
}
@media(max-width:768px){ .hero-logo-wrap { display: none; } }

/* ═══════════════════════════════════════
   BLOOD GROUP GRID
═══════════════════════════════════════ */
.blood-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 10px; }
@media(max-width:640px){ .blood-grid { grid-template-columns: repeat(4,1fr); } }
.blood-cell {
  aspect-ratio: 1; background: var(--white);
  border: 2px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--navy);
  cursor: pointer; transition: all .18s; text-decoration: none;
}
.blood-cell:hover {
  background: var(--red); color: #fff; border-color: var(--red);
  transform: scale(1.07); box-shadow: 0 4px 14px rgba(204,30,30,.25);
}

/* ═══════════════════════════════════════
   SECTION TITLE BLOCK
═══════════════════════════════════════ */
.title-block { text-align: center; margin-bottom: 40px; }
.title-block h2 { font-size: clamp(22px,3vw,32px); color: var(--navy); margin-bottom: 8px; }
.title-block p  { font-size: 15px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.title-line { width: 44px; height: 4px; background: var(--red); border-radius: 2px; margin: 12px auto 0; }

/* ═══════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════ */
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 22px; text-align: center;
  transition: box-shadow .2s, transform .2s; border-top: 3px solid transparent;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--red); }
.feat-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: var(--bg-alt); display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin: 0 auto 14px;
  transition: background .2s;
}
.feature-card:hover .feat-icon { background: var(--red-light); }
.feature-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 7px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.steps-row { display: flex; position: relative; }
.steps-row::before {
  content:''; position:absolute; top:26px; left:14%; right:14%;
  height:2px; background:var(--border); z-index:0;
}
.step-item { flex:1; text-align:center; padding:0 12px; position:relative; z-index:1; }
.step-num {
  width:52px; height:52px; border-radius:50%;
  background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; margin:0 auto 14px;
  border:4px solid var(--white); box-shadow:0 0 0 2px var(--navy);
}
.step-item h3 { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:6px; }
.step-item p  { font-size:13px; color:var(--text-muted); margin:0; }
@media(max-width:600px){
  .steps-row { flex-direction:column; gap:20px; }
  .steps-row::before { display:none; }
}

/* ═══════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.stats-strip { background:var(--navy); padding:40px 0; }
.stats-row { display:flex; justify-content:space-around; flex-wrap:wrap; gap:20px; text-align:center; }
.stat-block strong { display:block; font-size:34px; font-weight:800; color:#fff; }
.stat-block span   { font-size:12px; color:rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.07em; }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonial {
  background:var(--white); border:1px solid var(--border);
  border-left:4px solid var(--red); border-radius:var(--radius); padding:22px;
}
.testimonial blockquote { font-size:14px; color:var(--text-muted); font-style:italic; margin-bottom:14px; line-height:1.7; }
.t-author { display:flex; align-items:center; gap:10px; }
.t-av { width:38px; height:38px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
.t-name { font-size:13px; font-weight:700; color:var(--navy); }
.t-loc  { font-size:12px; color:var(--text-muted); }

/* ═══════════════════════════════════════
   CTA BANDS
═══════════════════════════════════════ */
.cta-navy { background:var(--navy); padding:60px 0; text-align:center; }
.cta-navy h2 { color:#fff; font-size:clamp(20px,3vw,30px); margin-bottom:10px; }
.cta-navy p  { color:rgba(255,255,255,.8); font-size:16px; margin-bottom:28px; max-width:500px; margin-left:auto; margin-right:auto; }
.cta-red  { background:var(--red); padding:60px 0; text-align:center; }
.cta-red h2 { color:#fff; font-size:clamp(20px,3vw,30px); margin-bottom:10px; }
.cta-red p  { color:rgba(255,255,255,.85); font-size:16px; margin-bottom:28px; max-width:500px; margin-left:auto; margin-right:auto; }

/* ═══════════════════════════════════════
   PAGE BANNER
═══════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color:#fff; padding:42px 0; text-align:center;
}
.page-banner h1 { color:#fff; font-size:clamp(22px,3vw,32px); }
.page-banner p  { color:rgba(255,255,255,.8); margin-top:7px; font-size:15px; }

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */
.card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px;
  box-shadow:0 1px 4px rgba(10,31,92,.05); margin-bottom:16px;
}
.card-title { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:14px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
#site-footer { background:#0A1F5C; color:rgba(255,255,255,.7); padding:52px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; }
@media(max-width:768px){ .footer-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns:1fr; } }
.footer-logo { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.footer-logo img { width:48px; height:48px; border-radius:50%; object-fit:cover; }
.footer-brand-name { display:block; font-size:15px; font-weight:800; color:#fff; }
.footer-brand-tag  { display:block; font-size:10px; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.06em; }
.footer-desc { font-size:13px; color:rgba(255,255,255,.6); line-height:1.7; }
.footer-col h4 { color:#fff; font-size:12px; font-weight:700; margin-bottom:14px; text-transform:uppercase; letter-spacing:.08em; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-col ul { list-style:none; padding:0; }
.footer-col li { margin-bottom:8px; }
.footer-col a  { color:rgba(255,255,255,.6); font-size:13px; }
.footer-col a:hover { color:#fff; }
.footer-bottom { margin-top:40px; padding:16px 0; border-top:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.footer-bottom p { font-size:12px; color:rgba(255,255,255,.4); margin:0; }

/* ═══════════════════════════════════════
   BLOG / ENTRY CONTENT
═══════════════════════════════════════ */
.entry-content { font-size:16px; line-height:1.8; color:var(--text-muted); }
.entry-content h2 { font-size:22px; margin:28px 0 10px; color:var(--text); }
.entry-content h3 { font-size:18px; margin:22px 0 8px; color:var(--text); }
.entry-content p  { margin-bottom:14px; }
.entry-content a  { color:var(--red); }
.entry-content ul,.entry-content ol { margin-bottom:14px; }

/* ═══════════════════════════════════════
   FORM FIELDS
═══════════════════════════════════════ */
.form-field { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.form-field label { font-size:12px; font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.05em; }
.form-field input,.form-field select,.form-field textarea {
  padding:10px 14px; font-size:14px; border:1.5px solid var(--border);
  border-radius:8px; color:var(--text); background:var(--white);
  font-family:var(--font); transition:border-color .15s;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus {
  outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(10,31,92,.1);
}
.form-field textarea { min-height:110px; resize:vertical; }

/* ═══════════════════════════════════════
   WORDPRESS MISC
═══════════════════════════════════════ */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;}
.skip-link:focus{clip:auto;clip-path:none;height:auto;left:6px;top:6px;width:auto;z-index:9999;background:var(--red);color:#fff;padding:8px 16px;border-radius:4px;font-size:14px;font-weight:700;}
.alignleft{float:left;margin:0 20px 12px 0;} .alignright{float:right;margin:0 0 12px 20px;} .aligncenter{display:block;margin:0 auto 12px;}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;border:1px solid var(--border);font-size:14px;color:var(--text-muted);}
.page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy);}
.page-numbers:hover{border-color:var(--navy);color:var(--navy);}

@media(max-width:480px){
  .section{padding:44px 0;}
  .hero{padding:44px 0 36px;}
}
