/* ===========================================================
   Cashwise theme — supplemental styles
   - Decorative blob shapes for hero and contact sections
   - Carousel chrome (visual-only chevrons)
   - Section overrides theme.json can't express
   =========================================================== */

:root {
    --cw-blue: #1a3d8f;
    --cw-blue-dark: #0f2a6a;
    --cw-blue-light: #3a6dbf;
    --cw-red: #e30613;
    --cw-surface-blue: #eaf1fc;
    --cw-border: #dbe2ed;
    --cw-muted: #6b7280;
}

/* -----------------------------------------------------------
   Announcement bar
   ----------------------------------------------------------- */
.cw-announcement-bar {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.cw-announcement-bar a {
    color: #fff !important;
    text-decoration: none;
}

.cw-announcement-bar a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------
   Header — logo + navigation
   ----------------------------------------------------------- */
.cw-header {
    padding: 0.75rem 1.5rem;
}

.cw-header-inner {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    align-items: center;
    gap: 1.5rem;
}

.cw-header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.cw-header-logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
}

/* Desktop nav links */
.cw-header .wp-block-navigation__container {
    gap: 0 !important;
    flex-wrap: nowrap;
}

.cw-header .wp-block-navigation-item {
    position: relative;
    padding: 0 1.25rem;
}

.cw-header .wp-block-navigation-item + .wp-block-navigation-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.cw-header .wp-block-navigation-item__content {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 0.25rem 0;
    transition: color 0.15s ease;
}

.cw-header .wp-block-navigation-item__content:hover,
.cw-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    color: #fff !important;
    opacity: 0.85;
}

/* Burger button (mobile) */
.cw-header .wp-block-navigation__responsive-container-open,
.cw-header .wp-block-navigation__responsive-container-close {
    color: #fff !important;
    fill: #fff !important;
    padding: 0.5rem;
}

.cw-header .wp-block-navigation__responsive-container-open svg,
.cw-header .wp-block-navigation__responsive-container-close svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Overlay panel when burger is opened */
.cw-header .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--cw-blue) !important;
    padding: 4rem 1.5rem 2rem;
}

.cw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
}

.cw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    flex-direction: column;
    gap: 0.25rem !important;
    width: 100%;
}

.cw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    padding: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item + .wp-block-navigation-item::before {
    display: none;
}

.cw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 1rem 0.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

@media (max-width: 781px) {
    .cw-header {
        padding: 0.5rem 1rem;
    }

    .cw-header-logo img {
        height: 36px;
    }
}

/* -----------------------------------------------------------
   Hero section (universal banner — full-bleed, same on every route)
   ----------------------------------------------------------- */
.cw-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--cw-blue);
    background-image: url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 720px;
    padding: 0;
    display: block;
}

.cw-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 2rem 2rem;
    min-height: inherit;
}

.cw-hero-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    align-self: start;
    padding-top: 0.5rem;
}

.cw-hero-title {
    color: #fff !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cw-hero-logo {
    display: block;
    width: 460px;
    max-width: 100%;
    margin: 0 0 0 auto;
    height: auto;
}

.cw-hero-tagline {
    color: #fff !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
    margin: 1.25rem 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cw-hero-bot {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.cw-hero-strap {
    color: #5b9bd5;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    flex: 0 0 auto;
}

.cw-hero-association {
    color: #a8c0db;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .cw-hero {
        min-height: 480px;
    }
    .cw-hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 2rem 1.25rem;
        gap: 2.5rem;
    }
    .cw-hero-top {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }
    .cw-hero-logo {
        margin: 0 auto;
    }
    .cw-hero-bot {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        text-align: center;
    }
    .cw-hero-strap,
    .cw-hero-association {
        text-align: center;
        flex: 1 1 100%;
    }
}

/* -----------------------------------------------------------
   Section heading (Loan your Goods, Sell your Goods, Contact Us)
   ----------------------------------------------------------- */
.cw-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 0.5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.cw-section-heading::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--cw-blue);
    margin: 1rem auto 0;
}

.cw-section-heading--white::after {
    background: #fff;
}

/* -----------------------------------------------------------
   Loan band (full-width primary blue with category icons)
   ----------------------------------------------------------- */
.cw-loan-band {
    position: relative;
    background: var(--cw-blue);
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.cw-loan-band .cw-section-heading {
    color: #fff !important;
}

.cw-loan-categories {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 2.5rem 0.5rem;
    max-width: 1140px;
    margin: 0 auto;
    scrollbar-width: none;
}

.cw-loan-categories::-webkit-scrollbar { display: none; }

.cw-loan-cat {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.cw-loan-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-loan-band .cw-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.cw-chevron--left { left: 1.5rem; }
.cw-chevron--right { right: 1.5rem; }

/* -----------------------------------------------------------
   Sell grid (3 surface-blue rounded cards)
   ----------------------------------------------------------- */
.cw-sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1170px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}

.cw-sell-card {
    background: #fff;
    border: 2px solid #cfddef;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cw-sell-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .cw-sell-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   Loan grid (square framed item tiles, 3 columns)
   ----------------------------------------------------------- */
.cw-loan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1170px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}

.cw-loan-tile {
    background: #fff;
    border: 2px solid #cfddef;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cw-loan-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .cw-loan-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cw-loan-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   Contact locations card
   ----------------------------------------------------------- */
.cw-contact {
    position: relative;
    padding: 4rem 1.5rem;
    background: #fff;
    overflow: hidden;
}

.cw-contact::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -100px;
    bottom: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cw-blue-light), transparent 70%);
    opacity: 0.25;
    pointer-events: none;
}

.cw-contact-card {
    max-width: 1170px;
    margin: 2.5rem auto 0;
    padding: 2.5rem 3rem;
    border: 2px solid #cfddef;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.cw-contact-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cw-blue);
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--cw-border);
    padding-bottom: 0.75rem;
}

.cw-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cw-contact-row .cw-icon {
    flex: 0 0 22px;
    height: 22px;
    color: var(--cw-blue);
    margin-top: 2px;
}

.cw-contact-row strong {
    display: block;
    font-weight: 600;
    color: var(--cw-blue);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cw-contact-row p,
.cw-contact-row .cw-stack {
    margin: 0;
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cw-see-map {
    display: inline-block;
    margin-top: 0.5rem;
    background: var(--cw-blue);
    color: #fff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-decoration: none;
}

.cw-announcements-btn {
    display: inline-block;
    background: var(--cw-red);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
}

.cw-announcements-btn::after {
    content: " ›";
    font-weight: 400;
}

@media (max-width: 768px) {
    .cw-contact-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* -----------------------------------------------------------
   Home bullets and dog photo
   ----------------------------------------------------------- */
.cw-bullets {
    padding: 3.5rem 1.5rem;
    background: #fff;
}

.cw-bullets-grid {
    max-width: 1170px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cw-bullets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.cw-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cw-blue);
}

.cw-bullets li a {
    color: var(--cw-blue);
    font-weight: 500;
}

.cw-bullets-photo {
    position: relative;
}

.cw-bullets-photo img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .cw-bullets-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.cw-footer {
    background: var(--cw-blue);
    color: #fff;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.cw-footer .cw-logo-plate {
    width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
}

.cw-footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 1140px;
    margin: 0 auto 1.5rem;
}

.cw-footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cw-footer-nav a {
    color: #fff !important;
    font-size: 0.875rem;
    text-decoration: none;
}

.cw-footer-meta {
    display: flex;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 600px) {
    .cw-footer-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
