:root {
    --standard-margin: 4rem;
    --primary-color: #1B998B;
    --mid-gray: #f5f5f5;
    --light-gray: #a8a6a6;
    --lightest-gray: #eee;
    --dark-grey: #888;
    --black: #1a1a1a;
    --svg-black-alter: invert(1) sepia(1) saturate(10000%) hue-rotate(45deg) brightness(80%);
}

@media screen and (max-width:798px) {
    :root {
        --standard-margin: 3em;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
}

body {
    line-height: 1.6;
    background-color: white;
    color: var(--black);
    padding: 0;
    margin: 0;
    min-width: 320px;
    text-rendering: optimizeSpeed;
}

p {
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1em;
    text-wrap: balance;
    grid-column: 1/-1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2.subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.25);
}

h3,
h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.mobile-only {
    display: none;
}

@media screen and (max-width:1100px) {
    .wide-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

::selection {
    background: var(--primary-color);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

a.link {
    text-decoration: underline;
    color: var(--primary-color);
}

a.link.white {
    color: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    z-index: 1000;
    padding-top: 40px;
}

.logo {
    width: 180px;
    flex-shrink: 0;
    transition: width 1s ease;
    align-self: end;
}

.header.sticky {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: white;
    color: var(--primary-color);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.header.sticky .logo {
    width: 100px;
    position: relative;
    top: 2px;
}

nav>.btn {
    font-size: 0.8rem;
    transition: font-size 1s ease;
}

form>.btn {
    padding: 20px;
}

.header.sticky nav>.btn {
    padding: 6px;
    font-size: 0.6rem;
}

@media screen and (max-width:798px) {
    .logo {
        width: 120px;
    }
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.logo svg {
    fill: var(--primary-color);
}

nav {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.navigation.container {
    display: flex;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.site {
    display: grid;
    grid-template-rows: auto 1fr auto;
    row-gap: var(--standard-margin);
    margin: 0 auto;
    padding: 2rem;
}

.container {
    max-width: 1360px;
}

.hero {
    min-height: calc(85vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: left;
}

.hero h1 {
    max-width: 25ch;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero h1 .highlight {
    font-family: "Playfair Display";
    font-style: italic;
    color: var(--primary-color);
}

@keyframes wave-animation {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.wave {
    display: inline-block;
    transform-origin: 70% 70%;
    font-size: 1.5em;
    margin-bottom: 0.75rem;
    animation: wave-animation 1s ease-out 1s;
    animation-delay: 1s;
    animation-iteration-count: 1;
}

.featured-work .projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--standard-margin);
}

.featured-work article {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.project-content {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 2rem;
    align-items: stretch;
    cursor: pointer;
}

.project-content h3 {
    transition: color 1s ease;
}

.project-content img {
    opacity: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    display: block;
    border-radius: 5px;
    transition: filter 1s ease, opacity 1s ease;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content .top-info {
    font-size: 1.4rem;
    line-height: 1.5em;
}

.project-content p {
    transition: color 1s ease;
    margin-bottom: 1rem;
}

.project-content svg {
    vertical-align: middle;
}

.project-content .highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.8rem;
}

.project-content .highlights span {
    background: var(--primary-color);
    padding: 5px;
    border-radius: 5px;
    color: white;
    transition: background-color 1s ease;
}

/* === Project Inactive Properties === */
.project-content.inactive {
    cursor: unset;
}

.project-content.inactive img,
.project-content.inactive .view-more {
    filter: grayscale(100%);
    opacity: 0.3;
}

.project-content .view-more {
    display: block;
}

.project-content.inactive h3 {
    color: var(--dark-grey) !important;
}

.project-content.inactive p {
    color: var(--light-gray) !important;
}

.project-content.inactive .highlights span {
    background-color: var(--mid-gray) !important;
    color: var(--light-gray) !important;
}

/* === */

@media (max-width: 768px) {
    .project-content {
        display: grid;
        grid-template-areas:
            "top-info"
            "image"
            "bottom-info";
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        display: contents;
    }

    .top-info {
        grid-area: top-info;
    }

    .project-content .top-info {
        font-size: 1rem;
    }

    .bottom-info {
        grid-area: bottom-info;
    }

    .project-content img {
        grid-area: image;
        height: auto;
        min-height: 400px;
    }
}

footer {
    text-align: left;
    font-size: 0.875rem;
    color: white;
    padding: 3rem 1rem 1rem;
    border-top: 1px solid var(--lightest-gray);
    background: var(--primary-color);
    margin-top: var(--standard-margin);
}

footer p {
    max-width: 35ch;
    font-size: 1.2rem;
}

footer p.links a {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

footer p.links {
    margin-bottom: var(--standard-margin);
}

footer svg.logo {
    max-width: 200px;
    fill: var(--mid-gray);
}

footer .grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

footer .grid-left,
footer .grid-right {
    grid-column: span 6;
}

footer .btn {
    margin-bottom: var(--standard-margin);
}

@media (max-width: 768px) {

    footer .grid-left,
    footer .grid-right {
        grid-column: span 12;
        margin-bottom: var(--standard-margin);
    }
}

.web-focus {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    box-sizing: border-box;
    align-items: start;
}

.web-focus .left {
    grid-column: 1 / span 2;
    position: relative;
    height: 100%;
}

.web-focus .right {
    grid-column: 3 / span 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
}

.web-focus .right>img {
    max-width: 100%;
    min-height: 250px;
    width: auto;
    display: block;
    object-fit: cover;
    object-position: left;
    border-radius: 5px;
}

.web-focus .right>img.center {
    object-position: center;
}

.web-focus img.spacer {
    margin-bottom: var(--standard-margin);
}

.web-focus .one-third {
    grid-column: span 1;
}

.web-focus .two-thirds {
    grid-column: span 2;
}

.web-focus .full-width {
    grid-column: 1/-1;
}

.web-focus>.pricing {
    gap: 40px;
    align-items: baseline;
}

.pricing p {
    max-width: 35ch;
    color: var(--light-gray);
}

.pricing h3 {
    color: var(--primary-color);
}

.web-focus .sticky {
    position: sticky;
    top: 100px;
    font-size: 0.8rem;
    max-width: 25ch;
    color: var(--light-gray);
}

.web-focus .sticky p {
    margin-bottom: 1em;
}

.visit-link {
    display: flex;
    justify-content: center;
}

@media screen and (max-width:1100px) {

    .web-focus .left {
        grid-column: span 12;
        order: 2;
    }

    .web-focus .right {
        grid-column: span 12;
        order: 1;
    }

    .web-focus .sticky {
        max-width: 100%;
    }

    .web-focus .one-third,
    .web-focus .two-thirds,
    .web-focus .full-width {
        grid-column: 1/-1;
    }
}

.web-focus .right .icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 30px;
    text-align: center;
    grid-column: 1/-1;
}

.web-focus .right .icon-item {
    flex: 1 1 100px;
    align-content: center;
}

.web-focus .right .icon-item img,
.web-focus .right .icon-item .palette {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 15px;
}

.web-focus .icon-container.statistics .icon-item img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 15px;
}

.web-focus .icon-container.statistics .icon-item p {
    color: var(--black);
    font-size: 1rem;
}

.web-focus .icon-container.small .icon-item img {
    width: 60px;
    height: 60px;
    filter: var(--svg-black-alter);
}

.web-focus .icon-container.small .icon-item p {
    color: var(--black);
}

.web-focus .right .icon-item .palette {
    border-radius: 50%;
    align-content: center;
    color: white;
}

.web-focus .right .icon-item p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-gray);
}

a.back-home {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

a.back-home::before {
    content: '←';
    margin-right: 0.4em;
}

.dontAnimate * {
    animation: unset !important;
    opacity: 1 !important;
}

#enquiryForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

#enquiryForm input[type="text"],
#enquiryForm input[type="email"],
#enquiryForm input[type="tel"],
#enquiryForm input[type="password"],
#enquiryForm textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s;
    font-family: 'Inter';
}

#enquiryForm input:focus,
#enquiryForm textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background-color: #fff;
}

#enquiryForm .error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

#enquiryForm button[type="submit"] {
    display: block;
    width: 100%;
}

@media (max-width: 640px) {
    #enquiryForm {
        padding: 0;
    }

    #enquiryForm input,
    #enquiryForm textarea {
        font-size: 0.95rem;
    }
}

.btn {
    width: auto;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.5s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

/* === Secondary Button === */
.btn.secondary {
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
}

.btn.tertiary {
    color: white;
    background-color: transparent;
    border: 2px solid white;
    margin-top: 1rem;
}

.btn:hover,
.btn.secondary:hover {
    opacity: 0.8;
}