/* =========================================================================
 *  South Wollo Tourism Theme — components.css
 *  Reusable component styles: header, footer, hero, cards, info cards, etc.
 * ======================================================================= */

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: var(--sw-shadow-sm);
}

.header-top {
    background: var(--sw-neutral-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.header-top__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.5rem;
}

.header-top__tagline {
    margin: 0;
    font-weight: 500;
}

.header-top__meta {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.header-top__meta li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-top__meta svg {
    fill: var(--sw-secondary);
    width: 14px;
    height: 14px;
}

.header-main {
    border-bottom: 1px solid var(--sw-neutral-100);
}

.header-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.75rem;
}

/* Branding */
.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo-mark {
    display: flex;
    flex-shrink: 0;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sw-neutral-900);
}

.site-logo-sub {
    font-size: 0.75rem;
    color: var(--sw-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Primary nav */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--sw-neutral-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--sw-radius-sm);
    transition: all var(--sw-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--sw-primary);
    background: var(--sw-neutral-50);
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--sw-radius-sm);
    box-shadow: var(--sw-shadow-lg);
    min-width: 220px;
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--sw-transition);
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--sw-radius-sm);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search form */
.search-form {
    max-width: 240px;
}

.search-form__inner {
    display: flex;
    align-items: center;
    border: 1px solid var(--sw-neutral-300);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color var(--sw-transition);
}

.search-form__inner:focus-within {
    border-color: var(--sw-primary);
}

.search-form__input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-form__submit {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--sw-neutral-500);
    display: flex;
    align-items: center;
    transition: color var(--sw-transition);
}

.search-form__submit:hover {
    color: var(--sw-primary);
}

.search-form__submit svg {
    fill: currentColor;
}

/* Menu toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--sw-neutral-800);
    border-radius: 2px;
    transition: all var(--sw-transition);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ---- Hero slider ---- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    max-height: 720px;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sw-secondary);
    margin: 0 0 0.75rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
    max-width: 540px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--sw-transition);
}

.hero__dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* ---- Quick links ---- */
.quick-links {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    padding-bottom: 1rem;
}

.quick-links__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-link-card {
    background: #fff;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    overflow: hidden;
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-lg);
}

.quick-link-card__link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
}

.quick-link-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--sw-radius-sm);
    background: var(--sw-neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-primary);
}

.quick-link-card__icon svg {
    fill: currentColor;
}

.quick-link-card__body {
    display: flex;
    flex-direction: column;
}

.quick-link-card__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--sw-neutral-900);
    margin: 0 0 0.25rem;
}

.quick-link-card__text {
    font-size: 0.85rem;
    color: var(--sw-text-muted);
}

/* ---- Cards ---- */
.card {
    background: #fff;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow-sm);
    overflow: hidden;
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-lg);
}

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sw-neutral-100);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__image--placeholder {
    background: linear-gradient(135deg, var(--sw-neutral-100), var(--sw-neutral-200));
}

.card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--sw-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__title {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.card__title a {
    color: var(--sw-neutral-900);
}

.card__title a:hover {
    color: var(--sw-primary);
}

.card__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--sw-text-muted);
    margin: 0 0 0.75rem;
}

.card__location svg {
    fill: var(--sw-secondary);
}

.card__excerpt {
    font-size: 0.9rem;
    color: var(--sw-text-muted);
    margin: 0 0 1rem;
    flex: 1;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--sw-neutral-600);
}

.card__meta-item svg {
    fill: var(--sw-primary);
}

.card__price {
    font-weight: 600;
    color: var(--sw-secondary);
    margin: 0 0 0.75rem;
}

.card__link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sw-primary);
    margin-top: auto;
}

.card__link:hover {
    color: var(--sw-primary-dark);
}

.card__rating {
    margin-bottom: 0.5rem;
}

/* Star rating */
.sw-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--sw-secondary);
}

.sw-star {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sw-star--empty {
    fill: var(--sw-neutral-300);
}

/* ---- Destination single ---- */
.destination-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.destination-hero__media {
    position: absolute;
    inset: 0;
}

.destination-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.destination-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 2rem;
}

.destination-hero__content .sw-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
}

.destination-hero__content .sw-crumb--current {
    color: #fff;
}

.destination-hero__category {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sw-secondary);
    margin: 0 0 0.5rem;
}

.destination-hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.destination-hero__location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.destination-hero__location svg {
    fill: var(--sw-secondary);
}

.destination-hero__rating {
    margin-top: 0.5rem;
}

/* Map embed */
.sw-map-embed {
    border-radius: var(--sw-radius-sm);
    overflow: hidden;
    box-shadow: var(--sw-shadow-sm);
}

/* Info card (sidebar) */
.info-card {
    background: #fff;
    border: 1px solid var(--sw-neutral-200);
    border-radius: var(--sw-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card__title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sw-primary);
    display: inline-block;
}

.info-card__list {
    margin: 0;
    padding: 0;
}

.info-card__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--sw-neutral-100);
}

.info-card__row:last-child {
    border-bottom: none;
}

.info-card__row dt {
    font-weight: 500;
    color: var(--sw-neutral-600);
    font-size: 0.9rem;
}

.info-card__row dd {
    margin: 0;
    text-align: right;
    color: var(--sw-neutral-900);
    font-size: 0.9rem;
    font-weight: 600;
}

.info-card__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.info-card__tags a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--sw-neutral-50);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--sw-neutral-700);
    transition: all var(--sw-transition);
}

.info-card__tags a:hover {
    background: var(--sw-primary);
    color: #fff;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--sw-neutral-900);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    padding: 3.5rem 1rem 2.5rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo-sub {
    font-size: 0.78rem;
    color: var(--sw-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all var(--sw-transition);
}

.footer-social a:hover {
    background: var(--sw-primary);
    transform: translateY(-2px);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-widget-title {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color var(--sw-transition);
}

.footer-links a:hover {
    color: var(--sw-secondary);
}

.footer-contact {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.25rem;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copyright,
.footer-credits {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.8);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sw-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sw-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--sw-transition);
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--sw-primary-dark);
    transform: translateY(-2px);
}

.back-to-top svg {
    fill: currentColor;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band__title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
}

.cta-band__lead {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 560px;
}

.cta-band__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Related destinations */
.related-destinations {
    padding-bottom: 4rem;
}

/* Shortcode grids */
.sw-shortcode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.sw-shortcode-grid--hospitality {
    grid-template-columns: repeat(4, 1fr);
}

.sw-sc-card {
    background: #fff;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow-sm);
    overflow: hidden;
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
}

.sw-sc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-lg);
}

.sw-sc-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sw-neutral-100);
}

.sw-sc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sw-sc-card:hover .sw-sc-card__img {
    transform: scale(1.05);
}

.sw-sc-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sw-neutral-100), var(--sw-neutral-200));
}

.sw-sc-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--sw-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.sw-sc-card__body {
    padding: 1.25rem;
}

.sw-sc-card__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.sw-sc-card__title a {
    color: var(--sw-neutral-900);
}

.sw-sc-card__title a:hover {
    color: var(--sw-primary);
}

.sw-sc-card__location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--sw-text-muted);
    margin: 0 0 0.5rem;
}

.sw-sc-card__excerpt {
    font-size: 0.9rem;
    color: var(--sw-text-muted);
    margin: 0 0 0.75rem;
}

.sw-sc-card__fee {
    font-weight: 600;
    color: var(--sw-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.sw-sc-card__rating {
    color: var(--sw-secondary);
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.sw-empty {
    text-align: center;
    padding: 2rem;
    color: var(--sw-text-muted);
}

@media (max-width: 900px) {
    .sw-shortcode-grid--hospitality {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sw-shortcode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sw-shortcode-grid,
    .sw-shortcode-grid--hospitality {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .header-top__meta {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-band__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--sw-shadow-lg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1rem 2rem;
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .primary-menu a {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--sw-neutral-100);
        border-radius: 0;
    }

    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: auto;
    }

    .search-form {
        display: none;
    }

    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 420px;
        height: 60vh;
    }
}

@media (max-width: 560px) {
    .quick-links__grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}
