/* ==========================================================================
   Baltfin — main stylesheet
   ========================================================================== */

:root {
    --color-primary: #36b1cc;
    --color-primary-dark: #2a93ab;
    --color-accent: #eb3812;
    --color-dark: #222;
    --color-text: #333;
    --color-muted: #777;
    --color-light: #f5f7f8;
    --color-white: #fff;

    --font-sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    --header-height: 64px;
    --container: 1170px;
    --gutter: 16px;
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    transition: color .2s;
}

a:hover,
a:focus {
    color: var(--color-accent);
}

mark {
    background: none;
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Layout helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 800px;
}

.grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.section {
    padding: 80px 0;
}

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

.section--primary {
    background: var(--color-primary);
    color: rgba(255, 255, 255, .85);
}

.section--primary .section-title {
    color: var(--color-white);
}

.section--primary a {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.divider {
    max-width: 50px;
    margin: 20px auto 40px;
    border: 0;
    border-top: 3px solid var(--color-primary);
}

.divider--light {
    border-color: var(--color-white);
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: .4em;
}

/* Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 300px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s;
}

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

.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Site header / navigation
   ========================================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
    font-family: var(--font-sans);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
    padding: 0 var(--gutter);
}

.site-header__logo img {
    display: block;
    height: 20px;
    width: auto;
}

.site-header__partner img {
    display: block;
    height: 30px;
    width: auto;
}

.site-header__toggle {
    flex-shrink: 0;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.site-header__toggle-bar,
.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-dark);
    position: relative;
}

.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
}

.site-header__toggle-bar::before { top: -7px; }
.site-header__toggle-bar::after  { top: 7px; }

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 6px 8px rgba(0, 0, 0, .1);
}

.site-header.is-open .site-nav {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.site-nav a {
    display: block;
    padding: 12px var(--gutter);
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-primary);
}

@media (max-width: 420px) {
    .site-header__logo img { height: 14px; }
    .site-header__partner img { height: 24px; }
}

@media (min-width: 900px) {
    .site-header__toggle {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        margin-left: auto;
        background: none;
        box-shadow: none;
    }

    .site-nav ul {
        display: flex;
        padding: 0;
    }

    .site-nav a {
        padding: 12px 14px;
    }
}

main {
    padding-top: var(--header-height);
}

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 80px var(--gutter);
    background-color: var(--color-dark);
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
}

.hero__content {
    position: relative;
    max-width: 900px;
}

.hero h1 {
    text-transform: uppercase;
    font-size: clamp(2rem, 7vw, 4.2rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.hero__quote {
    margin: 0 0 40px;
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
}

.hero__quote p {
    margin: 0 0 .6em;
}

.hero__quote mark {
    padding: 2px 8px;
    background: rgba(0, 0, 0, .55);
    color: var(--color-white);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero--page {
    min-height: 60vh;
}

.hero__icon {
    width: 120px;
    margin-bottom: 20px;
}

.hero__tagline {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 300;
}

/* About features
   ========================================================================== */

.feature {
    text-align: center;
}

.feature__icon {
    width: 100px;
    margin-bottom: 16px;
}

.feature p {
    color: var(--color-muted);
}

/* Team
   ========================================================================== */

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

.team-member__photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.team-member h3 {
    font-size: 1.2rem;
}

.team-member p {
    color: var(--color-muted);
    font-size: .95rem;
}

.team-member__email {
    font-size: .85rem;
    word-break: break-all;
}

/* Service tiles
   ========================================================================== */

.services {
    display: grid;
}

@media (min-width: 600px) {
    .services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .services { grid-template-columns: repeat(3, 1fr); }
}

.service-tile {
    position: relative;
    display: block;
    aspect-ratio: 650 / 350;
    overflow: hidden;
    color: var(--color-white);
}

.service-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-tile__caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-family: var(--font-sans);
    background: rgba(54, 177, 204, .85);
    opacity: 0;
    transition: opacity .3s;
}

.service-tile:hover .service-tile__caption,
.service-tile:focus .service-tile__caption {
    opacity: 1;
}

/* Touch devices have no hover — always show captions */
@media (hover: none) {
    .service-tile__caption {
        opacity: 1;
        background: rgba(34, 34, 34, .55);
    }
}

.service-tile__category {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    opacity: .8;
}

.service-tile__name {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Call to action
   ========================================================================== */

.call-to-action {
    padding: 50px 0;
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
}

.call-to-action h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
}

/* Footer
   ========================================================================== */

.site-footer__contact {
    padding-top: 80px;
    padding-bottom: 50px;
    text-align: center;
}

.site-footer__address {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.site-footer__channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 80px;
    margin-top: 40px;
}

.contact-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.site-footer__bottom {
    padding: 20px var(--gutter);
    background: var(--color-dark);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 14px;
}

.site-footer__bottom p {
    margin: 0;
}
