/* ======================================================
   1. ROOT / THEME
====================================================== */

:root {
    --charcoal: #1F1F1F;
    --purple: #b058c2;
    --purple-dark: #8e3fa3;
    --cream: #FFEFCB;
    --white: #ffffff;
    --border: #ddd;
    --purple-light: #f3e6f7;
    --text-muted: #555;
}

/* ======================================================
   2. GLOBAL / RESET / BASE (ALL PAGES)
====================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding-top: 62px;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: var(--charcoal);
    background: var(--cream);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

button,
input,
textarea {
    font-family: inherit;
}

.tagline {
    font-size: 0.75em;
    font-weight: normal;
}

h3 {
    font-size: 1.75rem;
}

h2 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1,
h2 {
    position: relative;
    margin-bottom: 32px;
}

h1::after,
h2::after,
h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--purple);
    margin: 12px auto 0;
    border-radius: 2px;

}

h1,
h2 {
    text-align: center;
}

h2 {
    scroll-margin-top: 90px;
    /* prevents fixed nav covering headings when linked */
}

i {
    font-size: 0.5em;
    color: #555;
}

.callout-2 p {
    margin: 8px 0;
}

#choose-p {
    margin-top: 20px;
}

.trust-bar {
    background-color: var(--purple);
    color: var(--white);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 2.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ======================================================
   3. REUSABLE COMPONENTS (ALL PAGES)
====================================================== */

/* HEADER LOGO */

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    width: 180px;
    max-width: 80%;
    border-radius: 10px;
    border: 1px solid black;
}

.logo {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.logo:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
}

/* NAVBAR */

.main-nav {
    position: fixed;
    height: 50px;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--charcoal);
    padding: 5px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}


.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    margin: 0 16px;
    font-size: 1.15rem;
    text-decoration: none;
    font-weight: 500;
    color: var(--white);
    display: inline-block;
    transition: .25s ease;
}

.main-nav a:hover {
    transform: translateY(-4px);
}

.main-nav a:active {
    color: var(--purple);
}

.main-nav a {
    position: relative;
    text-decoration: none;
}


.nav-links a.active {
    border-bottom: 3px solid var(--purple);
    padding-bottom: 4px;
}

/* Page content */

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    flex: 1;

}

/*Links*/
.service-box {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-box,
.why-box,
.choose-box,
.package-box {
    padding: 28px;
}

.hero,
.why-website,
.why-choose,
.services,
.packages {
    padding: 80px 20px;
}

.how-it-works {
    text-align: center;
    padding: 60px 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.process-box {
    background: var(--white);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.process-box h3 {
    margin-bottom: 10px;
}

/* HAMBURGER */

#menu-toggle {
    display: none;
}

.hamburger {
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

/* MOBILE MENU */

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--charcoal);
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
    z-index: 999;
}

#menu-toggle:checked+.hamburger+.nav-links {
    display: flex;
}

@media(min-width:768px) {

    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        width: auto;
        padding: 0;
    }
}

/* BUTTONS */

.cta-button-1 {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    padding: 12px 20px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 4px;
    transition: .25s ease;
}

.cta-button-1:hover {
    background: var(--purple-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.cta-button-2 {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    padding: 12px 20px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 4px;
    margin: 20px 0;
    transition: .25s ease;
}

.cta-button-2:hover {
    background: #333;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

button[type="submit"] {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 12px 20px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 5px;
    transition: .25s ease;
    align-self: center;
}

button[type="submit"]:hover {
    background: var(--purple-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.quote-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--purple);
    color: var(--white);
    padding: 12px 20px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 4px;
}

.quote-btn:hover {
    background: var(--purple-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--charcoal);

    color: var(--white);
    border: 1px solid var(--border);

    width: 45px;
    height: 45px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    text-decoration: none;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    transition: .25s ease;

    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* FOOTER */

footer {
    background: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: .9rem;
}

/* CONTENT BOX (used across pages) */


.content-box {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    text-align: center;
    padding: 28px;
}

.content-box p {
    max-width: 65ch;
    margin: 0 auto;
}

/* ======================================================
   4. INDEX PAGE ONLY
====================================================== */

.hero {
    text-align: center;
    padding: 1rem;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.callout {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
}

.callout-1 {
    font-family: 'Inter', sans-serif;
    background: var(--charcoal);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    padding: 20px 12px;
    border-radius: 5px;
    letter-spacing: .8px;
    line-height: 1.6;
}

.callout-1 p {
    margin: 0;
}

.callout-2 {
    background: var(--purple);
    color: var(--white);
    padding: 12px 20px;
    margin: 20px 0;
    text-align: center;
    border-radius: 5px;
    font-size: 1rem;
}

/* section */

section {
    padding: 60px 20px;
}

/* SERVICES */

.services {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.services h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    /* space under heading */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.web-packages,
.maintenance-packages {
    padding: 60px 20px;
    text-align: center;
    /* section spacing */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.web-package-box,
.maintenance-package-box a {
    margin-top: auto;
}

.web-packages-grid,
.maintenance-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

.web-package-box,
.maintenance-package-box {
    background: white;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.price {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 10px 0 20px;
}

.web-package-box ul,
.maintenance-package-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.web-package-box li,
.maintenance-package-box li {
    padding: 6px 0;
}

/* hover for normal boxes */
.web-package-box:hover,
.maintenance-package-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}

/* featured box — merged into one rule */
.featured {
    transform: scale(1.05);
    border: 2px solid var(--purple);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

/* featured hover — combines both transforms */
.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}

.view-packages {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-decoration: none;
    color: var(--purple);
}

.view-packages:hover {
    text-decoration: underline;
}

/* normal package boxes */
.web-package-box:hover,
.maintenance-package-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}

/* featured box stays scaled AND moves up */
.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}

/* Most popular box badge */

.badge {
    background: var(--purple);
    color: white;
    font-size: .75rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.why-website,
.why-choose,
.services {
    width: 100%;
}

.affordable,
.hosting {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 600px;
    /* so it doesn't overflow on mobile */
    margin: 0 auto;
}

/* WHY SECTION */

.why-website {
    text-align: center;
    margin: 0 auto;
}

.why-website h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    /* space under heading */
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);

}

/*==================================================
Choose StackPug section */
.why-choose {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;

}

.why-choose h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    /* space under heading */
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.choose-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}


/* ======================================================
   5. CONTACT PAGE ONLY
====================================================== */

.contact-section {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
}

.contact-section p {
    margin-bottom: 30px;
    color: var(--charcoal);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    overflow: hidden;
}

.icon {
    padding: 0 10px;
    font-size: 18px;
    opacity: .7;
}

.input-wrap input,
.input-wrap textarea {
    border: none;
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.input-wrap textarea {
    resize: vertical;
}

.input-wrap:focus-within {
    border-color: var(--charcoal);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
}

/* ======================================================
   FAQ
====================================================== */

/* FAQ */

.faq {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: .25s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: #555;
}

.faq-intro {
    text-align: center;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 20px;
}

.faq-item[open] summary::after {
    content: "−";
}

.service-box,
.why-box,
.choose-box,
.package-box,
.process-box {
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-box:hover,
.why-box:hover,
.choose-box:hover,
.package-box:hover,
.process-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}

/* ======================================================
   6. RESPONSIVE GLOBAL
====================================================== */

@media(max-width:600px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

    .web-packages-grid,
    .maintenance-packages-grid {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        margin: 30px 15px;
        padding: 10px;
    }

    .choose-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        margin: 30px 15px;
        padding: 10px;
    }


}

@media (max-width: 768px) {

    .packages-grid {
        grid-template-columns: 1fr;
    }

}


@media(min-width:768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-group.full {
        grid-column: 1/-1;
    }
}

@media (max-width: 900px) {

    .services-grid,
    .why-grid,
    .choose-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .why-website,
    .why-choose,
    .services,
    .packages {
        padding: 40px 20px;
    }

    .service-box,
    .why-box,
    .choose-box {
        padding: 20px;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* ======================================================
   7. REDUCED MOTION ACCESSIBILITY
====================================================== */

@media(prefers-reduced-motion:reduce) {

    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .service-box:hover,
    .logo:hover,
    .cta-button-1:hover,
    .cta-button-2:hover,
    .main-nav a:hover,
    .content-box:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }
}

input:focus {
    outline: none;
    border: 2px solid #7c6cfc;
    /* ✓ custom focus style */
    box-shadow: 0 0 0 3px rgba(124, 108, 252, 0.3);
}

.portfolio-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* Grid — 2 columns on desktop, 1 on mobile */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Each card: browser frame on top, info below */
.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(176, 88, 194, 0.15);
}

.portfolio-card .browser-window {
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.portfolio-card .browser-bar {
    flex-shrink: 0;
    /* stops the bar from collapsing */
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

/* The actual screenshot image inside the frame */
.portfolio-screenshot {
    width: 100%;
    height: 260px;
    object-fit: cover;
    /* crops to fill the space neatly */
    object-position: top;
    /* shows the top of the page, not the middle */
    display: block;
    flex-shrink: 0;
}

/* Text area below the browser frame */
.portfolio-info {
    padding: 20px 24px 24px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

/* h3::after draws a purple underline — override to left-align it here */
.portfolio-info h3::after {
    margin: 8px 0 0;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

/* Tech tags — e.g. HTML, CSS, Landing page */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag {
    background: var(--purple-light);
    color: var(--purple-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Live site link */
.portfolio-link {
    display: inline-block;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.portfolio-link:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* Inline text links used in the intro and note */
.inline-link {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
    color: var(--purple-dark);
}

/* "More projects coming soon" note */
.portfolio-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

/* Single card takes half the grid width on desktop —
   looks better than stretching full width when you only have 1 */
.portfolio-grid:has(.portfolio-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-screenshot {
        height: 200px;
    }
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red {
    background: #ff5f57;
}

.dot-amber {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.browser-url {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.7rem;
    color: #555;
    font-family: 'Inter', sans-serif;
    margin-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}