/**
 * Bornholm Aarsdale — custom styles for Blocksy child theme.
 * Gutenberg sections, calendar, booking.
 */

:root {
  --ba-sea: #1a6b8a;
  --ba-sea-dark: #0f4a62;
  --ba-sand: #f5efe6;
  --ba-accent: #c47a3a;
  --ba-text: #2c2c2c;
  --ba-muted: #5a5a5a;
  --ba-radius: 12px;
  --ba-shadow: 0 8px 32px rgba(15, 74, 62, 0.12);
  --ba-font-heading: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ba-text);
}

/* Blocksy: hide top header (menu + search) */
#header.ct-header,
.ct-header,
header.ct-header {
  display: none !important;
}

/* Mobile menu / search triggers outside main header */
.ct-header-trigger,
.ct-search-trigger,
[data-id="search"],
.ct-header-search,
.ct-search-box {
  display: none !important;
}

/* Blocksy: menu-only header (legacy — header hidden above) */
.site-branding,
.ct-header [data-id="logo"] {
  display: none !important;
}

/* Hide default page title on static front page (listing has own h1) */
body.home .entry-header .page-title,
body.home .hero-section .entry-title,
body.home .wp-block-post-title {
  display: none !important;
}

/* Hero — image with text below */
.ba-hero-clean {
  margin-top: 0;
}

.ba-hero-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.ba-hero-text {
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

.ba-hero-text .hero-availability {
  display: inline-block;
  background: var(--ba-accent);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.ba-hero-text h1 {
  font-family: var(--ba-font-heading);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ba-sea-dark);
  margin: 0 0 0.75rem;
}

.ba-hero-text p {
  color: var(--ba-muted);
  margin: 0 0 0.5rem;
}

.ba-section {
  padding: 4rem 1rem;
}

.ba-section-sand {
  background: var(--ba-sand);
}

.ba-section h2.wp-block-heading {
  font-family: var(--ba-font-heading);
  color: var(--ba-sea-dark);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.ba-section h3.wp-block-heading {
  font-family: var(--ba-font-heading);
  color: var(--ba-sea-dark);
  font-weight: 400;
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.ba-lead {
  text-align: center;
  color: var(--ba-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.ba-video-intro {
  padding-bottom: 2rem;
}

.ba-video-intro h2 {
  font-family: var(--ba-font-heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ba-sea-dark);
  margin-top: 1.5rem;
}

.ba-video-poster img {
  border-radius: var(--ba-radius);
  box-shadow: var(--ba-shadow);
}

.ba-video-wrap {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--ba-radius);
  overflow: hidden;
  box-shadow: var(--ba-shadow);
  background: #000;
}

.ba-video-wrap video {
  width: 100%;
  display: block;
}

/* Calendar */
.ba-calendar {
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  border: 1px solid rgba(15, 74, 62, 0.08);
  border-radius: var(--ba-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--ba-shadow);
  max-width: 1040px;
  margin: 0 auto;
}

.ba-calendar-title {
  font-family: var(--ba-font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ba-sea-dark);
  text-align: center;
  margin: 0 0 0.25rem;
}

.ba-calendar-sub {
  text-align: center;
  color: var(--ba-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.ba-calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--ba-muted);
}

.ba-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.ba-legend-available .ba-legend-swatch {
  background: linear-gradient(135deg, #3d9a5d, #2d7a47);
}

.ba-legend-blocked .ba-legend-swatch {
  background: #e2e2e2;
}

.ba-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.ba-calendar-month {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ba-calendar-month-title {
  font-family: var(--ba-font-heading);
  font-size: 1.1rem;
  color: var(--ba-sea-dark);
  text-align: center;
  margin: 0 0 0.75rem;
}

.ba-calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.8rem;
}

.ba-calendar-table th {
  font-weight: 600;
  color: var(--ba-muted);
  padding: 0.25rem 0;
  text-align: center;
}

.ba-day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 36px;
  margin: 0 auto;
  border-radius: 8px;
  line-height: 1;
}

.ba-day-available .ba-day-number {
  background: linear-gradient(135deg, #3d9a5d, #2d7a47);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 122, 71, 0.35);
}

.ba-day-blocked .ba-day-number {
  background: #f0f0f0;
  color: #999;
}

.ba-day-past .ba-day-number {
  background: transparent;
  color: #ccc;
}

.wp-block-image img,
.wp-block-gallery img {
  border-radius: var(--ba-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wp-block-column .wp-block-image {
  margin-bottom: 0;
}

.pricing-box {
  border-radius: var(--ba-radius);
  padding: 2.5rem 1.5rem !important;
  box-shadow: var(--ba-shadow);
}

.pricing-box .contact-phone .wp-block-button__link {
  background: var(--ba-accent) !important;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
}

.pricing-box .contact-phone .wp-block-button__link:hover {
  background: #a8652e !important;
}

.ba-contact-form {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--ba-radius);
}

.ba-contact-form .wpcf7-form label {
  color: rgba(255, 255, 255, 0.92);
}

.ba-contact-form input,
.ba-contact-form textarea {
  border-radius: 8px;
  border: none;
}

/* MotoPress Hotel Booking */
#ledighed .mphb_sc_check_availability-form,
#ledighed .mphb-calendar {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

#ledighed .mphb_sc_check_availability-form {
  background: #fff;
  border: 1px solid rgba(15, 74, 62, 0.08);
  border-radius: var(--ba-radius);
  padding: 1.5rem;
  box-shadow: var(--ba-shadow);
  margin-bottom: 2rem;
}

#ledighed .mphb-calendar {
  border-radius: var(--ba-radius);
  overflow: hidden;
  box-shadow: var(--ba-shadow);
}

#ledighed .mphb-calendar-title {
  font-family: var(--ba-font-heading);
  color: var(--ba-sea-dark);
}

#ledighed .button,
#ledighed .mphb-button {
  background: var(--ba-accent) !important;
  border-color: var(--ba-accent) !important;
  border-radius: 999px;
}

#ledighed .button:hover,
#ledighed .mphb-button:hover {
  background: #a8652e !important;
  border-color: #a8652e !important;
}

@media (max-width: 600px) {
  .ba-section {
    padding: 2.75rem 1rem;
  }

  .ba-hero-image img {
    max-height: 55vh;
  }
}
