/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #757575;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
.font-crimson-reg {
    font-family: 'Crimson Text', serif;
}

.font-lato-reg {
    font-family: 'Lato', sans-serif;
}

.font-opensans-reg {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Crimson Text', serif;
    color: #111111;
    font-weight: 400;
}

/* Header Styles */
#site-header {
    width: 100%;
    background-color: #ffffff;
}

#site-header-inner {
    background-color: #ffffff;
}

#header-top {
    background-color: #ffffff;
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
}

.header-social {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-social li a {
    color: #757575;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-social li a:hover {
    color: #b0bf6c;
}

.header-social li a span {
    display: none;
}

#header-middle {
    padding: 20px 0;
}

.medium-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#site-logo {
    display: block;
}

#site-logo img {
    max-width: 200px;
    height: auto;
}

/* Mobile Nav Button */
#mobile-nav-button {
    display: none;
    position: absolute;
    right: 0;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    background: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

#mobile-nav-icon {
    width: 30px;
    height: 25px;
    position: relative;
}

#mobile-nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #757575;
    border-radius: 3px;
    transition: 0.25s ease-in-out;
}

#mobile-nav-icon span:nth-child(1) { top: 0; }
#mobile-nav-icon span:nth-child(2),
#mobile-nav-icon span:nth-child(3) { top: 10px; }
#mobile-nav-icon span:nth-child(4) { top: 20px; }

/* Navigation */
#header-navigation {
    background-color: #d2d8e6;
    border-top: 1px solid #d2d8e6;
    border-bottom: 1px solid #d2d8e6;
}

#header-nav {
    display: flex;
    justify-content: center;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu .menu-item {
    position: relative;
}

.menu .menu-item > a {
    display: block;
    padding: 15px 20px;
    color: #6471a6;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.menu .menu-item > a:hover,
.menu .current-menu-item > a {
    color: #9da9c3;
}

/* Main Content */
#main-content {
    background-color: #ffffff;
}

/* Slideshow / Hero Section */
.featured-section {
    position: relative;
    overflow: hidden;
}

.featured-slideshow {
    position: relative;
}

.featured-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-content-area {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 40px;
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

.featured-content-area h2 {
    font-family: 'Crimson Text', serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #111111;
}

.featured-content-area h2 a {
    color: #111111;
}

.featured-content-area h2 a:hover {
    color: #b0bf6c;
}

.featured-content-area p {
    color: #757575;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Primary Button */
.primary-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d2d8e6;
    border: 1px solid #d2d8e6;
    color: #2727bb;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #9da9c3;
    border-color: #9da9c3;
}

/* Page Header */
.page-header {
    background-color: #f5f5f5;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Crimson Text', serif;
    font-size: 36px;
    color: #111111;
    text-transform: uppercase;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.page-content a {
    color: #6471a6;
}

.page-content a:hover {
    color: #b0bf6c;
}

/* Sample Menus */
.menu-links {
    text-align: center;
    padding: 40px 0;
}

.menu-links h2 {
    margin-bottom: 20px;
}

.menu-links h2 a {
    color: #6471a6;
    font-size: 24px;
}

.menu-links h2 a:hover {
    color: #b0bf6c;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111111;
}

.form-group .required {
    color: #cf2e2e;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.input-field,
.input-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e6e6e6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-field:focus,
.input-textarea:focus,
.input-field:hover,
.input-textarea:hover {
    border-color: #b0bf6c;
    outline: none;
}

.input-textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111111;
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
#site-footer {
    margin-top: 40px;
}

#footer-social {
    background-color: #9da9c3;
    padding: 20px 0;
}

#footer-social-inner {
    text-align: center;
}

#footer-social ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#footer-social li a {
    color: #d2d8e6;
    font-size: 24px;
    transition: color 0.3s ease;
}

#footer-social li a:hover {
    color: #6471a6;
}

#footer-bottom {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

#footer-copyright {
    color: #696969;
    font-size: 14px;
}

/* Scroll to Top */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #C7C7C7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background-color: #b0bf6c;
}

#scroll-top span {
    color: #ffffff;
    font-size: 20px;
}

/* Slideshow Controls */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #757575;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slideshow-btn:hover {
    background: rgba(255,255,255,1);
    color: #6471a6;
}

.slideshow-btn.prev {
    left: 20px;
}

.slideshow-btn.next {
    right: 20px;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

/* Slideshow Dots */
.slideshow-dots {
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
}

/* Messages */
.messages {
    padding: 20px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 991px) {
    #site-logo img {
        max-width: 100px;
    }

    #mobile-nav-button {
        display: block;
    }

    #header-navigation {
        position: relative;
    }

    #header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        z-index: 1000;
        border-top: 1px solid #f5f5f5;
    }

    #header-nav.menu-active {
        display: block;
    }

    .menu {
        flex-direction: column;
    }

    .menu .menu-item > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
    }

    .featured-slide {
        height: 400px;
    }

    .featured-content-area {
        max-width: 90%;
        padding: 20px;
    }

    .featured-content-area h2 {
        font-size: 22px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .featured-slide {
        height: 350px;
    }

    .featured-content-area {
        max-width: 95%;
        padding: 15px;
    }

    .featured-content-area h2 {
        font-size: 18px;
    }

    .featured-content-area p {
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
