@font-face {
  font-family: YoungSerif;
  src: url("YoungSerif-Regular.otf") format("opentype");
}

/* Match the dark header background for iOS top edge */
html {
  overflow-x: hidden;
  background-color: #1a1a1a;
}

body {
  font-family: "Montserrat", sans-serif !important;
  overflow-x: hidden;
  background-color: #fbe9e8;
  /* Subtle texture pattern */
  background-image:
    radial-gradient(circle at 20% 50%, rgba(224, 123, 120, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(154, 98, 101, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container max-widths */
.container {
  max-width: 1400px;
}

/* Ensure rows don't cause overflow */
.row {
  margin-left: -12px;
  margin-right: -12px;
}

.row > * {
  padding-left: 12px;
  padding-right: 12px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: YoungSerif, sans-serif;
}

/*OR HERE?*/
a.nav-link {
  font-family: YoungSerif, sans-serif;
  font-size: xx-large;
  color: #e07b78;
    padding: 0.2rem 0.3rem;
}

a.nav-link.active {
  text-decoration: underline;
    /*-webkit-text-decoration-style: dotted;*/
  color: #bb6468;
}

/* Navigation improvements */
.navbar {
    padding: 1rem 0;
    background-color: rgba(251, 233, 232, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}


/*OR THIS?*/
/* Responsive navigation */
@media (max-width: 767px) {
    a.nav-link {
        font-size: x-large;
        /*padding: 0.25rem 0.5rem;*/
    }

    .navbar .container {
        gap: 0.25rem;
    }
}

/* Compact navigation on very small screens */
@media (max-width: 480px) {
    .navbar .container {
        gap: 0.15rem;
    }

    a.nav-link {
        padding: 0.2rem 0.3rem;
    }
}

/* p {
  font-family: "Montserrat", sans-serif;
}
a:link {
  color: #e07b78;
}

*/

/* table {
  font-family: Montserrat, sans-serif;
  color: #e07b78 !important;
} */

/* Video placeholder styling */
.video-placeholder {
  background: linear-gradient(135deg, #f5e5e5 0%, #f9f0ef 100%);
  color: #e07b78;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive map container */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive heights for map */
@media (min-width: 768px) {
  .map-container {
    height: 500px;
  }
}

/* ==================== PHASE 2: VISUAL POLISH ==================== */

/* Card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #faf3f3;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
  padding: 1.5rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(224, 123, 120, 0.15);
  font-family: YoungSerif, sans-serif;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
}

/* Button styling */
.btn-outline-primary {
  border-width: 2px;
  border-radius: 24px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(224, 123, 120, 0.3);
}

.btn-primary {
  border-radius: 24px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(224, 123, 120, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 123, 120, 0.4);
}

.btn-sm {
  border-radius: 20px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

/* Radio button groups (toggle buttons) */
.btn-check:checked + .btn-outline-primary {
  background: linear-gradient(135deg, #e07b78 0%, #9a6265 100%);
  border-color: #e07b78;
  box-shadow: 0 4px 12px rgba(224, 123, 120, 0.3);
}

.btn-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

/* Horizontal rule styling */
hr {
  border: 0;
  height: 1px;
  background: rgba(224, 123, 120, 0.2);
  margin: 2rem 0;
}

/* Spacing system */
.section-spacing {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-spacing {
    margin-bottom: 4rem;
  }
}

/* Typography refinements */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
}

/* List group items */
.list-group-item {
  background-color: #faf3f3;
  border: none;
  border-bottom: 1px solid rgba(224, 123, 120, 0.1);
  padding: 1rem;
  transition: background 0.2s;
}

.list-group-item:hover {
  background: rgba(224, 123, 120, 0.05);
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Responsive iframe embeds */
.ratio {
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
}

.ratio iframe {
  border: none;
}

/* ==================== PHASE 3: RESPONSIVE & UX ==================== */



/* Responsive padding adjustments */
@media (max-width: 767px) {
  .card-body {
    padding: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Table responsive styling */
.table {
  border: none;
}

.table thead {
  display: none;
}

.table tbody tr {
  border-bottom: 1px solid rgba(224, 123, 120, 0.1);
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: rgba(224, 123, 120, 0.05);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

.table>:not(caption)>*>* {
    background-color: inherit !important;
}

@media (max-width: 767px) {
  .table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #e07b78;
  outline-offset: 2px;
}

/* Touch target sizing for mobile */
@media (max-width: 767px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /*  HERE?*/
  a.nav-link {
    /*min-height: 44px;*/
    /*display: inline-flex;*/
    /*align-items: center;*/
  }
}

/* ==================== PHASE 4: FINAL TOUCHES ==================== */

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Will-change for animated elements */
.card,
.btn,
a.nav-link {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .navbar,
  .btn,
  iframe {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Loading states */
iframe {
  background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
}

/* Ensure consistent link colors */
a {
  color: #e07b78;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #bb6468;
  text-decoration: none;
}

/* Modal refinements */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.modal-header {
  border-bottom: 1px solid rgba(224, 123, 120, 0.15);
  font-family: YoungSerif, sans-serif;
}

.modal-footer {
  border-top: 1px solid rgba(224, 123, 120, 0.15);
}

/* Utility classes */
.text-primary {
  color: #e07b78 !important;
}

.bg-primary {
  background-color: #e07b78 !important;
}

.border-primary {
  border-color: #e07b78 !important;
}
