/* Peninsula Header & Footer — front-end styles
   Colour, width and logo height come from CSS variables printed by the plugin. */

.phf-header-wrap,
.phf-footer{
  --phf-line: rgba(0,0,0,0.10);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
}
.phf-header-wrap *,
.phf-footer *{ box-sizing: border-box; }

.phf-container{
  max-width: var(--phf-width, 1180px);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Announcement bar ---------- */
.phf-topbar{
  background: var(--phf-navy, #1B2A56);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
}
.phf-topbar .phf-container{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 40px; flex-wrap: wrap;
}
.phf-topbar-note{ display: inline-flex; align-items: center; gap: 9px; letter-spacing: .04em; }
.phf-topbar .phf-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--phf-accent, #1E9F63);
  box-shadow: 0 0 0 3px var(--phf-accent-line, rgba(30,159,99,0.24));
}
.phf-topbar-contact{ display: inline-flex; align-items: center; gap: 22px; }
.phf-topbar-contact a{
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color .3s ease;
}
.phf-topbar-contact a:hover{ color: #fff; }
.phf-topbar-contact svg{ width: 14px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.phf-header{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--phf-line);
}
.phf-header--sticky{ position: sticky; top: 0; z-index: 9990; }
.phf-header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; min-height: 74px;
}

.phf-brand{ display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.phf-brand img{ height: var(--phf-logo-h, 38px); width: auto; display: block; }
.phf-brand-text{
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 19px;
  color: var(--phf-navy, #1B2A56); letter-spacing: -0.01em;
}

.phf-nav{ margin-left: auto; }
.phf-menu{
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.phf-menu li{ position: relative; }
.phf-menu a{
  display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--phf-text, #5B6478);
  transition: color .3s ease, background .3s ease;
}
.phf-menu a:hover,
.phf-menu a.is-current,
.phf-menu .current-menu-item > a{
  color: var(--phf-navy, #1B2A56);
  background: var(--phf-accent-wash, rgba(30,159,99,0.10));
}
/* second level */
.phf-menu .sub-menu{
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--phf-line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 20;
}
.phf-menu li:hover > .sub-menu,
.phf-menu li:focus-within > .sub-menu{ opacity: 1; visibility: visible; transform: translateY(0); }
.phf-menu .sub-menu a{ border-radius: 10px; }

.phf-header-actions{ display: flex; align-items: center; gap: 12px; flex: none; }

.phf-btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: #fff !important; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--phf-navy, #1B2A56);
  border: none; cursor: pointer;
}
.phf-btn::before{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    var(--phf-navy, #1B2A56) 0%,
    var(--phf-accent, #1E9F63) 50%,
    var(--phf-navy, #1B2A56) 100%);
  background-size: 260% 100%; background-position: 0% 0%;
  transition: background-position .9s cubic-bezier(.22,1,.36,1);
}
.phf-btn:hover::before{ background-position: 100% 0%; }
.phf-btn-arrow{
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: transform .4s cubic-bezier(.22,1,.36,1), background .4s ease;
}
.phf-btn:hover .phf-btn-arrow{ transform: translateX(3px) rotate(45deg); background: rgba(255,255,255,0.3); }
.phf-btn--block{ width: 100%; justify-content: space-between; margin-top: 22px; }

.phf-burger{
  display: none; width: 42px; height: 42px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--phf-line);
  color: var(--phf-navy, #1B2A56); cursor: pointer;
}
.phf-burger svg{ width: 22px; height: 22px; }

/* ---------- Mobile drawer ---------- */
.phf-drawer{
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.98);
  overflow-y: auto; padding: 26px 26px 40px;
}
.phf-drawer[hidden]{ display: none; }
.phf-drawer-inner{ max-width: 480px; margin: 0 auto; }
.phf-drawer-close{
  width: 42px; height: 42px; border-radius: 12px; margin-left: auto; display: flex;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--phf-line);
  color: var(--phf-navy, #1B2A56); cursor: pointer;
}
.phf-drawer-close svg{ width: 22px; height: 22px; }
.phf-drawer .phf-menu{ flex-direction: column; align-items: stretch; gap: 2px; margin-top: 24px; }
.phf-drawer .phf-menu a{ padding: 14px 16px; font-size: 17px; border-radius: 14px; }
.phf-drawer .sub-menu{
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: none; padding: 0 0 0 14px;
}
.phf-drawer-contact{ display: flex; flex-direction: column; gap: 6px; margin-top: 26px; font-size: 15px; }
.phf-drawer-contact a{ color: var(--phf-text, #5B6478); text-decoration: none; }

/* ---------- Social ---------- */
.phf-social{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.phf-social a{
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.20); color: #fff; text-decoration: none;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.phf-social a:hover{
  background: var(--phf-accent, #1E9F63); color: #fff;
  border-color: transparent; transform: translateY(-2px);
}
.phf-social svg{ width: 16px; height: 16px; }
.phf-social--drawer a{ border-color: rgba(0,0,0,0.14); color: var(--phf-navy, #1B2A56); }
.phf-social--drawer a:hover{ color: #fff; }

/* ---------- Footer ---------- */
.phf-footer{
  background: var(--phf-navy, #1B2A56);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 0;
  margin-top: 0;
}
.phf-footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
  padding-bottom: 56px;
}
.phf-footer .phf-brand-text{ color: #fff; }
.phf-brand--footer img{ height: calc(var(--phf-logo-h, 38px) + 4px); }
.phf-about{ font-size: 14.5px; margin: 20px 0 0; max-width: 360px; }

.phf-badge{
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 14px 7px 11px; border-radius: 999px;
}
.phf-badge .phf-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--phf-accent, #1E9F63);
  box-shadow: 0 0 0 3px var(--phf-accent-line, rgba(30,159,99,0.24));
}

.phf-fcol h4{
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; margin: 0 0 20px;
}
.phf-fcol ul{ list-style: none; margin: 0; padding: 0; }
.phf-fcol li{ margin-bottom: 11px; font-size: 14.5px; }
.phf-fcol a{
  color: rgba(255,255,255,0.78); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease;
}
.phf-fcol a:hover{ color: #fff; border-bottom-color: var(--phf-accent, #1E9F63); }

.phf-contact li{ display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.phf-ico{
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phf-ico svg{ width: 16px; height: 16px; }

.phf-footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 24px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; font-size: 13px;
}
.phf-tagline{
  font-weight: 600; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--phf-accent, #1E9F63);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .phf-footer-grid{ grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 920px){
  .phf-header .phf-nav{ display: none; }
  .phf-burger{ display: flex; }
  .phf-header-actions .phf-btn{ display: none; }
}
@media (max-width: 720px){
  .phf-container{ padding: 0 22px; }
  .phf-topbar .phf-container{ justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; }
  .phf-topbar-contact{ gap: 14px; flex-wrap: wrap; justify-content: center; }
  .phf-footer{ padding-top: 56px; }
  .phf-footer-grid{ grid-template-columns: 1fr; gap: 34px; padding-bottom: 36px; }
  .phf-footer-bottom{ justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  .phf-header-wrap *, .phf-footer *{ transition-duration: .001ms !important; }
}
