/* BYD House — charcoal-first palette; brand red used sparingly */
.bydh-site {
  --background: #f6f6f6;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #2c2c2c;
  --primary-foreground: #ffffff;
  --secondary: #3a3a3a;
  --secondary-foreground: #ffffff;
  --muted: #ececec;
  --muted-foreground: #5c5c5c;
  --accent: #2c2c2c;
  --accent-foreground: #ffffff;
  --border: #d8d8d8;
  --input: #d8d8d8;
  --ring: #3a3a3a;
  --brand: #991b1b;
  --brand-foreground: #ffffff;
}

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

.bydh-site .bg-brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.bydh-site .border-brand {
  border-color: var(--brand);
}

.bydh-site .hover\:text-brand:hover {
  color: var(--brand);
}

/* Secondary accent text — brand red, for title highlights */
.bydh-site .text-secondary-accent,
.bydh-site .bydh-highlight,
.bydh-site .text-brand.bydh-highlight {
  color: var(--brand);
  display: inline;
  white-space: inherit;
}

/* Dark bands (hero + quote CTA): body text light gray, highlights white */
.bydh-hero-banner,
.bydh-page-hero,
.bydh-detail-hero,
.bydh-dark-band {
  --on-dark: #b8b8b8;
  --on-dark-strong: #ffffff;
  color: var(--on-dark);
}

.bydh-hero-banner .bydh-highlight,
.bydh-hero-banner .text-brand.bydh-highlight,
.bydh-page-hero .bydh-highlight,
.bydh-page-hero .text-brand.bydh-highlight,
.bydh-detail-hero .bydh-highlight,
.bydh-detail-hero .text-brand.bydh-highlight,
.bydh-dark-band .bydh-highlight,
.bydh-dark-band .text-brand.bydh-highlight {
  color: var(--on-dark-strong);
}

/* Flat blocks — no rounded corners or shadows on cards and content blocks */
.bydh-site :is(.rounded-lg, .rounded-md, .rounded-sm) {
  border-radius: 0 !important;
}

.bydh-site :is(.shadow-lg, .shadow-md, .shadow-sm, .shadow) {
  box-shadow: none !important;
}

.bydh-site .hover\:shadow-lg:hover {
  box-shadow: none !important;
}

.bydh-site .bg-card,
.bydh-site .bydh-thumb,
.bydh-site .bydh-gallery-grid__item,
.bydh-site .bydh-about-feature,
.bydh-site .bydh-about-intro__media {
  border-radius: 0;
  box-shadow: none;
}

/* Shared buttons */
.bydh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.bydh-btn--sm {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.bydh-btn--solid {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}

.bydh-btn--solid:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, black);
  color: var(--primary-foreground);
}

.bydh-btn--outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid color-mix(in oklab, var(--foreground) 30%, transparent);
}

.bydh-btn--outline:hover {
  background-color: var(--foreground);
  color: var(--primary-foreground);
  border-color: var(--foreground);
}

/* Header — desktop nav must not depend on missing Tailwind lg: utilities */
.bydh-header {
  background-color: #ffffff;
}

.bydh-header__inner {
  min-height: 4.5rem;
  gap: 1rem;
}

.bydh-header__logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.bydh-header__wordmark {
  font-size: 1.25rem;
}

.bydh-header__nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.bydh-header__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.bydh-header__links a {
  display: inline-block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.bydh-header__links a:hover {
  color: var(--brand);
}

.bydh-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bydh-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.bydh-header__mobile {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.bydh-header__mobile.hidden {
  display: none;
}

.bydh-header__mobile-link {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}

.bydh-header__mobile-link:hover {
  background: var(--muted);
}

@media (min-width: 992px) {
  .bydh-header__inner {
    min-height: 5rem;
  }

  .bydh-header__logo {
    height: 3.5rem;
    max-width: 13rem;
  }

  .bydh-header__nav {
    display: flex;
  }

  .bydh-header__toggle,
  .bydh-header__mobile {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .bydh-header__links {
    gap: 0.25rem 0.75rem;
  }

  .bydh-header__links a {
    font-size: 0.8125rem;
  }

  .bydh-header__actions .bydh-btn--sm {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* Fixed-ratio image thumbs — never stretch with intrinsic image size */
.bydh-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background-color: #e8e8e8;
}

.bydh-thumb--wide {
  aspect-ratio: 16 / 9;
}

.bydh-thumb--square {
  aspect-ratio: 1 / 1;
}

.bydh-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Full-bleed homepage hero (Eco Portables style) */
.bydh-hero-banner {
  position: relative;
  min-height: min(85vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.bydh-hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bydh-hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bydh-hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.55) 48%, rgba(26, 26, 26, 0.25) 100%),
    linear-gradient(to top, rgba(26, 26, 26, 0.45) 0%, transparent 45%);
}

.bydh-hero-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 0;
}

.bydh-hero-banner__content h1 {
  color: var(--on-dark);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.bydh-hero-banner__content .bydh-hero-lead {
  color: var(--on-dark);
  max-width: 36rem;
}

.bydh-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bydh-btn--hero-primary,
.bydh-btn--hero-outline {
  min-height: 3rem;
  min-width: 10.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.bydh-btn--hero-primary {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 2px solid #ffffff;
}

.bydh-btn--hero-primary:hover {
  background-color: #f0f0f0;
  color: #1a1a1a;
  border-color: #f0f0f0;
}

.bydh-btn--hero-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.bydh-btn--hero-outline:hover {
  background-color: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

@media (max-width: 639px) {
  .bydh-hero-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bydh-btn--hero-primary,
  .bydh-btn--hero-outline {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .bydh-hero-banner {
    min-height: min(78vh, 560px);
  }

  .bydh-hero-banner__content {
    padding: 3.5rem 0;
  }

  .bydh-hero-banner__overlay {
    background:
      linear-gradient(to top, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.55) 55%, rgba(26, 26, 26, 0.35) 100%);
  }
}

.bydh-site footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

.bydh-site footer .text-muted-foreground {
  color: color-mix(in oklab, #f5f5f5 70%, transparent);
}

.bydh-site footer .text-secondary {
  color: #ffffff;
}

.bydh-site footer .border-border {
  border-color: color-mix(in oklab, #ffffff 15%, transparent);
}

.bydh-site footer a:hover {
  color: #ffffff;
}

[data-angel-slider-viewport],
[data-angel-mobile-viewport] {
  touch-action: pan-y pinch-zoom;
}

@media (min-width: 40rem) {
  [data-slot="breadcrumb-list"] {
    gap: 0;
  }
  [data-slot="breadcrumb-list"] [data-slot="breadcrumb-separator"] {
    margin-left: calc(var(--spacing) * 2.5);
    margin-right: calc(var(--spacing) * 1.5);
  }
}

.ring-1 {
  box-shadow: 0 0 0 1px var(--tw-ring-color, currentColor);
}

.ring-2 {
  box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor);
}

.ring-secondary {
  --tw-ring-color: var(--secondary);
}

.ring-secondary\/40 {
  --tw-ring-color: color-mix(in oklab, var(--secondary) 40%, transparent);
}

.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor);
}

.focus\:ring-secondary:focus {
  --tw-ring-color: color-mix(in oklab, var(--secondary) 20%, transparent);
}

.focus-visible\:ring-2:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor);
}

.focus-visible\:ring-secondary:focus-visible {
  --tw-ring-color: var(--secondary);
}

.focus-visible\:ring-offset-2:focus-visible {
  box-shadow:
    0 0 0 2px var(--background),
    0 0 0 4px var(--tw-ring-color, var(--secondary));
}

#bydh-events-calendar [data-calendar-days] button.bydh-calendar-has-event:not(.bydh-calendar-selected) {
  background: color-mix(in oklab, var(--secondary) 18%, transparent);
  color: var(--secondary);
  font-weight: 600;
}

#bydh-events-calendar [data-calendar-days] button.bydh-calendar-has-event:not(.bydh-calendar-selected):hover {
  background: color-mix(in oklab, var(--secondary) 30%, transparent);
}

#bydh-events-calendar [data-calendar-days] button.bydh-calendar-selected {
  background: var(--secondary);
  color: var(--primary-foreground);
  font-weight: 700;
}

#bydh-events-calendar [data-calendar-days] button.bydh-calendar-selected:hover {
  background: color-mix(in oklab, var(--secondary) 90%, black);
}

/* Detail/page hero */
.bydh-page-hero,
.bydh-detail-hero {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.bydh-detail-hero--image,
.bydh-page-hero.bydh-detail-hero--image {
  min-height: 28rem;
}

.bydh-detail-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bydh-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bydh-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.55) 60%, rgba(26, 26, 26, 0.25) 100%);
}

.bydh-detail-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bydh-detail-hero__tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.bydh-page-hero__kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.bydh-breadcrumbs--hero {
  color: rgba(255, 255, 255, 0.78);
}

.bydh-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.bydh-breadcrumbs__item,
.bydh-breadcrumbs__separator {
  display: inline-flex;
  align-items: center;
}

.bydh-breadcrumbs__separator svg {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.7;
}

.bydh-breadcrumbs--hero .bydh-breadcrumbs__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bydh-breadcrumbs--hero .bydh-breadcrumbs__link:hover {
  color: #fff;
}

.bydh-breadcrumbs--hero .bydh-breadcrumbs__current {
  color: #fff;
  font-weight: 600;
}

.bydh-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Gallery grid */
.bydh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bydh-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bydh-gallery-grid__item {
  overflow: hidden;
}

/* Inclusions table */
.bydh-inclusions-table-wrap {
  max-width: 64rem;
  margin: 0 auto;
}

.bydh-inclusions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.bydh-inclusions-table th,
.bydh-inclusions-table td {
  border: 1px solid var(--border);
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
}

.bydh-inclusions-table thead th {
  background: var(--muted);
  font-weight: 700;
}

.bydh-inclusions-table tbody th {
  font-weight: 600;
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  width: 28%;
}

/* Feature checklist */
.bydh-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}

.bydh-feature-list__icon {
  flex-shrink: 0;
  width: 1.25rem;
  font-weight: 700;
}

.bydh-feature-list__item.is-included .bydh-feature-list__icon {
  color: #166534;
}

.bydh-feature-list__item.is-excluded {
  color: var(--muted-foreground);
}

.bydh-feature-list__item.is-excluded .bydh-feature-list__icon {
  color: #991b1b;
}

/* About page */
.bydh-about-intro__content {
  order: 1;
}

.bydh-about-intro__media {
  order: 2;
}

@media (min-width: 768px) {
  .bydh-about-intro__content {
    order: 1;
  }

  .bydh-about-intro__media {
    order: 2;
  }
}

.bydh-about-feature {
  position: relative;
  min-height: 100%;
}

.bydh-about-feature__index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

/* Locations page */
.bydh-location-card {
  scroll-margin-top: 6rem;
}

.bydh-locations-grid {
  align-items: stretch;
}

.bydh-location-meta {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bydh-location-meta__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bydh-location-meta__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--foreground);
}

.bydh-location-meta__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bydh-location-meta__text {
  color: var(--foreground);
  line-height: 1.55;
  min-width: 0;
}

.bydh-location-meta__text--muted {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
