/* CONTACT PAGE CARDS ISOLATED CSS */

.contact-convictions-section {
  padding: 5rem 0;
  background: #031725;
  position: relative;
  z-index: 5;
}
.contact-convictions-section .section-heading {
  color: var(--ivory);
}
.contact-cards-header {
  margin-bottom: 3rem;
  text-align: center;
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.contact-card {
  position: relative;
  padding: 3rem 2.5rem;
  min-height: 320px;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  z-index: 1;
}
.contact-card:last-child {
  border-right: none;
}

/* Watermarks */
.contact-roman-watermark {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15vw; /* Reduced size */
  line-height: 1;
  color: rgba(255, 255, 255, 0.12); /* More visible normally */
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}
.contact-roman-watermark.II { transform: translateY(-50%) translateX(25%); }
.contact-roman-watermark.III { transform: translateY(-50%) translateX(20%); }
.contact-roman-watermark.IV { transform: translateY(-50%) translateX(20%); }
.contact-roman-watermark.V { transform: translateY(-50%) translateX(20%); }
.contact-roman-watermark.VI { transform: translateY(-50%) translateX(20%); }

.contact-card:hover .contact-roman-watermark.I,
.contact-card:hover .contact-roman-watermark.II,
.contact-card:hover .contact-roman-watermark.III,
.contact-card:hover .contact-roman-watermark.IV,
.contact-card:hover .contact-roman-watermark.V,
.contact-card:hover .contact-roman-watermark.VI {
  transform: translateY(-50%) translateX(0%);
  color: rgba(201, 150, 101, 0.5); /* Let it shine */
  right: 5%;
}

/* Content */
.contact-card-content {
  position: relative;
  z-index: 2;
}
.contact-card-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem; /* Increased size */
  font-weight: 600; /* Added weight */
  letter-spacing: 0.15em;
  color: #ffffff; /* Turned white */
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4); /* Text shadow for legibility */
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 2rem;
  line-height: 1.4;
  min-height: 4.2rem;
  transition: color 0.4s ease;
}
.contact-card-text {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 1rem;
  transition: color 0.4s ease;
}

/* Hover text colors for legibility on light background */
.contact-card:hover .contact-card-title {
  color: #111820; /* Dark charcoal */
}
.contact-card:hover .contact-card-text {
  color: #2a3138; /* Dark gray */
}
.contact-card:hover .contact-card-eyebrow {
  color: #7a5015; /* Much darker bronze/gold for legibility */
  text-shadow: none; /* Remove shadow on hover since the text is dark */
}

/* Hover Cut & Radius */
.contact-card {
  transition: border-radius 0.4s ease;
}
.contact-card:hover {
  border-radius: 0 16px 0 16px;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #C8A14A; /* Premium Gold Accent */
  border-radius: 0 16px 0 16px;
  -webkit-mask: 
    linear-gradient(135deg, transparent 21px, #000 21.5px) top left / 50.5% 50.5% no-repeat,
    linear-gradient(-45deg, transparent 21px, #000 21.5px) bottom right / 50.5% 50.5% no-repeat,
    linear-gradient(#000, #000) top right / 50.5% 50.5% no-repeat,
    linear-gradient(#000, #000) bottom left / 50.5% 50.5% no-repeat;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 2px; /* Creates the 3px border thickness */
  background: #fcf6eb; /* Even, solid golden-white layover */
  border-radius: 0 15px 0 15px;
  -webkit-mask: 
    linear-gradient(135deg, transparent 20px, #000 20.5px) top left / 50.5% 50.5% no-repeat,
    linear-gradient(-45deg, transparent 20px, #000 20.5px) bottom right / 50.5% 50.5% no-repeat,
    linear-gradient(#000, #000) top right / 50.5% 50.5% no-repeat,
    linear-gradient(#000, #000) bottom left / 50.5% 50.5% no-repeat;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover::before,
.contact-card:hover::after {
  opacity: 1;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-card {
    border-right: none;
    min-height: 300px;
    padding: 3rem 2rem;
  }
  .contact-roman-watermark {
    font-size: 50vw;
  }
}


