/* PremierHosts site experience
   Navy canvas, white Sora headings, Inter body, royal blue light, one amber accent. */

:root {
  --ph-bg: #0A1730;
  --ph-bg-deep: #071125;
  --ph-panel: #12284F;
  --ph-border: #24407A;
  --ph-text: #D3DCEE;
  --ph-muted: #9FB0D0;
  --ph-blue: #2F6BFF;
  --ph-blue-soft: #5B8CFF;
  --ph-accent: #FFB020;
  --ph-header-h: 100px;
  --ph-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-padding-top: calc(var(--ph-header-h) + 12px) !important; }

/* ---------------------------------------------------------------
   Header: stays with you, turns to glass once you scroll
   --------------------------------------------------------------- */
#header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; }
#header [data-row] { transition: background-color .35s var(--ph-ease), border-color .35s var(--ph-ease), backdrop-filter .35s var(--ph-ease); }
body.home #header [data-row] { background-color: transparent !important; border-bottom-color: transparent !important; }
body.ph-scrolled #header [data-row], body.home.ph-scrolled #header [data-row] {
  background-color: rgba(10, 23, 48, .78) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
}
#header nav .ct-menu-link { position: relative; transition: color .2s, background-color .2s; }
/* One hover rule for words across the site: they turn white, with a soft highlight in menus */
#header [data-device="desktop"] nav > ul > li > .ct-menu-link { height: 38px !important; padding: 0 16px !important; margin: 0 4px; border-radius: 999px; }
#header nav .ct-menu-link:hover, #header nav .ct-menu-link:focus-visible, #header nav .ct-menu-link.ph-current,
#header nav li:hover > .ct-menu-link, #header nav [class*="current-menu"] > .ct-menu-link { color: #fff !important; }
#header [data-device="desktop"] nav > ul > li > .ct-menu-link:hover, #header [data-device="desktop"] nav > ul > li > .ct-menu-link:focus-visible { background-color: rgba(255, 255, 255, .10); }
#offcanvas nav .ct-menu-link:hover, #offcanvas nav .ct-menu-link:focus-visible, #offcanvas nav .ct-menu-link.ph-current { color: #fff !important; }
#offcanvas nav .ct-menu-link { opacity: .82; transition: opacity .2s; }
#offcanvas nav .ct-menu-link:hover, #offcanvas nav .ct-menu-link:focus-visible { opacity: 1; }
.ct-footer a:hover, .ct-footer .ct-menu-link:hover, .entry-content a:not(.wp-block-button__link):not(.phwp-button):hover { color: #fff !important; }
#header [data-device="desktop"] nav .ct-menu-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 2px;
  background: var(--ph-blue); box-shadow: 0 0 10px rgba(47, 107, 255, .9);
  transform: translateX(-50%) scale(0); transition: transform .25s var(--ph-ease);
}
#header [data-device="desktop"] nav .ct-menu-link.ph-current::after { transform: translateX(-50%) scale(1); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
body.home .ph-hero.wp-block-cover {
  margin-top: calc(-1 * var(--ph-header-h));
  padding-top: calc(var(--ph-header-h) + 24px);
  padding-bottom: 120px;
  min-height: min(860px, 92vh) !important;
  overflow: hidden;
}
.ph-hero .wp-block-cover__image-background { transform-origin: 78% 50%; animation: ph-drift 30s ease-in-out infinite alternate; }
@keyframes ph-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
/* A soft light that follows the pointer */
.ph-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(620px circle at var(--mx, 72%) var(--my, 38%), rgba(47, 107, 255, .26), transparent 62%);
  transition: opacity .4s; mix-blend-mode: screen;
}
/* Fade the photo into the page so the next section rises out of it */
.ph-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 23, 48, 0) 0%, var(--ph-bg) 92%);
}
.ph-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.ph-hero .ph-hero-copy { max-width: 820px !important; }
.ph-hero h1 { font-size: clamp(2.35rem, 5vw, 4.25rem) !important; line-height: 1.08 !important; letter-spacing: -.025em; }
.ph-hero .ph-hero-copy > p:last-of-type { max-width: 34rem; }
.ph-hero-copy > * { animation: ph-rise .8s var(--ph-ease) both; }
.ph-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.ph-hero-copy > *:nth-child(2) { animation-delay: .14s; }
.ph-hero-copy > *:nth-child(3) { animation-delay: .23s; }
.ph-hero-copy > *:nth-child(4) { animation-delay: .32s; }
@keyframes ph-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.wp-block-button__link { transition: transform .2s var(--ph-ease), background-color .2s, border-color .2s, box-shadow .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button:not(.ph-ghost) .wp-block-button__link:hover { box-shadow: 0 10px 28px rgba(255, 176, 32, .28); }

/* ---------------------------------------------------------------
   Domain search: a glass bar that sits on the edge of the hero
   --------------------------------------------------------------- */
.ph-domain { position: relative; z-index: 5; margin-top: -92px !important; padding: 0 20px; }
.ph-domain-card {
  max-width: 1040px; margin: 0 auto; padding: 22px 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: center;
  background: rgba(18, 40, 79, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px rgba(2, 8, 24, .55);
}
.ph-domain-card > * { margin: 0 !important; }
.ph-domain-card h2 { font-size: 1.3rem !important; line-height: 1.25; margin: 0 0 4px !important; text-align: left; }
.ph-domain-card .ph-domain-text p { margin: 0; color: var(--ph-muted); font-size: .97rem; }
.ph-domain-form { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 999px; background: rgba(7, 17, 37, .7); border: 1px solid var(--ph-border); transition: border-color .2s, box-shadow .2s; }
.ph-domain-form:focus-within { border-color: var(--ph-blue-soft); box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); }
.ph-domain-input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 8px 0 20px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff !important; font-size: 1.05rem; outline: none; }
.ph-domain-input::placeholder { color: var(--ph-muted); opacity: 1; }
.ph-domain-input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.ph-domain-button { flex: 0 0 auto; height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ph-accent); color: var(--ph-bg); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background-color .2s, transform .2s var(--ph-ease); }
.ph-domain-button:hover { background: #FFC24D; transform: translateY(-1px); }
.ph-domain-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Domain TLD pricing pills under search input */
.ph-domain-search-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ph-tld-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-tld-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(7, 17, 37, .55); border: 1px solid rgba(255, 255, 255, .11);
  color: var(--ph-text) !important; font-size: .84rem; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s var(--ph-ease);
}
.ph-tld-pill:hover { border-color: var(--ph-blue-soft); background: rgba(47, 107, 255, .18); transform: translateY(-1px); }
.ph-tld-ext { font-family: Sora, sans-serif; font-weight: 700; color: #fff; }
.ph-tld-price { color: var(--ph-muted); font-weight: 500; }
.ph-tld-price small { font-size: .75rem; opacity: .8; }
.ph-tld-more {
  margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--ph-blue-soft) !important;
  text-decoration: none; padding: 4px 6px; white-space: nowrap; transition: color .2s;
}
.ph-tld-more:hover { color: #fff !important; }

/* ---------------------------------------------------------------
   Sections: one calm canvas, clear steps down the page
   --------------------------------------------------------------- */
#plans, #features, #migration, #how, #faq, #support { background-color: transparent !important; position: relative; }
#plans { padding-top: 112px !important; }
#plans::before, #how::before, #faq::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: min(1100px, 92vw); height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 107, 255, .16), transparent 72%); pointer-events: none; z-index: 0;
}
#plans > *, #features > *, #migration > *, #how > *, #faq > *, #support > * { position: relative; z-index: 1; }
.ph-eyebrow { color: var(--ph-blue-soft) !important; font-size: .82rem !important; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; text-align: center; margin: 0 0 14px !important; }
#plans > h2, #features > h2, #how > h2, #faq > h2, #support h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem) !important; line-height: 1.15 !important; letter-spacing: -.02em; text-align: center; margin: 0 auto 14px !important; max-width: 22ch; text-wrap: balance; }
.ph-lede { max-width: 38rem; margin: 0 auto !important; text-align: center; color: var(--ph-text); font-size: 1.1rem; }
.ph-note { margin: 28px auto 0 !important; text-align: center; color: var(--ph-muted); font-size: .92rem; }

/* Cards share one behaviour: lift, and a light that tracks the pointer */
.phwp-plan, .ph-card {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ph-ease), border-color .3s, box-shadow .3s;
}
.phwp-plan::after, .ph-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 140, 255, .24), transparent 68%);
}
.phwp-plan:hover, .ph-card:hover, .phwp-plan:focus-within { transform: translateY(-6px); border-color: var(--ph-blue-soft) !important; box-shadow: 0 26px 60px rgba(2, 8, 24, .5); }
.phwp-plan:hover::after, .ph-card:hover::after, .phwp-plan:focus-within::after { opacity: 1; }

/* Plans */
.phwp-plans { margin-top: 40px !important; }
.phwp-plan { background: linear-gradient(180deg, rgba(18, 40, 79, .9), rgba(10, 23, 48, .92)) !important; border-radius: 22px !important; }
.phwp-plan .phwp-name { font-size: 1.35rem !important; letter-spacing: -.01em; margin: 0 !important; }
.phwp-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.phwp-save-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: rgba(47, 107, 255, .22); border: 1px solid rgba(91, 140, 255, .45); color: #fff; white-space: nowrap;
}
.phwp-plan-popular {
  border: 2px solid var(--ph-accent) !important;
  background: linear-gradient(180deg, rgba(28, 56, 110, .96), rgba(10, 23, 48, .96)) !important;
  box-shadow: 0 22px 54px rgba(2, 8, 24, .55), 0 0 0 1px rgba(255, 176, 32, .25);
}
.phwp-badge {
  align-self: flex-start; margin: -10px 0 14px; padding: 5px 14px; border-radius: 999px;
  background: var(--ph-accent); color: var(--ph-bg); font-family: Sora, sans-serif;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.phwp-price-block { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.phwp-price { margin: 0 0 6px !important; padding-bottom: 0 !important; border-bottom: 0 !important; }
.phwp-billing-note { display: block; font-size: .83rem; color: var(--ph-muted); line-height: 1.4; }
.phwp-amount { font-size: clamp(2.2rem, 3vw, 2.8rem) !important; }
.phwp-button { transition: transform .2s var(--ph-ease), background-color .2s, box-shadow .2s; }
.phwp-plan:hover .phwp-button { box-shadow: 0 10px 26px rgba(255, 176, 32, .3); }

/* Plan Category Tabs & Monthly/Annual Billing Switcher */
.ph-plans-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; max-width: 1290px; margin: 36px auto 8px; padding: 10px 14px;
  background: rgba(18, 40, 79, .6); border: 1px solid var(--ph-border); border-radius: 999px;
}
.ph-plan-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-plan-tab {
  appearance: none; border: 0; background: transparent; color: var(--ph-muted);
  font-family: Sora, sans-serif; font-size: .92rem; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.ph-plan-tab:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.ph-plan-tab.is-active {
  background: var(--ph-blue); color: #fff; box-shadow: 0 6px 20px rgba(47, 107, 255, .4);
}
.ph-plan-tab:focus-visible, .ph-cycle-btn:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
.ph-billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(7, 17, 37, .75); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
}
.ph-cycle-btn {
  appearance: none; border: 0; background: transparent; color: var(--ph-muted);
  font-family: Inter, sans-serif; font-size: .88rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: color .2s, background-color .2s;
}
.ph-cycle-btn:hover { color: #fff; }
.ph-cycle-btn.is-active { background: var(--ph-accent); color: var(--ph-bg); }
.ph-cycle-save {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(47, 107, 255, .28); color: #fff;
}
.ph-cycle-btn.is-active .ph-cycle-save { background: var(--ph-bg); color: var(--ph-accent); }
html.ph-js #plans .ph-plan-group.ph-tab-managed { display: none !important; }
html.ph-js #plans .phwp-plans.ph-tab-hidden { display: none !important; }

/* Features */
.ph-features { margin-top: 52px !important; }
.ph-card { background: rgba(18, 40, 79, .55) !important; border: 1px solid var(--ph-border); border-radius: 22px !important; }
.ph-card h3 { font-size: 1.3rem !important; margin: 0 0 10px !important; }
.ph-card p { margin: 0; color: var(--ph-text); }
.ph-card h3::before {
  content: ""; display: block; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 15px;
  background-color: rgba(47, 107, 255, .16); border: 1px solid rgba(91, 140, 255, .35);
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
  transition: transform .3s var(--ph-ease), background-color .3s;
}
.ph-card:hover h3::before { transform: translateY(-2px) rotate(-4deg); background-color: rgba(47, 107, 255, .3); }
.ph-ico-speed h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.ph-ico-shield h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.4 8.3-8 9.5C7.4 20.3 4 17 4 12V6l8-3z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ph-ico-chat h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3Cpath d='M9 11h6M9 14h4'/%3E%3C/svg%3E"); }

/* How it works */
.ph-steps { margin-top: 56px !important; counter-reset: ph-step; position: relative; }
.ph-steps::before {
  content: ""; position: absolute; top: 25px; left: 16.66%; right: 16.66%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--ph-blue), var(--ph-accent)); opacity: .55;
  transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ph-ease) .2s;
}
.ph-steps.ph-in::before, html:not(.ph-js) .ph-steps::before { transform: scaleX(1); }
.ph-step { counter-increment: ph-step; text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.ph-step::before {
  content: counter(ph-step); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--ph-bg); border: 2px solid var(--ph-blue-soft); color: #fff;
  font-family: Sora, sans-serif; font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 6px var(--ph-bg), 0 0 24px rgba(47, 107, 255, .45);
}
.ph-step:last-child::before { border-color: var(--ph-accent); box-shadow: 0 0 0 6px var(--ph-bg), 0 0 24px rgba(255, 176, 32, .4); }
.ph-step h3 { font-size: 1.25rem !important; margin: 0 0 8px !important; }
.ph-step p { margin: 0 auto; max-width: 22rem; color: var(--ph-text); }

/* Closing call to action */
#support { padding-top: 40px !important; padding-bottom: 112px !important; }
.ph-cta {
  max-width: 1040px; margin: 0 auto !important; padding: 64px 32px; text-align: center; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 80% 0%, #1F4A9C 0%, #12284F 42%, #0C1D3D 100%); border: 1px solid rgba(255, 255, 255, .12);
}
.ph-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 0%), rgba(91, 140, 255, .28), transparent 65%); }
.ph-cta > * { position: relative; z-index: 1; }
.ph-cta .wp-block-buttons { justify-content: center; margin-top: 30px !important; }

/* Free Website Migration Showcase */
.ph-migration-panel {
  max-width: 1120px; margin: 0 auto !important; padding: 48px 44px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(18, 40, 79, .88) 0%, rgba(10, 23, 48, .95) 100%);
  border: 1px solid var(--ph-border); box-shadow: 0 28px 64px rgba(2, 8, 24, .48);
  position: relative; overflow: hidden;
}
.ph-migration-panel::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(47, 107, 255, .22), transparent 70%); pointer-events: none;
}
.ph-migration-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem) !important; line-height: 1.15 !important;
  letter-spacing: -.02em; text-align: left !important; margin: 0 0 16px !important; max-width: none !important;
}
.ph-migration-panel p { color: var(--ph-text); line-height: 1.65; }
.ph-migration-card {
  background: rgba(7, 17, 37, .65); border: 1px solid rgba(91, 140, 255, .28);
  border-radius: 20px; padding: 28px 28px !important;
}
.ph-migration-card h3 { font-size: 1.15rem !important; margin: 0 0 16px !important; color: #fff; }
.ph-migration-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ph-migration-list li {
  position: relative; padding: 10px 0 10px 30px; color: var(--ph-text);
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: .96rem;
}
.ph-migration-list li:first-child { border-top: 0; padding-top: 2px; }
.ph-migration-list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(47, 107, 255, .25); border: 1px solid var(--ph-blue-soft);
  color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ph-migration-list li:first-child::before { top: 2px; }

/* Pre-Sales FAQ Accordion */
.ph-faq-list { max-width: 860px; margin: 48px auto 0 !important; display: flex; flex-direction: column; gap: 14px; }
.ph-faq-item.wp-block-details {
  background: rgba(18, 40, 79, .55); border: 1px solid var(--ph-border);
  border-radius: 18px; padding: 20px 26px; transition: border-color .25s, background-color .25s;
}
.ph-faq-item.wp-block-details:hover, .ph-faq-item.wp-block-details[open] {
  border-color: var(--ph-blue-soft); background: rgba(18, 40, 79, .82);
}
.ph-faq-item.wp-block-details summary {
  font-family: Sora, sans-serif; font-weight: 600; font-size: 1.08rem; color: #fff;
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ph-faq-item.wp-block-details summary::-webkit-details-marker { display: none; }
.ph-faq-item.wp-block-details summary::after {
  content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(47, 107, 255, .18); border: 1px solid rgba(91, 140, 255, .35);
  color: #fff; font-weight: 600; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ph-ease), background-color .25s, color .25s;
}
.ph-faq-item.wp-block-details[open] summary::after {
  transform: rotate(45deg); background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-bg);
}
.ph-faq-item.wp-block-details > p {
  margin: 14px 0 0 !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--ph-text); font-size: .98rem; line-height: 1.65;
}

/* ---------------------------------------------------------------
   Reveal on scroll (only when scripts run, never hides content otherwise)
   --------------------------------------------------------------- */
html.ph-js .ph-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ph-ease), transform .7s var(--ph-ease); }
html.ph-js .ph-reveal.ph-in { opacity: 1; transform: none; }
html.ph-js .phwp-plan.ph-reveal.ph-in:hover, html.ph-js .ph-card.ph-reveal.ph-in:hover { transform: translateY(-6px); }

/* ---------------------------------------------------------------
   Tablet and phone
   --------------------------------------------------------------- */
@media (max-width: 999px) {
  .ph-domain-card { grid-template-columns: 1fr; gap: 16px; text-align: center; padding: 22px; }
  .ph-domain-card h2 { text-align: center; }
  .ph-tld-pills { justify-content: center; }
  .ph-tld-more { margin-left: 0; }
  .ph-plans-controls { border-radius: 22px; justify-content: center; padding: 14px; }
  .ph-plan-tabs { justify-content: center; width: 100%; }
  .ph-migration-panel { padding: 34px 26px; }
  .ph-steps::before { display: none; }
  .ph-step { text-align: left; padding: 0 0 0 72px; min-height: 56px; margin-bottom: 8px; }
  .ph-step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .ph-step p { margin: 0; max-width: none; }
}
@media (max-width: 689px) {
  body.home .ph-hero.wp-block-cover { min-height: 640px !important; padding-bottom: 110px; }
  .ph-hero .wp-block-buttons { width: 100%; }
  .ph-hero .wp-block-button { flex: 1 1 100%; }
  .ph-hero .wp-block-button__link { width: 100%; text-align: center; }
  .ph-domain { margin-top: -70px !important; padding: 0 16px; }
  .ph-domain-card { border-radius: 20px; padding: 18px; }
  .ph-domain-form { padding: 6px; }
  .ph-domain-input { height: 46px; font-size: 1rem; padding-left: 14px !important; }
  .ph-domain-button { height: 46px; padding: 0 20px; }
  #plans { padding-top: 80px !important; }
  #how { padding-top: 64px !important; padding-bottom: 64px !important; }
  .ph-lede { font-size: 1rem; }
  .ph-cta { padding: 44px 22px; border-radius: 22px; }
  .ph-cta .wp-block-button { flex: 1 1 100%; }
  .ph-cta .wp-block-button__link { width: 100%; }
  .phwp-plan:hover, .ph-card:hover { transform: none; }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .ph-hero .wp-block-cover__image-background, .ph-hero-copy > * { animation: none !important; }
  html.ph-js .ph-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ph-steps::before { transform: scaleX(1) !important; transition: none !important; }
  .phwp-plan, .ph-card, .wp-block-button__link, .phwp-button { transition: none !important; }
  html { scroll-behavior: auto !important; }
}

/* PremierHosts dropdown menu (Plans > hosting pages) */
#header .menu-container .sub-menu {
  background: rgba(18, 40, 79, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px !important;
  padding: 8px !important;
  min-width: 230px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#header .menu-container .sub-menu .ct-menu-link {
  color: #D3DCEE !important;
  padding: 10px 14px !important;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
#header .menu-container .sub-menu .ct-menu-link:hover,
#header .menu-container .sub-menu .ct-menu-link:focus-visible,
#header .menu-container .sub-menu .current-menu-item > .ct-menu-link {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
}

/* PremierHosts readable text links (WCAG AA contrast on dark backgrounds) */
main p a:not(.wp-element-button),
main li a:not(.wp-element-button) {
  color: #5B8CFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}
main p a:not(.wp-element-button):hover,
main li a:not(.wp-element-button):hover { color: #FFFFFF; }
