/*
Theme Name: Lake Area Social
Description: Community hub for lake-area businesses, events, rentals, and lake condition reports.
Version: 2.0
Author: Randall's Place
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Color */
    --las-ink: #1B2622;
    --las-deep-water: #123C4D;
    --las-marina: #2E7D6B;
    --las-marina-dark: #21594C;
    --las-buoy: #E8703A;
    --las-buoy-dark: #C6572A;
    --las-plank: #C9A776;
    --las-plank-light: #E8DCC4;
    --las-seafoam: #EEF3EF;
    --las-white: #FFFFFF;
    --las-line: #DDE5E0;

    /* Type */
    --las-font-display: 'Fraunces', Georgia, serif;
    --las-font-body: 'Inter', -apple-system, sans-serif;
    --las-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Scale */
    --las-radius: 4px;
    --las-radius-lg: 10px;
    --las-shadow: 0 1px 3px rgba(18, 60, 77, 0.08);
    --las-shadow-hover: 0 10px 28px rgba(18, 60, 77, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--las-font-body);
    color: var(--las-ink);
    background: var(--las-white);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--las-font-display);
    color: var(--las-deep-water);
    margin-top: 0;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--las-marina-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--las-buoy); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--las-buoy);
    outline-offset: 2px;
}

.las-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.las-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--las-deep-water);
    color: var(--las-white);
    padding: 12px 22px;
    border-radius: var(--las-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.las-btn:hover { background: var(--las-marina-dark); color: var(--las-white); transform: translateY(-1px); }
.las-btn:active { transform: translateY(0); }

.las-btn-accent { background: var(--las-buoy); }
.las-btn-accent:hover { background: var(--las-buoy-dark); }

.las-btn-outline {
    background: transparent;
    border: 1.5px solid var(--las-white);
    color: var(--las-white);
}
.las-btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--las-white); }

/* ============================================
   BADGES & TAGS
   ============================================ */
.las-badge-featured {
    background: var(--las-buoy);
    color: var(--las-white);
    font-family: var(--las-font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
}

.las-badge-advisory {
    background: var(--las-buoy-dark);
    color: var(--las-white);
    font-family: var(--las-font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
}

.las-tag-lake {
    font-family: var(--las-font-mono);
    font-size: 12px;
    color: var(--las-marina-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ============================================
   GRID + CARDS
   ============================================ */
.las-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.las-card {
    border: 1px solid var(--las-line);
    border-radius: var(--las-radius-lg);
    overflow: hidden;
    background: var(--las-white);
    box-shadow: var(--las-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}
.las-card:hover { box-shadow: var(--las-shadow-hover); transform: translateY(-3px); }

.las-card img { width: 100%; height: 180px; object-fit: cover; display: block; }

.las-card-body { padding: 18px; }

.las-card-body h3 { margin-bottom: 6px; }
.las-card-body h3 a { color: var(--las-deep-water); }
.las-card-body h3 a:hover { color: var(--las-buoy); }

.las-card-meta {
    font-size: 13.5px;
    color: #5B6B63;
    margin-top: 5px;
}

/* Diagonal "Featured" ribbon in the card's top-left corner.
   .las-card has overflow:hidden, which clips the rotated ends cleanly. */
.las-ribbon-featured {
    position: absolute;
    top: 18px;
    left: -38px;
    width: 140px;
    transform: rotate(-45deg);
    background: var(--las-buoy);
    color: var(--las-white);
    font-family: var(--las-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 4px 0;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* ============================================
   FILTER BAR
   ============================================ */
.las-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
    align-items: center;
    padding: 16px 18px;
    background: var(--las-seafoam);
    border-radius: var(--las-radius-lg);
}

.las-filter-bar select, .las-filter-bar input {
    padding: 9px 14px;
    border: 1px solid var(--las-line);
    border-radius: var(--las-radius);
    font-family: var(--las-font-body);
    background: var(--las-white);
    font-size: 14px;
}

/* ============================================
   HERO + SIGNATURE CONTOUR DIVIDER
   ============================================ */
.las-hero {
    position: relative;
    background: linear-gradient(160deg, var(--las-deep-water) 0%, var(--las-marina-dark) 100%);
    color: var(--las-white);
    padding: 88px 0 64px;
    text-align: center;
    overflow: hidden;
}

.las-hero-contours {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
}

.las-hero-inner { position: relative; z-index: 1; }

.las-hero h1 { color: var(--las-white); }
.las-hero p { font-size: 1.15rem; opacity: 0.88; max-width: 520px; margin: 12px auto 0; }

.las-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.las-contour-divider {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: -1px;
}

/* Section rhythm - contour rule used as a section-break motif, not just hero decoration */
.las-section {
    padding: 48px 0;
}

.las-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.las-section-heading .las-eyebrow {
    font-family: var(--las-font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--las-marina-dark);
    font-weight: 600;
}

.las-depth-rule {
    border: none;
    height: 10px;
    margin: 8px 0 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 5 Q 15 0, 30 5 T 60 5 T 90 5 T 120 5' fill='none' stroke='%232E7D6B' stroke-width='1.5' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 10px;
}

/* ============================================
   SPONSOR / NOTICE BANNERS
   ============================================ */
.las-sponsor-banner {
    background: var(--las-plank-light);
    border-left: 3px solid var(--las-plank);
    padding: 10px 14px;
    border-radius: var(--las-radius);
    font-size: 13.5px;
    font-family: var(--las-font-mono);
    margin-bottom: 12px;
    color: var(--las-ink);
}

.las-notice-success {
    padding: 16px 18px;
    background: #E4F1EA;
    border-left: 4px solid var(--las-marina);
    border-radius: var(--las-radius);
    margin: 20px 0;
}

.las-notice-error {
    padding: 16px 18px;
    background: #FBE9E3;
    border-left: 4px solid var(--las-buoy-dark);
    border-radius: var(--las-radius);
    margin: 20px 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.las-site-header {
    background: var(--las-white);
    border-bottom: 1px solid var(--las-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.las-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.las-logo a {
    font-family: var(--las-font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--las-deep-water);
}

.las-primary-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.las-primary-nav a {
    color: var(--las-ink);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.las-primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--las-buoy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.las-primary-nav a:hover::after { transform: scaleX(1); }
.las-primary-nav a:hover { color: var(--las-deep-water); }

/* ============================================
   FOOTER
   ============================================ */
.las-site-footer {
    background: var(--las-deep-water);
    color: var(--las-white);
    padding: 48px 0 28px;
    margin-top: 64px;
}

.las-site-footer h3 { color: var(--las-white); font-family: var(--las-font-display); }

.las-site-footer a { color: var(--las-plank-light); }
.las-site-footer a:hover { color: var(--las-white); }

.las-footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.las-footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    opacity: 0.65;
    font-size: 13px;
    font-family: var(--las-font-mono);
}

/* ============================================
   MISC CONTENT
   ============================================ */
.las-content { font-size: 1.05rem; }
.las-content p { margin-bottom: 1.2em; }

.las-data-strip {
    font-family: var(--las-font-mono);
    font-size: 0.95rem;
    color: var(--las-deep-water);
    background: var(--las-seafoam);
    padding: 16px 20px;
    border-radius: var(--las-radius-lg);
}

.las-ad-slot {
    margin: 20px 0;
    text-align: center;
}

/* ============================================
   MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .las-card, .las-btn, .las-primary-nav a::after { transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 680px) {
    .las-header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
    .las-primary-nav ul { flex-wrap: wrap; gap: 16px; }
    .las-hero { padding: 56px 0 44px; }
    .las-footer-columns { flex-direction: column; }
}
