/* ==========================================================
   AGLER WEBSITE - shared stylesheet for all pages
   Every page uses this same file, so a change here
   applies everywhere. Page order is:
     HEADER  - logo, then the nav ribbon
     MAIN    - the page's own text
     FOOTER  - the grey bar: affiliates, site map, contact
   The styles below follow that same order.
   ========================================================== */

/* ---- COLORS ---- */
:root {
    --red:        #C00000;   /* the "AG" in the logo, and link hover */
    --black:      #1a1a1a;   /* logo, headings, footer headings */
    --gray:       #555555;   /* body text and links */
    --light-gray: #888888;   /* footer text */
    --line:       #e0e0e0;   /* the divider under the nav ribbon */
    --footer-bg:  #f2f2f2;   /* the grey bar */
}

/* ---- PAGE: fills the window so the grey bar rests at the bottom ---- */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
    color: var(--gray);
    -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
/* Padding order is: top, right, bottom, left.
   The 10px is the gap between the nav ribbon and the divider line. */
header {
    padding: 45px 60px 10px 60px;
    border-bottom: 1px solid var(--line);
}

.logo {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--black);     /* colors "LER" */
    letter-spacing: 0.02em;
}

.logo span {
    color: var(--red);       /* colors "AG" */
}

/* ---- NAV RIBBON ---- */
/* The "|" separators are drawn by CSS, not typed into the HTML,
   so no stray bar appears before the first item or after the last. */
.nav {
    margin: 14px 0 0 0;
    font-size: 1rem;
    font-weight: 300;
}

.nav a,
.nav .current {
    color: var(--gray);
    text-decoration: none;
}

.nav a:hover {
    color: var(--red);
}

/* the page you are already on: bold, black, and not a link */
.nav .current {
    font-weight: 500;
    color: var(--black);
}

.nav a + a::before,
.nav .current + a::before,
.nav a + .current::before {
    content: "|";
    margin: 0 12px;
    color: var(--line);
    font-weight: 300;
}

/* ---- MAIN ---- */
/* flex-grow takes up the spare height, which pushes the grey bar down. */
main {
    flex-grow: 1;
    padding: 50px 60px 70px 60px;   /* 50px above, 70px below */
}

/* The body text fills the width of the window, keeping only the 60px
   gutters set by main's padding above. To stop lines from running too
   long on a very wide monitor, put a ceiling back on:
       max-width: 1100px;
   Any value works; the text then stops growing once it reaches it. */
.inner {
    width: 100%;
}

h1.page-title {
    margin: 0 0 28px 0;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--black);
}

main p {
    margin: 0 0 18px 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* the red "AG" when AGLER appears inside a sentence */
.mark {
    color: var(--red);
}

/* ---- SUB-HEADINGS AND LISTS ---- */
h2.section {
    margin: 34px 0 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
}

ul.points {
    margin: 0 0 18px 0;
    padding-left: 20px;
    list-style: none;
}

ul.points li {
    position: relative;
    margin-bottom: 9px;
    font-size: 0.95rem;
    line-height: 1.6;
}

ul.points li::before {
    content: "\2022";               /* the bullet */
    position: absolute;
    left: -20px;
    color: var(--light-gray);
}

/* the bold lead-in at the start of a paragraph or bullet,
   e.g. "Your employees." or "Location:" */
.lead {
    font-weight: 500;
    color: var(--black);
}

/* the small print at the bottom of a page */
.fine-print {
    margin-top: 34px;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--light-gray);
}

/* ---- THE RED CALL TO ACTION ---- */
.cta {
    display: inline-block;
    margin-top: 22px;
    font-size: 0.95rem;
    color: var(--red);
    text-decoration: none;
}

.cta:hover {
    text-decoration: underline;
}

/* ---- FOOTER ---- */
/* Three columns: affiliates left, site map centre, contact right. */
footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 22px 60px;
    background: var(--footer-bg);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--light-gray);
}

footer h2 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
}

.sitemap ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact {
    text-align: right;
}

/* ---- LINKS ---- */
a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

/* ---- PHONES: everything below applies to screens under 700px ---- */
@media (max-width: 700px) {
    header       { padding: 35px 25px 8px 25px; }
    main         { padding: 35px 25px 50px 25px; }
    footer       { flex-direction: column; gap: 18px; padding: 22px 25px; }
    .contact     { text-align: left; }
    .logo        { font-size: 2rem; }
    .nav         { font-size: 0.9rem; line-height: 1.9; }
    .nav a + a::before,
    .nav .current + a::before,
    .nav a + .current::before { margin: 0 7px; }
    h1.page-title { font-size: 1.3rem; }
    main p,
    ul.points li { font-size: 0.9rem; }
}
