/* style.css — shared site-wide styles for Vinland.Technology */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, rgba(255, 204, 0, 0.2), rgba(255, 182, 193, 0.2));
    font-family: sans-serif;
    border-top: 2px solid purple;
    overflow-x: hidden;
}
body, html {
    width: 100%;
    min-height: 100%;
}

/* Headings */
h1 {
    font-family: 'Turret Road', cursive;
    font-size: clamp(2rem, 8vw, 5rem);
    margin: .2em 5%;
    color: #295100;
    text-align: center;
}
h2 {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #295100;
    margin: 1.2em 0 .4em;
}
h3 {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #295100;
    margin: 1em 0 .3em;
}
p, li {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.6;
}

/* Layout */
.main-content {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card surface used on the home page and blog posts */
.blog-post {
    border: 1px solid #295100;
    background-color: white;
    padding: 30px 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.blog-post h3 { margin-top: 0; }
.blog-post .label + h2 { margin-top: 0; }
.blog-post .date {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* Eyebrow label above a card heading */
.label {
    display: inline-block;
    font-family: 'Rubik', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8b1a6b;
    margin-bottom: 8px;
}

.lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #333;
}

.callout {
    border-left: 4px solid #8b1a6b;
    background: #faf6e6;
    padding: 12px 18px;
    margin: 1.2em 0;
    font-size: 0.98rem;
}

/* Three-up server choice grid: adapts 3 -> 2 -> 1 across widths */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 1.5em 0;
}

/* Reuses the .blog-post card surface, tuned for a compact box */
.server-card {
    border: 1px solid #295100;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.server-card h3 { margin-top: .1em; }
.server-card .loc {
    font-family: 'Rubik', sans-serif;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1em;
}
.server-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
}
.server-card li {
    padding: 6px 0 6px 26px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.server-card li a {
    color: #295100;
    font-weight: bold;
}
.server-card li:before {
    content: "\2713";           /* check mark */
    color: #295100;
    font-weight: bold;
    position: absolute;
    left: 4px;
}
/* CTA button styled in the site's green; pinned to card bottom for equal heights */
.server-card .choose {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: #295100;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 11px 18px;
    border-radius: 6px;
    transition: background .15s ease;
}
.server-card .choose:hover { background: #1d3a00; }
.server-card .choose.disabled {
    background: #9aa39a;
    cursor: default;
}
.server-card .choose.disabled:hover { background: #9aa39a; }

/* Navigation links */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #295100;
    text-decoration: none;
    font-weight: bold;
}
.back-link:hover { text-decoration: underline; }

/* Header / footer */
header, footer {
    background-color: linear-gradient(to right, rgba(255, 204, 0, 0.2), rgba(255, 182, 193, 0.2));
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    margin-top: 60px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 182, 193, 0.3);
    gap: 16px;
    width: 100%;
}
footer > p {
    grid-column: 1;
    margin: 0;
}
footer p:has(img) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0px;
    width: 100%;
    margin-left: -3.4em;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content { padding: 10px; }
    .blog-post { padding: 18px; }
    footer { grid-template-columns: 1fr; }
}
