/*------------------- Imported Fonts -------------------*/
@font-face {
    font-family: 'Elms-Sans';
    src: url('../../fonts/Elms_Sans/ElmsSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*------------------- Main Content -------------------*/

/*----- Hero Section -----*/
.hero-section {
    position: relative;
    background-image: url('assets/DSC09564.JPEG');
    background-size: cover;
    background-position: center center;
    transition: background-position 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin: 0;
    color: rgb(252, 251, 242);
    overflow: visible;
    z-index: 0;
}

.main {
    background-image: url(../../global-assets/grey-logo-background.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 100% auto;
    background-attachment: fixed;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 39, 60, 0.7);
    z-index: 0;
}

.hero-section>* {
    position: relative;
    z-index: 2;
}

.contact-text-top {
    font-size: clamp(20px, 6vw, 60px);
    font-family: 'Times New Roman', Times, serif;
    color: rgb(204, 191, 146);
    font-weight: 100;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-text-top.animate {
    opacity: 1;
    transform: scale(1);
}

/*----- Content Grid -----*/
.contact-section {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Elms-Sans', sans-serif;
    position: relative;
    z-index: 2;
}

.contact-section * {
    position: relative;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start; /* aligns all children to the same left edge */
}

.detail span {
    flex: 1;
    flex-shrink: 0;
    min-width: 0;
    text-align: left;
    white-space: normal;
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.2rem;
    flex-wrap: nowrap;
    transition: transform 0.8s ease;
    color: rgb(252, 251, 242);
}

.detail:hover {
    transform: scale(1.05);
    color: rgb(252, 251, 242);
}

.detail.hours {
    flex-direction: column;
    gap: 4px;
}

.detail.hours .large-text {
    color: rgb(204, 191, 146);
}

.detail.hours .small-text {
    font-size: 1rem;
}

.message-form img,
.detail img {
    width: 32px;
    height: auto;
}

/* Override default link styling for the phone number on all browsers */
.contacts-a {
    color: rgb(252, 251, 242);
    text-decoration: none;
    font-size: inherit;
}

.contacts-a:hover {
    color: rgb(252, 251, 242);
}

.detail a {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: normal;
}

/* Map */
.map-box {
    width: 100%;
    height: 300px;
    max-width: 700px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.8s ease;
}

.map-box:hover {
    transform: scale(1.05);
}

/*---------- Lower Container ----------*/
.lower-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Message Form */
.message-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px auto;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-header img {
    width: 32px;
    height: auto;
}

.form-header h2 {
    font-size: 1.5rem;
    color: rgb(25,93,105);
    margin: 0;
}

.message-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.message-form input,
.message-form textarea {
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    background: rgb(204, 191, 146);
    color: rgb(252, 251, 242);
    border: none;
}

/* Fix placeholder color */
.message-form input::placeholder,
.message-form textarea::placeholder {
    color: rgb(252, 251, 242);
    opacity: 1;
}

.message-form textarea {
    min-height: 120px;
    resize: vertical;
}

.message-form button {
    align-self: center;
    padding: 12px 24px;
    background: rgb(25, 93, 105);
    color: rgb(204, 191, 146);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 50px;
    transition: transform 0.8s ease, background-color 0.3s ease;
}

.message-form button:hover {
    background: rgba(12, 39, 60);
    color: rgb(204, 191, 146);
    transform: scale(1.1);
}

/*----- Submit Confirmation Pop-Up -----*/
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 300px;
  margin: 15% auto;
  border-radius: 8px;
  text-align: center;
  position: relative;
  font-size: 18px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
}
