@import "tailwind.css";

@theme {
  --color-brand-red: #8b0000;
  --color-brand-dark: #222222;
  --color-brand-gold: #d4af37;
  --color-brand-bg-light: #f9f8f6;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-cursive: 'Great Vibes', cursive;
}

:root {
  --brand-red: #8b0000;
  --brand-dark: #222222;
  --brand-gold: #d4af37;
  --brand-bg-light: #f9f8f6;
  --text-color: #333333;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--brand-bg-light);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Typography & Brand Helpers */
.font-cursive {
  font-family: var(--font-cursive);
}
.text-brand {
  color: var(--brand-red);
}
.bg-brand {
  background-color: var(--brand-red);
}

/* Grid & Container */
.container,
.container-fluid {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
  box-sizing: border-box;
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.g-0 { margin-right: 0; margin-left: 0; }
.g-0 > * { padding-right: 0; padding-left: 0; }
.g-2 { margin-right: -0.25rem; margin-left: -0.25rem; row-gap: 0.5rem; }
.g-2 > * { padding-right: 0.25rem; padding-left: 0.25rem; }
.g-3 { margin-right: -0.5rem; margin-left: -0.5rem; row-gap: 1rem; }
.g-3 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
.g-4 { margin-right: -0.75rem; margin-left: -0.75rem; row-gap: 1.5rem; }
.g-4 > * { padding-right: 0.75rem; padding-left: 0.75rem; }
.g-5 { margin-right: -1.5rem; margin-left: -1.5rem; row-gap: 3rem; }
.g-5 > * { padding-right: 1.5rem; padding-left: 1.5rem; }

@media (min-width: 768px) {
  .g-md-3 { margin-right: -0.5rem; margin-left: -0.5rem; row-gap: 1rem; }
  .g-md-3 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
  .g-md-4 { margin-right: -0.75rem; margin-left: -0.75rem; row-gap: 1.5rem; }
  .g-md-4 > * { padding-right: 0.75rem; padding-left: 0.75rem; }
}

/* Base Columns */
.col { flex: 1 0 0%; width: auto; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Row-cols with high priority so they override .col flex */
.row-cols-1 > *, .row-cols-1 > .col { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
.row-cols-2 > *, .row-cols-2 > .col { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; }
.row-cols-3 > *, .row-cols-3 > .col { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; }
.row-cols-4 > *, .row-cols-4 > .col { flex: 0 0 25% !important; width: 25% !important; max-width: 25% !important; }
.row-cols-5 > *, .row-cols-5 > .col { flex: 0 0 20% !important; width: 20% !important; max-width: 20% !important; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
  .row-cols-sm-1 > *, .row-cols-sm-1 > .col { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
  .row-cols-sm-2 > *, .row-cols-sm-2 > .col { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; }
  .row-cols-sm-3 > *, .row-cols-sm-3 > .col { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; }
  .row-cols-sm-4 > *, .row-cols-sm-4 > .col { flex: 0 0 25% !important; width: 25% !important; max-width: 25% !important; }
  .row-cols-sm-5 > *, .row-cols-sm-5 > .col { flex: 0 0 20% !important; width: 20% !important; max-width: 20% !important; }
}

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }

  .row-cols-md-1 > *, .row-cols-md-1 > .col { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
  .row-cols-md-2 > *, .row-cols-md-2 > .col { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; }
  .row-cols-md-3 > *, .row-cols-md-3 > .col { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; }
  .row-cols-md-4 > *, .row-cols-md-4 > .col { flex: 0 0 25% !important; width: 25% !important; max-width: 25% !important; }
  .row-cols-md-5 > *, .row-cols-md-5 > .col { flex: 0 0 20% !important; width: 20% !important; max-width: 20% !important; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }

  .row-cols-lg-1 > *, .row-cols-lg-1 > .col { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
  .row-cols-lg-2 > *, .row-cols-lg-2 > .col { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; }
  .row-cols-lg-3 > *, .row-cols-lg-3 > .col { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; }
  .row-cols-lg-4 > *, .row-cols-lg-4 > .col { flex: 0 0 25% !important; width: 25% !important; max-width: 25% !important; }
  .row-cols-lg-5 > *, .row-cols-lg-5 > .col { flex: 0 0 20% !important; width: 20% !important; max-width: 20% !important; }
}

/* Flex & Alignment Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-block { display: block !important; }
  .flex-sm-row { flex-direction: row !important; }
  .w-sm-auto { width: auto !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-flex { display: flex !important; }
  .d-md-block { display: block !important; }
  .text-md-start { text-align: left !important; }
  .mx-md-0 { margin-left: 0 !important; margin-right: 0 !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-block { display: block !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .pe-lg-5 { padding-right: 3rem !important; }
}

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Spacing Helpers */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Dimensions & Positions */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

.overflow-hidden { overflow: hidden !important; }
.object-fit-cover { object-fit: cover !important; }

/* Borders & Shadows */
.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-white { border-color: #ffffff !important; }
.border-dark { border-color: #212529 !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 0.25rem !important; }
.rounded-circle { border-radius: 50% !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-white { color: #ffffff !important; }
.text-dark { color: #212529 !important; }
.text-secondary { color: #6c757d !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }
.fst-italic { font-style: italic !important; }
.text-decoration-none { text-decoration: none !important; }
.small, small { font-size: 0.875em !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-6 { font-size: 1rem !important; }

/* Component Styles: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: all 0.25s ease-in-out;
}
.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-brand {
  background-color: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
}
.btn-brand:hover {
  background-color: #6a0000;
  border-color: #6a0000;
  color: #ffffff;
}
.btn-outline-brand {
  background-color: transparent;
  color: var(--brand-red);
  border-color: #ccc;
  font-weight: 600;
  text-transform: uppercase;
  background: white;
}
.btn-outline-brand:hover {
  background-color: #f8f9fa;
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.btn-phone {
  background-color: var(--brand-red);
  color: white;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 44px;
}
.btn-phone:hover {
  background-color: #6a0000;
  color: white;
}

/* Close Button */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.375rem;
  opacity: 0.6;
  cursor: pointer;
}
.btn-close:hover { opacity: 1; }
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Navbar */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.navbar-brand img {
  height: 40px;
}
@media (min-width: 992px) {
  .navbar-brand img { height: 50px; }
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2834, 34, 34, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.nav-link {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #444444 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 15px !important;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-red) !important;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.85rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.dropdown-menu.show,
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.4rem 1rem;
  clear: both;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}
.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--brand-red);
}

/* Offcanvas Mobile Menu */
.offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  color: #212529;
  visibility: hidden;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s ease-in-out;
}
.offcanvas-end {
  top: 0;
  right: 0;
  width: 320px;
  transform: translateX(100%);
}
.offcanvas.show {
  visibility: visible;
  transform: none;
}
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0.5;
}
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}
.offcanvas-body {
  flex-grow: 1;
  padding: 1rem 1rem;
  overflow-y: auto;
}

/* Accordion */
.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  text-align: left;
  text-transform: uppercase;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  cursor: pointer;
}
.accordion-button:after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
.accordion-button:not(.collapsed):after {
  transform: rotate(-180deg);
}
.accordion-collapse {
  display: none;
}
.accordion-collapse.show {
  display: block;
}
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
}
.list-group-item {
  position: relative;
  display: block;
  padding: 10px 15px 10px 30px;
  color: #555;
  text-decoration: none;
  background-color: #fafafa;
  border: none;
}
.list-group-item:hover {
  color: var(--brand-red);
  background: #f1f1f1;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
}
.card-body {
  flex: 1 1 auto;
  padding: 1rem 1rem;
}
.card-img-top {
  width: 100%;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 800px;
  width: 90%;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #212529;
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  outline: 0;
}
.ratio {
  position: relative;
  width: 100%;
}
.ratio-16x9 {
  aspect-ratio: 16 / 9;
}
.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
