﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    margin-bottom: 2rem;
    padding-left: 15px;
    padding-right: 15px;
}

/* Site-wide font: Raleway (same family as the banner) */
/* Colour palette: cool grey-teal shades built around the banner colour #C6D8D8 (trial, 2026-11-06).
   All text/background pairs below meet WCAG AA contrast (4.5:1 or better).
   Previous khaki palette (banner #E6E6CA): full copy in C:\developmenthome\Achterbosch_backups\Site.css.khaki-2026-11-06 */
:root {
    --bs-body-font-family: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
    --site-banner-bg: #C6D8D8;
    --site-banner-border: #A3BDBD;
    --site-nav-bg: #B0C8C8;
    --site-nav-text: #2E4646;
    --site-nav-active: #102020;
    --site-page-bg: #EEF4F4;
    --site-text: #222B2B;
    --site-heading: #1E2F2F;
    --site-accent: #3A5A5A;
    --site-accent-dark: #2B4545;
    --site-link: #1E5A5A;
    --bs-body-color: var(--site-text);
    --bs-link-color: var(--site-link);
    --bs-link-color-rgb: 30, 90, 90;
    --bs-link-hover-color: var(--site-accent-dark);
    --bs-link-hover-color-rgb: 43, 69, 69;
}

/* Page background */
body {
    background-color: var(--site-page-bg);
    color: var(--site-text);
    font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--site-heading);
}

/* Menu bar */
.site-nav {
    background-color: var(--site-nav-bg);
    border-bottom: 1px solid var(--site-banner-border);
}

.site-nav .navbar-nav .nav-link {
    color: var(--site-nav-text);
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus {
    color: var(--site-nav-active);
}

/* Buttons (replace Bootstrap's black/grey with the olive accent) */
.btn-dark {
    --bs-btn-bg: var(--site-accent);
    --bs-btn-border-color: var(--site-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--site-accent-dark);
    --bs-btn-hover-border-color: var(--site-accent-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--site-accent-dark);
    --bs-btn-active-border-color: var(--site-accent-dark);
    --bs-btn-active-color: #fff;
}

.btn-outline-dark {
    --bs-btn-color: var(--site-accent-dark);
    --bs-btn-border-color: var(--site-accent);
    --bs-btn-hover-bg: var(--site-accent);
    --bs-btn-hover-border-color: var(--site-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--site-accent-dark);
    --bs-btn-active-border-color: var(--site-accent-dark);
    --bs-btn-active-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.02em;
}

.btn,
.nav-link {
    font-family: var(--bs-body-font-family);
}

/* Top banner */
.site-banner {
    background-color: var(--site-banner-bg);
    border-bottom: 1px solid var(--site-banner-border);
    padding: 2.25rem 0;
    text-align: center;
}

.site-banner-title {
    color: var(--site-heading);
    display: inline-block;
    font-family: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-decoration: none;
}

/* Banner photo (shown on every page): face inside a circle, next to the title */
.site-banner-inner {
    align-items: center;
    display: flex;
    gap: 2.25rem;
    justify-content: center;
}

/* Line the title up with the middle of the circle: the word has no descenders,
   so drop it slightly to centre the visible letters rather than the line box */
.site-banner-inner .site-banner-title {
    line-height: 1;
    padding-top: 0.08em;
}

.site-banner-photo {
    /* The image file itself is already round (transparent corners) */
    border: 3px solid var(--site-banner-border);
    border-radius: 50%;
    flex-shrink: 0;
    height: 96px;
    object-fit: cover;
    width: 96px;
}

@media screen and (max-width: 575px) {
    .site-banner-inner {
        gap: 1.25rem;
    }

    .site-banner-photo {
        height: 56px;
        width: 56px;
    }

    .site-banner-title {
        font-size: 1.75rem;
        letter-spacing: 0.08em;
    }
}

.site-banner-title:hover,
.site-banner-title:focus {
    color: var(--site-accent-dark);
}

@media screen and (max-width: 575px) {
    .site-banner {
        padding: 1.5rem 0;
    }
}

/* Highlight the menu tab for the current page */
.site-nav .navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--site-nav-active);
    color: var(--site-nav-active);
    font-weight: 600;
}

/* Contact page email link: no underline (shown on hover only) */
.contact-details a {
    text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus {
    text-decoration: underline;
}

/* Home page introduction */
.home-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 2rem auto 1rem;
    max-width: 760px;
}

.home-intro p {
    margin-bottom: 1.25rem;
}

.home-intro h3 {
    font-size: 1.6rem;
    margin: 2.25rem 0 1rem;
}

.home-intro .services {
    padding-left: 1.25rem;
}

.home-intro .services li {
    margin-bottom: 1rem;
}

.home-intro .services strong {
    font-weight: 600;
}

/* Embedded resume PDF */
.resume-viewer {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resume-viewer iframe {
    border: 0;
    display: block;
    height: 85vh;
    min-height: 600px;
    width: 100%;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}
