html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: "Fira Sans", sans-serif;
    background-image: url('coastguard.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1rem 2rem 1rem;
}

.hero-content {
    margin: auto 0;
    text-align: center;
}

header h1 {
    color: #ffffff;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 600;
    font-style: italic;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.intro-text {
    text-align: center;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 4rem 1vw 5rem 1vw;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-radius: 15px;
    background-color: rgba(211, 211, 211, 0.9);
    overflow: hidden;
}

.card > div {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h2 {
    text-align: center;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card > img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

.card:hover {
    background-color: #e8e8e8;
    transform: translateY(-6px);
    box-shadow: 0 12px 20px 0 rgba(0, 0, 0, 0.3);
}

.container p {
    margin: 0;
    line-height: 1.5;
}

.contact-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 1.25rem;
}

.contact-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.contact-links a:hover {
    text-decoration: underline;
}
.contact-subtext {
    text-align: center !important;
    font-size: 0.95rem;
    margin-bottom: 1.25rem !important;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn:hover {
    background-color: #2b2b2b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover .btn-icon {
    filter: invert(1);
}

footer {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    color: #ffffff;
    font-family: "Fira Sans", sans-serif;
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
}