@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #2a4b7c;
    --secondary: #3d7b9e;
    --accent: #71c4ef;
    --light: #e8f4fc;
    --dark: #1a2a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

body {
    color: var(--dark);
    line-height: 1.6;
}

strong {
    font-weight: 500;
}

.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 6rem;
    font-variant: small-caps;
    letter-spacing: 2px;
}

.hero p.sub-title {
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 400;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.hero p.tag-line {
    margin-top: 1.5rem;
    font-size: 2rem;
    max-width: 800px;
    font-variant: small-caps;
}

.hero p.tag-line .diamond {
    font-size: small;
    vertical-align: middle;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px; /* was 20px 50px */
    z-index: 100;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    padding: 10px 50px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    height: 40px; /* was 80px */
    width: auto;
    transition: height 0.3s ease;
}

.nav.scrolled .logo-image {
    height: 40px; /* Smaller when scrolled */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-variant: small-caps;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    font-variant: small-caps;
    letter-spacing: 1px;
}

.about {
    background-color: var(--light);
}

/* New 2x2 grid layout for About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
}

.about-text-top {
    grid-column: 1;
    grid-row: 1;
}

.about-image {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

.about-image img {
    width: 90%;
    border: 10px solid white;
    box-shadow: 0 0 40px 1px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
}

.about-logo {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    padding: 20px;
}

.about-logo img {
    max-width: 90%;
    height: auto;
    box-shadow: 0 0 40px 1px rgba(0, 0, 0, 0.5);
}

.about-text-bottom {
    grid-column: 2;
    grid-row: 2;
}

/* Maintain responsiveness */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .about-text-top {
        grid-column: 1;
        grid-row: 1;
    }

    .about-image {
        grid-column: 1;
        grid-row: 2;
    }

    .about-image img {
        width: 70vw;
    }

    .about-logo {
        grid-column: 1;
        grid-row: 4;
    }

    .about-text-bottom {
        grid-column: 1;
        grid-row: 3;
    }

    .nav-links li {
        margin-left: 12px;
    }
}

.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-variant: small-caps;
    letter-spacing: 0.5px;
}

.team {
    background-color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

/* Team vacancy styles */
.team-member.vacancy {
    border: 2px dashed var(--secondary);
    position: relative;
}

.team-member.vacancy .team-image {
    position: relative;
    overflow: hidden;
}

.vacancy-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-variant: small-caps;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.vacancy-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.team-role {
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact {
    background-color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

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

.parallax {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-variant: small-caps;
    letter-spacing: 1.5px;
}

/* Parallax Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center !important;
    }
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p.tag-line {
        font-size: 1.5rem;
    }

    .nav, .nav.scrolled {
        padding: 15px 20px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .logo-image, .nav.scrolled .logo-image {
        height: 32px; /* Slightly smaller on mobile */
    }

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

    .section {
        padding: 60px 20px;
    }
}

.form-error {
    background-color: #ffe6e6;
    border-left: 4px solid #ff3333;
    padding: 12px 20px;
    margin-bottom: 30px;
    color: #cc0000;
    border-radius: 3px;
}

.thank-you-container {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.thank-you-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-variant: small-caps;
    letter-spacing: 1px;
}

.thank-you-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.recaptcha-container {
    margin-bottom: 20px;
}

.form-spinner {
    display: inline-block;
    vertical-align: middle;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
