/* Jimmy's Group — shared styles */

:root {
    --bg: #f7f4ef;
    --bg-alt: #efeae2;
    --bg-card: #ffffff;
    --text: #1c1c1c;
    --text-muted: #5a5650;
    --border: #ddd6cb;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(60, 45, 30, 0.1);
    --shadow-hover: 0 14px 40px rgba(60, 45, 30, 0.14);
    --font-body: 'Montserrat', system-ui, sans-serif;
    --font-display: 'Pacifico', cursive;
    --accent: #c90512;
    --accent-hover: #e30613;
    --header-height: 64px;
}

.theme-surf {
    --accent: #d9a000;
    --accent-hover: #f5b700;
}

.theme-orange {
    --accent: #e06f00;
    --accent-hover: #ff7f00;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.container.narrow {
    width: min(720px, calc(100% - 2rem));
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(60, 45, 30, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand-link {
    color: var(--text);
}

.brand-script {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent);
}

.bar-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.bar-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.bar-nav a:hover {
    color: var(--accent);
}

/* Splash page */
.splash-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.splash-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 0.5rem;
    font-weight: 400;
    color: var(--accent);
}

.splash-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.splash-grid-section {
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bar-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bar-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}

.bar-card-logo {
    background: #000;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.bar-card-logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.bar-card:first-child .bar-card-logo {
    overflow: hidden;
}

.bar-card:first-child .bar-card-logo img {
    transform: scale(1.5);
}

.bar-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.bar-card-body h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.bar-card-tagline {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: lowercase;
    margin: 0 0 0.5rem;
}

.bar-card-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(201, 5, 18, 0.08);
    color: var(--accent);
    border: 1px solid rgba(201, 5, 18, 0.2);
}

.theme-surf .badge {
    background: rgba(217, 160, 0, 0.1);
    border-color: rgba(217, 160, 0, 0.25);
}

.theme-orange .badge {
    background: rgba(224, 111, 0, 0.1);
    border-color: rgba(224, 111, 0, 0.25);
}

/* Bar page hero */
.hero {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 25, 20, 0.75) 0%, rgba(30, 25, 20, 0.25) 55%, rgba(30, 25, 20, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0;
    text-align: center;
}

.hero-logo {
    max-height: 140px;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hero-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.section-lead {
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 60ch;
}

.intro-section {
    text-align: center;
    padding-bottom: 2rem;
    background: #fff;
}

.bar-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin: 0 0 0.25rem;
    color: var(--accent);
}

.bar-tagline {
    color: var(--accent);
    text-transform: lowercase;
    margin: 0 0 1rem;
    font-weight: 500;
    opacity: 0.85;
}

.bar-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 55ch;
}

/* Room gallery */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.room-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.room-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}

.room-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.room-card:hover .room-image-wrap img {
    transform: scale(1.04);
}

.room-body {
    padding: 1.25rem;
}

.room-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.room-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.calendar-embed {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.calendar-embed h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.calendar-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

/* Forms */
.form {
    display: grid;
    gap: 1.25rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.required {
    color: var(--accent);
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-row input[type="file"] {
    padding: 0.6rem 0.75rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 5, 18, 0.1);
}

.theme-surf .form-row input:focus,
.theme-surf .form-row textarea:focus {
    box-shadow: 0 0 0 3px rgba(217, 160, 0, 0.15);
}

.theme-orange .form-row input:focus,
.theme-orange .form-row textarea:focus {
    box-shadow: 0 0 0 3px rgba(224, 111, 0, 0.15);
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.btn-disabled {
    background: #e8e4dd;
    color: #9a948a;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f5ec;
    border: 1px solid #a8d5b5;
    color: #1f6b3a;
}

.alert-error {
    background: #fdeced;
    border: 1px solid #f0b4b8;
    color: #9b1c1c;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 2rem;
    background: #fff;
}

.footer-inner {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner p {
    margin: 0.25rem 0;
}

/* Surf Kitchen booking calendar */
.surf-booking-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.surf-calendar-panel,
.surf-booking-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar-toolbar label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.calendar-toolbar select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    margin-bottom: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.35rem;
    vertical-align: middle;
    font-style: normal;
}

.legend-blocked {
    background: #f0b4b8;
}

.legend-selected {
    background: rgba(217, 160, 0, 0.45);
}

.booking-calendar .cal-weekdays,
.booking-calendar .cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.booking-calendar .cal-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.cal-day {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cal-day:hover:not(:disabled) {
    border-color: var(--accent);
}

.cal-empty {
    border: none;
    background: transparent;
}

.cal-past {
    opacity: 0.35;
    cursor: not-allowed;
}

.cal-blocked {
    background: #fdeced;
    color: #9b1c1c;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-selected {
    background: rgba(217, 160, 0, 0.2);
    border-color: rgba(217, 160, 0, 0.5);
}

.cal-edge {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.selected-dates {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.selected-dates p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.room-body .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .surf-booking-layout {
        grid-template-columns: 1fr;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .bar-nav {
        gap: 0.75rem;
    }

    .hero {
        min-height: 280px;
    }

    .hero-logo {
        max-height: 100px;
    }
}
