/*
Theme Name: OneClick Ice
Theme URI: https://oneclickhosting.com.au/
Author: One Click Hosting
Description: Lightweight theme for One Click Hosting ("Ice" brand). No page builder required.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: oneclick-ice
*/

:root {
  --bg: #F5F9FF;
  --bg2: #EAF2FD;
  --surface: #FFFFFF;
  --border: #D6E3F5;
  --border2: #B9CCE8;
  --text: #0A1A3A;
  --muted: #4A5F80;
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --green: #16A34A;
  --green-d: #15803D;
  --navy: #0A1A3A;
  --t-green: #4ADE80;
  --t-blue: #7DD3FC;
  --t-muted: #9FB4D6;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --mono: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; color: var(--green); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-line { background: var(--surface); border-color: var(--border2); color: var(--text); }
.btn-line:hover { border-color: var(--blue); color: var(--text); background: var(--bg2); }
.btn-block { display: flex; width: 100%; }

/* ---------- Top strip + header ---------- */
.strip { background: var(--navy); color: var(--t-muted); font-family: var(--mono); font-size: 12px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.strip .tag { color: var(--t-green); }
.strip a { color: #EAF2FD; text-decoration: none; }
.strip a:hover { color: var(--t-green); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--text); }
.brand-word span { color: var(--green); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav > ul > li > a:hover, .main-nav .current > a { color: var(--text); background: var(--bg2); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.header-cta .login { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--border); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-term { flex: 1 1 420px; min-width: 0; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; display: block; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 60px); margin: 12px 0 16px; }
.page-hero .lede { max-width: 680px; }

/* Domain search */
.domain-form { display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 8px; max-width: 580px; }
.domain-form .prompt { font-family: var(--mono); color: var(--green); padding: 13px 2px 13px 10px; }
.domain-form input { flex: 1 1 200px; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-size: 15px; padding: 13px 6px; color: var(--text); outline: none; }
.domain-form button { flex: none; }
.tlds { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tlds b { color: var(--text); font-weight: 500; }

/* Terminal card */
.term { background: var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(10,26,58,.55); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1B2D52; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #F87171; } .term-bar i:nth-child(2) { background: #FBBF24; } .term-bar i:nth-child(3) { background: #34D399; }
.term-bar span { font-family: var(--mono); font-size: 12px; color: var(--t-muted); margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { padding: 22px 24px; font-family: var(--mono); font-size: 14px; line-height: 2.1; color: var(--t-muted); overflow-x: auto; }
.term-body .ok { color: var(--t-green); } .term-body .go { color: var(--t-blue); } .term-body .w { color: #EAF2FD; }

/* ---------- Highlights strip ---------- */
.highlights { background: var(--bg2); border-bottom: 1px solid var(--border); }
.highlights .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.highlights .wrap > div { padding: 28px 0; }
.highlights strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.highlights span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 520px; font-size: 17px; }

/* Billing toggle */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.toggle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 7px; padding: 9px 16px; cursor: pointer; background: transparent; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 30px 70px -40px rgba(37,99,235,.6); }
.plan .badge { position: absolute; top: -13px; left: 28px; font-family: var(--mono); font-size: 12px; background: var(--green); color: #fff; padding: 4px 10px; border-radius: 6px; }
.plan h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.plan .desc { color: var(--muted); margin-top: 6px; font-size: 15px; }
.plan .price { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .note { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 21px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 13.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "\2713"; color: var(--green); }
.plans-foot { margin-top: 20px; color: var(--muted); font-size: 14px; }
[data-cycle="annually"] .m-only, [data-cycle="monthly"] .a-only { display: none; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; min-height: 220px; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--text); }
.card .k { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.card .go { margin-top: auto; font-weight: 600; color: var(--green); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.feature .n { font-family: var(--mono); font-size: 13px; color: var(--green); }
.feature h3 { font-size: 22px; font-weight: 600; margin: 8px 0; }
.feature p { color: var(--muted); line-height: 1.6; }

/* Table (servers, domains) */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
table.data td { padding: 14px 18px; border-top: 1px solid var(--bg2); }
table.data tr:hover td { background: var(--bg); }
table.data .price-cell { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 64px; }
.faq-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.faq-intro h2 { font-size: clamp(32px, 4vw, 44px); }
.faq-list { flex: 2 1 520px; border-top: 1px solid var(--border); min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--green); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); line-height: 1.7; max-width: 680px; }

/* CTA */
.cta { background: var(--navy); border-radius: 24px; padding: 60px 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; color: #fff; }
.cta .label { color: var(--t-green); }
.cta h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; margin: 10px 0; }
.cta p { color: #B9CCE8; font-size: 18px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-line { background: transparent; color: #fff; border-color: #3B5584; }
.cta .btn-line:hover { border-color: #fff; background: transparent; color: #fff; }

/* Prose (legal / generic pages) */
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 48px; max-width: 880px; }
.prose h2 { font-size: 28px; margin: 32px 0 12px; }
.prose h3 { font-size: 21px; margin: 24px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-grid .card { min-height: 0; }
.contact-grid .big { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--text); text-decoration: none; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--blue); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot-bottom a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.foot-bottom .flag { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav, .header-cta { display: none; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .nav-open .main-nav, .nav-open .header-cta { display: block; flex: 1 1 100%; }
  .nav-open .main-nav ul { flex-direction: column; padding: 8px 0; }
  .nav-open .main-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--bg2); border-radius: 0; }
  .nav-open .header-cta { display: flex; padding: 12px 0 18px; }
  .nav-open .header-cta .btn { flex: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .strip .tag { display: none; }
  .strip .wrap { justify-content: center; text-align: center; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 36px; }
  .hero .lede { font-size: 17px; }
  .section { padding: 72px 0; }
  .plan { padding: 24px; }
  .cta { padding: 40px 24px; border-radius: 18px; }
  .prose { padding: 26px 20px; }
  .domain-form { padding: 6px; }
  .domain-form button { flex: 1 1 100%; }
  .term-body { font-size: 12.5px; padding: 18px; }
  .faq { gap: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom a { margin: 0 18px 0 0; }
  .brand-word { font-size: 20px; }
}

/* ---------- Page header extras ---------- */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); }
.section-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
table.data tbody th { text-align: left; font-weight: 600; padding: 14px 18px; border-top: 1px solid var(--bg2); white-space: nowrap; }
table.data td .btn { padding: 9px 16px; font-size: 14px; }
.foot-bottom .flag svg { border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
@media (max-width: 720px) {
  .page-hero .lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section-head-side, .section-head-side .toggle { width: 100%; }
  .toggle button { flex: 1; }
}

/* ---------- Dropdown menus ---------- */
.table-wrap { position: relative; }
.main-nav li { position: relative; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav .caret { opacity: .6; transition: transform .15s; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: -8px; min-width: 290px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 24px 50px -24px rgba(10,26,58,.35); flex-direction: column; gap: 2px; z-index: 50; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { display: flex; }
.main-nav .has-sub:hover .caret { transform: rotate(180deg); }
.main-nav .sub a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.main-nav .sub a strong { font-weight: 600; font-size: 15px; }
.main-nav .sub a span { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.main-nav .sub a:hover { background: var(--bg2); }
@media (max-width: 1080px) {
  .nav-open .main-nav .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; background: transparent; }
  .nav-open .main-nav .sub a { padding: 10px 8px; border-bottom: 0; font-size: 15px; }
  .nav-open .main-nav .caret { display: none; }
}
@media (max-width: 1080px) {
  .site-header.nav-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
body.nav-locked { overflow: hidden; }
@media (max-width: 1080px) { .nav-open .main-nav > ul > li > a { display: flex; width: 100%; font-weight: 600; color: var(--text); } }
@media (max-width: 1080px) {
  .site-header.nav-open .wrap { padding-top: 14px; padding-bottom: 6px; align-content: flex-start; }
  .site-header.nav-open .brand, .site-header.nav-open .nav-toggle { margin-bottom: 10px; }
}

/* Cart button (count filled from the portal) */
.cart-btn { order: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border2); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; flex: 0 0 auto; }
.cart-btn:hover { border-color: var(--green, #16A34A); color: var(--green, #16A34A); }
.cart-btn .cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #16A34A; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.header-cta { order: 2; }
@media (max-width:1080px) {
  .cart-btn { order: 0; margin-left: auto; margin-right: 8px; }
  .nav-toggle { order: 1; margin-left: 0; }
  .main-nav, .header-cta { order: 2; }
  .site-header.nav-open .cart-btn { margin-bottom: 10px; }
}
