/* ==========================================================================
   St Leonards & St Ives Village Hall - style.css
   Rewritten from the old screen.css (Bootstrap 2 / Foundation / Compass
   output). Same look, only the rules the site actually uses.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Chatkids';
    src: url('../fonts/Chatkids.woff2') format('woff2'),
         url('../fonts/Chatkids.woff') format('woff'),
         url('../fonts/Chatkids.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li,
form, label, header, footer, nav, section { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
html { line-height: 1; }
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ---------- Base ---------- */
body {
    font-family: "Century Gothic", Arial, Verdana, sans-serif;
    background: #fff;
    color: #5e5e5e;
    -webkit-text-size-adjust: 100%;
}
body.whatsOnPage { background: #e9e9e9; }

a {
    color: #012428;
    font-weight: 600;
    text-decoration: underline;
}
a:hover { color: #0f707d; }

p, ul {
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    padding-bottom: 20px;
}
.mainWrapper p {
    font-weight: 600;
    color: #0b535d;
    font-size: 19px;
    line-height: initial;
}

h1, h2, h3, h4 {
    font-family: "Century Gothic", Arial, Verdana, sans-serif;
    text-rendering: optimizeLegibility;
}
h1 { font-size: 36px; font-weight: 600; color: #0b535d; text-align: center; line-height: 1.6; margin: 20px 0; }
h2 { font-size: 40px; font-weight: 600; color: #0b535d; text-align: center; line-height: 1.6; padding-bottom: 20px; }
h3 { font-size: 20px; font-weight: 600; color: #fff; line-height: 1.6; }
h4 { font-size: 20px; font-weight: 600; color: #0b535d; line-height: 1.6; }

h1.left  { font-family: 'Chatkids'; text-align: left; font-size: 44px; }
h2.left2 { font-family: 'Chatkids'; text-align: left; font-size: 30px; padding-bottom: 0; margin-top: 30px; }

.list { color: #0b535d; list-style-type: square; list-style-position: inside; text-indent: -1em; padding-left: 1em; }
.list span { font-size: 16px; line-height: 2; font-weight: 300; color: #5e5e5e; }

.strong   { font-weight: bold; }
.center   { text-align: center; }
img.fill  { width: 100%; }
.clearfix { clear: both; }

/* ---------- Layout ---------- */
.mainWrapper {
    width: 988px;
    max-width: 100%;
    padding: 8px;
    margin: 0 auto;
}
@media screen and (min-width: 1168px)                       { .mainWrapper { width: auto; max-width: 1168px; } }
@media screen and (min-width: 760px) and (max-width: 987px) { .mainWrapper { width: auto; max-width: 760px; } }
@media screen and (max-width: 759px)                        { .mainWrapper { width: auto; padding: 10px 0; } }

.wrapPadding { padding: 0 8px; }
.mainContent { margin-top: 60px; }

.reducedTextWidth { width: 60%; margin: auto; }
@media screen and (max-width: 987px) { .reducedTextWidth { width: 100%; } }

.fullwidth { width: 100%; }

/* ---------- Top banner (header + footer) ---------- */
.topBanner {
    text-align: center;
    background: #1c5ebc;
    background: radial-gradient(circle, rgba(28,94,188,1) 0%, rgba(208,227,255,1) 100%);
}
.topBanner .siteName {
    font-family: 'Chatkids';
    font-size: 60px;
    color: #fff;
    margin: 0;
    padding: 0;
}
.topBanner .siteAddress {
    font-family: "Century Gothic", Arial, Verdana, sans-serif;
    font-weight: 600;
    color: #02465c;
    font-size: 27px;
    margin-top: -30px;
}
.topBanner .siteAddress a { color: inherit; text-decoration: none; }

@media screen and (max-width: 960px) {
    .topBanner .siteName    { font-size: 40px; line-height: 41px; padding-top: 30px; }
    .topBanner .siteAddress { font-size: 20px; margin-top: 7px; line-height: 26px; padding-bottom: 37px; }
}

/* ---------- Navigation ---------- */
.fixNav {
    position: absolute;
    z-index: 999;
    width: 100%;
    text-align: center;
    opacity: .95;
}
nav { text-align: center; }
nav ul { background-color: #fff; }
nav li { display: inline-block; vertical-align: middle; font-family: "Century Gothic", Arial, Verdana, sans-serif; }
nav a {
    position: relative;
    display: block;
    padding: 6px 0;
    color: #02465c;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color .1s;
}
nav a span { padding: 0 25px; font-weight: 600; }
nav a:hover, nav a:focus, nav a:active, nav a.current { color: #02465c; text-decoration: underline; }
nav a::before {
    content: "";
    position: absolute;
    bottom: 3px; left: 0;
    height: 3px; width: 100%;
    background-color: #fff;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .5s ease-out;
}
nav a:hover::before, nav a:focus::before { transform-origin: left top; transform: scale(1, 1); }
nav a#pull { display: none; }

@media screen and (max-width: 759px) {
    .fixNav { position: static; }
    .mainContent { margin-top: 0; }
    nav { background: #0b535d; }
    nav ul { display: none; width: 100%; }
    nav ul.open { display: block; }
    nav li { display: block; width: 100%; border-bottom: 1px solid #bfbfbf; }
    nav li a { text-align: left; width: 100%; line-height: 20px; }
    nav li a::before { width: 70px; margin-left: 15px; }
    nav a#pull {
        display: block;
        position: relative;
        width: 100%;
        color: #fff;
        font-size: 14px;
        background-color: #0a4c55;
    }
    nav a#pull::after {
        content: "";
        position: absolute;
        right: 15px; top: 10px;
        width: 30px; height: 30px;
        background: url("../img/nav-icon.png") no-repeat;
    }
    nav a#pull::before { display: none; }
}

/* ---------- Page headers (hero) ---------- */
header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: 50% 50%;
}
header.home { height: 600px; }
header .hero {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
}
header.home     .hero { background-image: url("../img/header-home.jpg"); background-position: 70% 30%; }
header.about    .hero { background-image: url("../img/header-about.jpg"); background-position: 70% 30%; }
header.bookings .hero { background-image: url("../img/header-bookings.jpg"); }
header.annexe   .hero { background-image: url("../img/header-annexe.jpg"); }
header.main     .hero { background-image: url("../img/header-main-hall.jpg"); }
header.russell  .hero { background-image: url("../img/header-russell-room.jpg"); }
header.contact  .hero { background-image: url("../img/header-contact.jpg"); background-position: 20% 80%; }

.dark-bg { display: block; height: 100%; background: rgba(0, 0, 0, 0.3); }

header .textWrap {
    font-family: "Book Antiqua", Georgia, serif;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 15px 0;
    color: #fff;
    font-size: 30px;
    font-style: italic;
    text-align: center;
}
header .strong {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: 5px;
    font-style: normal;
    color: #fff;
}
@media screen and (max-width: 987px) {
    header .textWrap { padding: 15px 20px; }
    header .strong { font-size: 30px; }
}
@media screen and (max-width: 759px) {
    header .textWrap { font-size: 24px; }
}

/* ---------- Home page ---------- */
.phoneNotice {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    line-height: 36px;
    margin-bottom: 20px;
}
.phoneNotice a { font-size: 30px; font-weight: bold; color: #000; text-decoration: underline; }
.w3wLink { text-align: center; margin-bottom: 30px; }
.w3wLink img { width: 270px; }
.hallmark { padding-bottom: 20px; }

/* Two column boxes */
.facilities { background-color: #fff; }
.left2ColumnBox, .right2ColumnBox {
    float: left;
    width: 50%;
    padding: 5px 8px;
    margin: 10px 0;
    background-color: #fff;
}
@media screen and (max-width: 759px) { .left2ColumnBox, .right2ColumnBox { width: 100%; } }

.facilities .wrapPadding { display: block; line-height: 1.6; }
.title2ColumnBox { color: #0b535d; font-weight: 400; font-size: 20px; text-align: center; letter-spacing: 1px; padding-top: 20px; }
.text2ColumnBox  { font-size: 16px; color: #5e5e5e; font-weight: 300; text-align: center; padding-top: 20px; }
.more2ColumnBox  { font-size: 16px; color: #5e5e5e; font-weight: 300; text-align: center; }
.more2ColumnBox a { color: #1392a4; text-decoration: none; }
.more2ColumnBox a:hover { color: #0f707d; }
.image2ColumnBox { text-align: center; padding-top: 5px; }
.image2ColumnBox img.w3w { width: 350px; }
.mapLink { display: block; text-align: center; }

/* ---------- About page ---------- */
.map { width: 400px; float: right; margin: 0 0 10px 20px; }
.hm  { width: 419px; vertical-align: top; }
@media screen and (max-width: 759px) { .map { float: none; width: 100%; margin: 0 0 15px; } }

/* ---------- Rooms page ---------- */
.roomLinks a { margin-right: 20px; }
.roomRates { margin: 10px 0 20px; }

/* ---------- Rates pages ---------- */
.rateTable {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 25px;
    font-size: 17px;
    line-height: 1.4;
    border: 1px solid #cfdcdd;
}
.rateTable th, .rateTable td { padding: 14px 16px; text-align: center; }
.rateTable th {
    background: #0b535d;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}
.rateTable th:first-child, .rateTable td.slot { text-align: left; }
.rateTable td { color: #0b535d; font-weight: 600; border-top: 1px solid #cfdcdd; }
.rateTable td.slot { font-weight: 400; color: #333; }
.rateTable tbody tr:nth-child(even) td { background: #f2f7f7; }
.rateTable tbody tr:last-child td { background: #e3eef0; font-weight: 700; }

.rateExtras {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.rateExtra {
    flex: 1 1 45%;
    padding: 12px 14px;
    background: #f2f7f7;
    border-left: 4px solid #0b535d;
}
.rateExtraLabel { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #5e5e5e; }
.rateExtraValue { display: block; font-size: 18px; font-weight: 600; color: #0b535d; margin-top: 2px; }

.mainWrapper p.rateNote { font-size: 15px; font-weight: 400; color: #5e5e5e; line-height: 1.5; }

@media screen and (max-width: 600px) {
    .rateTable { font-size: 15px; }
    .rateTable th, .rateTable td { padding: 10px 8px; }
    .rateTable th { font-size: 12px; letter-spacing: 0; }
    .rateExtra { flex-basis: 100%; }
}

/* ---------- What's On accordion ---------- */
.whatsOn h3 {
    font-size: 23px;
    font-weight: 500;
    color: #063;
    line-height: 1.1;
    padding: 20px 10px;
    margin: 0 0 2px;
    background: #e6e6e6;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.whatsOn h3::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 12px; height: 12px;
    border-right: 2px solid #063;
    border-bottom: 2px solid #063;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.whatsOn h3.open { background: #c3c3c3; border-color: #2e2e2e; }
.whatsOn h3.open::after { transform: translateY(-30%) rotate(-135deg); }
.whatsOn h3:hover { background: #dcdcdc; }
.whatsOn .panel { display: none; padding: 15px 10px 5px; }
.whatsOn .panel.open { display: block; }
#accordion { margin-bottom: 30px; }

.whatsOn p { font-size: 15px; padding-bottom: 10px; font-weight: 300; line-height: 1.4; }
.whatsOn p a { color: #1392a4; font-size: 15px; text-decoration: none; }
.whatsOn p a:hover { color: #0f707d; }
.whatsOn .whatsOnText { font-size: 17px; line-height: 1.6; color: #0b535d; font-weight: 600; }
p.bottxt { border-bottom: 1px solid #bdbdbd; padding-bottom: 16px; margin-bottom: 15px; }

/* ---------- Contact page ---------- */
.contactPageLeft  { float: left;  width: 66.66667%; padding: 10px; margin: 10px 0; }
.contactPageRight { float: right; width: 33.33333%; padding: 10px; margin: 10px 0; }
.contactPageRight p { padding-bottom: 10px; }
@media screen and (max-width: 759px) { .contactPageLeft, .contactPageRight { width: 100%; } }

label { display: block; margin-bottom: 5px; }
input[type="text"], input[type="email"], textarea {
    display: inline-block;
    width: 100%;
    max-width: 480px;
    padding: 6px 8px;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: rgba(82,168,236,0.8);
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
}
textarea { height: auto; }
.control-group { margin-bottom: 10px; }
.form-actions  { margin: 15px 0; }
.honey { position: absolute; left: -9999px; }

.btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    background-color: #0b535d;
    border: 1px solid #08414a;
    border-radius: 4px;
}
.btn:hover, .btn:focus { background-color: #0f707d; }

.formMsg { padding: 10px 14px; margin-bottom: 15px; border-radius: 4px; font-size: 15px; }
.formMsg.ok    { background: #dff0d8; color: #3c763d; border: 1px solid #c3e6cb; }
.formMsg.error { background: #f2dede; color: #a94442; border: 1px solid #ebccd1; }

.goomap { position: relative; padding-bottom: 40%; height: 0; overflow: hidden; margin: 0 10px; }
.goomap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 90%; }

/* Bookings diary embed */
.diary { width: 100%; height: 800px; border: 0; }

/* ---------- Thanks / 404 ---------- */
.bigMessage { text-align: center; margin: 50px 0; }
.bigMessage h4 { text-align: center; font-size: 40px; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid #0b535d; }
footer .topBanner .siteName { font-size: 30px; padding-top: 30px; }
footer .topBanner .siteName .charity {
    font-family: "Century Gothic", Arial, Verdana, sans-serif;
    font-weight: 600;
    font-size: 22px;
    display: inline-block;
}
footer .topBanner .siteAddress { color: #fff; margin-top: 10px; padding-bottom: 0; }
footer .topBanner .siteAddress a { color: #fff; }
footer .topBanner .copyright { font-size: 17px; color: #fff; padding: 20px 0 30px; }
footer .topBanner .copyright a { color: #fff; }
@media screen and (max-width: 600px) { footer .topBanner .siteAddress { font-size: 20px; } }
