/*
Theme Name: Fred Douglas Place
Theme URI: http://freddouglasplace.local:8080
Author: Codeverted
Description: Custom one-page WordPress theme for Fred Douglas Place
Version: 1.0
Text Domain: fred-douglas-place
*/

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: "Assistant", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: #fff;
    color: #222;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

section[id] {
    scroll-margin-top: 110px;
}

section#home {
    scroll-margin-top: 180px;
}

section#about {
    scroll-margin-top: 190px;
}

.container-site {
    max-width: 1470px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Top Header Bar */
.header-topbar {
    width: 100%;
    background: #0d4574;
    color: #fff;
    font-family: "Assistant", Arial, sans-serif;
    font-size: 14px;
}

.header-topbar-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-topbar-left,
.header-topbar-right {
    display: flex;
    align-items: center;
}

.header-topbar-left {
    gap: 24px;
}

.header-topbar-right {
    gap: 34px;
}

.header-topbar a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.header-topbar a:hover {
    opacity: 0.8;
}

.header-topbar i {
    font-size: 14px;
    line-height: 1;
}

.header-topbar-right a {
    font-size: 15px;
}

.site-header {
    background: #fff;
    /* padding: 28px 0 26px; */
    position: sticky;
    top: 0;
    z-index: 999;
    transition: padding 0.25s ease, background-color 0.25s ease;
}

.header-inner {
    justify-content: flex-start;
    align-items: center;
}

.logo {
    width: 24%;
    max-width: 250px;
    flex-shrink: 0;
    padding: 0 15px;
}

.logo img {
    width: auto;
    display: block;
}

.main-nav {
    transition: all 0.3s ease, transform 0.3s ease;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    font-family: "Cardo", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #2c2c2c;
    transition: color 0.2s ease;
    padding: 10px 20px;
}

.main-nav a.is-active,
.mobile-nav a.is-active {
    color: #b99b6b;
}

.main-nav a.is-active::after {
    width: 100%;
}

.main-nav a:hover {
    color: #1b2f73;
    background-color: transparent;
}

header .main-nav li a:hover::before {
    width: 30px;
}

header .main-nav li a::before {
    content: '';
    background: #04074A;
    display: block;
    width: 0;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

/* Mobile toggle button */
.mobile-nav-toggle {
    display: none;
    width: 35px;
    height: 35px;
    border: 0;
    background: #04074A;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: none;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.25s ease;
}

/* Mobile dropdown area */
.mobile-nav-wrap {
    padding-top: 12px;
}

.mobile-nav {
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    font-family: "Cardo", serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: #2c2c2c;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav a:hover {
    color: #1b2f73;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .header-topbar {
        font-size: 12px;
    }

    .header-topbar-inner {
        min-height: 40px;
        gap: 14px;
    }

    .header-topbar-left {
        gap: 14px;
    }

    .header-topbar-right {
        gap: 18px;
    }

    .header-topbar a {
        gap: 6px;
    }

    .header-topbar-right a {
        font-size: 13px;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .logo {
        width: auto;
        max-width: 150px;
        flex: 0 0 150px;
        margin-right: 0;
        padding: 0;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    .main-nav {
        flex: 1 1 auto;
        margin-left: 0 !important;
    }

    .main-nav ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0;
    }

    .main-nav a {
        font-size: 15px;
        padding: 8px 10px;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {

    .header-topbar {
        display: block;
        font-size: 12px;
    }

    .header-topbar-inner {
        min-height: 40px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 0;
    }

    .header-topbar-left,
    .header-topbar-right {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-topbar a {
        gap: 6px;
    }

    .header-topbar-right a {
        font-size: 12px;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: auto;
        max-width: 220px;
        margin-right: 0;
        margin-bottom: 0;
        padding: 0;
        text-align: left;
    }

    .logo a {
        display: inline-block;
    }

    .mobile-nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .header-topbar {
        font-size: 11px;
    }

    .header-topbar-inner {
        min-height: auto;
        gap: 8px;
        padding: 8px 0;
        flex-direction: column;
    }

    .header-topbar-left,
    .header-topbar-right {
        width: 100%;
        gap: 10px;
        justify-content: center;
    }

    .header-topbar-left {
        flex-wrap: wrap;
    }

    .header-topbar-right {
        gap: 16px;
    }

    .header-topbar a {
        gap: 5px;
    }

    .header-topbar i {
        font-size: 12px;
    }

    .logo {
        width: unset;
        max-width: 180px;
    }

    .logo img {
        max-width: 180px;
    }

    .mobile-nav a {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }
}

@media (min-width: 992px) {

    .site-header.is-shrunk .header-inner {
        position: relative;
        justify-content: center !important;
        padding: 20px 0;
    }

    .site-header.is-shrunk .logo {
        position: absolute;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .site-header.is-shrunk .main-nav {
        position: relative;
        margin-left: 0 !important;
    }

    .site-header.is-shrunk .main-nav ul {
        justify-content: center;
    }

    .site-header.is-shrunk .main-nav a {
        padding: 4px 14px;
    }
}

/*** Single Page ***********************************/

.page-main {
    padding: 80px 0 140px 0;
    background: #f7f7f7;
    font-family: "Assistant", Arial, sans-serif !important;
}

.page-entry {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.page-title {
    margin: 0 0 60px;
    font-size: 42px;
    line-height: 1.2;
}

.page-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5 {
    margin-top: 32px;
    margin-bottom: 32px;
}

.page-content h4 {
    font-weight: 600;
}

.page-content p {
    margin-bottom: 20px;
}

/*** Hero Section ***********************************/

.hero-section {
    padding-top: 0;
    padding-bottom: 40px;
}

.hero-carousel {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #ddd;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.hero-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-overlay-box {
    background: rgba(25, 20, 20, 0.68);
    text-align: center;
    padding: 36px 50px 28px;
    min-width: 640px;
    max-width: 820px;
}

.hero-title {
    margin: 0;
    font-family: "Cardo", serif;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    min-width: 210px;
    background: #04074A;
    border: 2px solid #04074A;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-family: "Cardo", serif;
    font-size: 20px;
    padding: 10px 30px;
    margin-top: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
    border: 2px solid #1b2f73;
    background-color: #fff;
    color: #1b2f73;
}

.hero-slider-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}

.hero-slider-arrow {
    border: 0;
    background: transparent;
    color: #111;
    font-size: 32px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    font-family: "Assistant", Arial, sans-serif;
}

.hero-slider-arrow:hover {
    color: #04074A;
}

.hero-slider-count {
    font-family: "Assistant", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-count-sep {
    color: #444;
}

@media (max-width: 1199.98px) {
    .hero-slide {
        height: 540px;
    }

    .hero-overlay-box {
        min-width: 0;
        width: 78%;
        padding: 30px 36px 24px;
    }

    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 991.98px) {
    .hero-slide {
        height: 460px;
    }

    .hero-overlay-box {
        width: 86%;
        padding: 26px 28px 22px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-btn {
        min-width: 180px;
        font-size: 18px;
        padding: 12px 24px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 20px;
        padding-bottom: 25px;
    }

    .hero-slide {
        height: 320px;
    }

    .hero-overlay-content {
        padding: 15px;
    }

    .hero-overlay-box {
        width: 92%;
        padding: 18px 16px 16px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .hero-btn {
        min-width: 150px;
        font-size: 16px;
        padding: 10px 18px;
    }

    .hero-slider-bottom-controls {
        gap: 12px;
        margin-top: 10px;
    }

    .hero-slider-arrow {
        font-size: 24px;
    }

    .hero-slider-count {
        font-size: 14px;
    }
}

/*** About Section ***********************************/

.about-section {
    padding-top: 60px;
    padding-bottom: 70px;
}

.about-box {
    background: #f8f8f8;
}

.about-content {
    padding: 75px 20%;
    height: 100%;
}

.about-title {
    margin: 0;
    font-family: "Cardo", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    color: #2f2a2a;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.about-divider {
    display: block;
    width: 34px;
    height: 1px;
    background: #2d3d8f;
    margin: 18px auto 34px;
}

.about-text {
    max-width: 610px;
    margin: 0 auto;
    padding-right: 14px;
    font-family: "Assistant", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #6b4f4f;
    text-align: justify;
}

.about-text p {
    margin: 0 0 22px;
    text-align: justify;
    hyphens: auto;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image-wrap {
    height: 100%;
    min-height: 560px;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet / small desktop */
@media (max-width: 1199.98px) {
    .about-section {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .about-content {
        padding: 40px 28px;
    }

    .about-title {
        font-size: 30px;
        max-width: 360px;
    }

    .about-text {
        font-size: 16px;
        max-width: 100%;
        padding-right: 0;
    }

    .about-image-wrap {
        min-height: 420px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .about-content {
        padding: 30px 20px;
    }

    .about-title {
        font-size: 26px;
        max-width: 300px;
    }

    .about-divider {
        margin: 14px auto 22px;
    }

    .about-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-image-wrap {
        min-height: 280px;
    }
}

/*** Single Post Home Page Section ***********************************/

.latest-post-section {
    padding: 50px 0 90px;
    background: #fff;
}

.latest-post-card {
    max-width: 1470px;
    margin: 0 auto;
}

/* Banner: centered and about 80% width */
.latest-post-banner {
    width: 80%;
    max-width: 1176px;
    margin: 0 auto 38px;
}

.latest-post-banner a {
    display: block;
    overflow: hidden;
}

.latest-post-banner img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.latest-post-banner a:hover img {
    transform: scale(1.025);
}

/* Content below banner */
.latest-post-content {
    width: 80%;
    max-width: 1176px;
    margin: 0 auto;
    text-align: center;
}

.latest-post-title {
    font-family: "Cardo", serif;
    font-size: 35px;
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 20px;
}

.latest-post-title a {
    color: #222;
    text-decoration: none;
}

.latest-post-title a:hover {
    color: #05055c;
}

.latest-post-excerpt {
    font-size: 18px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 30px;
}

.latest-post-excerpt p:last-child {
    margin-bottom: 0;
}

.latest-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    height: 56px;
    padding: 0 34px;
    background: #05055c;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.latest-post-button:hover {
    background: #222;
    color: #fff;
}

.latest-post-banner {
    width: 100%;
    margin: 0 0 35px;
}

/* Tablet */
@media (max-width: 1199px) {
    .latest-post-banner,
    .latest-post-content {
        width: 90%;
    }

    .latest-post-banner img {
        height: 330px;
    }

    .latest-post-title {
        font-size: 42px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .latest-post-section {
        padding: 35px 0 60px;
    }

    .latest-post-banner,
    .latest-post-content {
        width: 100%;
    }

    .latest-post-banner {
        margin-bottom: 28px;
    }

    .latest-post-banner img {
        height: 230px;
    }

    .latest-post-title {
        font-size: 30px;
    }

    .latest-post-excerpt {
        font-size: 16px;
        line-height: 1.7;
    }

    .latest-post-button {
        width: 100%;
    }
}

/*** Single Post Section ***********************************/

.single-post-page {
    padding: 60px 0 80px;
    background: #f7f8fa;
}

.single-post-content {
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.single-post-header {
    padding: 48px 56px 28px;
    text-align: center;
}

.single-post-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f527f;
}

.single-post-title {
    margin: 0;
    font-family: "Cardo", serif;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
    color: #2b1b14;
}

.single-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-post-body {
    padding: 40px 56px 20px;
    font-size: 18px;
    line-height: 1.75;
    color: #222;
}

.single-post-body p {
    margin-bottom: 22px;
}

.single-post-form-section {
    margin: 20px 56px 56px;
    padding: 40px;
    background: #f8f8f8;
    border: 1px solid #e4edf3;
    border-radius: 16px;
}

.single-post-form-heading {
    text-align: center;
    margin-bottom: 28px;
}

.single-post-form-heading h2 {
    margin: 0 0 8px;
    color: #0f527f;
    font-size: 30px;
}

.single-post-form-heading p {
    margin: 0;
    color: #555;
}

.single-post-form-section .ff-btn-submit {
    background: #0f527f !important;
    border-color: #0f527f !important;
    border-radius: 999px !important;
    padding: 13px 34px !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .single-post-page {
        padding: 30px 0 50px;
    }

    .single-post-content {
        border-radius: 0;
        box-shadow: none;
    }

    .single-post-header,
    .single-post-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .single-post-form-section {
        margin: 20px 22px 36px;
        padding: 28px 20px;
    }
}

/*** Footer Section ***********************************/

.site-footer {
    background: #1d1d1d;
    color: #fff;
    padding: 30px 0;
}

.site-footer p {
    margin: 0;
}

.site-footer .privacy-policy {
    color: #6ea8fe;
}