
/*
Theme Name: GRACE Holding Corp (WIFES)
Theme URI: https://graceholding.example
Author: GRACE Holding Corp
Description: Corporate landing theme for GRACE Holding Corp (WIFES ecosystem). Optimized + install-friendly.
Version: 1.1.5
Requires at least: 5.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grace-holding-corp
*/

:root{
  --ink:#0b1b2b;
  --muted:#556575;
  --card:#ffffff;
  --line:#e7edf3;
  --bg:#f6f8fb;
  --footer:#07111d;
}

*{box-sizing:border-box}
html{font-size:15px}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
a{color:#0b5bd3;text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1120px, 92vw);margin:0 auto}

.site-header{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
}
.site-header .bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:10px 0;
}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:32px;width:auto}
.brand .title{font-weight:900;letter-spacing:.3px;font-size:0.98rem}
.nav a{margin-left:14px;font-weight:800;color:var(--ink);font-size:0.92rem}

.hero{
  position:relative;
  color:#fff;
  padding:82px 0 62px;
  overflow:hidden;
}
/* Home background is now COLOR image (no silhouette filter) */
.hero::before{
  content:"";
  position:absolute;inset:0;
  background:url('assets/homebg.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.36));
}
.hero > .container{position:relative;z-index:1}

.hero h1{font-size:clamp(28px, 3.6vw, 42px);margin:0 0 10px}
.hero p{margin:0;max-width:860px;color:rgba(255,255,255,.92);font-size:clamp(13px, 1.5vw, 16px)}

.section{padding:46px 0}
.section h2{margin:0 0 12px;font-size:24px}
.section .lead{margin:0 0 18px;color:var(--muted);font-size:0.98rem}

.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.badge{
  padding:7px 11px;border:1px solid rgba(255,255,255,.25);
  border-radius:999px;background:rgba(255,255,255,.08);
  font-weight:900;letter-spacing:.25px;
  font-size:0.85rem;
}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 18px rgba(11,27,43,.06);
}
.card .logo{height:64px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.card .logo img{max-width:100%;max-height:64px;object-fit:contain}
.card h3{margin:6px 0 4px;font-size:1.05rem}
.card p{margin:0;color:var(--muted);font-size:0.95rem}

.figure{
  margin:18px auto 0;
  max-width:860px;
}
.figure img{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 10px 24px rgba(11,27,43,.08);
}
.figure .caption{
  margin-top:10px;
  color:var(--muted);
  font-size:0.9rem;
  text-align:center;
}

/* WIFES section: fit image on screen */
.bg-wifes{
  position:relative;
  color:white;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:flex-end; /* text at bottom */
  padding: 28px 0;      /* space for bottom text */
}
.bg-wifes::before{
  content:"";
  position:absolute;inset:0;
  /* Fill the screen (cropping when needed) */
  background:url('assets/wifes.jpg') center/cover no-repeat;
  background-color:#08111b; /* fill the extra space */
}
.bg-wifes::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
}
.bg-wifes > .container{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center; /* box centered */
}

.links{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px
}
.link-item{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  position:relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
.link-item:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 22px rgba(11,27,43,.10);
}
.link-item strong{
  font-size: clamp(0.92rem, 1.2vw, 1.0rem);
  line-height:1.2;
  color: var(--ink);
}
.link-item span{
  color:var(--muted);
  font-weight:800;
  font-size: clamp(0.82rem, 1.0vw, 0.92rem);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 45%;
}
@media (max-width:520px){
  .link-item{
    flex-direction:column;
    align-items:flex-start;
  }
  .link-item span{
    max-width: 100%;
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
  }
}


.site-footer{
  padding:34px 0;
  color:rgba(255,255,255,.86);
  background:var(--footer);
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:18px;
}
.site-footer h4{
  margin:0 0 10px;
  font-size:0.98rem;
  letter-spacing:.2px;
}
.site-footer p, .site-footer a, .site-footer li{
  font-size:0.92rem;
  color:rgba(255,255,255,.78);
}
.site-footer a{color:rgba(255,255,255,.86)}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:6px 0}
.site-footer .bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}
.site-footer small{color:rgba(255,255,255,.62)}

@media (max-width:860px){
  .footer-grid{grid-template-columns:1fr}
  .bg-wifes{min-height:60vh}
}
@media (max-width:640px){
  .nav{display:none}
  .hero{padding:68px 0 54px}
  .bg-wifes{min-height:55vh}
}

.wifes-panel{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 860px;
  text-align:center;
}
.wifes-panel h2{margin:0 0 8px}
.wifes-panel .lead{margin:0;color:rgba(255,255,255,.92)}
