/* Amexhe Flooring — global: sticky nav, nav underline, buttons, parallax, form, reveal */

:root {
  --nav-underline: #c5a059;
  --form-panel: #161616;
  --form-input-bg: #1e1e22;
  --form-send: #d4af37;
  --form-send-hover: #e6c04a;
}

html {
  scroll-behavior: smooth;
}

/* ——— Sticky site header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-on-dark, #fff);
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  flex-wrap: wrap;
}

.site-header .nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f0f0f0;
  text-decoration: none;
}

.site-header .nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--nav-underline);
  transition: width 0.28s ease;
  border-radius: 2px;
}

.site-header .nav-links a:hover::after,
.site-header .nav-links a:focus-visible::after,
.site-header .nav-links a.active::after {
  width: 100%;
}

.site-header .nav-links a.active {
  color: var(--nav-underline);
}

/* ——— Buttons: subtle gradient on hover ——— */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-image: linear-gradient(135deg, #e8cf88 0%, #c5a059 45%, #a8863d 100%);
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-image: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(24, 24, 24, 0.85));
  border-color: rgba(255, 255, 255, 0.55);
}

/* ——— Hero background parallax (desktop) ——— */
.hero-bg-fixed {
  background-attachment: scroll;
}

@media (min-width: 992px) {
  .hero-bg-fixed {
    background-attachment: fixed;
  }
}

/* ——— Scroll reveal ——— */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Estimate form (contact + shared) ——— */
.estimate-form-card {
  background: var(--form-panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: clamp(22px, 4vw, 34px);
}

.estimate-form-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.estimate-form-card > .estimate-intro {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.estimate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.estimate-form-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .estimate-form-grid {
    grid-template-columns: 1fr;
  }
}

.estimate-form-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.estimate-form-card .field-group {
  display: flex;
  flex-direction: column;
}

.estimate-form-card input,
.estimate-form-card select,
.estimate-form-card textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--form-input-bg);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.estimate-form-card input::placeholder,
.estimate-form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.estimate-form-card select {
  cursor: pointer;
  appearance: none;
  background-color: var(--form-input-bg);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c5a059' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.estimate-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.estimate-form-card button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  color: #111;
  background: linear-gradient(180deg, var(--form-send), #b8942f);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.estimate-form-card button[type="submit"]:hover,
.estimate-form-card button[type="submit"]:focus-visible {
  background: linear-gradient(180deg, var(--form-send-hover), #c5a059);
  transform: translateY(-1px);
}

.estimate-form-card .form-feedback {
  font-size: 14px;
  color: var(--gold, #c9a24a);
  min-height: 1.25em;
  margin: 4px 0 0;
}

.estimate-form-card .form-feedback.is-error {
  color: #f0a0a0;
}

.estimate-form-card .form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
