:root {
  --primary: #2d5343;
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

*,
*::before,
*::after {
  transition: 200ms ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

.admin-bar nav.fixed {
  top: 32px;
}

[x-cloak] {
  display: none !important;
}

@media screen and (max-width: 782px) {
  .admin-bar nav.fixed {
    top: 0px;
  }
}
nav.main-nav .has-dropdown a:first-child {
  border-bottom: 1px solid color-mix(in oklab, var(--color-primary) 10%, transparent);
}
nav.main-nav.scrolled .nav-menu a.inquiry-button {
  border-color: #4a5565;
}
nav.main-nav.scrolled .nav-menu a.inquiry-button:hover {
  background-color: var(--color-primary);
  color: #fff;
}
nav.main-nav .nav-menu a.inquiry-button {
  border: 1px solid #fff;
  padding: 8px 1rem;
}
nav.main-nav .nav-menu a.inquiry-button:hover {
  background-color: #fff;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c5a27d;
  border-radius: 10px;
}

@media (min-width: 1024px) {
  .custom-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .custom-scrollbar::-webkit-scrollbar {
    display: none;
  }
}
.invert-selection-color ::selection {
  background: #fff;
  color: var(--color-primary);
}

/* Container Grid */
.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Equivalent to gap-6 */
}

/* 2-Column Row for Name & Lastname */
@media (min-width: 768px) {
  .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* Field Wrapper */
.field-half,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Label Styling */
.contact-form-grid label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

/* Input & Textarea Styling */
.contact-form-grid input:not([type=submit]),
.contact-form-grid textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 0.75rem 0 !important;
  color: #ffffff !important;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.5s ease;
  outline: none !important;
  width: 100%;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  border-bottom-color: #ffffff !important;
}

.contact-form-grid textarea {
  resize: none;
}

/* Placeholder Color */
.contact-form-grid ::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.form-submit {
  padding-top: 1rem;
}

.form-submit input[type=submit] {
  width: 100%;
  padding: 1rem 3rem;
  background-color: #ffffff !important;
  color: var(--primary-color, #000000) !important; /* Replace with your primary color hex */
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none !important;
}

.form-submit input[type=submit]:hover {
  background-color: #edebe9 !important;
}

/* CF7 Specific Fix: Remove default error spans from breaking layout */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Clean hover effects for the dynamic menu links */
.footer-nav-list li a,
footer nav ul li a {
  transition: color 0.3s ease-in-out;
}

.footer-nav-list li a:hover,
footer nav ul li a:hover {
  color: rgba(0, 0, 0, 0.6);
  /* Muted version of your primary */
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}
.animate-scroll-line {
  animation: scroll-line 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* For smooth parallax on scroll (Optional) */
@media (min-width: 1024px) {
  .scrolled img {
    transform: translateY(10%); /* Subtle movement as user scrolls */
  }
}
/* Container for the main response message (Sent/Failed) */
.cf7-custom-style .wpcf7-response-output {
  margin: 20px 0 0 0 !important;
  padding: 15px 20px !important;
  border: 1px solid #fca5a5 !important; /* Subtle border */
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #fca5a5;
}

/* Success Message Style */
.cf7-custom-style .wpcf7-mail-sent-ok {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Error/Validation Message Style */
.cf7-custom-style .wpcf7-validation-errors,
.cf7-custom-style .wpcf7-acceptance-missing,
.cf7-custom-style .wpcf7-aborted {
  background-color: rgba(185, 28, 28, 0.1) !important; /* Very subtle red tint */
  color: #fca5a5 !important; /* Soft red text */
  border-color: rgba(185, 28, 28, 0.3) !important;
}

/* Individual field validation tips (the text under the input) */
.cf7-custom-style .wpcf7-not-valid-tip {
  color: #fca5a5 !important;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
  letter-spacing: 0.1em;
}

/* Hide the default spinner (optional, if you want to use a custom loader) */
.cf7-custom-style .wpcf7-spinner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: white;
}

/* Base state for revealable sections */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* Active state triggered by Alpine */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ken-burns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
.animate-ken-burns {
  animation: ken-burns 30s ease-out forwards;
}
