@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root{
  --ink:        #17211f;
  --paper:      #ffffff;
  --paper-2:    #ffffff;
  --pine:       #0b3d3a;
  --pine-deep:  #082a28;
  --teal:       #0e6b5c;
  --teal-light: #e7f1ee;
  --saffron:    #d98e3e;
  --saffron-deep: #b97225;
  --line:       rgba(11,61,58,0.14);
  --white:      #ffffff;
  --page-active: #2f6fed;
  --page-gray:   #8a9793;
  --display: 'Fraunces', serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;
  --maxw: 1180px;
}

.phrd-home, .phrd-home *{ box-sizing:border-box; margin:0; padding:0; }
.phrd-home{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
.phrd-home img{ max-width:100%; display:block; }
.phrd-home a{ color:inherit; text-decoration:none; }
.phrd-home ul{ list-style:none; }

.phrd-home .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

.phrd-home .h-eyebrow{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--saffron-deep);
  display:flex; align-items:center; gap:10px;
  margin-bottom:14px;
}
.phrd-home .h-eyebrow::before{
  content:""; width:22px; height:1px; background:var(--saffron-deep); display:inline-block;
}

.phrd-home .h-welcome-exec{ padding:72px 0; background:var(--paper); }
.phrd-home .we-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:46px;
  align-items:start;
}

.phrd-home .we-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  padding:38px 34px;
  position:relative;
  overflow:hidden;
}
.phrd-home .we-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--saffron);
}
.phrd-home .we-card h2{
  font-family:var(--display); font-weight:600; font-size:26px;
  color:var(--pine-deep); margin-bottom:18px; line-height:1.2;
}
.phrd-home .we-card p{
  color:#3c4a47; font-size:14.5px; margin-bottom:14px;
}
.phrd-home .we-card p:last-of-type{ margin-bottom:0; }

.phrd-home .exec-card{
  background:var(--pine-deep);
  color:#fff;
  border-radius:12px;
  padding:38px 34px;
  position:relative;
  overflow:hidden;
}
.phrd-home .exec-card::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 90% 10%, rgba(217,142,62,0.16), transparent 55%);
  pointer-events:none;
}
.phrd-home .exec-top{
  display:flex; gap:18px; align-items:center;
  position:relative; z-index:1;
  margin-bottom:20px;
}
.phrd-home .exec-photo{
  width:250px; height:250px; border-radius:50%; overflow:hidden;
  border:3px solid rgba(255,255,255,0.25); flex-shrink:0;
}
.phrd-home .exec-photo img{ width:100%; height:100%; object-fit:cover; }
.phrd-home .exec-name{ font-family:var(--display); font-weight:600; font-size:19px; }
.phrd-home .exec-role{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--saffron); margin-top:4px;
}
.phrd-home .exec-tag{ font-size:13px; color:rgba(255,255,255,0.6); margin-top:4px; }
.phrd-home .exec-socials{
  display:flex; gap:10px; margin-top:10px; position:relative; z-index:1;
}
.phrd-home .exec-socials a{
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.1); color:#fff;
  transition:background .2s ease;
}
.phrd-home .exec-socials a:hover{ background:var(--saffron); }
.phrd-home .exec-socials svg{ width:13px; height:13px; }

.phrd-home blockquote{
  font-family:var(--display); font-style:italic; font-size:15.5px;
  line-height:1.55; color:rgba(255,255,255,0.88);
  border-left:2px solid var(--saffron);
  padding-left:16px; margin:20px 0; position:relative; z-index:1;
}
.phrd-home .exec-card p.body{
  font-size:13.5px; color:rgba(255,255,255,0.72);
  margin-bottom:12px; position:relative; z-index:1;
}
.phrd-home .exec-read-more{
  display:inline-block; margin-top:10px;
  font-weight:600; font-size:13.5px; color:var(--saffron);
  border-bottom:1.5px solid var(--saffron);
  position:relative; z-index:1;
}

@media (max-width:900px){
  .phrd-home .we-grid{ grid-template-columns:1fr; }
}

/* ---------- Vision / Mission / Goal ---------- */
.phrd-home .h-vmg{ padding:0 0 76px; background:var(--paper); }
.phrd-home .vmg-head{ margin-bottom:34px; }
.phrd-home .vmg-head h2{
  font-family:var(--display); font-weight:600; font-size:32px; color:var(--pine-deep);
}

.phrd-home .vmg-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}

.phrd-home .vmg-card{
  border-radius:12px; overflow:hidden;
  border:1px solid var(--line);
  background:var(--white);
  display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.phrd-home .vmg-card:hover{
  transform:translateY(-4px); box-shadow:0 18px 34px -20px rgba(8,42,40,0.32);
}

.phrd-home .vmg-photo{
  height:220px; overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.phrd-home .vmg-photo.vmg-vision{ background:linear-gradient(135deg, #e7f1ee, #d7ebe4); }
.phrd-home .vmg-photo.vmg-mission{ background:linear-gradient(135deg, #fbeedd, #f6ddc0); }
.phrd-home .vmg-photo.vmg-goal{ background:linear-gradient(135deg, #e3f0ed, #cfe6df); }
.phrd-home .vmg-photo svg{
  width:150px; height:150px;
}
.phrd-home .vmg-tag{
  position:absolute; top:16px; left:16px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:#fff; background:var(--saffron-deep);
  padding:6px 14px; border-radius:30px;
}

.phrd-home .vmg-body{ padding:26px 24px 30px; flex:1; }
.phrd-home .vmg-body h3{
  font-family:var(--display); font-weight:600; font-size:20px;
  color:var(--pine-deep); margin-bottom:10px;
}
.phrd-home .vmg-body p{
  font-size:14px; color:#3c4a47; margin:0;
}

@media (max-width:900px){
  .phrd-home .vmg-grid{ grid-template-columns:1fr; }
}

/* ---------- Projects section wrapper ---------- */
.phrd-home .h-projects{ background:var(--paper-2); padding:72px 0 84px; border-top:1px solid var(--line); }
.phrd-home .proj-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  flex-wrap:wrap; gap:20px; margin-bottom:38px;
}
.phrd-home .proj-head h2{
  font-family:var(--display); font-weight:600; font-size:32px; color:var(--pine-deep);
}

/* ---------- Portfolio filters (real markup: et_pb_portfolio_filters) ---------- */
.phrd-home .et_pb_portfolio_filters ul{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:38px;
}
.phrd-home .et_pb_portfolio_filters a{
  font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  padding:9px 18px; border-radius:30px; border:1px solid var(--line);
  background:var(--white); color:#4b5854; display:inline-block;
  transition:background .2s ease, color .2s ease;
}
.phrd-home .et_pb_portfolio_filters a.active,
.phrd-home .et_pb_portfolio_filters a:hover{
  background:var(--pine); color:#fff; border-color:var(--pine);
}

/* ---------- Portfolio grid (real markup: et_pb_portfolio_items) ----------
   4 cards / row desktop, 2 / row tablet, 1 / row mobile (requirement 5) */
.phrd-home .et_pb_portfolio_items{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.phrd-home .et_pb_portfolio_item{
  background:var(--white); border:1px solid var(--line); border-radius:10px;
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.phrd-home .et_pb_portfolio_item:hover{
  transform:translateY(-4px); box-shadow:0 16px 30px -18px rgba(8,42,40,0.3);
}
.phrd-home .et_portfolio_image{
  height:110px; display:flex; align-items:center; justify-content:center;
  background:var(--teal-light); padding:16px; border-bottom:1px solid var(--line);
  position:relative;
}
.phrd-home .et_portfolio_image img{
  max-height:58px; max-width:78%; width:auto; height:auto;
  object-fit:contain; margin:0 auto;
}
.phrd-home .et_overlay{ display:none; } /* Divi hover-play icon, unused here */
.phrd-home .et_pb_module_header{ padding:16px 18px 20px; flex:1; }
.phrd-home .et_pb_module_header a{
  font-family:var(--display); font-size:14.5px; font-weight:600;
  color:var(--pine-deep); line-height:1.32;
}

@media (max-width:980px){ .phrd-home .et_pb_portfolio_items{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .phrd-home .et_pb_portfolio_items{ grid-template-columns:1fr; } }

/* ---------- Pagination (replaces the old "Show More" button) ----------
   Rendered/rebuilt by renderPagination() in projects-pagination.js:
     - .phrd-page-nav      -> "‹ Previous" / "Next ›" buttons (auto-hidden by
                               the script on the first / last page)
     - .phrd-page-btn      -> individual numbered page buttons, gray by default
     - .phrd-page-btn.active -> the current page, highlighted blue
     - .phrd-page-dots     -> the "…" separator for windowed page ranges
   Centered under the grid and wraps/stays centered at any width. */
.phrd-home .phrd-pagination{
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:8px;
  margin-top:40px;
}

.phrd-home .phrd-page-btn{
  min-width:38px; height:38px; padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; border:1px solid var(--line);
  background:var(--white); color:var(--page-gray);
  font-family:var(--body); font-size:14px; font-weight:600;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.phrd-home .phrd-page-btn:hover{
  border-color:var(--page-active); color:var(--page-active);
}
.phrd-home .phrd-page-btn.active{
  background:var(--page-active); border-color:var(--page-active); color:#fff;
}
.phrd-home .phrd-page-btn.phrd-page-nav{
  padding:0 16px; color:#4b5854;
}
.phrd-home .phrd-page-dots{
  color:#a8b3af; font-size:14px; padding:0 2px; user-select:none;
}

@media (max-width:560px){
  .phrd-home .phrd-pagination{ gap:6px; }
  .phrd-home .phrd-page-btn{ min-width:34px; height:34px; padding:0 9px; font-size:13px; }
  .phrd-home .phrd-page-btn.phrd-page-nav{ padding:0 12px; }
}

/* ---------- All link (centered, below pagination) ---------- */
.phrd-home .phrd-portfolio-all-link-wrap{ text-align:center; margin-top:22px; }
.phrd-home .phrd-portfolio-all-link{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:14px; color:var(--pine);
  border-bottom:1.5px solid var(--pine); padding-bottom:2px;
  transition:color .2s ease, border-color .2s ease;
}
.phrd-home .phrd-portfolio-all-link:hover{
  color:var(--saffron-deep); border-color:var(--saffron-deep);
}