/* Color Palette */
:root {
    --primary-color: #043c6c;
    --secondary-color: #137e94;
    --accent-color: #f9e498;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #eeeeee;
    --medium-gray: #cccccc;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

body {
    font-family: "Arimo", sans-serif;
    font-size: 18px;
    color: var(--text-color);
    max-width: 1250px;
    padding: 0 25px 2.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 7.5rem;
    padding-top: 2.5rem;
}

body > *:first-child {
    margin-bottom: -5rem;
}

body::before {
    content: "";
    position: fixed;
    top: 100px;
    right: 100px;
    width: 100%;
    height: 100%;
    background: url("../drop.svg") no-repeat top right;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    margin: 0;
}

h1 {
    font-size: 56px;
    font-weight: bold;
}

h2 {
    font-size: 28px;
    font-weight: bold;
}

h3 {
    font-size: 22px;
    font-weight: normal;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 12px 24px;
    cursor: pointer;
    font-family: "Arimo", sans-serif;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--background-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-white {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
}

/* Header */
.geb-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.geb-logo {
    margin-top: 2rem;
    height: 400px;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 25px;
}

.geb-card {
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 5px 50px rgba(4, 60, 108, 0.2);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.geb-card-image-container {
    position: relative;
}

.geb-card-image {
    width: 100%;
    display: block;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.geb-card-content {
    padding: 20px;
    text-align: center;
}

.geb-card-name {
    font-weight: bold;
    word-wrap: break-word;
}

.geb-card-description {
    position: absolute;
    inset: 0;
    background-color: rgba(4, 60, 108, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.geb-card:hover .geb-card-description,
.geb-card.hover .geb-card-description {
    opacity: 1;
    cursor: help;
}

/* Load More Button - Mobile Only */
#load-more-btn {
    display: none;
    margin-top: 2rem;
}

/* About & Contact Sections */
.about-container,
.contact-form-container {
    display: flex;
    align-items: stretch;
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 5px 50px rgba(4, 60, 108, 0.1);
    overflow: hidden;
}

.about-container {
    background-color: var(--primary-color);
    color: var(--background-color);
    justify-content: center;
    padding: 2rem;
}

.about-text {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    line-height: 2rem;
}

.about-text h1 {
    padding-bottom: 3rem;
}

.about-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 3rem;
}

.contact-form-fields {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.contact-form-image {
    flex: 1;
    display: flex;
}

.about-image img,
.contact-form-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.contact-form-container .btn {
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    margin: 3rem auto;
}

input,
textarea {
    font-family: "Arimo", sans-serif;
    padding: 1rem;
    border: 1px solid rgba(4, 60, 108, 0.2);
    border-radius: 5px;
    font-size: 1.5rem;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(4, 60, 108, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.error-message {
    color: red;
    font-size: 0.8rem;
}

/* Testimonials */
.testimonial-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.testimonial-section h2,
.services h2,
.contact-wrapper h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 2rem;
}

.testimonial-section h2 {
    padding-bottom: unset;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 2rem;
    width: 100%;
}

.testimonial-card {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 50px rgba(4, 60, 108, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 50px rgba(4, 60, 108, 0.5);
}

.testimonial-text {
    font-size: 1.8rem;
    line-height: 2.4rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1.6rem;
}

/* Footer */
.footer-container {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 6rem;
    display: flex;
    justify-content: center;
    text-align: center;
    border-radius: 25px;
    margin-bottom: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.footer-text {
    font-size: 1.6rem;
    text-align: left;
    padding-bottom: 2rem;
}

.footer-wave {
    width: 100%;
    margin: 5rem 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--background-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-container geb-button {
    font-size: 1.8rem;
}

.footer-copy {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Utility Classes */
.bottom-text {
    color: var(--primary-color);
    text-align: center;
}

.m-sm {
    margin: 8px;
}
.m-md {
    margin: 16px;
}
.m-lg {
    margin: 24px;
}
.m-xl {
    margin: 32px;
}

.p-sm {
    padding: 8px;
}
.p-md {
    padding: 16px;
}
.p-lg {
    padding: 24px;
}
.p-xl {
    padding: 32px;
}

/* Media Queries */
@media (min-width: 769px) {
    .card-container geb-card {
        display: block !important;
    }

    #load-more-btn {
        display: none !important;
    }
}

@media (max-width: 800px) {
    .contact-form-fields,
    .about-text {
        padding: unset;
    }

    .about-buttons {
        flex-direction: column;
    }

    .contact-form-image {
        display: none;
    }

    .card-container {
        grid-template-columns: unset;
    }

    .testimonial-cards {
        display: flex;
        flex-direction: column;
    }

    .footer-container {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-wave {
        margin: 2rem 0;
    }
}

@media (max-width: 768px) {
    .card-container geb-card {
        display: none;
        transition: opacity 0.3s ease-in-out;
    }

    .card-container geb-card[style*="block"] {
        display: block !important;
        opacity: 1;
    }

    .card-container geb-card.newly-loaded {
        animation: fadeInUp 0.5s ease-out;
    }
}
