/* Friends of the Genesee Valley Greenway — the whole site's styles. */

@font-face { font-family: Lato; font-weight: 300; font-display: swap; src: url(fonts/lato-300.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/lato-400-italic.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400 700; font-display: swap; src: url(fonts/playfair-display.woff2) format("woff2"); }

:root {
    --green: #00673e;
    --green-2: #0e683f;
    --lime: #8eb63e;
    --lime-2: #8db32a;
    --blue: #4ca9d2;
    --text: #555;
    --heading: #333;
    --line: #e2e2e2;
    --cream: #f5f3e6;
    --serif: "Playfair Display", Georgia, serif;
    --sans: Lato, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--green-2); }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--heading); font-family: var(--serif); font-weight: 400; line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; margin-bottom: .3em; }
p, ul, ol, blockquote, table { margin: 0 0 1.2em; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: .5em 1em; }

/* Buttons */
.btn, .th-btnappointment, .btn-ltgreen-sq, .btn-dkgreen-sq, button, input[type=submit] {
    display: inline-block; padding: .75em 3em; border: 2px solid transparent; border-radius: 30px;
    background: var(--green-2); color: #fff; font: 700 .9rem/1.4 var(--sans); text-transform: uppercase;
    text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, opacity .2s;
}
.btn:hover, .th-btnappointment:hover, button:hover { background: #0f7346; color: #fff; opacity: .9; }
.th-btnappointment { margin: .5em .5em .5em 0; }
.th-btnappointment em { font-style: normal; }
.btn-ltgreen-sq, .btn-square { background: var(--lime-2); border-radius: 0; display: block; }
.btn-dkgreen-sq { border-radius: 0; }
.btn-outline { background: transparent; border-color: var(--lime-2); padding: .5em 2em; }
.btn-outline:hover { background: var(--lime-2); }
.more { font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: .9rem; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 10; }
.header-top { display: flex; align-items: center; gap: 1em; padding-top: 18px; padding-bottom: 18px; }
.logo { margin-right: auto; line-height: 0; }
.logo img { width: 330px; }
.btn-donate { background: var(--green); border-color: var(--lime); padding: .35em 3em; font-size: 1rem; font-weight: 400; }
.menu-toggle { display: none; background: none; color: var(--green); padding: .2em; font-size: 1.8rem; border-radius: 0; }
.menu-toggle:hover { background: none; color: var(--green); }
.main-nav { background: var(--lime); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 0 .9em; color: #fff; line-height: 50px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; font-size: .95rem; }
.menu > li > a:hover, .menu > li > a.active, .menu > li:focus-within > a { background: var(--green); }
.menu ul { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .15); border-top: 3px solid var(--green); }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.menu ul a { display: block; padding: .6em 1.2em; color: var(--heading); text-decoration: none; border-bottom: 1px solid #f0f0f0; font-size: .95rem; line-height: 1.4; }
.menu ul a:hover { background: var(--green); color: #fff; }
.nav-search { display: flex; align-items: center; width: 220px; }
.nav-search input[type=search] { flex: 1; min-width: 0; padding: 3px 8px; background: transparent; border: 2px solid var(--green); color: #fff; font: 700 .9rem var(--sans); text-transform: uppercase; }
.nav-search input::placeholder { color: #fff; }
.nav-search button { background: none; padding: 0 .5em; color: #fff; font-size: 1.3rem; border-radius: 0; }

/* Banner and green bars */
.banner { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: var(--green-2) center / cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .45), rgb(0 0 0 / 0) 60%); }
.banner .container { position: relative; padding-bottom: 30px; }
.banner h1 { margin: 0; color: #fff; font-size: 2.6rem; text-shadow: 0 2px 6px rgb(0 0 0 / .4); }
.greenbar { background: var(--green); color: #fff; font: 22px/1.4 var(--serif); text-transform: uppercase; padding: .6em 0; }
.greenbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.greenbar p { margin: 0; }
.greenbar .btn { flex: none; font-size: .95rem; }

/* Page layout */
.content { padding-top: 60px; padding-bottom: 60px; }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.content-block::after { content: ""; display: table; clear: both; }
.content-block img { margin: 10px 15px 0 0; }
.content-block img[style*="float: right"], .content-block img[style*="float:right"] { margin: 0 0 15px 15px; }
.content-block img[style*="float"] { margin-bottom: 10px; }
.img-no-padding img, .content-block .cards img, .content-block .gallery img, .content-block .newsletter img, .event-image { margin: 0; }
.page-title { position: relative; padding-bottom: 18px; margin-bottom: 28px; }
.page-title::before { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--lime); }
.page-title::after { content: ""; position: absolute; left: 43px; bottom: 0; width: 3px; height: 3px; background: var(--lime); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.meta { color: #888; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.caption { font-weight: 700; }
.notice { padding: 1em 1.2em; border-left: 4px solid var(--green); background: #eef5e4; color: var(--heading); }
.notice-error { border-color: #b3261e; background: #fbeceb; }

/* Typography extras from the old theme */
.dropcap-section { display: block; font-size: 1.2em; line-height: 1.5; font-weight: 300; }
.dropcap-section::first-letter { float: left; color: var(--lime-2); font-weight: 700; font-size: 90px; line-height: 60px; padding: 4px 8px 0 3px; }
.quote { position: relative; margin: 2em 0 3em; padding: 1em 1.5em 1em 4em; border: 2px solid #ccc; border-radius: 10px; }
.quote::before { content: "\201C"; position: absolute; left: .4em; top: -.1em; color: var(--blue); font: 4rem/1 var(--serif); }
.quote p { margin: 0; font: 1.15em/1.6 var(--serif); }
.quote footer { margin-top: .5em; color: var(--blue); font-weight: 700; }
.quote footer::before { content: "— "; }
.chronology-list ul { list-style: none; margin: 0; padding: 0; }
.chronology-list li { position: relative; padding: .5em 0 .75em 125px; border-bottom: 1px solid var(--line); }
.chronology-list li:first-child { border-top: 1px solid var(--line); }
.chronology-list ul ul { list-style: disc; padding-left: 20px; }
.chronology-list ul ul li { padding: 0; border: 0; }
.chronology-label { position: absolute; left: 0; top: .55em; padding: 2px 10px; background: var(--green-2); color: #fff; font-weight: 700; font-size: .9rem; }
.chronology-desc { display: block; margin-left: -125px; }

/* Home */
.slider { position: relative; aspect-ratio: 1950 / 500; overflow: hidden; background: var(--green-2); }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.slider img.active { opacity: 1; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); }
.box { padding: 2.5em 4em; color: #fff; }
.box h3 { color: #fff; font-size: 22px; font-weight: 600; text-transform: uppercase; margin-bottom: 1em; }
.box ul { padding-left: 1.1em; margin: 0; }
.box li { margin-bottom: .5em; }
.box-ltgreen { background: var(--lime); }
.box-dkgreen { background: var(--green); }
.box-ltblue { background: var(--blue); }
.layout-home .content-block { padding-top: 50px; padding-bottom: 50px; }
.layout-home .page-title { text-align: center; }
.layout-home .page-title::before { left: calc(50% - 22px); }
.layout-home .page-title::after { display: none; }

/* Lists of pages, newsletters and photos */
.cards { display: grid; gap: 30px; margin-bottom: 1.2em; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.card:not(:has(img)) { grid-template-columns: 1fr; }
.card h4 { margin-bottom: .3em; }
.newsletters { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.newsletter { border: 1px solid var(--line); padding: 0 0 1em; }
.newsletter img { display: block; width: 100%; aspect-ratio: 536 / 351; object-fit: cover; }
.newsletter h3, .newsletter ul, .newsletter p { margin-left: 20px; margin-right: 20px; }
.newsletter h3 { margin-top: .8em; font-weight: 700; }
.newsletter h3 a { color: var(--heading); text-decoration: none; }
.newsletter-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 1.2em; }
.gallery img { flex: 0 0 100%; max-height: 75vh; object-fit: contain; scroll-snap-align: center; background: #f4f4f4; }
.prev-next { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.prev-next p { margin: 0 0 .4em; }

/* Events */
.event-date { flex: none; display: flex; flex-direction: column; width: 64px; padding: 8px 4px; background: var(--green-2); color: #fff; text-align: center; line-height: 1.1; text-transform: uppercase; }
.event-date .day { font-size: 1.6rem; font-weight: 700; }
.event-date .month, .event-date .year { font-size: .8rem; letter-spacing: 1px; }
.event-head, .event-summary { display: flex; gap: 20px; align-items: flex-start; }
.event-head { margin-bottom: 1.5em; }
.event-head h2 { margin-bottom: .2em; }
.event-head p { margin: 0 0 .2em; }
.event-when { color: #888; text-transform: uppercase; font-size: .9rem; letter-spacing: .5px; }
.event-image { display: block; margin-bottom: 1.5em; }
.event-list { display: grid; gap: 18px; margin-bottom: 1.5em; }
.event-summary h4 { margin: 0 0 .2em; font-size: 1.05rem; }
.event-summary h4 a { color: var(--heading); text-decoration: none; }
.event-summary p { margin: 0; font-size: .9rem; color: #888; }
.archive { border-bottom: 1px solid var(--line); padding: .6em 0; }
.archive summary { cursor: pointer; font: 1.3rem var(--serif); color: var(--heading); }
.archive summary span { font: .9rem var(--sans); color: #888; }
.archive ul { list-style: none; padding: .5em 0 0; margin: 0; }
.archive time { display: inline-block; width: 4.5em; color: #888; }

/* Sidebar */
.sidebar .page-title { font-size: 1.6rem; }
.side-nav, .link-list { list-style: none; margin: 0 0 2em; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: .8em; margin-bottom: 12px; padding: .7em 1.4em; border: 2px solid var(--lime-2); border-radius: 30px; color: var(--green); font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: .85rem; }
.side-nav a:hover, .side-nav a.active { background: var(--lime-2); color: #fff; }
.side-nav .icon { font-size: 1.3em; }
.link-list li { padding: .5em 0; border-bottom: 1px solid var(--line); }
.fb-banner { display: block; line-height: 0; }
.fb-banner img { width: 100%; margin: 0; }

/* Forms */
.form form { display: flex; flex-wrap: wrap; gap: 0 4%; }
.field { flex: 0 0 100%; margin-bottom: 1em; }
.field.half { flex-basis: 48%; }
.field label, .checks legend { display: block; font-weight: 700; color: var(--heading); margin-bottom: .3em; }
.req { color: #c00; }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea {
    width: 100%; padding: .55em .7em; border: 1px solid #bbb; border-radius: 2px; background: #fff; color: #000; font: inherit;
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.checks { border: 0; padding: 0; }
.checks label { display: inline-block; width: 48%; font-weight: 400; margin: .2em 0; }
.hp { position: absolute; left: -9999px; }
.form-volunteer form, .form-contact form { padding: 1.5em 1.5em .5em; background: var(--cream); border: 1px solid #ccc; }
.form-volunteer button, .form-contact button { background: var(--blue); border-radius: 1px; padding: 1em 4em; font-size: .8rem; }
.search-form { display: flex; max-width: 480px; margin-bottom: 2em; }
.search-form button { border-radius: 0; padding: .5em 1em; font-size: 1.1rem; }
.search-result { margin-bottom: 1.5em; }
.search-result h3 { margin-bottom: .2em; }
.search-count { color: #888; }

/* Footer */
.site-footer { background: var(--lime); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: 30px; padding-top: 70px; padding-bottom: 70px; }
.footer-grid img { width: 306px; margin-bottom: 20px; }
.footer-links h4 { color: #fff; font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.footer-links h4::after { content: ""; display: block; width: 65px; height: 3px; margin-top: 15px; background: var(--green); }
.footer-links ul, .social { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 8px 0; font-weight: 700; }
.footer-links a { color: #464646; text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: #464646; color: var(--lime); font-size: 20px; }
.social a:hover { color: #fff; }
.form-signup form { gap: 0; }
.form-signup .field { margin: 0 0 12px; }
.form-signup input { border: 0; }
.form-signup input::placeholder { color: #464646; }
.form-signup .field:last-child { text-align: right; }
.form-signup button { background: transparent; border-color: #fff; padding: .7em 3em; }
.form-signup button:hover { background: #b0cf72; }
.form-signup .notice { color: var(--heading); }
.footer-bottom { background: #222; color: #999; padding: 20px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; }
.to-top { color: #999; font-size: 1.4rem; }

/* Small screens */
@media (max-width: 1100px) {
    .menu > li > a { padding: 0 .6em; font-size: .85rem; letter-spacing: .5px; }
    .nav-search { width: 160px; }
    .box { padding: 2em; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav .container { flex-direction: column; align-items: stretch; padding: 0; }
    .menu { flex-direction: column; }
    .menu > li > a { line-height: 44px; padding: 0 16px; border-top: 1px solid rgb(255 255 255 / .25); }
    .menu ul { display: block; position: static; box-shadow: none; border: 0; background: rgb(255 255 255 / .9); }
    .menu ul a { padding-left: 32px; }
    .nav-search { width: auto; padding: 10px 16px; }
    .content-sidebar, .boxes, .newsletter-page { grid-template-columns: 1fr; }
    .greenbar .container { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .logo img { width: 210px; }
    .btn-donate { padding: .3em 1.2em; font-size: .85rem; }
    .banner { min-height: 200px; }
    .banner h1 { font-size: 1.9rem; }
    .content { padding-top: 36px; padding-bottom: 36px; }
    .card, .footer-grid { grid-template-columns: 1fr; }
    .field.half, .checks label { flex-basis: 100%; width: 100%; }
    .content-block img[style*="float"] { float: none !important; display: block; }
    .chronology-list li { padding-left: 0; padding-top: 2.4em; }
    .chronology-desc { margin-left: 0; }
    .footer-bottom .container { gap: 1em; }
}
