@font-face {
    font-family: 'MyriadPro-Regular';
    src: url('../fonts/MyriadPro-Regular.eot');
    src: url('../fonts/MyriadPro-Regular.eot') format('embedded-opentype'),
         url('../fonts/MyriadPro-Regular.otf') format('opentype'),
         url('../fonts/MyriadPro-Regular.woff') format('woff'),
         url('../fonts/MyriadPro-Regular.ttf') format('truetype'),
         url('../fonts/MyriadPro-Regular.svg') format('svg');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro-Bold';
    src: url('../fonts/MyriadPro-Bold.eot');
    src: url('../fonts/MyriadPro-Bold.eot') format('embedded-opentype'),
         url('../fonts/MyriadPro-Bold.otf') format('opentype'),
         url('../fonts/MyriadPro-Bold.woff') format('woff'),
         url('../fonts/MyriadPro-Bold.ttf') format('truetype'),
         url('../fonts/MyriadPro-Bold.svg') format('svg');
    font-weight: 700;
    font-style: normal;
}

* { margin: 0; padding: 0; }

body {
    font-family: 'MyriadPro-Regular', Arial, sans-serif;
    color: #231f20;
    font-size: 1vw;
    overflow-x: hidden;
}

a { color: #d39f49; text-decoration: none; }
a:hover { color: #d29e47; text-decoration: none; }

.gold { color: #d39f49; }
.bg-gold { background: #d39f49; }
.text-white { color: #FFF; }
.fullwidth { width: 100%; }

/* Header */
header.headertop {
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    z-index: 3;
}

#brand { width: 100%; text-align: center; }

h1.logo {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 6.3vw;
    color: #d39f49;
    font-weight: bold;
    line-height: 0.8;
}

h1.logo a { color: #d39f49; text-decoration: none; }
h1.logo a:hover { color: #d39f49; text-decoration: none; }

h1.logo span {
    color: #231f20;
    font-size: 3.35vw;
    text-transform: uppercase;
    display: block;
}

/* Home Wrapper */
.homewrapper {
    position: relative;
    width: 100%;
}

main#home {
    background: url(../img/homebg.jpg) center center no-repeat fixed;
    background-size: cover;
    padding: 150px 40px 150px 40px;
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.xcontainer {
    width: 60%;
    margin: auto;
    position: relative;
    z-index: 2;
}

h2.home-title {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 4vw;
    color: #231f20;
    margin-bottom: 30px;
}

/* Form Controls */
.form-control {
    border: 0.3vw solid #d29e47;
    font-size: 1.8vw;
    height: auto !important;
    padding: 8px 12px;
    border-radius: 0;
}

.form-control:focus {
    border-color: #d39f49;
    box-shadow: none;
}

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

/* Buttons */
.btn-xxxl {
    background: #d39f49;
    border: 1px solid #d39f49;
    color: #fff;
    font-size: 2vw;
    padding: 1vh 1.6vw;
    border-radius: 0;
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-xxxl:hover {
    background: #d29e47;
    border-color: #d29e47;
    color: #fff;
}

.btn-theme {
    background: #d29e47;
    border: 1px solid #d29e47;
    color: #fff;
    border-radius: 0;
    padding: 8px 20px;
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
}

.btn-theme:hover {
    background: #d39f49;
    border-color: #d39f49;
    color: #fff;
}

/* Section Cards */
.cbtns .card {
    margin: 1vh 0;
    background: #d39f49;
    color: #fff;
    border-radius: 0;
    min-height: 100px;
    border: none;
}

.cbtns .card a { color: #fff; text-decoration: none; }

.cbtns .card-wrap {
    display: table;
    width: 100%;
    min-height: 100px;
}

.cbtns .card-call {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    text-align: center;
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 1.5vw;
    padding: 15px;
}

/* Content Sections */
.section { padding: 40px 0; }

.section-title {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 2.5vw;
    margin-bottom: 20px;
}

.section hr {
    border-top: 2px solid #d39f49;
    max-width: 100px;
    margin: 0 auto 30px;
}

/* County Page */
.county-header {
    padding: 60px 0 30px;
    text-align: center;
}

.county-header h2 {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 3vw;
    color: #231f20;
}

.county-header .region-phone {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 2vw;
    color: #d39f49;
    margin-top: 10px;
}

.flyer-download-btn {
    display: inline-block;
    background: #d39f49;
    color: #fff;
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 2vw;
    padding: 20px 50px;
    border-radius: 0;
    margin: 30px 0;
    text-decoration: none;
    transition: background 0.3s;
}

.flyer-download-btn:hover {
    background: #d29e47;
    color: #fff;
    text-decoration: none;
}

.flyer-download-btn i { margin-right: 10px; }

/* County buttons layout */
.county-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.county-buttons .flyer-download-btn {
    margin: 0;
    flex: 0 1 auto;
    font-size: 1.4vw;
    padding: 15px 30px;
}

/* Section styling for content areas */
.section a.btn-theme {
    margin: 5px;
}

.section hr {
    border-top-color: rgba(255,255,255,0.3);
}

.section.bg-gold hr {
    border-top-color: rgba(255,255,255,0.4);
}

@media (max-width: 992px) {
    .county-buttons .flyer-download-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 767px) {
    .county-buttons {
        flex-direction: column;
        align-items: center;
    }
    .county-buttons .flyer-download-btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Credit Application Form */
.smf-credit-app-form label {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 3px;
    display: block;
}

.smf-credit-app-form .form-control {
    font-size: 14px !important;
    border-width: 1px !important;
    border-color: #ccc !important;
    height: auto !important;
    padding: 6px 10px;
}

.smf-credit-app-form .required { color: #c00; }

.smf-form-section-title {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    color: #d39f49;
    border-bottom: 2px solid #d39f49;
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.smf-brands-checklist label {
    font-weight: normal;
    font-size: 0.85em;
    cursor: pointer;
}

.smf-brands-checklist label:hover { color: #d39f49; }

.smf-ref-row { border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 5px; }

.smf-success-message h3 { margin-top: 0; }

.smf-credit-terms { border-left: 3px solid #d39f49; }

/* Scroll Indicator */
.scrolldown {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3vw;
    color: #231f20;
    z-index: 5;
    animation: pulse 3s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0% { bottom: 5%; }
    100% { bottom: 0%; }
}

/* Back to Top */
.backtotop {
    background: #d39f49;
    color: #fff;
    position: fixed;
    z-index: 9;
    bottom: 5%;
    right: 5%;
    padding: 7px 15px;
    border-radius: 50%;
    display: none;
    font-size: 1.5vw;
}

.backtotop:hover { color: #fff; background: #d29e47; }

/* Footer */
footer { background: #231f20; color: #fff; }

.footermain { padding: 30px 40px; }

.widgetbox { margin-bottom: 20px; }

.widgettitle {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 1.4vw;
    color: #d39f49;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #d39f49;
}

.widgetcontent { font-size: 1.1vw; }
.widgetcontent ul { list-style: none; margin: 0; padding: 0; }
.widgetcontent ul li { margin-bottom: 5px; }
.widgetcontent ul li a { color: #fff; }
.widgetcontent ul li a:hover { color: #d39f49; }

.socialicons {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.socialicons li {
    display: inline-block;
    margin-right: 10px;
}

.socialicons li a {
    color: #fff;
    font-size: 1.5vw;
}

.socialicons li a:hover { color: #d39f49; }

.copyright {
    background: #d39f49;
    padding: 5px;
    text-align: center;
    color: #fff;
    font-size: 0.9vw;
}

/* Navigation */
nav.mainmenu { display: none; }

#mainmenu {
    width: 74%;
    float: right;
}

nav.mainmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

nav.mainmenu ul li {
    display: inline-block;
    margin-left: 20px;
}

nav.mainmenu ul li a {
    font-family: 'MyriadPro-Bold', Arial, sans-serif;
    font-size: 1.8vw;
    color: #d39f49;
}

#togglemain {
    display: none;
    float: right;
    font-size: 24px;
    color: #d39f49;
    cursor: pointer;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    body { font-size: 14px; }
    h2.home-title { font-size: 36px; }
    h1.logo { font-size: 63px; }
    h1.logo span { font-size: 33px; }
    .form-control { font-size: 16px; border-width: 3px; }
    .btn-xxxl { font-size: 21px; padding: 10px 20px; }
    .btn-theme { font-size: 16px; }
    .xcontainer { width: 90%; }
    .section-title { font-size: 28px; }
    .cbtns .card-call { font-size: 16px; }
    .county-header h2 { font-size: 32px; }
    .county-header .region-phone { font-size: 24px; }
    .flyer-download-btn { font-size: 18px; padding: 15px 30px; }
    .widgettitle { font-size: 18px; }
    .widgetcontent { font-size: 14px; }
    .socialicons li a { font-size: 18px; }
    .copyright { font-size: 12px; }
    .backtotop { font-size: 18px; }
    .scrolldown { font-size: 30px; }
    #togglemain { display: block; }
    nav.mainmenu {
        display: none;
        position: absolute;
        background: #231f20;
        right: 0;
        top: 60px;
        padding: 20px;
        z-index: 10;
    }
    nav.mainmenu ul li { display: block; margin: 10px 0; }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    main#home { position: relative; overflow: auto; height: auto !important; }
    header.headertop { position: relative; }
    .homewrapper { height: auto !important; }
    .xcontainer { width: 90%; }
    .widgetbox .widgettitle {
        font-size: 21px;
        text-align: center;
        border-bottom: 2px solid #d39f49;
    }
    .widgetcontent { text-align: center; }
    .socialicons { text-align: center; }
    .county-header h2 { font-size: 24px; }
    .county-header .region-phone { font-size: 18px; }
    .flyer-download-btn { font-size: 16px; padding: 12px 25px; }
}
