:root {
    --bg: #0a1932;
    --bg-deep: #071224;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --text: #142033;
    --muted: #5f6f86;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --line: #d7e0eb;
    --shadow: 0 18px 45px rgba(10, 25, 50, 0.12);
    --shadow-soft: 0 10px 30px rgba(10, 25, 50, 0.08);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f5f7fb;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    transition: 0.3s ease;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    color: var(--muted);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   HEADER (ALL PAGES)
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 50px;
    background: var(--bg);
    color: white;
}

/* LOGO TOP LEFT */
.brand img {
    height: 45px;
    width: auto;
    display: block;
}

/* NAV TOP RIGHT */
nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
}

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

/* HERO */
.hero {
    background: linear-gradient(rgba(10, 25, 50, 0.78), rgba(10, 25, 50, 0.72)),
    url("image3.jpeg");
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    padding: 140px 20px;
}

.hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    margin-top: 14px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0));
}

.home-hero-content {
    position: relative;
    padding: 120px 0 115px;
    max-width: 900px;
}

.home-hero-content p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.hero-strip-item {
    text-align: left;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-strip-item strong {
    display: block;
    color: white;
    margin-bottom: 6px;
    font-size: 1rem;
}

.hero-strip-item span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

/* BUTTON */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 30px;
    background: var(--accent);
    color: white;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.22);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
}

.btn.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* SECTIONS */
.section {
    padding: 90px 20px;
    text-align: center;
}

.section.alt {
    background: #eef2f7;
}

.section-kicker,
.page-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.page-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #d9ffe8;
}

.section-kicker.light {
    color: #bdf7d1;
}

/* GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.section-intro {
    max-width: 720px;
    margin: 0 auto;
}

.work-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.work-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.work-card div {
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
}

/* =========================
   HOME PAGE
========================= */

.home-about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.about-card {
    background: var(--surface);
    padding: 38px;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    text-align: left;
}

.about-card p + p {
    margin-top: 16px;
}

.about-highlights {
    display: grid;
    gap: 18px;
}

.about-highlight-card {
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    padding: 28px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.about-highlight-card i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--bg), #16315d);
    color: white;
    font-size: 1.15rem;
}

.about-highlight-card h3 {
    margin-bottom: 10px;
}

.reviews-section h2,
.recent-work-section h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-grid {
    margin-top: 28px;
}

.review-card {
    text-align: left;
    border: 1px solid var(--line);
}

.review-stars {
    color: #f4b400;
    letter-spacing: 0.2em;
    font-size: 1rem;
    margin-bottom: 18px;
}

.review-card p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 18px;
}

.review-card strong {
    color: var(--accent-dark);
    font-size: 0.92rem;
}

.home-work-grid {
    margin-top: 28px;
}

.home-work-grid .work-card {
    transition: 0.3s ease;
}

.home-work-grid .work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.home-cta {
    max-width: 1120px;
    margin: 0 auto;
}

/* =========================
   SERVICES PAGE
========================= */

.service-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(7, 18, 36, 0.9), rgba(10, 25, 50, 0.78)),
        url("image3.jpeg") center/cover no-repeat;
    color: white;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: auto -140px -120px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0));
}

.service-hero-content {
    position: relative;
    padding: 110px 0 115px;
    text-align: center;
    max-width: 860px;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-intro {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: start;
    text-align: left;
}

.intro-copy h2 {
    max-width: 620px;
}

.intro-copy p {
    font-size: 1.04rem;
}

.intro-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.intro-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
}

.intro-point + .intro-point {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.intro-point i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.intro-point h3 {
    margin-bottom: 6px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.service-card {
    background: var(--surface);
    padding: 30px 26px;
    border-radius: 22px;
    text-align: left;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bg), #16315d);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    background: linear-gradient(135deg, var(--bg), #112b56);
    color: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.band-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px;
    border-radius: 18px;
    text-align: left;
}

.band-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.band-item span {
    color: rgba(255, 255, 255, 0.74);
}

.process-section {
    background:
        linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.process-card {
    background: var(--surface);
    padding: 30px 26px;
    border-radius: 22px;
    text-align: left;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.process-number {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-dark);
}

.service-cta {
    background: linear-gradient(135deg, var(--bg-deep), var(--bg));
    color: white;
    padding: 54px 34px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.service-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    background: var(--bg);
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   CONTACT PAGE BACKGROUND
========================= */

.contact-page {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 18, 36, 0.9), rgba(10, 25, 50, 0.7));
}

/* BACKGROUND LOGO IMAGE */
.contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("Perfect Plastics Logo.png") center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

/* DARK OVERLAY */
.contact-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
        rgba(10, 25, 50, 0.22);
    z-index: 0;
}

.contact-shell {
    position: relative;
    z-index: 1;
    min-height: 78vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
    padding: 70px 0;
}

.contact-copy {
    color: white;
    text-align: left;
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
    max-width: 620px;
}

.contact-badge {
    color: #d9ffe8;
}

.contact-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.contact-mini-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.contact-mini-card i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.16);
    color: #d5ffe4;
    flex-shrink: 0;
}

.contact-mini-card strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.contact-mini-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

/* CONTACT CENTER */
.contact-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-panel {
    width: min(100%, 500px);
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 60px rgba(2, 12, 27, 0.26);
    text-align: left;
}

.contact-panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.contact-panel p {
    margin-bottom: 24px;
}

.contact-bubble-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CONTACT BUBBLES */
.contact-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: white;
    min-width: 260px;
    justify-content: flex-start;
    transition: 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.contact-bubble:hover {
    transform: translateY(-3px);
}

.contact-bubble.wa {
    background: #25d366;
}

.contact-bubble.fb {
    background: #1877f2;
}

.contact-bubble i {
    font-size: 22px;
}

.contact-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.contact-note i {
    color: var(--accent-dark);
    margin-top: 3px;
}

.contact-support-section {
    background: linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.contact-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.contact-support-card {
    background: var(--surface);
    padding: 30px 26px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.contact-support-card i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--bg), #16315d);
    color: white;
    font-size: 1.15rem;
}

.contact-support-card h3 {
    margin-bottom: 10px;
}

.email-quote-card {
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-width: 860px;
    margin: 0 auto;
}

.email-quote-card p {
    max-width: 700px;
    margin: 0 auto;
}

.email-address-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(10, 25, 50, 0.05);
    color: var(--bg);
    font-weight: 600;
}

.email-address-row i {
    color: var(--accent-dark);
}

.email-address-row a {
    color: var(--bg);
    text-decoration: none;
}

.email-form {
    text-align: left;
}

.email-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field span {
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.email-submit {
    margin-top: 18px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    header {
        padding: 15px 28px;
    }

    .home-about,
    .services-intro,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .home-hero-strip,
    .grid-3,
    .services-grid,
    .process-grid,
    .service-band,
    .contact-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-center {
        justify-content: flex-start;
    }

    .contact-panel {
        width: 100%;
        max-width: 620px;
    }
}

/* MOBILE */
@media (max-width: 900px) {
    .home-hero-strip,
    .contact-mini-grid,
    .email-form-grid,
    .contact-support-grid,
    .services-grid,
    .process-grid,
    .service-band {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .hero,
    .service-hero-content,
    .home-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-card,
    .intro-panel,
    .service-card,
    .process-card,
    .band-item,
    .contact-panel,
    .contact-support-card,
    .service-cta,
    .email-quote-card,
    .card {
        padding: 28px;
    }

    .email-address-row {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 18px 20px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .hero,
    .service-hero-content,
    .section {
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        padding: 110px 20px;
    }

    .home-hero-content {
        padding: 96px 0 88px;
    }

    .contact-shell {
        padding: 54px 0;
    }

    .service-hero-content {
        padding: 84px 20px 88px;
    }

    .section {
        padding: 75px 20px;
    }

    .grid-3,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .intro-panel,
    .service-card,
    .process-card,
    .band-item,
    .contact-panel,
    .email-quote-card,
    .contact-support-card,
    .service-cta,
    .card {
        padding: 24px;
    }

    .contact-bubble {
        min-width: 0;
        width: 100%;
    }

    .contact-copy,
    .about-card,
    .about-highlight-card,
    .service-card,
    .process-card,
    .band-item,
    .review-card,
    .contact-panel,
    .contact-support-card,
    .email-form {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1120px, calc(100% - 24px));
    }

    header {
        padding: 16px 12px;
    }

    .brand img {
        height: 40px;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 0.95rem;
    }

    .hero {
        padding: 88px 16px;
    }

    .home-hero-content,
    .service-hero-content {
        padding: 78px 16px 72px;
    }

    .section {
        padding: 60px 12px;
    }

    .home-hero-strip,
    .contact-mini-grid,
    .email-form-grid {
        gap: 14px;
    }

    .about-card,
    .about-highlight-card,
    .intro-panel,
    .service-card,
    .process-card,
    .band-item,
    .contact-panel,
    .contact-support-card,
    .email-quote-card,
    .service-cta,
    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .form-field input,
    .form-field textarea {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .contact-bubble {
        padding: 16px 18px;
        font-size: 1rem;
    }
}
