/* CTA Links styled as buttons */

/* CTA Links styled as buttons with proper pseudo-class order */
.cta-link:link {
  display: inline-block;
  background: #efbf04;
  color: #111;
  border: none;
  border-radius: 9px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 260ms cubic-bezier(.2,.8,.2,1), color 260ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.9,.2,1);
  margin-right: 1.1rem;
  text-decoration: none;
}
.cta-link:visited {
  color: #111;
  text-decoration: none;
}
.cta-link:hover,
.cta-link:focus {
  background: #bfa103;
  color: #fff;
  text-decoration: none;
}
.cta-link:active {
  background: #a88c02;
  color: #fff;
  text-decoration: none;
}

.cta-link.cta-secondary:link {
  background: #fff;
  color: #111;
  border: 2px solid #efbf04;
  border-radius: 9px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: none;
  transition: background 260ms cubic-bezier(.2,.8,.2,1), color 260ms cubic-bezier(.2,.8,.2,1), border 260ms cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
}
.cta-link.cta-secondary:visited {
  color: #111;
  text-decoration: none;
}
.cta-link.cta-secondary:hover,
.cta-link.cta-secondary:focus {
  background: #efbf04;
  color: #fff;
  text-decoration: none;
}
.cta-link.cta-secondary:active {
  background: #bfa103;
  color: #fff;
  text-decoration: none;
}
/* Ensure the secondary CTA always keeps the yellow border color */
.cta-link.cta-secondary,
.cta-link.cta-secondary:visited,
.cta-link.cta-secondary:hover,
.cta-link.cta-secondary:focus,
.cta-link.cta-secondary:active {
  border-color: #efbf04;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: beige;
  color: #111;
}

/* Landing Section */
.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.2rem;
  overflow: hidden;
}

.landing-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  background: url("images/landing-page-backup-img.webp") center center / cover no-repeat;
  /* Start blurred and fade to normal */
  filter: blur(8px);
  opacity: 0.4;
  will-change: filter, opacity;
  animation: videoFadeIn 2.5s cubic-bezier(.25,.8,.25,1) forwards;
}

@keyframes videoFadeIn {
  from {
    filter: blur(8px);
    opacity: 0.4;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.landing-video[poster] {
  background: url("images/landing-page-backup-img.webp") center center / cover no-repeat;
}

.landing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  gap: 3.5rem;
}
.landing-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-top: 0;
}
.cta-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-title {
  font-size: 3.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.2rem;
  margin-top: 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  animation: slideUp 2.3s ease-out forwards;
  animation-delay: 0.2s;
}
.landing-text {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 2.2rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  animation: slideUp 2.3s ease-out forwards;
  animation-delay: 0.4s;
}

.landing-left > div {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  animation: slideUp 2.3s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cta-btn {
  background: #efbf04;
  color: #111;
  border: none;
  border-radius: 9px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 260ms cubic-bezier(.2,.8,.2,1), color 260ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.9,.2,1);
  margin-right: 0.9rem;
  will-change: transform;
}
.cta-btn.cta-secondary {
  background: #fff;
  color: #111;
  border: 2px solid #efbf04;
  border-radius: 9px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 260ms cubic-bezier(.2,.8,.2,1), color 260ms cubic-bezier(.2,.8,.2,1), border 260ms cubic-bezier(.2,.8,.2,1);
}
.cta-btn.cta-secondary:hover {
  background: #efbf04;
  color: #fff;
}
/* Keep the border color consistent for button variant as well */
.cta-btn.cta-secondary,
.cta-btn.cta-secondary:hover,
.cta-btn.cta-secondary:focus,
.cta-btn.cta-secondary:active {
  border-color: #efbf04;
}

.cta-btn:hover {
  background: #bfa103;
  transform: translateY(-2px) scale(1.04);
}
.landing-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #eee;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .landing-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .landing-left,
  .landing-right {
    align-items: center;
    max-width: 100%;
  }
  .landing-left {
    align-items: center;
  }
}
@media (max-width: 600px) {
  .landing-title {
    font-size: 2.8rem;
  }
  .landing-text {
    font-size: 1rem;
  }
  .landing-left {
    padding: 0 1rem;
  }
}
@media (max-width: 500px) {
  .landing-title {
    font-size: 2.2rem;
  }
  .landing-text {
    font-size: 0.9rem;
  }
  .cta-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    margin-right: 0.5rem;
  }
  .cta-link {
    font-size: 0.9rem;
    padding: 0.8rem 1.6rem;
    margin-right: 0.5rem;
  }
  .cta-link.cta-secondary {
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
  }
}

/* Contact Section */
.contact-section {
  padding: 80px 2rem;
  background: beige;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-container {
  /* Reduce overall width and tighten column sizing so content sits
    closer to the middle while keeping a modest separation. */
  max-width: 1000px;
  width: 100%;
  display: grid;
  /* Left column allowed to grow but kept narrow enough to move closer to
    the form column; form column maintains a comfortable width. */
  grid-template-columns: minmax(240px, 520px) minmax(320px, 460px);
  gap: 1.5rem;
  align-items: center;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-heading {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  animation: slideUpForm 1.5s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 0.1s;
}
.contact-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  animation: slideUpForm 1.5s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 0.2s;
}
.contact-right {
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  animation: slideUpForm 1.5s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 0.3s;
}

@keyframes slideUpForm {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s;
}
.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #a67c52;
}
.contact-textarea {
  resize: vertical;
  /* Increase default message box height to use the space freed by removing the phone field */
  min-height: 200px;
}

/* Contact form status and spinner styles */
.form-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  padding: 0.25rem 0.35rem;
}
.form-status.info { color: #333; }
.form-status.success { color: #0a7a12; }
.form-status.error { color: #a40f0f; }
.form-status .status-icon { display:inline-flex; align-items:center; justify-content:center; width:1.4rem; height:1.4rem; border-radius:0.25rem; font-size:0.9rem; }
.form-status.success .status-icon { background: rgba(10,122,18,0.08); color: #0a7a12; }
.form-status.error .status-icon { background: rgba(164,15,15,0.08); color: #a40f0f; }

/* Spinner (small) */
.form-status .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.6);
  animation: spin 1s linear infinite;
  box-sizing: border-box;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Disabled submit button style */
.contact-btn[disabled], .contact-btn[aria-disabled="true"] {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
  filter: grayscale(0.02);
}
.contact-btn {
  background: #efbf04;
  color: #111;
  border: none;
  border-radius: 9px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
}
.contact-btn:hover {
  background: #bfa103;
  color: #fff;
}
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-heading {
    font-size: 2.2rem;
  }
}
@media (max-width: 600px) {
  .contact-section {
    padding: 60px 1.5rem;
  }
  .contact-heading {
    font-size: 1.8rem;
  }
  .contact-text {
    font-size: 1rem;
  }
  .contact-input,
  .contact-textarea {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  .contact-textarea { min-height: 160px; }
  .contact-btn {
    /* Make the button shorter on small screens and center it */
    width: auto;
    padding: 0.9rem 2rem;
    align-self: center;
    max-width: 320px;
    min-width: 180px;
    box-sizing: border-box;
  }
}

/* Desktop: constrain the Contact Us message width for readability */
@media (min-width: 901px) {
  .contact-text {
    max-width: 400px;
  }
}
