/* ===================================================
   Life in Carolina Beach — Main Stylesheet
   Color Palette:
     Navy      #1d3a5c
     Gold      #c9a87a
     Teal      #2d7d8e
     Dark Teal #1a5e6e
     Sand      #f7f5ef
     White     #ffffff
     Text      #333333
=================================================== */

/* --- Reset & Base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    color: #333333;
    background: #f7f5ef;
    line-height: 1.7;
}

a { color: #2d7d8e; text-decoration: none; transition: color .2s; }
a:hover { color: #1d3a5c; }

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

/* --- Typography ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1d3a5c;
    line-height: 1.25;
    margin-bottom: .5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; }

/* --- Layout ------------------------------------- */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

@media (max-width: 900px) {
    .content-area { grid-template-columns: 1fr; }
}

/* --- Header ------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #c9a87a;
    padding: 1.25rem 0 1rem;
    text-align: center;
}

.site-branding { display: inline-block; }

.site-logo img {
    max-height: 90px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #1d3a5c;
    letter-spacing: .02em;
}

.site-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: .95rem;
    color: #2d7d8e;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: .15rem;
}

/* --- Navigation --------------------------------- */
.site-nav {
    background: #1d3a5c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.site-nav__spacer {
    flex: 1 1 0;
    min-width: 0;
}

.site-nav__center {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-nav__end {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7f5ef;
    padding: 0.5rem;
    line-height: 0;
    border-radius: 4px;
    transition: background .2s, color .2s;
}

.nav-social__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #c9a87a;
}

.nav-social__icon {
    display: block;
    width: 22px;
    height: 22px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li a {
    display: block;
    color: #f7f5ef;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
    background: #c9a87a;
    color: #1d3a5c;
}

/* Category color accents in nav */
.nav-menu .cat-specials > a { border-bottom: 3px solid #2d7d8e; }
.nav-menu .cat-events   > a { border-bottom: 3px solid #2d7d8e; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f7f5ef;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .75rem 0 .75rem 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .site-nav__inner {
        flex-wrap: wrap;
        align-items: center;
    }
    .site-nav__spacer {
        display: none;
    }
    .site-nav__center {
        order: 2;
        width: 100%;
        flex: 1 1 100%;
    }
    .site-nav__end {
        order: 1;
        width: 100%;
        flex: 1 1 100%;
        justify-content: flex-end;
    }
    .nav-toggle {
        display: block;
        padding: .75rem 0 .75rem 1rem;
    }
    .nav-menu { width: 100%; flex-direction: column; display: none; }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: .65rem 1.5rem; border-left: 3px solid transparent; }
    .nav-menu li a:hover { border-left-color: #c9a87a; background: rgba(255,255,255,.08); }
}

/* --- Hero Banner -------------------------------- */
.hero-banner {
    background: linear-gradient(160deg, #1d3a5c 0%, #1a5e6e 60%, #2d7d8e 100%);
    color: #f7f5ef;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #c9a87a 0%, #e8c98a 50%, #c9a87a 100%);
}

.hero-banner h1 {
    color: #ffffff;
    font-size: 2.8rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-banner p {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: .75rem auto 0;
}

/* --- Category Badges ---------------------------- */
.cat-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .2em .7em;
    border-radius: 3px;
    margin-bottom: .5rem;
    color: #fff;
}

.cat-badge-specials { background: #2d7d8e; }
.cat-badge-events   { background: #2d7d8e; }
.cat-badge-blog,
.cat-badge-default  { background: #1d3a5c; }

/* --- Post Cards --------------------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.post-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}

.post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-thumb-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1d3a5c, #2d7d8e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-thumb-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: .3;
}

/* Specials card top accent */
.post-card.is-specials { border-top: 4px solid #2d7d8e; }
.post-card.is-events   { border-top: 4px solid #2d7d8e; }
.post-card.is-blog     { border-top: 4px solid #c9a87a; }

.post-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    font-size: .82rem;
    color: #888;
    margin-bottom: .35rem;
}

.post-card-title {
    font-size: 1.15rem;
    margin-bottom: .6rem;
}

.post-card-title a { color: #1d3a5c; }
.post-card-title a:hover { color: #2d7d8e; }

.post-card-excerpt {
    font-size: .92rem;
    color: #555;
    flex: 1;
    margin-bottom: 1rem;
}

.post-card-footer {
    margin-top: auto;
}

.read-more {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: #2d7d8e;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.read-more:hover { color: #1d3a5c; }

/* --- Single Post -------------------------------- */
.post-single { background: #fff; border-radius: 6px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.post-single .post-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }

.post-single .post-title { font-size: 2.1rem; }

.post-meta {
    font-size: .87rem;
    color: #888;
    margin-top: .4rem;
}

.post-meta a { color: #888; }
.post-meta a:hover { color: #2d7d8e; }

.post-content { line-height: 1.8; }

.post-content h2,
.post-content h3 { margin-top: 1.75em; }

.post-content blockquote {
    border-left: 4px solid #c9a87a;
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: #faf8f3;
    font-style: italic;
    color: #555;
}

.post-content ul, .post-content ol {
    margin: 0 0 1.2em 1.5em;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: .9rem;
}

.post-nav a { color: #1d3a5c; font-weight: 600; }
.post-nav a:hover { color: #2d7d8e; }

/* --- Specials/Events Special Styling ------------ */
.is-specials-single .post-header {
    background: linear-gradient(135deg, #1a3d4a, #1a5e6e);
    color: #fff;
    margin: -2rem -2rem 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 6px 6px 0 0;
}

.is-specials-single .post-header .post-title,
.is-specials-single .post-header .post-meta,
.is-specials-single .post-header .post-meta a { color: #fff; }

.is-events-single .post-header {
    background: linear-gradient(135deg, #1a3d4a, #1a5e6e);
    color: #fff;
    margin: -2rem -2rem 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 6px 6px 0 0;
}

.is-events-single .post-header .post-title,
.is-events-single .post-header .post-meta,
.is-events-single .post-header .post-meta a { color: #fff; }

/* --- Category Archive Headers ------------------- */
.archive-header {
    background: #1d3a5c;
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.archive-header.specials-archive { background: linear-gradient(135deg, #1d3a5c, #2d7d8e); }
.archive-header.events-archive   { background: linear-gradient(135deg, #1d3a5c, #2d7d8e); }

.archive-header h1 { color: #fff; }
.archive-header p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* --- Sidebar ------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.widget {
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

.widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: #1d3a5c;
    padding-bottom: .6rem;
    border-bottom: 2px solid #c9a87a;
    margin-bottom: 1rem;
}

/* Subscribe widget */
.subscribe-widget { background: #1d3a5c; color: #fff; }
.subscribe-widget .widget-title { color: #c9a87a; border-bottom-color: #c9a87a; }
.subscribe-widget p { color: rgba(255,255,255,.8); font-size: .9rem; }

.subscribe-form { display: flex; flex-direction: column; gap: .65rem; margin-top: .75rem; }

.subscribe-form input[type="email"] {
    width: 100%;
    padding: .6rem .9rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
}

.subscribe-form button {
    background: #c9a87a;
    color: #1d3a5c;
    border: none;
    border-radius: 4px;
    padding: .65rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.subscribe-form button:hover { background: #e8c98a; }

/* About widget */
.about-widget .about-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c9a87a;
    margin: 0 auto .75rem;
}

.about-widget { text-align: center; }
.about-widget p { font-size: .9rem; color: #555; }

/* Recent posts widget */
.widget ul { list-style: none; }
.widget ul li {
    padding: .5rem 0;
    border-bottom: 1px solid #f0ede5;
    font-size: .9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #333; }
.widget ul li a:hover { color: #2d7d8e; }

/* --- Pagination --------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 4px;
    font-size: .9rem;
    background: #fff;
    color: #1d3a5c;
    border: 1px solid #ddd;
    transition: all .2s;
}

.pagination a:hover, .pagination .current {
    background: #1d3a5c;
    color: #fff;
    border-color: #1d3a5c;
}

/* --- Gold Divider ------------------------------- */
.gold-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a87a, transparent);
    margin: 2rem 0;
}

/* --- Footer ------------------------------------- */
.site-footer {
    background: #1d3a5c;
    color: rgba(255,255,255,.75);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
    color: #c9a87a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(201,168,122,.3);
}

.footer-col p, .footer-col a {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

.footer-col a:hover { color: #c9a87a; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .35rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #c9a87a; }

/* --- Utility ------------------------------------ */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }

/* --- 404 ---------------------------------------- */
.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 h1 { font-size: 6rem; color: #c9a87a; line-height: 1; }
.page-404 h2 { color: #1d3a5c; margin-bottom: 1rem; }

/* --- Buttons ------------------------------------ */
.btn {
    display: inline-block;
    padding: .65rem 1.4rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
}

.btn-primary { background: #2d7d8e; color: #fff; }
.btn-primary:hover { background: #1d3a5c; color: #fff; }

.btn-outline { background: transparent; border-color: #2d7d8e; color: #2d7d8e; }
.btn-outline:hover { background: #2d7d8e; color: #fff; }

/* --- Comments ----------------------------------- */
.comments-area { margin-top: 2.5rem; }
.comment-list  { list-style: none; }

.comment-body {
    background: #faf8f3;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid #c9a87a;
}

.comment-author { font-weight: 700; color: #1d3a5c; }
.comment-metadata { font-size: .8rem; color: #999; }
.comment-content { margin-top: .5rem; font-size: .95rem; }

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    margin-bottom: .75rem;
    background: #fff;
}

.comment-form textarea { height: 130px; resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2d7d8e;
    box-shadow: 0 0 0 3px rgba(45,125,142,.15);
}

/* --- Specials page permalink note ----------------------- */
.specials-permalink-note {
    text-align: center;
    color: #aaa;
    margin-top: -1rem;
}

.specials-permalink-note a {
    color: #aaa;
}

.specials-permalink-note a:hover {
    color: #2d7d8e;
}

/* --- Comment form checkbox fields ----------------------- */
.comment-form-cookies-consent,
.comment-form-mailpoet {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.comment-form-cookies-consent label,
.comment-form-mailpoet label {
    display: inline;
    font-weight: normal;
    margin: 0;
}

.comment-form-cookies-consent input[type="checkbox"],
.comment-form-mailpoet input[type="checkbox"] {
    flex-shrink: 0;
    width: auto;
    margin: 0;
}

/* --- Category archive list (Specials & Events) ---------- */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.archive-list-month-heading {
    font-size: 1.4rem;
    color: #1d3a5c;
    padding-bottom: .4rem;
    border-bottom: 2px solid #c9a87a;
    margin-bottom: .75rem;
}

.archive-list-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list-item {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid #f0ede5;
    font-size: .95rem;
}

.archive-list-item:last-child {
    border-bottom: none;
}

.archive-list-date {
    flex-shrink: 0;
    min-width: 90px;
    font-size: .8rem;
    color: #999;
    font-variant-numeric: tabular-nums;
}

.archive-list-item a {
    color: #1d3a5c;
}

.archive-list-item a:hover {
    color: #2d7d8e;
}