/* ===== Reset & Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


:root{
    --global-color: black;
    --global-size: 14px;
    --global-font: "Inter", sans-serif;

    --title-color: black;
    --title-size: 40px;
    --title-font: "Inter", sans-serif;

    --heading-h1-color: black;
    --heading-h1-size: 18px;
    --heading-h1-font: "Inter", sans-serif;

    --text-color: black;
    --text-size: 12px;
    --text-font: "Inter", sans-serif;

    --link-color: #009c48;

    --primary-color: #545454;
    --primary-color-light: #b4b4b4;
    --secondary-color: #009c48;
    --bright-color: #ffffff;
    --dark-color: #000000;
    --background: #f3f3f3; /* background */

    --header-height: 5rem;
    --navigation-height: 0em;
    --footer-height: 10rem;

    --standard-pad: 1rem;
    --navigation-col-gap: 1rem;

    --default-col-gap: 1rem;
    --default-row-gap: 1rem;

    --window-gap: 10rem;

    --text-small: calc(var(--global-size) * 0.8);
    --text-normal: calc(var(--global-size));
    --text-heading: calc(var(--global-size) * 1.3);
    --text-large: calc(var(--global-size) * 1.8);

    --article-title: calc(var(--global-size) * 1.8);
    --article-normal: calc(var(--global-size));
    --article-heading-2: calc(var(--global-size) * 1.4);
    --article-heading-3: calc(var(--global-size) * 1.2);

    --page-content-title: calc(var(--global-size) * 2);
    --page-content-normal: calc(var(--global-size));
    --page-content-heading-2: calc(var(--global-size) * 1.5);
    --page-content-heading-3: calc(var(--global-size) * 1.3);

    --double-pad: calc(var(--standard-pad) * 2);
    --half-pad: calc(var(--standard-pad) / 2);

    --standard-radius: 0.2em;

}


*{
    font-family: var(--global-font);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

body.no-scroll {
    overflow: hidden;
}

:target {
    scroll-margin-top: var(--header-height);
}


.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

/* Header */
.header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #eeeeee;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.header img{
    height: 100%;
    display: flex;
    flex-direction: row;
    width: 10rem;
}

.header-nav{
    display: flex;
    flex-direction: row;
    column-gap:3rem;
}

.header-nav a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    color: var(--primary-color);
}

.active{
    color: var(--secondary-color) !important;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: var(--secondary-color);
}

.action-button{
    appearance: none;
    border: none;
    border-radius: var(--standard-radius);

    padding: 0.65rem 1.8rem;
    font-size: var(--text-normal);
    font-weight: 500;
    letter-spacing: 0.02em;

    color: var(--bright-color) !important;
    background-color: var(--secondary-color);

    text-decoration: none;
    width: fit-content;

    cursor: pointer;

    transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;

    box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.08);
}

/* Hover */
.action-button:hover{
    background-color: #007a39;
    transform: translateY(-1px);
    box-shadow:
    0 3px 6px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.12);
}

/* Active */
.action-button:active{
    transform: translateY(0);
    box-shadow:
    0 1px 2px rgba(0,0,0,0.1);
}

/* Keyboard focus */
.action-button:focus-visible{
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}



main{
    margin-top: 3rem;
}

/* Homepage */
.main-content{
    width: 100%;
    height: calc(60vh - 5rem);
}

.cta-homepage{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
    height: 100%;
    width: 65%;
    margin: 0 auto;
    text-align: center;
}

.cta-homepage h2{
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: normal;
    width: 70%;
    margin: 0 auto;
}


/* Sub Content Section */
.sub-content{
    width: 100%;
    height: 50vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;

}

.sub-content-image {
    width: 100%;
    background-image: url("/images/tech-content.jpg");
    background-size: cover;
}

.sub-content-words{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--double-pad);
}

.sub-content-words h2, .sub-content-words p{
    margin-bottom: 1rem;
}



/* Why Us Section */
.why-us-content{
    display: flex;
    flex-direction: column;
    height: 80vh;
    align-items: center;
    justify-content: center;
    row-gap: 3rem;
}

.why-us-content span{
    color: var(--primary-color);
}

/* Services */
.testimonials,
.about-us,
.services-content,
.our-work{
    min-height: 70vh;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;

    margin-bottom: 3rem;

    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonials-heading,
.about-us-heading,
.services-heading,
.our-work-heading{
    display: flex;
    flex-direction: column;
    row-gap: 0.7rem;
    width: 80%;
    margin: 0 auto;
}

.testimonials-heading span,
.about-us-heading span,
.services-heading span,
.profile-tile span,
.our-work-heading span{
    color: var(--primary-color);
}

.about-us-heading ul{
    margin-top: 1rem;
}

.about-us-heading :is(ul, li){
    color: var(--primary-color);
    text-align: left;
    line-height: 1.5rem;
    list-style-position: outside;
    margin-left: 1rem;
}


.service-columns,
.work-grid{
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 2rem;
}

.service-icon{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.profile-icon{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
}

.user-details{
    display: flex;
    flex-direction: column;
    justify-content: right;
}

.profile-tile{
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
}

.content-creation,
.profile-tile,
.b2b-leads{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    padding: var(--standard-pad);
    text-align: left;
    height: 100%;
}

.content-creation img,
.profile-tile img,
.b2b-leads img
{
    height: 8rem;
}

.content-creation :is(h2, h3, h4),
.b2b-leads :is(h2, h3, h4)
{
    text-align: center;
}

.content-box{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
    padding: var(--standard-pad);
    flex-grow: 1;
}

.profile-box{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;

    flex-grow: 1;
}

.content-box :is(span, ul, li){
    font-weight: light;
    line-height: 1.5rem;
    color: var(--primary-color);
}

.content-box li{
    margin-left: 2rem;
}

/* ===== Contact Page ===== */

.contact-page{
    width: 70%;
    margin: 0 auto 5rem;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.contact-heading{
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    text-align: center;
}

.contact-heading span{
    color: var(--primary-color);
}

/* Form layout */
.contact-form{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 1.5rem;
}

.form-field{
    display: flex;
    flex-direction: column;
    row-gap: 0.3rem;
}

.form-field label{
    font-size: var(--text-small);
    color: var(--primary-color);
}

/* Inputs */
.form-field input,
.form-field textarea{
    padding: 0.6rem;
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
    border-radius: var(--standard-radius);
    font-size: var(--text-normal);
}

.form-field input:focus,
.form-field textarea:focus{
    outline: none;
    border-color: var(--secondary-color);
}

/* Full width rows */
.full-width{
    grid-column: 1 / -1;
}

/* Actions */
.form-actions{
    display: flex;
    justify-content: center;
}

/* Mobile */
@media (max-width: 900px){
    .contact-page{
        width: 90%;
    }

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

/* Modern form submit button */

.form-submit{
    appearance: none;
    border: none;
    border-radius: var(--standard-radius);
    padding: 0.75rem 2.2rem;
    font-size: var(--text-normal);
    font-weight: 500;
    letter-spacing: 0.02em;

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

    cursor: pointer;
    transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;

    box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.08);
}

/* Hover */
.form-submit:hover{
    background-color: #007a39; /* darker green */
    transform: translateY(-1px);
    box-shadow:
    0 3px 6px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.12);
}

/* Active */
.form-submit:active{
    transform: translateY(0);
    box-shadow:
    0 1px 2px rgba(0,0,0,0.1);
}

/* Focus (keyboard accessibility) */
.form-submit:focus-visible{
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}


/* Generic */

.three-columns{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 3rem;
}

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

.dark-section{
    color: white;
    background-color: black;
}

.sig{
    display:flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-hr {
    width: 10rem;
    height: 1px;
    background-color: #ccc;
    border: none;
    margin: 1.5rem 0 0.75rem;
}

/* Privacy */
.privacy{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin-bottom: 3rem;
}

.privacy :is(span, p, ul, li)
{
    color: var(--primary-color);
}

.privacy :is(ul, li)
{
    list-style: none;
    margin-left: 1rem;
    line-height: 1.5rem;
}

/* Footer */
.page-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top-style: solid;
    border-top-width: 2px;
    border-top-color: #eeeeee;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.sitemap{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sitemap a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
}

.footer-extra {
    width: 10rem;
    display: inline-flex;
    flex-direction: column;
}

.footer-img {
    width: 100%;
    margin-bottom: 1rem;
}

.footer-img img {
    display: block;
    width: 100%;
    height: auto;
}


.extra-links{
    display: flex;
    flex-direction: column;
    text-align: right;

}

.extra-links a{
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    text-decoration: none;
    color: var(--primary-color);
}

.extra-links a {
    white-space: nowrap;

}

.footer-img{
    width: 100%;
}
