/*
Theme Name: PACNET
Theme URI: https://pacificnetworks.net/
Author: Pacific Networks Limited
Description: Corporate theme for Pacific Networks Limited, trading as PACNET.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: pacnet
*/

:root {
  --sea: #071820;
  --sea-2: #0c2834;
  --lagoon: #1abce9;
  --cyan: #1abce9;
  --green: #75c044;
  --green-deep: #75c044;
  --ink: #14232c;
  --muted: #4d6570;
  --line: #d7e3dc;
  --paper: #f3f6f4;
  --card: #ffffff;
  --sand: #e7f3ea;
  --shadow: 0 18px 50px rgba(7, 24, 32, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
button, input, textarea { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--sea);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--width), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--lagoon);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.02; margin: 0 0 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.12; margin: 0 0 12px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }

.site-header { background: var(--sea); color: #e7f2f6; position: sticky; top: 0; z-index: 30; }
.utility {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
  color: #b7c9d1;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 38px;
}
.utility a { color: #d5e8ef; text-decoration: none; }
.utility a:hover { color: var(--cyan); }
.utility-links { display: flex; gap: 16px; flex-wrap: wrap; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 220px; height: auto; }
.starlink-badge {
  display: inline-flex;
  margin-top: 16px;
  line-height: 0;
}
.starlink-badge img { width: 280px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a, .menu-item > a, .site-nav .top-link {
  color: #e7f2f6;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
}
.site-nav a:hover, .menu-item:hover > a, .site-nav a[aria-current="page"] { color: var(--green); }
.menu-item { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 250px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.menu-item:hover .submenu, .menu-item:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
}
.submenu a:hover { background: var(--sand); color: var(--green-deep); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--sea) !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 620;
  cursor: pointer;
}
.btn:hover { background: var(--cyan); color: var(--sea) !important; }
.btn.ghost {
  background: transparent;
  color: #f4fbf8 !important;
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.btn.ghost:hover { background: var(--cyan); color: var(--sea) !important; }
.btn.line {
  background: transparent;
  color: var(--sea) !important;
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.btn.line:hover { background: var(--green); color: var(--sea) !important; }
.header-cta { margin-left: 8px; padding: 10px 16px; }

.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(26, 188, 233, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 80%, rgba(117, 192, 68, 0.20), transparent 55%),
    var(--sea);
  color: #f4fbf8;
  padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: #f7fbf8; }
.hero h1 em { font-style: italic; color: var(--green); font-weight: 520; }
.hero .lede { color: #c5d6de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.trust li {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #d5e7ee;
}
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; }
.caption-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(7, 24, 32, 0.88);
  color: #f4fbf8;
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.caption-card strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 560; }
.caption-card span { color: #b7c9d1; font-size: 0.88rem; }

.facts { margin-top: -36px; position: relative; z-index: 2; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.fact b { display: block; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.03em; }
.fact span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 78px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head p { margin: 0; max-width: 36rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.card .index { color: var(--lagoon); font-size: 0.78rem; letter-spacing: 0.12em; font-weight: 700; }
.card p { color: var(--muted); flex: 1; }
.card a.more { color: var(--green-deep); font-weight: 650; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

.sea-band { background: var(--sea-2); color: #f4fbf8; }
.sea-band .lede, .sea-band p { color: #c5d6de; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { border-top: 2px solid var(--green); padding-top: 14px; }
.pillar h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.story img { border-radius: 22px; width: 100%; object-fit: cover; min-height: 320px; }
.ticks { padding: 0; margin: 18px 0 0; list-style: none; }
.ticks li { padding: 8px 0 8px 28px; position: relative; }
.ticks li:before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); position: absolute; left: 0; top: 14px; }

.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.news {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 230px;
}
.news:hover { border-color: var(--green); }
.news time { color: var(--lagoon); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.news h3 { margin-top: 10px; }
.news span { margin-top: auto; color: var(--green-deep); font-weight: 650; }

.domain-band { background: linear-gradient(180deg, #e7f3ea, #f3f6f4); }
.domain-box {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
}
.tld { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.tld b { background: var(--sea); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.mobile-call { display: none; color: #e7f2f6; text-decoration: none; font-weight: 650; }
.contact-card, .form-card, .prose, .plan, .login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.contact-card a { color: var(--ink); font-weight: 650; text-decoration: none; }
.contact-card p { margin: 0 0 14px; }
label { display: block; font-size: 0.86rem; font-weight: 650; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
  width: 100%;
  border: 1px solid #c9d7d0;
  background: #fbfefc;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.wpcf7-submit { margin-top: 14px; }
.wpcf7-not-valid-tip { color: #9a3412; font-size: 0.85rem; }
.wpcf7-response-output { border-radius: 12px; margin: 12px 0 0 !important; }

.site-footer { background: var(--sea); color: #c5d6de; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #e7f2f6; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; }

.page-hero { background: var(--sea); color: #f4fbf8; padding: 54px 0 46px; }
.page-hero .lede { color: #c5d6de; }
.crumbs { color: #9fb4be; font-size: 0.88rem; margin-bottom: 12px; }
.crumbs a { color: #d5e8ef; text-decoration: none; }
.page-body { padding: 42px 0 72px; }
.prose { max-width: 760px; }
.prose p, .section p { margin-top: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.plan h3 { font-family: var(--sans); letter-spacing: 0; }
.price { font-family: var(--serif); font-size: 2rem; margin: 8px 0; }
.price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--muted); }
.stack { display: grid; gap: 14px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 680; }
details.faq p { color: var(--muted); margin-bottom: 0; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.meta { color: var(--muted); font-size: 0.92rem; }
.post-list { display: grid; gap: 14px; }
.post-list a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.login-card { max-width: 460px; margin: 28px auto; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.veeam-body { padding-top: 28px; }
.veeam-frame iframe { display: block; width: 100%; height: 1000px; border: 0; background: #fff; border-radius: 16px; }
.note { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 980px) {
  .hero-grid, .split, .domain-box, .contact-grid, .news-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards, .fact-grid { grid-template-columns: 1fr 1fr; }
  .pillars, .plans { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 760px) {
  .utility { display: none; }
  .nav-toggle-btn {
    display: inline-flex;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 8px 12px;
  }
  .mobile-call { display: inline-flex; margin-right: 8px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #0c2834;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .submenu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 8px 12px; }
  .submenu a { color: #d5e8ef; }
  .header-cta { margin: 8px 12px; }
  .cards, .fact-grid, .portal-grid { grid-template-columns: 1fr; }
  .hero { padding: 42px 0 64px; }
  .caption-card { position: static; margin-top: 12px; }
}
