/*
 |----------------------------------------------------------------------------
 | Public marketing theme (layouts/public.blade.php)
 |----------------------------------------------------------------------------
 | A real hosting-company front end for a Hoster's own portal_domain. Brand
 | colour comes from the resolved Hoster (--brand, set inline by the layout);
 | everything else is derived here so any Hoster gets a coherent theme.
 */

:root {
    --brand: #4caf50;               /* overridden inline per Hoster */
    --brand-dark: #2f8f36;
    --navy: #0b1f3a;
    --navy-2: #0f2748;
    --navy-3: #14315a;
    --blue: #2196f3;
    --ink: #12233d;
    --slate: #5b6b82;
    --line: #e6ebf2;
    --bg: #f5f7fb;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 31, 58, .08);
    --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.public-body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }

.pub-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header / nav ------------------------------------------------------- */
.pub-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.pub-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 74px;
}

.pub-logo { display: flex; align-items: center; }
.pub-logo img {
    height: 46px;
    width: auto;
    display: block;
}
.pub-logo .pub-logo-text { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
.pub-logo .pub-logo-text b { color: var(--brand); }

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 12px;
}

.pub-nav-links a {
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.pub-nav-links a:hover { color: var(--brand-dark); border-color: var(--brand); }

.pub-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.pub-nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
}

/* Mobile drop-down menu: hidden on desktop, revealed by the toggle ≤720px. */
.pub-mobile { display: none; }

/* ---- Buttons ------------------------------------------------------------ */
.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.pbtn:active { transform: translateY(1px); }
.pbtn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(76, 175, 80, .32); }
.pbtn-brand:hover { background: var(--brand-dark); color: #fff; }
.pbtn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.pbtn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.pbtn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.pbtn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.pbtn-block { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.pub-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(33, 150, 243, .25), transparent 60%),
        radial-gradient(900px 500px at 15% 110%, rgba(76, 175, 80, .18), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
    color: #eaf1fb;
    overflow: hidden;
}
.pub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}
.pub-hero-inner {
    position: relative;
    z-index: 1;
    padding: 68px 0 84px;
}
.pub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9fd3a4;
    margin-bottom: 18px;
}
.pub-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -.01em;
}
.pub-hero h1 .accent { color: var(--brand); }
.pub-hero .lead {
    font-size: clamp(16px, 2vw, 20px);
    color: #b9c8dd;
    max-width: 620px;
    margin: 0 0 30px;
}

/* domain search box on the hero */
.domain-search { max-width: 720px; }
.domain-search-form {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.domain-search-form .dsf-prefix {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: var(--slate);
    font-weight: 600;
}
.domain-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 17px;
    color: var(--ink);
    padding: 12px 8px;
    font-family: var(--font);
    min-width: 0;
}
.domain-search-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    color: #b9c8dd;
    font-size: 14px;
}
.domain-search-tlds span { display: inline-flex; gap: 6px; align-items: baseline; }
.domain-search-tlds b { color: #fff; font-weight: 600; }

/* domain result card */
.domain-result {
    margin-top: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.domain-result .dr-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.domain-result .dr-status { font-weight: 600; }
.domain-result.is-available { border-left: 5px solid var(--brand); }
.domain-result.is-taken { border-left: 5px solid #e05c5c; }
.domain-result.is-available .dr-status { color: var(--brand-dark); }
.domain-result.is-taken .dr-status { color: #c23b3b; }
.domain-result .dr-price { margin-left: auto; text-align: right; }
.domain-result .dr-price .amt { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); }
.domain-result .dr-price .per { color: var(--slate); font-size: 13px; }
.domain-result .dr-actions { display: flex; gap: 10px; width: 100%; justify-content: flex-end; }
.dr-hint { color: var(--slate); font-size: 14px; width: 100%; }

/* ---- Service pills ------------------------------------------------------ */
.service-pills {
    position: relative;
    z-index: 2;
    margin-top: -44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.service-pill {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.service-pill .sp-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 22px;
    margin-bottom: 14px;
    color: #fff;
}
.sp-domain { background: linear-gradient(135deg, #43a047, #66bb6a); }
.sp-hosting { background: linear-gradient(135deg, #1e88e5, #42a5f5); }
.sp-design { background: linear-gradient(135deg, #fb8c00, #ffa726); }
.sp-dev { background: linear-gradient(135deg, #8e24aa, #ab47bc); }
.service-pill h3 { margin: 0 0 6px; font-family: var(--display); font-size: 17px; color: var(--navy); }
.service-pill p { margin: 0; color: var(--slate); font-size: 14px; }

/* ---- Sections ----------------------------------------------------------- */
.pub-section { padding: 72px 0; }
.pub-section.alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.section-head h2 {
    font-family: var(--display);
    font-size: clamp(26px, 3.4vw, 38px);
    color: var(--navy);
    margin: 10px 0 12px;
    letter-spacing: -.01em;
}
.section-head p { color: var(--slate); font-size: 17px; margin: 0; }

/* ---- Package cards ------------------------------------------------------ */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.pkg-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pkg-card.featured { border-color: var(--brand); box-shadow: 0 18px 44px rgba(76, 175, 80, .18); }
.pkg-flag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px;
}
.pkg-card h3 { font-family: var(--display); font-size: 20px; color: var(--navy); margin: 0 0 4px; }
.pkg-card .pkg-sub { color: var(--slate); font-size: 14px; margin: 0 0 16px; min-height: 20px; }
.pkg-price { margin: 0 0 18px; }
.pkg-price .was { color: var(--slate); text-decoration: line-through; font-size: 15px; }
.pkg-price .sale {
    display: inline-block; margin-left: 8px; background: #fff0e6; color: #d9640a;
    font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; vertical-align: middle;
}
.pkg-price .now { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.pkg-price .now .amt { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--navy); }
.pkg-price .now .unit { color: var(--slate); font-weight: 500; }
.pkg-price .note { color: var(--slate); font-size: 12px; margin-top: 4px; }
.pkg-feats { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.pkg-feats li { position: relative; padding: 7px 0 7px 26px; color: var(--ink); font-size: 14.5px; border-bottom: 1px solid #f1f4f9; }
.pkg-feats li::before {
    content: "✓"; position: absolute; left: 0; top: 7px;
    color: var(--brand-dark); font-weight: 700;
}

/* ---- Domain pricing table ---------------------------------------------- */
.tld-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.tld-table th, .tld-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tld-table th { background: var(--navy); color: #dce7f5; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.tld-table td.tld { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 17px; }
.tld-table td.price { font-weight: 600; color: var(--ink); }
.tld-table tr:last-child td { border-bottom: 0; }
.tld-table tr:hover td { background: #f8fbf8; }

/* ---- Trust bar ---------------------------------------------------------- */
.trust-bar {
    background: var(--navy);
    color: #cfe0f2;
}
.trust-bar .pub-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.trust-item .ti-ico { font-size: 22px; color: var(--brand); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.cta-band h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: 17px; margin: 0 0 26px; }

/* ---- Content pages (about/support) ------------------------------------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-family: var(--display); color: var(--navy); font-size: 26px; margin: 32px 0 12px; }
.prose h3 { font-family: var(--display); color: var(--navy); font-size: 19px; margin: 24px 0 8px; }
.prose p { color: var(--ink); margin: 0 0 14px; }
.page-hero {
    background: linear-gradient(160deg, var(--navy), var(--navy-3));
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; }
.page-hero p { color: #b9c8dd; font-size: 17px; margin: 0; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 6px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { color: var(--slate); padding: 14px 0; margin: 0; }

/* ---- Footer ------------------------------------------------------------- */
.pub-footer { background: var(--navy-2); color: #9fb2cc; padding: 56px 0 28px; }
.pub-footer .foot-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pub-footer h4 { color: #fff; font-family: var(--display); font-size: 15px; margin: 0 0 14px; letter-spacing: .04em; }
.pub-footer ul { list-style: none; margin: 0; padding: 0; }
.pub-footer li { margin-bottom: 9px; }
.pub-footer a { color: #9fb2cc; font-size: 14.5px; }
.pub-footer a:hover { color: #fff; }
.pub-footer .foot-about img { height: 40px; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.pub-footer .foot-about p { font-size: 14px; max-width: 320px; margin: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 22px; font-size: 13.5px; }

/* ---- Order funnel (Browse / Purchase / DomainCheckout under public theme) */
.order-public { max-width: 820px; margin: 0 auto; padding: 40px 20px 72px; }
.order-public.order-browse { max-width: 1180px; }
.order-back { display: inline-block; color: var(--brand-dark); font-weight: 600; margin-bottom: 12px; }
.order-page-title { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 0 0 6px; }
.order-category-title { font-family: var(--display); color: var(--navy); font-size: 22px; margin: 34px 0 18px; }
.order-public .product-desc { color: var(--slate); font-size: 15px; margin: 0 0 8px; }

.order-form { margin-top: 18px; }
.order-section {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px; margin: 18px 0; box-shadow: var(--shadow);
}
.order-section .panel-title { font-family: var(--display); font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.order-grid .order-col-2 { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; margin-bottom: 4px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-control {
    font-family: var(--font); font-size: 15px; color: var(--ink);
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0;
    transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76, 175, 80, .15); }
.form-error { color: #c23b3b; font-size: 13px; margin-top: 5px; }
.domain-ok { color: var(--brand-dark); font-weight: 600; margin-top: 10px; }
.domain-mode-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* Order-funnel buttons reuse the pbtn look via .btn aliases. */
.order-public .btn, .order-form .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1;
    padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    transition: transform .08s, box-shadow .15s, background .15s; text-decoration: none;
}
.order-public .btn:active, .order-form .btn:active { transform: translateY(1px); }
.order-public .btn-primary, .order-form .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(76, 175, 80, .32); }
.order-public .btn-primary:hover, .order-form .btn-primary:hover { background: var(--brand-dark); }
.order-public .btn-ghost, .order-form .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.order-public .btn-ghost:hover, .order-form .btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
    .service-pills { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
    .pub-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .pub-nav-links, .pub-nav-actions { display: none; }
    .pub-nav-toggle { display: block; }
    .pub-nav.open + .pub-mobile { display: block; }
    .pub-mobile {
        display: none;
        border-top: 1px solid var(--line);
        padding: 14px 0;
    }
    .pub-mobile a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
    .pub-mobile .pbtn { margin-top: 12px; }
    .domain-search-form { flex-direction: column; }
    .domain-result .dr-price { margin-left: 0; text-align: left; }
    .service-pills { grid-template-columns: 1fr; }
    .pub-footer .foot-grid { grid-template-columns: 1fr; }
    .trust-bar .pub-container { justify-content: flex-start; }
    .order-grid { grid-template-columns: 1fr; }
}
