/* Wiregrass Home — WordPress & Elementor integration */

/* Skip link */
.sr-only:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--white); color: var(--black); padding: 12px 18px; }

/* Menus */
.nav li { position: relative; }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; margin: 0; padding: 10px 0; list-style: none; background: var(--white); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); flex-direction: column; gap: 0; z-index: 5; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu a { display: block; padding: 10px 18px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.nav .sub-menu a::after { display: none; }
.nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after, .nav .current_page_item > a::after { right: 0; }
.nav .current-menu-item > a { font-weight: 500; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.logo-img { max-height: 46px; width: auto; }
.logo em.tag { font-style: normal; }

/* Admin bar offsets */
.admin-bar .header { top: 60px; }
.admin-bar .header.fixed { top: 32px; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 1179px) { .admin-bar .header { top: 32px; } }
@media (max-width: 782px) { .admin-bar .header, .admin-bar .header.fixed, .admin-bar .drawer { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header.fixed { top: 0; } .admin-bar .drawer { top: 0; z-index: 100000; } }

/* Pages without a dark hero: the header sits in a black band */
.wh-no-hero .header { position: sticky; top: 0; background: var(--black); padding: 18px 0; }
.wh-no-hero .header.fixed { position: sticky; animation: none; }
.admin-bar.wh-no-hero .header { top: 32px; }
@media (max-width: 1179px) { .wh-no-hero .header { padding: 0; } }
@media (max-width: 782px) { .admin-bar.wh-no-hero .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.wh-no-hero .header { top: 0; } }

/* Elementor: our widgets render full sections */
.wh-builder .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.wh-builder .elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0; }
[class*="elementor-widget-wh-"] { margin-bottom: 0 !important; }
[class*="elementor-widget-wh-"] > .elementor-widget-container { margin: 0; padding: 0; }
.elementor-editor-active .reveal, .elementor-editor-preview .reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .stagger > * { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .about-media img, .elementor-editor-active .listing-img img { clip-path: none !important; }

/* Classic content */
.entry { max-width: 820px; font-size: 17px; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 300; margin-top: 1.6em; }
.entry h2 strong { color: var(--red); font-weight: 700; }
.entry h3 { font-size: 22px; font-weight: 500; margin-top: 1.4em; }
.entry a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry img { height: auto; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: .4em; }
.entry blockquote { margin: 1.6em 0; border-left: 3px solid var(--red); padding: 4px 0 4px 20px; font-family: var(--head); font-size: 20px; font-weight: 300; color: var(--ink); }
.entry-thumb { margin: 0 0 34px; }
.entry-thumb img { width: 100%; height: auto; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Post cards */
.post-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { background: var(--gray-bg); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .4); }
.post-card-img { display: block; overflow: hidden; background: #ddd; }
.post-card-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .eyebrow { margin-bottom: 14px; font-size: 14px; }
.post-card-body h2 { font-size: 22px; margin-bottom: 12px; }
.post-card-body p { font-size: 15px; }
.post-card-body .more { margin-top: auto; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pager .page-numbers { min-width: 44px; padding: 10px 14px; border: 1px solid #d3d3d8; text-align: center; font-weight: 500; }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.wh-outline { border: 1px solid var(--black); }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 520px; margin-top: 24px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 14px 16px; border: 1px solid #cfcfd5; font: inherit; }
.search-form .search-submit { padding: 0 24px; border: 0; background: var(--red); color: var(--white); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; cursor: pointer; }

/* Comments */
.comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid #d3d3d8; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid #e5e5e8; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcfd5; font: inherit; }
.comment-form .submit { padding: 14px 26px; border: 0; background: var(--red); color: var(--white); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; }

/* Elementor sets img { height: auto } — background photos and fixed-ratio images must still cover their box */
body .hero-bg img, body .page-hero .hero-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .listing .listing-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .wh-gallery .g-item img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .about-media img { width: 100%; max-width: none; aspect-ratio: 536 / 580; object-fit: cover; }
