:root {
    
    /* Colors */
    --baltic-blue: #058;
    --graphite: #313131;
    --sky-blue: #6CF;
    --muted-teal: #9B9;
    --mustard: #FD4;
    --alice-blue: #DEF;
    --text-light: #FFF;
    --text-dark: #222;
    --text-error: #712;
    --text-success: #152;
    
    /* Spacings */
    --spacing-xs: 0.5em;
    --spacing-sm: 1em;
    --spacing-md: 1.5em;
    --spacing-lg: 2em;
    --spacing-xl: 3em;
    
    /* Font Sizes */
    --font-size-sm: 0.875em;
    --font-size-md: 1.125em;
    --font-size-lg: 1.75em;
    --font-size-xl: 2.25em;
    
    /* Icons Size */
    --icon-size: 4em;
    
    /* Border Radius */
    --radius: 0.25em;
}

@font-face {
  font-display: swap;
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/_ref/fonts/ubuntu-sans-v4-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/_ref/fonts/ubuntu-sans-v4-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap; 
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/_ref/fonts/ubuntu-sans-v4-latin-700.woff2') format('woff2');
}

body {
    font-family: 'Ubuntu Sans', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--text-light);
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
svg {
    fill: none;
    margin: 0 auto;
    stroke-width: 1;
    stroke-linecap: square;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    box-sizing: border-box;
    max-width: 80em;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}
header {
    background-color: var(--text-light);
    padding: var(--spacing-md) 0;
    box-shadow: 0 0.1em 0.3em rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
        }
.logo img {
    height: 2.5em;
}
nav {
    text-align: right;
}
nav a {
    color: var(--baltic-blue);
    text-decoration: none;
    margin-left: var(--spacing-md);
    font-weight: 500;
}
nav a:hover {
    color: var(--sky-blue);
    text-decoration: underline;
}

/* Hero Section  */
.hero {
    background: url('/_ref/background.png');
    background-size: cover;
    background-position: center;
    padding: 8em 0;
    text-align: center;
    color: var(--text-light);
}
.hero h1 {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}
.hero p {
    font-size: var(--font-size-md);
    max-width: 50em;
    margin: 0 auto var(--spacing-lg);
    font-weight: 400;
}


.btn {
    display: inline-block;
    background-color: var(--sky-blue);
    padding: 0.7em 1.8em;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: var(--font-size-sm);
}
.btn:hover {
    background-color: var(--mustard);
    text-decoration: none;
}

/* Content Section */
.content {
    padding: var(--spacing-xl) 0;
}
.content h2 {
    color: var(--baltic-blue);
    font-weight: 400;
}
.content a {
    color: var(--baltic-blue);
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
}
.services h2 {
    text-align: center;
    color: var(--baltic-blue);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 25em), 1fr));
    gap: var(--spacing-md);
}
.service-card {
    background-color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: 0 0.2em 0.6em rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 0.05em solid #dee2e6;
    font-size: var(--font-size-sm)
}
.service-card:hover {
    transform: translateY(-0.3em);
    box-shadow: 0 0.3em 1em rgba(0,0,0,0.2);
}
.service-card svg {
    width: var(--icon-size);
    height: var(--icon-size);
    stroke: var(--sky-blue);
}
.service-card h3 {
    color: var(--baltic-blue);
    font-weight: 500;
}

/* Team Section */
.team {
    background-color: var(--alice-blue);
    padding: var(--spacing-xl) 0;
}
.team h2 {
    text-align: center;
    color: var(--baltic-blue);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 25em), 1fr));
    gap: var(--spacing-md);
}
.team-member {
    text-align: center;
    padding: var(--spacing-md);
}
.team-member img {
    width: 12em;
    height: 12em;
    border-radius: 50%;
    object-fit: cover;
    border: 0.25em solid var(--sky-blue);
}
.team-member h3 {
    color: var(--baltic-blue);
    font-weight: 700;
}
.team-member a {
    color: var(--baltic-blue);
}
.team-member a:hover {
    color: var(--sky-blue);
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--baltic-blue);
    color: var(--text-light);
}
.newsletter h2 {
    color: var(--text-light);
    font-weight: 700;
}
.newsletter p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}
.newsletter-form {
    max-width: 35em;
    margin: var(--spacing-md) auto 0;
}
.newsletter-form input {
    width: 80%;
    padding: 0.8em;
    border: 0.05em solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 400;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--graphite);
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-sm);
}
.newsletter-form button.btn {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    padding: 0.8em 1.8em;
}
.message {
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    text-align: center;
    width: 80%;
}
.success {
    background-color: #DED;
    border: thin solid var(--text-light);
    color: var(--text-success);
}
.error {
    background-color: #FDD;
    color: var(--text-error);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    font-size: var(--font-size-sm);
    background-color: var(--text-light);
    color: var(--text-dark);
    text-align: center;
}
.contact a {
    color: var(--baltic-blue);
}
.contact a:hover {
    color: var(--sky-blue);
}

/* Footer */
footer {
    background-color: var(--graphite);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--sky-blue);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-links svg {
    display:  inline-block;
    margin-right: var(--spacing-xs);
    margin-bottom: 0.25em;
    vertical-align: middle;
    width: var(--font-size-lg);
    height: var(--font-size-lg);
    stroke: var(--sky-blue);
}


@media (max-width: 50em) {
    .hero h1 {
        font-size: var(--font-size-lg);
    }
    .hero p {
        font-size: var(--font-size-sm);
    }
    .service-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .team-member img {
        width: 10em;
        height: 10em;
    }
}