/* ======================================================
   STACKPUG — styles.css
   
   CONTENTS:
   1.  Root / Variables
   2.  Reset & Base
   3.  Typography
   4.  Layout & Navigation
   5.  Buttons
   6.  Cards & Shared Components
   7.  Trust Bar & Callouts
   8.  Footer
   9.  Index Page — Hero
   10. Index Page — Why / Choose / Services Sections
   11. Services Page — Packages & Process
   12. Contact Page
   13. FAQ Page
   14. Portfolio Page
   15. Responsive — All Media Queries
   16. Accessibility
====================================================== */


/* ======================================================
   1. ROOT / VARIABLES
====================================================== */

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


/* ======================================================
   2. RESET & BASE
====================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding-top: 30px;
    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;
}

section {
    padding: 60px 20px;
}


/* ======================================================
   3. TYPOGRAPHY
====================================================== */

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

h2 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    scroll-margin-top: 90px;
}

h3 {
    font-size: 1.75rem;
}

/* Purple underline decoration on headings */
h1::after,
h2::after,
h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--purple);
    margin: 12px auto 0;
    border-radius: 2px;
}

.portfolio-h2 {
    margin-top: 60px;
}

i:not(.checkbox-box):not(.fab) :not(.colored) {
    font-size: 0.5em;
    color: var(--text-muted);
}

input:not([type="checkbox"]):focus {
    outline: none;
    border: 2px solid #7c6cfc;
    box-shadow: 0 0 0 3px rgba(124, 108, 252, 0.3);
}


/* ======================================================
   4. LAYOUT & NAVIGATION
====================================================== */

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

/* Logo below nav (used on most pages) */
.slogo {
    width: 180px;
    max-width: 80%;
    border-radius: 10px;
    border: 1px solid black;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

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

/* Small logo inside the navbar */
.nav-logo {
    height: 36px;
    width: auto;
    display: block;
}

/* Fixed top 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: space-between;
}

.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;
    position: relative;
    transition: 0.25s ease;
}

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

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

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

/* Hamburger toggle */
#menu-toggle {
    display: none;
}

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

/* Mobile dropdown 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;
}

/* The ~ selector means "any following sibling" so logo position in HTML doesn't matter */
#menu-toggle:checked~.hamburger~.nav-links {
    display: flex;
}

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

.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, 0.2);
    transition: 0.25s ease;
    z-index: 1000;
}

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


/* ======================================================
   5. 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: 0.25s ease;
}




/* Extra top margin on the hero CTA specifically */
.cta-button-1.first-cta {
    margin-top: 32px;
}

.cta-button-1:hover {
    background: var(--purple-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 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: 0.25s ease;
}

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

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

button[type="submit"]:hover {
    background: var(--purple-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 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;
    transition: 0.25s ease;
}

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

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

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

.inline-link {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

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


/* ======================================================
   6. CARDS & SHARED COMPONENTS
====================================================== */

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

.content-box p {
    margin: 0 auto;
}

/* Shared padding for card types */
.service-box,
.why-box,
.choose-box,
.package-box {
    padding: 28px;
}

/* Shared hover lift for all card types */
.service-box,
.why-box,
.choose-box,
.package-box,
.process-box {
    transition: transform 0.25s ease, box-shadow 0.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, 0.12);
}

/* Service box is also a link */
.service-box {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Browser window component — used in portfolio and why section */
.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: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ======================================================
   7. TRUST BAR & CALLOUTS
====================================================== */

.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;
}

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

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

.social-callout {
    background: var(--white);
    border-left: 4px solid var(--purple);
    border-radius: 0 10px 10px 0;
    padding: 28px 32px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-callout h3 {
    color: var(--purple-dark);
    margin-bottom: 12px;
}

.social-callout h3::after {
    display: none;
    /* removes the purple underline decoration */
}

.social-callout p {
    color: var(--text-muted);
    margin: 0 0 0.4rem 0;
    line-height: 1.7;
}

.social-callout p:last-child {
    margin: 0 0 0.4rem 0;
    color: var(--text-muted);
    font-weight: 500;
}

.social-callout-2 {
    margin-bottom: 0;
}

/* ======================================================
   8. FOOTER
====================================================== */

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 16px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--purple);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--purple-dark);
}

/* ======================================================
   9. INDEX PAGE — HERO
====================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 40px 40px;
    text-align: left;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-top: 0;
    text-align: left;
}

/* Left-align the purple underline on the hero h1 */
.hero h1::after {
    margin: 12px 0 0;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    border: none;
    border-radius: 0;
}

.tagline {
    font-size: 1.1rem;
    /* was 0.75em which made it tiny */
    font-weight: 400;
    display: block;
    margin-top: 16px;
    color: var(--charcoal);
}

.ginny-photo {
    display: block;
    margin: 1rem auto;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center 5%;
    margin-top: 2rem;

}

/* ======================================================
   10. INDEX PAGE — WHY / CHOOSE / SERVICES SECTIONS
====================================================== */

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

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

.why-choose {
    display: flex;
    flex-direction: column;
}

.why-website h2,
.why-choose h2,
.services h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.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, 0.08);
    max-width: 1100px;
}

.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, 0.08);
}

.content-box p {
    margin-bottom: 1rem;
}

.content-box-title {
    text-align: center;
}

.content-box--narrow {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem;
}

.already-box ul {
    text-align: left;
    display: inline-block;
}

.already-box {
    margin: 0 auto;
}

.already-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

/* Affordable and hosting span full width, centred */
.affordable,
.hosting {
    grid-column: 1 / -1;
    max-width: 630px;
    margin: 0 auto;
    width: 100%;
}

.hosting-box {
    margin-top: 20px;
}

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

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

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


/* ======================================================
   11. SERVICES PAGE — PACKAGES & PROCESS
====================================================== */

.web-packages,
.maintenance-packages {
    padding: 60px 20px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
}

.web-packages {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.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, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Push quote button to bottom of each package card */
.web-package-box a,
.maintenance-package-box a {
    margin-top: auto;
}

.web-package-box:hover,
.maintenance-package-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.web-package-box li,
.maintenance-package-box li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.tick {
    color: var(--purple);
    font-weight: 600;
    flex-shrink: 0;
}

.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;
}

/* Featured (most popular) package card */
.featured {
    transform: scale(1.05);
    border: 2px solid var(--purple);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

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

.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, 0.08);
}

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

.packages-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: -20px auto 0;
    padding: 16px 20px 0;
    border-top: 1px solid var(--border);
}

/* ======================================================
   12. CONTACT PAGE
====================================================== */

.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: 0.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, 0.08);
}

.group-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--charcoal);
}

.optional {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: white;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-item input[type="checkbox"]:checked+.checkbox-box {
    background: var(--purple);
    border-color: var(--charcoal);
}

.checkbox-item input[type="checkbox"]:checked+.checkbox-box::after {
    content: '✓';
    color: white;
    font-size: 12px;
    line-height: 1;
}

.select-wrap select {
    border: none;
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    cursor: pointer;
    appearance: none;
    color: var(--charcoal);
}

/*==================Reviews===================*/

.reviews-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 28px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.review-stars {
    color: #f5a623;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed var(--border);
    box-shadow: none;
    background: transparent;
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.placeholder:hover {
    transform: none;
    box-shadow: none;
}

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

/* ======================================================
   13. FAQ PAGE
====================================================== */

.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, 0.08);
    transition: 0.25s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 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;
    margin: 0;
    color: var(--text-muted);
}

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

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

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


/* ======================================================
   14. PORTFOLIO PAGE
====================================================== */

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.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;
    margin-top: 40px;
    max-width: 500px;

}

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

.portfolio-browser {
    display: flex;
    flex-direction: column;
}

.browser-bar {
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.portfolio-screenshot {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: object-position 3s ease;
}

.portfolio-screenshot:hover {
    object-position: bottom;
}

.portfolio-info {
    padding: 20px 24px 24px;
}

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

.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;
}

.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;
}

.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;
}

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

.portfolio-grid:has(.portfolio-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/*==========portfolio mobile =================*/

.phone-frame {
    width: 220px;
    height: 440px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 0 auto;
}

/* Camera notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 2;
}

/* Home bar */
.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #000;
}

.mobile-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: object-position 5s ease;
}

.mobile-screenshot:hover {
    object-position: bottom;
}

.phone-frames-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    flex-wrap: wrap;
}

/* Learning page =============================================== */

.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.learning-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learning-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.learning-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.learning-card h3::after {
    display: none;
}

.learning-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.learning-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.learning-status.complete {
    background: #e6f4ea;
    color: #2d7a3a;
}

.learning-status.progress {
    background: #fff4e0;
    color: #b36b00;
}

.learning-status.planned {
    background: var(--purple-light);
    color: var(--purple);
}

.tech-stack {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px auto;
    font-size: 60px;
}

.tech-stack i {
    font-size: 60px;
}

.tech-icon {
    width: 60px;
    height: 60px;
}



/* ======================================================
   15. RESPONSIVE — ALL MEDIA QUERIES
   Kept together at the bottom so they're easy to find
====================================================== */

/* Desktop nav — show links, hide hamburger */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

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

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

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

/* Tablet — collapse some grids early (900px) */
@media (max-width: 900px) {

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

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

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

    h3 {
        font-size: 1.2rem;
    }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {

    /* Body */
    body {
        padding-top: 20px;
    }

    /* Nav */
    .main-nav {
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        position: static;
        order: 2;
    }

    .nav-logo-link {
        order: 1;
    }

    /* Hero */
    .hero {
        padding: 0 20px 30px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        text-align: center;
        margin-top: 0;
        padding-top: 0;
    }

    .hero h1::after {
        margin: 12px auto 0;
    }

    .hero-content {
        padding-top: 0;
        margin-top: 0;
    }

    .hero-image {
        display: none;
    }

    .hero-logo {
        max-width: 200px;
        margin: 0 auto;
    }

    /* Centre hero CTA button on mobile */
    .cta-button-1.first-cta {
        align-self: center;
    }

    /* Sections */
    section,
    .how-it-works,
    .web-packages,
    .maintenance-packages,
    .page-content {
        padding: 30px 20px;
    }

    /* Fix h2 top margin in package sections only */
    .web-packages h2,
    .maintenance-packages h2,
    .how-it-works h2 {
        margin-top: 0;
        margin-bottom: 20px;
    }

    /* Grids */
    .web-packages-grid,
    .maintenance-packages-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* Featured card — remove scale on mobile so it doesn't overflow */
    .featured {
        transform: none;
    }

    .featured:hover {
        transform: translateY(-8px);
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

/* Small phones — 600px and below */
@media (max-width: 600px) {
    .trust-bar {
        gap: 0.3rem 1rem;
    }

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

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

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

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

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


/* ======================================================
   16. ACCESSIBILITY — REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .service-box:hover,
    .slogo: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, 0.08);
    }
}

@media (max-width: 768px) {
    .phone-frames-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}