/* PremereHire Shared Base Styles */
/* File: assets/css/premerehire-base.css */

:root{
  --ph-bg:#f7f9fc;
  --ph-surface:#ffffff;
  --ph-surface-2:#eef3fb;
  --ph-text:#0a123d;
  --ph-muted:#5f6b8a;
  --ph-line:rgba(10,18,61,.10);
  --ph-primary:#0e3a78;
  --ph-primary-2:#144b9a;
  --ph-accent:#de2b38;
  --ph-success:#17b26a;
  --ph-shadow:0 18px 50px rgba(16,24,40,.08);
  --ph-radius:18px;
  --ph-radius-sm:12px;
  --ph-container:1200px;
}

html.ph-dark{
  --ph-bg:#09111f;
  --ph-surface:#101a2d;
  --ph-surface-2:#13213a;
  --ph-text:#f5f7fb;
  --ph-muted:#b3bed5;
  --ph-line:rgba(255,255,255,.10);
  --ph-primary:#1c5fd4;
  --ph-primary-2:#2f75f0;
  --ph-accent:#ff5b66;
  --ph-success:#27c581;
  --ph-shadow:0 18px 50px rgba(0,0,0,.28);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:"Outfit",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--ph-bg);
  color:var(--ph-text);
  line-height:1.5;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

.ph-container{
  width:min(var(--ph-container), calc(100% - 32px));
  margin-inline:auto;
}

.ph-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid var(--ph-line);
  backdrop-filter:blur(12px);
}

html.ph-dark .ph-site-header{
  background:rgba(9,17,31,.86);
}

.ph-header-row{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.ph-logo{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.ph-logo img{
  height:42px;
  width:auto;
}

.ph-nav{
  display:flex;
  align-items:center;
  gap:24px;
  flex:1 1 auto;
  justify-content:center;
}

.ph-nav a{
  font-size:14px;
  font-weight:600;
  color:var(--ph-text);
  transition:.2s ease;
}

.ph-nav a:hover{
  color:var(--ph-primary);
}

.ph-header-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
}

.ph-btn,
.ph-btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  transition:.2s ease;
  cursor:pointer;
}

.ph-btn{
  background:linear-gradient(135deg,var(--ph-primary),var(--ph-primary-2));
  color:#fff;
  box-shadow:0 12px 28px rgba(20,75,154,.20);
}

.ph-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

.ph-btn-outline{
  background:transparent;
  color:var(--ph-text);
  border-color:var(--ph-line);
}

.ph-btn-outline:hover{
  background:var(--ph-surface);
}

.ph-login-link{
  font-size:14px;
  font-weight:700;
  color:var(--ph-text);
}

.ph-theme-toggle{
  position:relative;
  width:58px;
  height:32px;
  border-radius:999px;
  background:var(--ph-surface-2);
  border:1px solid var(--ph-line);
  cursor:pointer;
  flex:0 0 auto;
}

.ph-theme-toggle-thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 6px 18px rgba(0,0,0,.14);
  transition:.22s ease;
  color:var(--ph-primary);
  font-size:12px;
}

html.ph-dark .ph-theme-toggle-thumb{
  transform:translateX(26px);
  background:#0f1728;
  color:#ffd34d;
}

.ph-mobile-toggle{
  display:none;
  background:none;
  border:0;
  color:var(--ph-text);
  font-size:22px;
  padding:6px;
  cursor:pointer;
}

.ph-mobile-panel{
  display:none;
  border-top:1px solid var(--ph-line);
  padding:14px 0 18px;
}

.ph-mobile-panel.is-open{
  display:block;
}

.ph-mobile-nav{
  display:grid;
  gap:12px;
}

.ph-mobile-nav a{
  font-weight:700;
  color:var(--ph-text);
}

.ph-main{
  min-height:60vh;
}

.ph-page-placeholder{
  padding:72px 0 84px;
}

.ph-page-card{
  background:var(--ph-surface);
  border:1px solid var(--ph-line);
  border-radius:24px;
  box-shadow:var(--ph-shadow);
  padding:48px;
}

.ph-page-card h1{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.02;
}

.ph-page-card p{
  margin:0;
  max-width:780px;
  color:var(--ph-muted);
  font-size:18px;
}

.ph-site-footer{
  padding:54px 0 24px;
  border-top:1px solid var(--ph-line);
  background:transparent;
}

.ph-footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:28px;
  align-items:start;
}

.ph-footer-brand img{
  height:44px;
  width:auto;
  margin-bottom:14px;
}

.ph-footer-brand p{
  margin:0 0 16px;
  max-width:420px;
  color:var(--ph-muted);
}

.ph-footer-col h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
}

.ph-footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.ph-footer-links a{
  color:var(--ph-muted);
  font-weight:500;
}

.ph-footer-links a:hover{
  color:var(--ph-primary);
}

.ph-footer-bottom{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--ph-line);
  color:var(--ph-muted);
  font-size:14px;
}

@media (max-width: 991px){
  .ph-nav,
  .ph-login-link,
  .ph-header-actions .ph-btn{
    display:none;
  }

  .ph-mobile-toggle{
    display:inline-flex;
  }

  .ph-footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  .ph-container{
    width:min(var(--ph-container), calc(100% - 20px));
  }

  .ph-page-card{
    padding:28px 20px;
    border-radius:18px;
  }

  .ph-footer-grid{
    grid-template-columns:1fr;
  }

  .ph-header-row{
    min-height:70px;
  }

  .ph-logo img{
    height:38px;
  }
}