/* =========================================================
   CharacterCounter.com
   About Page
   File: about.css
========================================================= */


/* =========================================================
   FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --font-family: 'Poppins', sans-serif;

    --light-color: #3d3d3d;
    --light-color-alt: rgba(0, 0, 0, 0.65);

    --primary-background-color: #ffffff;
    --secondary-background-color: #f1f1f1;

    --border-color: #dddddd;
    --border-color-light: #e8e8e8;

    --link-color: #4285f4;
    --link-hover-color: #2f6fda;

    --card-background: #ffffff;
    --soft-background: #f8f9fb;

    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 5px 18px rgba(0, 0, 0, 0.10);

    --font-size-xsm: 1.2rem;
    --font-size-sm: 1.6rem;
    --font-size-md: 2.4rem;
    --font-size-lg: 3rem;

    --gap: 2rem;

    --transition-speed: 0.2s;
}


/* =========================================================
   RESET
========================================================= */

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


html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.7;

    color: var(--light-color-alt);
    background-color: var(--primary-background-color);
}


body .header,
body .footer {
    font-size: var(--font-size-sm);
}


a {
    color: inherit;
    text-decoration: none;
}


ul {
    list-style: none;
}


img {
    max-width: 100%;
}


button {
    font: inherit;
    color: inherit;

    border: none;
    background-color: transparent;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   REUSABLE CLASSES
========================================================= */

.container {
    max-width: 160rem;

    margin: 0 auto;

    padding: 0 1.5rem;
}


.d-grid {
    display: grid;
}


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

    gap: var(--gap);
}


.place-items-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.btn {
    cursor: pointer;
}


.screen-sm-hidden {
    display: none;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 999;

    background-color: var(--secondary-background-color);
}


.header.activated {
    box-shadow: 0 1px 0.5rem rgba(0, 0, 0, 0.1);
}


/* =========================================================
   NAVBAR
========================================================= */

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

    padding-block: 0.8rem;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    color: var(--light-color);

    font-size: var(--font-size-md);
}


.light-single {
    display: block;
}


.light-double {
    display: none;
}


/* =========================================================
   NAVIGATION MENU
========================================================= */

.menu {
    position: absolute;

    top: 8.5rem;
    right: 1.5rem;

    width: 23rem;

    padding: 1.5rem;

    background-color: var(--secondary-background-color);

    opacity: 0;

    transform: scale(0);

    transition: opacity 0.25s ease-in;
}


.menu > .list {
    flex-direction: column;
}


.list-link.current {
    color: var(--light-color);
}


.list-link:hover,
.btn:hover {
    color: var(--light-color);
}


.menu.activated {
    box-shadow: 1px 1px 1rem rgba(0, 0, 0, 0.1);

    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.open-menu-icon {
    display: block;
}


.close-menu-icon {
    display: none;
}


.menu-toggle-icon {
    width: 4rem;
    height: 4rem;
}


.menu-toggle-icon i {
    font-size: var(--font-size-md);
}


.menu-toggle-icon.activated .open-menu-icon {
    display: none;
}


.menu-toggle-icon.activated .close-menu-icon {
    display: block;
}


/* =========================================================
   MAIN ABOUT PAGE
========================================================= */

.about-page {
    padding-top: 6.4rem;
}


/* =========================================================
   HERO
========================================================= */

.about-hero {
    padding-top: 6rem;
    padding-bottom: 5rem;

    text-align: center;

    border-bottom: 1px solid var(--border-color-light);

    background:
        linear-gradient(
            180deg,
            #fafbfc 0%,
            #ffffff 100%
        );
}


.about-hero-container {
    max-width: 95rem;
}


.about-eyebrow {
    margin-bottom: 1rem;

    color: var(--link-color);

    font-size: 1.6rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08rem;
}


.about-hero h1 {
    max-width: 85rem;

    margin: 0 auto 1.5rem;

    color: var(--light-color);

    font-size: clamp(3.2rem, 5vw, 5rem);
    line-height: 1.2;
    font-weight: 600;
}


.about-hero-description {
    max-width: 78rem;

    margin: 0 auto;

    color: var(--light-color-alt);

    font-size: 1.8rem;
    line-height: 1.75;
}


/* =========================================================
   ABOUT CONTENT WRAPPER
========================================================= */

.about-content-section {
    padding-top: 5rem;
    padding-bottom: 6rem;
}


.about-content {
    max-width: 90rem;
}


/* =========================================================
   ABOUT CONTENT BLOCKS
========================================================= */

.about-block {
    padding-bottom: 4rem;
    margin-bottom: 4rem;

    border-bottom: 1px solid var(--border-color-light);
}


.about-block:last-child {
    margin-bottom: 0;
}


.about-block h2 {
    margin-bottom: 1.5rem;

    color: var(--light-color);

    font-size: clamp(2.4rem, 3vw, 3rem);
    line-height: 1.3;
    font-weight: 600;
}


.about-block p {
    margin-bottom: 1.6rem;

    color: var(--light-color-alt);

    font-size: 1.7rem;
    line-height: 1.8;
}


.about-block p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LINKS INSIDE ABOUT CONTENT
========================================================= */

.about-block p a {
    color: var(--link-color);

    font-weight: 500;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition: color var(--transition-speed);
}


.about-block p a:hover {
    color: var(--link-hover-color);
}


/* =========================================================
   CONTACT BLOCK
========================================================= */

.about-contact-block {
    padding: 0;

    margin-top: 1rem;
    margin-bottom: 0;

    border-bottom: none;
}


.about-contact-content {
    padding: 3.5rem;

    text-align: center;

    background-color: var(--soft-background);

    border: 1px solid var(--border-color);
    border-radius: 1rem;

    box-shadow: var(--shadow-light);
}


.about-contact-content h2 {
    margin-bottom: 1rem;
}


.about-contact-content p {
    max-width: 65rem;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.about-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.8rem;

    min-height: 4.8rem;

    padding: 1rem 1.8rem;

    color: #ffffff;

    background-color: var(--link-color);

    border-radius: 0.7rem;

    font-size: 1.6rem;
    font-weight: 600;

    transition:
        background-color var(--transition-speed),
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
}


.about-contact-button:hover {
    color: #ffffff;

    background-color: var(--link-hover-color);

    transform: translateY(-1px);

    box-shadow: var(--shadow-medium);
}


.about-contact-button i {
    font-size: 1.8rem;

    transition: transform var(--transition-speed);
}


.about-contact-button:hover i {
    transform: translateX(0.3rem);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding-block: 5rem;

    background-color: var(--secondary-background-color);
}


.footer-container {
    gap: var(--gap);
}


.company-data {
    display: flex;
    flex-direction: column;

    order: 1;
}


.company-description {
    margin-block: 2rem;

    max-width: 75%;

    color: var(--light-color-alt);

    line-height: 1.7;
}


.copyright-notice {
    opacity: 0.8;
}


.footer-list {
    flex-direction: column;

    align-items: flex-start;
}


.footer-title {
    margin-bottom: 2rem;

    color: var(--light-color);

    font-size: var(--font-size-sm);

    text-transform: uppercase;
}


.footer-list .list-link {
    padding: 0;
}


.footer-list .list-link:hover {
    color: var(--link-color);
}


/* =========================================================
   FOCUS STATES
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.3);

    outline-offset: 3px;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 1rem;
}


::-webkit-scrollbar-track {
    background: #f1f1f1;
}


::-webkit-scrollbar-thumb {
    background: #3f4254;
}


::-webkit-scrollbar-thumb:hover {
    background: #2e303b;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

@media screen and (max-width: 768px) {

    .light-single {
        display: none;
    }


    .light-double {
        display: block;
    }

}


/* =========================================================
   700PX+
========================================================= */

@media screen and (min-width: 700px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }


    .company-data {
        order: 0;
    }

}


/* =========================================================
   DESKTOP HEADER
========================================================= */

@media screen and (min-width: 1024px) {

    .menu {
        position: static;

        width: initial;

        padding: initial;

        background-color: transparent;

        opacity: 1;

        transform: scale(1);
    }


    .menu > .list {
        flex-direction: row;
    }


    .screen-lg-hidden {
        display: none;
    }


    .screen-sm-hidden {
        display: block;
    }


    .footer-container {
        grid-template-columns: repeat(5, 1fr);
    }


    .company-data {
        grid-column: span 2;
    }


    .company-description {
        max-width: 85%;
    }


    .copyright-notice {
        margin-top: auto;
    }

}


/* =========================================================
   1200PX+
========================================================= */

@media screen and (min-width: 1200px) {

    .about-hero {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }


    .about-content-section {
        padding-top: 6rem;
        padding-bottom: 7rem;
    }


    .about-block {
        padding-bottom: 4.5rem;
        margin-bottom: 4.5rem;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 480px) {

    body {
        font-size: 16px;
    }


    .about-page {
        padding-top: 5.6rem;
    }


    .about-hero {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }


    .about-eyebrow {
        font-size: 1.4rem;
    }


    .about-hero h1 {
        font-size: 3rem;
    }


    .about-hero-description {
        font-size: 1.6rem;
        line-height: 1.7;
    }


    .about-content-section {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }


    .about-block {
        padding-bottom: 3.2rem;
        margin-bottom: 3.2rem;
    }


    .about-block h2 {
        margin-bottom: 1.2rem;

        font-size: 2.3rem;
    }


    .about-block p {
        margin-bottom: 1.4rem;

        font-size: 1.6rem;
        line-height: 1.75;
    }


    .about-contact-content {
        padding: 2.5rem 1.8rem;
    }


    .about-contact-button {
        width: 100%;
    }


    .company-description {
        max-width: 100%;
    }


    .footer {
        padding-block: 4rem;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}