/*
Theme Name: Orange Landing
Theme URI: http://localhost
Author: Łukasz Weretycki
Description: Dedykowany landing page doradcy Orange.
Version: 1.0
Text Domain: orange-landing
*/

/* Podstrony dokumentów — reguły ograniczone do ich kontenera. */
.document-page {
    padding-top: 32px;
    padding-bottom: 56px;
    min-height: 75vh;
}

.document-back {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 0;
    color: var(--ink);
    text-underline-offset: 4px;
}

.document-card {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow-wrap: anywhere;
}

.document-card .document-title {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 32px;
}

.document-content {
    font-size: 16px;
    line-height: 1.75;
}

.document-content h2 {
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.3;
    margin: 32px 0 12px;
    letter-spacing: normal;
}

.document-content h3 {
    font-size: 19px;
    line-height: 1.4;
}

.document-content p,
.document-content ul,
.document-content ol {
    margin: 0 0 18px;
}

.document-content ul,
.document-content ol {
    padding-left: 24px;
}

.document-content li + li {
    margin-top: 8px;
}

.document-content a,
.footer-documents a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.document-content img {
    max-width: 100%;
    height: auto;
}

.document-content .wp-block-table {
    overflow-x: auto;
}

.footer-documents {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
    margin-top: 12px;
    font-size: 14px;
}

.footer-documents a {
    padding: 10px 0;
}

.document-page a:focus-visible,
.footer-documents a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}


:root {
    --bg: #0f0f0f;
    --paper: #f7f5f1;
    --white: #ffffff;
    --ink: #111111;
    --muted: #6c6a66;
    --orange: #ff7900;
    --line: #e7e3dd;
    --radius: 24px;
    --max: 1080px;

    /* Edytowalne tła sekcji */
    --hero-bg: #0f0f0f;
    --form-bg: #ffffff;
    --steps-bg: #f7f5f1;
    --step-card-bg: #ffffff;
    --about-section-bg: #f7f5f1;
    --about-card-bg: #ffffff;
    --footer-bg: #f7f5f1;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
}


.wrap {
    width: min(calc(100% - 28px), var(--max));
    margin: auto;
}


/* HERO */

.hero {
    background: var(--hero-bg);
    color: #fff;
    padding: 24px 0 56px;
}


.nav {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    margin-bottom: 42px;
    padding: 6px 0 16px;
}


.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.brand-copy {
    display: grid;
    gap: 2px;
}


.brand-name {
    color: #fff;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}


.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
}


.nav-tag {
    font-size: 13px;
    color: #bdbdbd;
}

.header-contact {
    display: flex;
    align-items: center;

    gap: 16px;
}


.contact-links {
    display: grid;
    gap: 5px;
}


.contact-link {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #e5e5e5;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


.contact-link:hover {
    color: var(--orange);
}


.contact-link svg {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    fill: none;
    stroke: var(--orange);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links {
    display: flex;
    align-items: center;

    gap: 8px;
}


.social-link {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 11px;

    color: #ffffff;

    text-decoration: none;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.social-link:hover {
    transform: translateY(-2px) scale(1.07);
    filter: brightness(1.05);
}


/* Facebook */

.social-link-facebook {
    background: #1877f2;
}


.social-link-facebook:hover {
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(24, 119, 242, 0.45);
}


/* Instagram */

.social-link-instagram {
    background:
        radial-gradient(
            circle at 30% 110%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%
        );
}


.social-link-instagram:hover {
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(214, 36, 159, 0.42);
}


.social-link svg {
    width: 18px;
    height: 18px;
}


/* Facebook */
.social-link svg path {
    fill: currentColor;
}


/* Instagram */
.social-link svg rect,
.social-link svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}


.hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
}


.kicker {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 12px;
    color: #aaa;
    font-weight: 800;
    margin-bottom: 14px;
}


h1 {
    font-size: clamp(44px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 0 0 18px;
}


.accent {
    color: var(--orange);
}


.hero-copy {
    font-size: clamp(17px, 2vw, 20px);
    color: #d4d4d4;
    max-width: 620px;
    margin: 0 0 20px;
}


.benefits {
    display: grid;
    gap: 9px;
    padding: 0;
    list-style: none;
    margin: 0;
    color: #d8d8d8;
    font-size: 14px;
}


.benefits li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}


.tick {
    color: var(--orange);
    font-weight: 900;
}


/* FORMULARZ */

.form-card {
    background: var(--form-bg);
    color: #111;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}


.form-card h2 {
    font-size: 28px;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}


.form-card .sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}


.lead-form {
    display: grid;
    gap: 13px;
}


.field {
    display: grid;
    gap: 6px;
}


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


label {
    font-size: 13px;
    font-weight: 800;
}


.lead-form input[type="text"],
.lead-form input[type="tel"] {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #d7d3cd;
    border-radius: 10px;
    font: inherit;
    outline: none;
    background: #fff;
}


.lead-form input[type="text"]:focus,
.lead-form input[type="tel"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}


.consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    color: #555;
    font-size: 11px;
    line-height: 1.4;
}


.consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}


.consent label {
    font-weight: 500;
}


.btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #111;
    font-size: 16px;
    font-weight: 900;
    padding: 15px 18px;
    cursor: pointer;
}


.btn:hover {
    filter: brightness(0.95);
}


.micro {
    text-align: center;
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}


.success {
    display: none;
    background: #edf8f1;
    border: 1px solid #b8dfc8;
    color: #0e6d3c;
    border-radius: 10px;
    padding: 12px;
    font-weight: 800;
    font-size: 13px;
}


/* SEKCJE */

.section {
    padding: 52px 0;
}

.section-steps {
    background: var(--steps-bg);
}

.section-about {
    padding-top: 0;
    background: var(--about-section-bg);
}


.section h2 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.04em;
    margin: 0 0 22px;
}


.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.step {
    background: var(--step-card-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}


.step-num {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 14px;
}


.step h3 {
    margin: 0 0 6px;
    font-size: 18px;
}


.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* O MNIE */

.about {
    background: var(--about-card-bg);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;

    align-items: center;
}


.about-media {
    width: 220px;
}


.about-photo {
    display: block;

    width: 100%;
    height: auto;

    max-width: 220px;

    border-radius: 18px;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
}


.about h3 {
    margin: 0 0 4px;
    font-size: 26px;
}


.about p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.about .about-role {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
}


.about-description {
    max-width: 620px;
}

.about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}


.about-social-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.about-social-icon:hover {
    transform: translateY(-2px) scale(1.07);
    filter: brightness(1.05);
}


.about-social-icon svg {
    width: 20px;
    height: 20px;
}


/* Facebook */

.about-social-facebook {
    background: #1877f2;
}


.about-social-facebook svg path {
    fill: #ffffff;
}


.about-social-facebook:hover {
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.14),
        0 0 18px rgba(24, 119, 242, 0.35);
}


/* Instagram */

.about-social-instagram {
    background:
        radial-gradient(
            circle at 30% 110%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%
        );
}


.about-social-instagram svg rect,
.about-social-instagram svg circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
}


.about-social-instagram:hover {
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.14),
        0 0 18px rgba(214, 36, 159, 0.35);
}


/* STOPKA */

footer {
	background: var(--footer-bg);
    padding: 24px 0 30px;
    color: #777;
    font-size: 11px;
    text-align: center;
}


/* TABLET */

@media (max-width: 820px) {

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

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

    .hero {
        padding-bottom: 38px;
    }

    .nav {
        margin-bottom: 28px;
    }

}


/* TELEFON */

@media (max-width: 560px) {

    h1 {
        font-size: 46px;
    }

    .form-card {
        padding: 18px;
    }

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

.about {
    grid-template-columns: 1fr;
    gap: 22px;
}


.about-media {
    width: min(100%, 220px);
    margin: 0 auto;
}


.avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto;
}


.about h3,
.about .about-role,
.about .about-description {
    text-align: center;
}

    .section {
        padding: 40px 0;
    }
	
	/* Wyśrodkowanie treści Hero na telefonie */

.hero-content {
    text-align: center;
}

.benefits {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    justify-items: stretch;
}

.benefits li {
    display: block;
    text-align: center;
}

.benefits .tick {
    display: inline-block;
    width: 16px;
    margin-right: 5px;
    text-align: center;
}


/* Wyśrodkowanie sekcji "Jak to działa?" */

.section-steps > .wrap > h2 {
    text-align: center;
}

.step {
    text-align: center;
}

.step-num {
    margin-left: auto;
    margin-right: auto;
}

.nav {
    flex-direction: column;

    align-items: center;

    gap: 16px;

    padding-bottom: 20px;

    text-align: center;
}


.brand {
    justify-content: center;
}


.brand-name {
    font-size: 21px;
}


.header-contact {
    flex-direction: column;

    gap: 12px;

    width: 100%;
}


.contact-links {
    justify-items: center;
}


.contact-link {
    justify-content: center;

    font-size: 14px;
}


.social-links {
    justify-content: center;
}

.about-socials {
    justify-content: center;
}

}
