/*
Theme Name: SOPHES Parent
Theme URI: https://sophes.org/
Author: SOPHES Nepal
Description: Stable parent framework for SOPHES Nepal. Contains templates, functionality and responsive structure. Use the SOPHES Nepal Child theme for visual customization.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sophes-parent
*/

:root{
  --sophes-blue:#0757a6;
  --sophes-blue-dark:#0a2342;
  --sophes-blue-soft:#eef6ff;
  --sophes-ink:#12243a;
  --sophes-muted:#607084;
  --sophes-line:#e1e9f2;
  --sophes-white:#fff;
  --sophes-accent:#e9b949;
  --sophes-max:1180px;
  --sophes-radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--sophes-ink);
  background:#fff;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
.container{width:min(var(--sophes-max),calc(100% - 48px));margin-inline:auto}

.sophes-skip-link{
  position:absolute;left:-9999px;top:auto;
}
.sophes-skip-link:focus{
  left:16px;top:16px;z-index:99999;
  background:#fff;color:var(--sophes-blue-dark);
  padding:10px 14px;border-radius:6px;
}

.sophes-header{
  position:sticky;top:0;z-index:1000;
  height:78px;background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--sophes-line);
  backdrop-filter:blur(16px);
}
.sophes-header-inner{
  height:100%;display:flex;align-items:center;
  justify-content:space-between;gap:30px;
}
.sophes-brand{display:flex;align-items:center;gap:12px}
.sophes-brand img{width:50px;height:50px;object-fit:contain}
.sophes-brand-name{font-weight:850;color:var(--sophes-blue-dark);font-size:18px;line-height:1.1}
.sophes-brand-tagline{font-size:10px;color:#7b8795;margin-top:4px;line-height:1.2}

.sophes-menu-wrap ul{
  list-style:none;margin:0;padding:0;
  display:flex;align-items:center;gap:26px;
}
.sophes-menu-wrap li{list-style:none;margin:0;padding:0;position:relative}
.sophes-menu-wrap a{
  display:block;padding:7px 0;
  color:#506075;font-size:13px;font-weight:750;
}
.sophes-menu-wrap a:hover,
.sophes-menu-wrap .current-menu-item>a,
.sophes-menu-wrap .current_page_item>a{color:var(--sophes-blue)}
.sophes-menu-wrap .current-menu-item>a:after,
.sophes-menu-wrap .current_page_item>a:after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;
  height:2px;background:var(--sophes-blue);
}
.sophes-header-cta{
  display:inline-flex!important;
  background:var(--sophes-blue)!important;
  color:#fff!important;
  padding:10px 17px!important;
  border-radius:8px;
}
.sophes-header-cta:after{display:none!important}
.sophes-menu-toggle{
  display:none;border:0;background:var(--sophes-blue-dark);
  color:#fff;border-radius:8px;padding:8px 11px;cursor:pointer;
}

.sophes-hero{
  background:#f7faff;
  border-bottom:1px solid var(--sophes-line);
  overflow:hidden;
  position:relative;
}
.sophes-hero:before{
  content:"";position:absolute;width:600px;height:600px;
  border-radius:50%;background:rgba(7,87,166,.065);
  right:-200px;top:-250px;
}
.sophes-hero-inner{
  min-height:625px;display:grid;grid-template-columns:1.05fr .95fr;
  align-items:center;gap:65px;position:relative;
}
.sophes-eyebrow{
  display:flex;align-items:center;gap:10px;
  color:var(--sophes-blue);font-size:11px;font-weight:900;
  text-transform:uppercase;letter-spacing:1.6px;
}
.sophes-eyebrow:before{content:"";width:27px;height:2px;background:var(--sophes-accent)}
.sophes-hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(46px,6vw,76px);
  line-height:1.02;letter-spacing:-3px;
  color:var(--sophes-blue-dark);margin:17px 0 23px;
}
.sophes-hero h1 .blue{color:var(--sophes-blue)}
.sophes-hero-copy{max-width:650px;color:var(--sophes-muted);font-size:17px;margin:0 0 30px}
.sophes-actions{display:flex;gap:10px;flex-wrap:wrap}
.sophes-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:8px;padding:12px 19px;font-size:13px;font-weight:800;
  border:1px solid transparent;transition:.18s ease;cursor:pointer;
}
.sophes-btn-primary{background:var(--sophes-blue);color:#fff;box-shadow:0 8px 22px rgba(7,87,166,.18)}
.sophes-btn-primary:hover{background:#06498b;transform:translateY(-1px)}
.sophes-btn-secondary{background:#fff;color:var(--sophes-ink);border-color:#ccd9e7}
.sophes-btn-secondary:hover{border-color:var(--sophes-blue);color:var(--sophes-blue)}

.sophes-hero-visual{min-height:450px;display:grid;place-items:center;position:relative}
.sophes-logo-orbit{
  width:390px;height:390px;border-radius:50%;
  background:#fff;border:1px solid #dbe6f0;
  display:grid;place-items:center;
  box-shadow:0 25px 65px rgba(12,49,87,.09);
  position:relative;
}
.sophes-logo-orbit:before,.sophes-logo-orbit:after{
  content:"";position:absolute;border:1px solid #e4edf6;border-radius:50%;
}
.sophes-logo-orbit:before{inset:30px}
.sophes-logo-orbit:after{inset:72px}
.sophes-logo-orbit img{width:195px;height:195px;object-fit:contain;position:relative;z-index:2}
.sophes-float{
  position:absolute;background:#fff;border:1px solid var(--sophes-line);
  box-shadow:0 15px 40px rgba(12,49,87,.10);
  border-radius:12px;padding:14px 17px;z-index:3;
}
.sophes-float strong{display:block;color:var(--sophes-blue-dark);font-size:21px;line-height:1.1}
.sophes-float span{display:block;color:var(--sophes-muted);font-size:11px;margin-top:4px}
.sophes-float.one{top:50px;right:0}
.sophes-float.two{bottom:40px;left:0}

.sophes-facts{
  border-bottom:1px solid var(--sophes-line);
  box-shadow:0 8px 25px rgba(12,49,87,.035);
  background:#fff;
}
.sophes-facts-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.sophes-fact{padding:23px 24px;border-right:1px solid var(--sophes-line)}
.sophes-fact:last-child{border-right:0}
.sophes-fact strong{display:block;font-size:18px;color:var(--sophes-blue-dark)}
.sophes-fact span{display:block;font-size:12px;color:var(--sophes-muted);margin-top:3px}

.sophes-section{padding:95px 0}
.sophes-section.soft{background:#f7f9fc}
.sophes-section-head{max-width:720px;margin-bottom:45px}
.sophes-section-head.center{text-align:center;margin-inline:auto}
.sophes-section h2,.sophes-content h2{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--sophes-blue-dark);
  font-size:clamp(35px,4vw,52px);
  line-height:1.08;letter-spacing:-1.6px;margin:12px 0 17px;
}
.sophes-section-head p,.sophes-content p{color:var(--sophes-muted)}
.sophes-split{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}
.sophes-visual-box{
  min-height:430px;border:1px solid var(--sophes-line);
  border-radius:22px;background:linear-gradient(145deg,#eef6ff,#fff);
  display:grid;place-items:center;position:relative;overflow:hidden;
}
.sophes-visual-box:before{
  content:"";position:absolute;width:400px;height:400px;
  border:1px solid #dbe8f5;border-radius:50%;
}
.sophes-visual-box img{width:185px;height:185px;object-fit:contain;position:relative;z-index:1}
.sophes-established{
  position:absolute;bottom:25px;left:25px;background:#fff;
  border:1px solid var(--sophes-line);border-radius:11px;
  padding:13px 16px;box-shadow:0 14px 35px rgba(12,49,87,.09);z-index:2;
}
.sophes-established strong{display:block;color:var(--sophes-blue);font-size:23px;line-height:1}
.sophes-established span{font-size:10px;color:var(--sophes-muted)}

.sophes-checks{display:grid;gap:10px;margin:25px 0}
.sophes-check{display:flex;gap:11px;align-items:flex-start;font-size:14px;color:#415268}
.sophes-check i{
  font-style:normal;flex:0 0 22px;width:22px;height:22px;
  display:grid;place-items:center;border-radius:50%;
  color:var(--sophes-blue);background:#eaf3ff;font-size:11px;font-weight:900;
}

.sophes-mission{padding:82px 0;background:var(--sophes-blue-dark);color:#fff}
.sophes-mission-inner{text-align:center;max-width:900px;margin:auto}
.sophes-mission .sophes-eyebrow{justify-content:center;color:#91c7ff}
.sophes-mission h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(33px,4vw,53px);line-height:1.1;letter-spacing:-1.5px;margin:14px 0}
.sophes-mission p{color:#c8d4e2;margin:auto;max-width:780px}

.sophes-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.sophes-card{
  padding:28px;border:1px solid var(--sophes-line);border-radius:15px;
  background:#fff;min-height:210px;transition:.18s ease;
}
.sophes-card:hover{transform:translateY(-3px);box-shadow:0 17px 45px rgba(12,49,87,.07);border-color:#cad9e9}
.sophes-card-number{font-size:11px;font-weight:900;color:#9bb0c5;letter-spacing:1px}
.sophes-card h3{font-size:18px;color:var(--sophes-blue-dark);margin:20px 0 8px}
.sophes-card p{font-size:13px;color:var(--sophes-muted);margin:0}

.sophes-history{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.sophes-history-item{padding:25px;border-left:2px solid #dce8f4}
.sophes-history-year{font-size:11px;font-weight:900;color:var(--sophes-blue);letter-spacing:.5px}
.sophes-history-item h3{font-size:17px;margin:9px 0 7px}
.sophes-history-item p{font-size:13px;color:var(--sophes-muted);margin:0}

.sophes-cta{padding:72px 0;background:#eef6ff}
.sophes-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}
.sophes-cta h2{font-family:Georgia,"Times New Roman",serif;color:var(--sophes-blue-dark);font-size:37px;line-height:1.1;margin:0 0 8px}
.sophes-cta p{color:var(--sophes-muted);margin:0}

.sophes-page-hero{padding:82px 0;background:var(--sophes-blue-dark);color:#fff}
.sophes-page-hero .sophes-eyebrow{color:#91c7ff}
.sophes-page-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(43px,5vw,65px);line-height:1.03;letter-spacing:-2px;margin:14px 0}
.sophes-page-hero p{max-width:720px;color:#c8d4e2;margin:0;font-size:17px}

.sophes-prose{max-width:850px}
.sophes-prose h2{font-family:Georgia,"Times New Roman",serif;color:var(--sophes-blue-dark);font-size:36px;line-height:1.1;margin:45px 0 15px}
.sophes-prose p,.sophes-prose li{color:var(--sophes-muted)}
.sophes-prose ul{padding-left:22px}

.sophes-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.sophes-detail-card{padding:31px;border:1px solid var(--sophes-line);border-radius:16px;background:#fff}
.sophes-detail-card .number{color:var(--sophes-blue);font-weight:900;font-size:11px}
.sophes-detail-card h3{font-size:21px;color:var(--sophes-blue-dark);margin:15px 0 7px}
.sophes-detail-card p{font-size:14px;color:var(--sophes-muted);margin:0}

.sophes-contact-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:55px}
.sophes-contact-info{padding:30px;background:#f7f9fc;border:1px solid var(--sophes-line);border-radius:18px}
.sophes-contact-info h2{font-family:Georgia,"Times New Roman",serif;color:var(--sophes-blue-dark);font-size:37px;line-height:1.1;margin:10px 0 28px}
.sophes-contact-row{padding:17px 0;border-bottom:1px solid var(--sophes-line)}
.sophes-contact-row:last-child{border-bottom:0}
.sophes-contact-row small{display:block;color:var(--sophes-blue);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:1px}
.sophes-contact-row strong{display:block;color:var(--sophes-blue-dark);margin-top:3px}
.sophes-contact-row span{font-size:13px;color:var(--sophes-muted)}
.sophes-form{display:grid;gap:15px}
.sophes-form label{font-size:12px;font-weight:800;color:var(--sophes-blue-dark)}
.sophes-form input,.sophes-form textarea{
  display:block;width:100%;margin-top:7px;border:1px solid var(--sophes-line);
  border-radius:8px;padding:12px 13px;color:var(--sophes-ink);outline:none;background:#fff;
}
.sophes-form textarea{min-height:170px;resize:vertical}
.sophes-form input:focus,.sophes-form textarea:focus{border-color:var(--sophes-blue);box-shadow:0 0 0 3px rgba(7,87,166,.09)}
.sophes-notice{padding:13px 15px;border-radius:8px;background:#eef7f0;color:#27633b;border:1px solid #cfe6d5;font-size:13px}
.sophes-error{padding:13px 15px;border-radius:8px;background:#fff1f1;color:#9b2b2b;border:1px solid #efcccc;font-size:13px}

.sophes-footer{background:#071a31;color:#aab8c8;padding:60px 0 23px}
.sophes-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:38px}
.sophes-footer-brand{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.sophes-footer-brand img{width:48px;height:48px;background:#fff;border-radius:50%;object-fit:contain}
.sophes-footer-brand strong{display:block;color:#fff;font-size:16px}
.sophes-footer-brand span{font-size:10px}
.sophes-footer h3{color:#fff;font-size:14px;margin:0 0 13px}
.sophes-footer p,.sophes-footer a{font-size:12px}
.sophes-footer a{display:block;margin:6px 0}
.sophes-footer a:hover{color:#fff}
.sophes-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:42px;padding-top:18px;display:flex;justify-content:space-between;gap:20px;font-size:11px}

@media(max-width:900px){
  .sophes-menu-toggle{display:block}
  .sophes-menu-wrap{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;border-bottom:1px solid var(--sophes-line);box-shadow:0 15px 30px rgba(0,0,0,.08);padding:14px 24px 20px}
  .sophes-menu-wrap.open{display:block}
  .sophes-menu-wrap ul{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .sophes-menu-wrap a{padding:10px}
  .sophes-menu-wrap .current-menu-item>a:after,.sophes-menu-wrap .current_page_item>a:after{display:none}
  .sophes-header-cta{margin:6px 10px 0;justify-content:center}
  .sophes-hero-inner,.sophes-split,.sophes-contact-grid{grid-template-columns:1fr}
  .sophes-hero-inner{padding:60px 0}
  .sophes-hero-visual{min-height:390px}
  .sophes-facts-grid{grid-template-columns:repeat(2,1fr)}
  .sophes-fact:nth-child(2){border-right:0}
  .sophes-cards{grid-template-columns:1fr 1fr}
  .sophes-history{grid-template-columns:1fr 1fr}
  .sophes-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .container{width:calc(100% - 30px)}
  .sophes-section{padding:68px 0}
  .sophes-hero h1{letter-spacing:-2px}
  .sophes-logo-orbit{width:300px;height:300px}
  .sophes-logo-orbit img{width:145px;height:145px}
  .sophes-float.one{right:-5px}.sophes-float.two{left:-5px}
  .sophes-facts-grid,.sophes-cards,.sophes-history,.sophes-detail-grid,.sophes-footer-grid{grid-template-columns:1fr}
  .sophes-fact{border-right:0;border-bottom:1px solid var(--sophes-line)}
  .sophes-fact:last-child{border-bottom:0}
  .sophes-cta-inner{display:block}
  .sophes-cta .sophes-btn{margin-top:20px}
  .sophes-footer-bottom{flex-direction:column}
}


/* SOPHES Parent 1.0.2 refinements */

/* Header: create intentional breathing room between brand and menu. */
.sophes-header-inner{
  justify-content:flex-start;
}
.sophes-menu-wrap{
  margin-left:72px;
}
.sophes-menu-wrap ul{
  gap:34px;
}

/* Hero: reserve a real visual gap before the facts section. */
.sophes-hero{
  padding-bottom:46px;
}
.sophes-hero-inner{
  min-height:650px;
  padding-top:28px;
  padding-bottom:28px;
}
.sophes-actions{
  margin-bottom:12px;
}

/* Keep the following section visually independent. */
.sophes-facts{
  position:relative;
  z-index:2;
  clear:both;
  background:#fff;
}

@media(max-width:900px){
  .sophes-menu-wrap{
    margin-left:0;
  }
  .sophes-menu-wrap ul{
    gap:0;
  }
  .sophes-hero{
    padding-bottom:28px;
  }
  .sophes-hero-inner{
    min-height:auto;
    padding-top:55px;
    padding-bottom:55px;
  }
}
