/* =========================================
   SACRED PORTAL BANNER (FLUID & RESPONSIVE)
   ========================================= */

.portal-banner {
  position: relative;
  width: 100%;
  /* Ensures enough vertical height for the header clearance AND the content */
  min-height: clamp(450px, 65vh, 750px);
  display: flex;
  flex-direction: column;
  /* Centers content in the remaining space after top padding */
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-text-primary, #2b1d19);

  /* Creates an impenetrable safe zone for your transparent header */
  padding-top: clamp(100px, 15vh, 160px);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* --- Ethereal Background Animation --- */
.pb-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: slowZoom 25s linear infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.pb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 16, 0.4) 0%,
    rgba(26, 18, 16, 0.95) 100%
  );
  z-index: 2;
}

/* --- Content Wrapper --- */
.pb-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Integrated Breadcrumb --- */
.pb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Prevents overflow on narrow mobile screens */
  gap: clamp(8px, 2vw, 15px);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.pb-link,
.pb-current {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

.pb-link {
  font-weight: 500;
  color: rgba(253, 251, 246, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pb-link:hover {
  color: var(--color-accent, #c78d6a);
}

.pb-separator {
  color: var(--color-accent, #c78d6a);
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  display: flex;
  align-items: center;
}

.pb-current {
  font-weight: 600;
  color: var(--color-text-inverse, #fdfbf6);
}

/* --- Title & Typography --- */
.pb-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--color-text-inverse, #fdfbf6);
  line-height: 1.15;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 1px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.pb-subtitle {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #c2b4ae;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- The Guiding Thread --- */
.pb-thread {
  width: 1px;
  height: clamp(50px, 10vh, 100px);
  background: linear-gradient(
    to bottom,
    var(--color-accent, #c78d6a) 0%,
    transparent 100%
  );
  opacity: 0.7;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (PORTAL BANNER)
   ========================================= */

/* --- Tablets & Large Phones (max-width: 768px) --- */
@media (max-width: 768px) {
  .portal-banner {
    /* Strict height limits for mobile to keep it in the viewport */
    min-height: 400px;
    height: 60vh;
    /* Exact pixel clearance for your mobile header */
    padding-top: 100px;
    padding-bottom: 1.5rem;
  }

  .pb-content {
    width: 100%;
    padding: 0 1.2rem; /* Ensures text never touches the screen edge */
  }

  .pb-breadcrumb {
    gap: 8px; /* Tighter gap for mobile */
    margin-bottom: 1.5rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.7rem;
    letter-spacing: 1px; /* Reduced tracking to fit more text */
  }

  .pb-separator {
    font-size: 0.6rem;
  }

  .pb-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Prevents massive words from breaking the layout horizontally */
    word-wrap: break-word;
  }

  .pb-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 10px;
  }

  .pb-thread {
    height: 50px; /* Shorter thread for compact mobile screens */
  }
}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  .portal-banner {
    min-height: 350px;
    padding-top: 90px; /* Slightly less clearance needed on tiny screens */
  }

  .pb-breadcrumb {
    gap: 5px;
    margin-bottom: 1rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.65rem;
  }

  .pb-title {
    font-size: 2.2rem; /* Locked-in smaller size for narrow screens */
    padding: 0 5px;
  }

  .pb-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .pb-thread {
    height: 40px;
  }
}

/* =========================================
   TABLET & LAPTOP RESPONSIVE OVERRIDES
   ========================================= */

/* --- Tablets (Portrait & Landscape: 769px to 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .portal-banner {
    min-height: 500px;
    height: 55vh;
    padding-top: 120px; /* Exact clearance for tablet-sized header */
    padding-bottom: 2rem;
  }

  .pb-content {
    width: 90%;
    max-width: 700px; /* Constrains line length for better reading */
  }

  .pb-breadcrumb {
    gap: 12px;
    margin-bottom: 2rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.75rem;
  }

  .pb-title {
    font-size: 3.8rem; /* Perfectly scaled for iPad screens */
    line-height: 1.15;
    margin-bottom: 1.2rem;
  }

  .pb-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding: 0 20px;
  }

  .pb-thread {
    height: 70px;
  }
}

/* --- Laptops & Standard Desktops (1025px to 1440px) --- */
@media (min-width: 1025px) and (max-width: 1440px) {
  .portal-banner {
    min-height: 600px;
    height: 65vh;
    padding-top: 140px; /* Standard desktop header clearance */
  }

  .pb-content {
    width: 85%;
    max-width: 800px;
  }

  .pb-breadcrumb {
    gap: 15px;
    margin-bottom: 2.5rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.8rem;
  }

  .pb-title {
    font-size: 4.5rem; /* Classic, cinematic desktop size */
    margin-bottom: 1.5rem;
  }

  .pb-subtitle {
    font-size: 1.15rem;
    margin-bottom: 3rem;
  }

  .pb-thread {
    height: 90px;
  }
}

/* --- Ultra-Wide Monitors (1441px and above) --- */
@media (min-width: 1441px) {
  .portal-banner {
    /* Locks the maximum height so it doesn't stretch infinitely on huge monitors */
    height: 700px;
    padding-top: 150px;
  }

  .pb-content {
    max-width: 900px;
  }

  .pb-title {
    font-size: 5rem; /* Capped maximum font size */
  }

  .pb-subtitle {
    font-size: 1.25rem;
  }

  .pb-thread {
    height: 100px;
  }
}

/* =========================================
   CONTACT PORTAL LAYOUT & STYLING
   ========================================= */

.contact-portal {
  background-color: var(--color-bg-base, #fdfbf6);
  font-family: var(--font-body, "Jost", sans-serif);
  padding: 5rem 0 8rem 0;
}

.contact-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* --- LEFT: The Form --- */
.contact-heading {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 2.2rem;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary, #7a6962);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-desc strong {
  color: var(--color-primary, #873823);
  font-weight: 500;
}

.luxury-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-primary, #2b1d19);
}

.form-group label span {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-text-secondary, #7a6962);
  font-style: italic;
}

/* Elegant Bottom-Border Inputs */
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(135, 56, 35, 0.2);
  padding: 10px 0;
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.05rem;
  color: var(--color-text-primary, #2b1d19);
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122, 105, 98, 0.4);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-primary, #873823);
}

.btn-submit {
  align-self: flex-start;
  background: var(--color-text-primary, #2b1d19);
  color: var(--color-text-inverse, #fdfbf6);
  border: 1px solid var(--color-text-primary, #2b1d19);
  padding: 1.2rem 3rem;
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 2px;
  transition: all 0.4s ease;
  margin-top: 1rem;
}

.btn-submit .arrow {
  transition: transform 0.4s ease;
}

.btn-submit:hover {
  background: var(--color-primary, #873823);
  border-color: var(--color-primary, #873823);
}

.btn-submit:hover .arrow {
  transform: translateX(5px);
}

/* --- RIGHT: Contact Info Cards --- */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem; /* Aligns visually with the form fields */
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(135, 56, 35, 0.03);
  border: 1px solid rgba(135, 56, 35, 0.1);
  padding: 2rem;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
}

.contact-card:hover {
  background: var(--color-bg-surface, #ffffff);
  border-color: var(--color-primary, #873823);
  box-shadow: 0 15px 30px rgba(43, 29, 25, 0.05);
  transform: translateY(-3px);
}

.card-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(135, 56, 35, 0.08);
  color: var(--color-primary, #873823);
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.contact-card:hover .card-icon {
  background: var(--color-primary, #873823);
  color: var(--color-text-inverse, #fdfbf6);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-content h3 {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 1.1rem;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 0.3rem;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #7a6962);
  margin: 0;
}

/* Business Details Block */
.business-details {
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(135, 56, 35, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary, #873823);
  margin-bottom: 0.5rem;
}

.detail-item p {
  font-size: 1rem;
  color: var(--color-text-primary, #2b1d19);
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-info-wrapper {
    margin-top: 0;
    grid-row: 1; /* Moves info above the form on mobile */
  }

  .contact-form-wrapper {
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .contact-portal {
    padding: 3rem 0 5rem;
  }

  .contact-heading {
    font-size: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
