/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/* Cabin font import */

@import url("https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap");

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
    /* Colors */

    --stronde-blue: #1a82cc;
    --stronde-dark-grey-1: #2c2c2c;
    --stronde-dark-grey-2: #575756;
    --stronde-info-grey: #888;
    --stronde-dark-grey-heading: #060202;
    --stronde-watermelon-color: #ff2e52;
    --stronde-white: #ffffff;
    --stronde-light-grey: hsl(0, 0%, 98%);

    /* Typography */

    --ff-stronde-cabin: "Cabin", sans-serif;

    --fs-1: 32px;
    --fs-2: 20px;
    --fs-3: 19px;
    --fs-4: 18px;
    --fs-5: 16px;
    --fs-6: 15px;
    --fs-7: 14px;
    --fs-8: 13px;
    --fs-9: 12px;
    --fs-10: 11px;

    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-900: 900;

    /* Spacing */

    --section-padding: 60px;

    /* Shadows */

    --shadow-1: 0 2px 25px hsla(0, 0%, 0%, 0.025);
    --shadow-2: 0 2px 10px hsla(0, 0%, 0%, 0.04);
    --shadow-3: 0 0 30px hsla(0, 0%, 0%, 0.09);

    /* Radius */

    --radius-6: 6px;
    --radius-12: 12px;

    /* Transition */
    --transition: 0.15s ease-in-out;
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease;

}

/*-----------------------------------*\
  #RESET 
\*-----------------------------------*/

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

li {
    list-style: none;
}

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

a:is(:hover, :focus) {
    color: var(--stronde-watermelon-color);
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.4;
}

h1 {
    font-size: var(--fs-1);
}

h3 {
    font-size: var(--fs-2);
}

img {
    height: auto;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

ion-icon {
    pointer-events: none;
}

html {
    font-family: var(--ff-stronde-cabin);
    line-height: 1.3;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--stronde-light-grey);
    font-size: var(--fs-7);
    color: var(--stronde-dark-grey-2);
    height: 100%;
}


::-webkit-scrollbar {
    width: 10px;
}

#commat {
    font-family: helvetica;
}

/*-----------------------------------*\
  #REUSED STYLES
\*-----------------------------------*/

.container {
    width: 90%;
    margin-inline: auto;
}

.section {
    padding-block: var(--section-padding);
}

.section-title {
    color: var(--stronde-dark-grey-heading);
    font-size: var(--fs-1);
}

.section-subtitle {
    font-size: var(--fs-2);
}

.section-text {
    line-height: 1.7;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
    background-color: var(--stronde-white);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 20px;
    box-shadow: var(--shadow-1);
    z-index: 5;
}

.header.active {
    position: fixed;
    top: -89px;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

.header>.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header .logo img {
    max-width: 250px;
    cursor: pointer;
}

.navbar {
    background-color: var(--stronde-white);
    position: absolute;
    top: 90%;
    right: 5%;
    padding: 10px 30px;
    width: 225px;
    border-radius: var(--radius-12);
    transform: scale(0.5);
    transform-origin: top right;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-3);
    visibility: hidden;
    z-index: 5;
}

.header .navbar.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}


.header .header-btn-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header .nav-wrapper {
    display: none;
}


.navbar .nav-item .author {
    text-align: center;
}

.navbar .nav-item {
    padding-block: 10px;
}

.navbar .nav-item .icon {
    padding-inline-end: 10px;
    vertical-align: middle;
    pointer-events: all;
    cursor: pointer;
}

.navbar .nav-item .text {
    background-color: transparent;
}


.navbar .nav-item .info {
    display: block;
    font-size: 0.8em;
    color: var(--stronde-info-grey);
    margin-block-end: 2px;
    margin-inline: 30px;
}

/** ommited
.navbar .nav-item a:is(:hover, :focus) img{
    filter: hue-rotate(180deg);
}
*/



span[title="Expand"] {
    transition: transform 0.3s ease-in-out;
}


span[title="Expand"].active {
    transform: rotate(180deg);
}

.nav-toggle-btn {
    display: grid;
    gap: 4px;
}

.line {
    width: 10px;
    height: 3px;
    background-color: var(--stronde-blue);
    border-radius: 5px;
    transition: var(--transition-1);
}

.line.middle {
    width: 20px;
}

.line.bottom {
    margin-left: auto;
}

.nav-toggle-btn.active .line.top {
    transform: translate(1px, 3px) rotate(45deg);
}

.nav-toggle-btn.active .line.middle {
    transform: rotate(-45deg);
}

.nav-toggle-btn.active .line.bottom {
    transform: translate(-1px, -3px) rotate(45deg);
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
    padding-block: calc(73px + var(--section-padding));
}

.hero .hero-content {
    margin-inline: auto;
}

.hero .hero-list {
    padding-block: 20px;
    display: grid;
    gap: 10px;
}

.hero .brand-card {
    background-color: var(--stronde-white);
    padding: 50px;
    border-radius: var(--radius-6);
    box-shadow: var(--shadow-2);
}

.hero .brand-card>a {
    display: inline flex;
    justify-content: space-between;
    width: 100%;
}


.hero .brand-card a .brand {
    position: relative;
    color: var(--stronde-blue);

}

.hero .brand-card a:is(:hover, :focus) span {
    color: var(--stronde-watermelon-color);
}

.hero .brand-card a .brand::after {
    --scaleY: scaleY(0);

    content: "";
    position: absolute;
    vertical-align: middle;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) var(--scaleY);
    transform-origin: bottom;
    width: 100%;
    height: 2px;
    background: linear-gradient(to top, var(--stronde-watermelon-color), transparent);
    transition: var(--transition);
}

.hero .brand-card a:hover .brand::after,
.hero .brand-card a:focus .brand::after {
    --scaleY: scaleY(1);
}


/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

footer {
    background-color: var(--stronde-white);
    padding-block: 15px;
}

footer>.container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    align-items: center;
}

footer .container :is(p, .footer-link) {
    font-size: var(--fs-9) !important;
    white-space: nowrap;
}

footer .footer-list {
    display: flex;
    color: var(--stronde-blue);
    gap: 10px;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* responsive for large than 765px screen */

@media (min-width: 765px) {

    /* * CUSTOM PROPERTY * */
    :root {

        /* typography */

        --fs-1: 38px;
        --fs-7: 15px;

    }

    /* * HEADER * */

    .header .logo img {
        max-width: 300px;
    }

    /* * HERO * */

    .section.hero>.container {
        width: 70%;
    }

    .hero .brand-card {
        padding: 20px;
    }

}

/* responsive for large than 992px screen */
@media (min-width: 992px) {

    /* * HEADER * */

    .header {
        padding-block: 10px;
    }

    .nav-toggle-btn {
        display: none;
    }

    .header .nav-wrapper {
        cursor: pointer;
        display: flex;
        align-items: center;
        font-size: var(--fs-5);
        white-space: nowrap;
    }


    .header .nav-wrapper span {
        margin-inline: 5px;
    }


    /* * HERO * */

    .section.hero>.container {
        width: 50%;
    }


     /* * FOOTER * */

    footer>.container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    footer .footer-list {
        justify-content: flex-end;
    }
}


