/* ================================================================
   Key West Charter Boats — site-specific design layer
   (keywestcharterboat.net only). Loaded AFTER assets/style.css
   (see config.keywestcharterboat.php 'custom_css'), so nothing here
   touches any other site on this engine.

   Built after David called the trade-directory template "boring,
   like an 80 year old graphic designer" — this is a real design
   pass, not a palette + hero-photo swap: weathered dock-tag listing
   cards (punched grommet hole, laminated border, slight tilt on
   hover), a wave-shaped hero divider instead of a hard rectangle,
   a rope-twist seam on the top bar, and a bold condensed poster
   headline face (Anton) instead of the shared Poppins everyone else
   uses. Sand/twilight/sunset palette pulled directly from the hero
   photo (a real 1989 charter boat at sunset in Key West harbor).
   ================================================================ */

:root {
    --kw-sunset:  #E8763A; /* fire-orange — matches colors.accent */
    --kw-rope:    #8B6A3F; /* weathered manila-rope brown */
    --kw-tag:     #FDF7EA; /* laminated dock-tag cream */
    --kw-ink:     #22284A; /* deep twilight — matches colors.topbar_bg */
    --kw-teal:    #1F5C56; /* seagrass teal, small accents only */
}

/* ---- sun-bleached sand grain on the whole page ---- */
body {
    background-color: var(--c-bg);
    background-image:
        radial-gradient(rgba(139,106,63,0.07) 1px, transparent 1.3px),
        radial-gradient(rgba(232,118,58,0.04) 1px, transparent 1.6px);
    background-size: 4px 4px, 7px 7px;
    background-position: 0 0, 2px 2px;
}

/* ---- top bar: a twisted rope seam instead of a flat border ---- */
.topbar {
    box-shadow: none;
    border-bottom: 4px solid var(--kw-rope);
    position: relative;
}
.topbar::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.35) 0 4px,
        rgba(0,0,0,0.12) 4px 8px
    );
}
.brand { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.02em; font-size: 1.5rem; text-transform: uppercase; }
.nav a.nav-cta { background: var(--kw-sunset); border-radius: 6px; }

/* ---- hero: wave divider instead of a hard rectangle bottom edge ---- */
.hero { padding-bottom: 76px; }
.hero h1 { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; font-size: 2.7rem; }
.hero-photo::before { background: linear-gradient(180deg, rgba(34,40,74,0.35) 0%, rgba(34,40,74,0.30) 45%, rgba(34,40,74,0.72) 100%); }
.hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C180,58 320,4 500,26 C680,48 800,6 1000,24 C1120,36 1160,30 1200,20 L1200,60 L0,60 Z' fill='%23FBF3E4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 100% 100%;
}
.searchbox button, .btn-hero { background: var(--kw-sunset); }

/* ---- section headings pick up the poster face too ---- */
.welcome h2, .section-title, h2 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.welcome { padding-top: 44px; }

/* ---- trust points: brass-plaque icon badges ---- */
.trust-icon { background: var(--kw-tag); border: 2px solid var(--kw-rope); border-radius: 50%; }

/* ---- charter-type tiles: life-ring styled icon badge ---- */
.tile { background: var(--kw-tag); border: 1px solid rgba(139,106,63,0.35); }
.tile:hover { border-color: var(--kw-sunset); box-shadow: 0 8px 20px rgba(139,106,63,0.22); }
.tile .t-icon {
    background: var(--kw-tag);
    border: 3px solid var(--kw-ink);
    box-shadow: 0 0 0 2px var(--kw-tag), 0 0 0 3px var(--kw-ink), 0 0 0 5px transparent;
    background-image: repeating-conic-gradient(var(--kw-sunset) 0 45deg, var(--kw-tag) 45deg 90deg);
    border-radius: 50%;
}

/* ---- listing cards: weathered dock tag, not a generic white rounded rect ---- */
.card {
    background: var(--kw-tag);
    border: 2px solid var(--kw-rope);
    border-radius: 4px 16px 4px 16px;
    box-shadow: 2px 3px 0 rgba(139,106,63,0.25), 0 8px 18px rgba(34,40,74,0.08);
    position: relative;
    padding-left: 30px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
    /* punched grommet hole, top-left, like a real tag */
    content: "";
    position: absolute; top: 16px; left: 12px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--c-bg);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35), 0 0 0 2px var(--kw-rope);
}
.card:hover { transform: rotate(-0.6deg) translateY(-3px); box-shadow: 3px 5px 0 rgba(139,106,63,0.3), 0 14px 26px rgba(34,40,74,0.14); }
.card.tier-premium { border-color: var(--kw-sunset); box-shadow: 2px 3px 0 rgba(232,118,58,0.3), 0 10px 22px rgba(232,118,58,0.16); }
.card.tier-featured { border-color: var(--kw-ink); border-width: 2.5px; }
.card h3 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.02rem; }
.avatar { border-radius: 6px; font-family: var(--font-heading); font-weight: 400; }
.badge-premium { background: var(--kw-sunset); }
.badge-featured { background: var(--kw-ink); }

/* ---- buttons: stamped-plaque feel via the poster face ---- */
.btn { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; border-radius: 6px; }
.btn-outline { border-color: var(--kw-ink); color: var(--kw-ink); }

/* ---- detail page: dock-tag quote pull for the editorial description ---- */
.detail-head h1 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }
.editorial-quote {
    border-left: 4px solid var(--kw-sunset);
    color: var(--kw-ink);
    font-style: italic;
}

/* ---- packages pick up the poster price treatment ---- */
.pkg .price { font-family: var(--font-heading); font-weight: 400; }
.pkg.pkg-highlight { border-color: var(--kw-sunset); box-shadow: 0 8px 24px rgba(232,118,58,0.16); }

/* ---- footer: deep twilight, rope seam on top ---- */
.site-footer { background: var(--kw-ink); border-top: 4px solid var(--kw-rope); }
.footer-name { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }

/* ---- filter/pagination links warm up to match ---- */
.filter-links a.current, .pagination .current { background: var(--kw-ink); }
