/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 4px 16px rgba(0, 158, 138, 0.35);
}

/* On dark/hero backgrounds: outlined button is white */
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* On light backgrounds: outlined is teal */
.btn-outline--light {
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  background: transparent;
}

.btn-outline--light:hover,
.btn-outline--light:focus-visible {
  background: var(--color-surface-2);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loading {
  display: flex;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* ==================== NAV ==================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 16px rgba(26, 43, 40, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav text is white on hero, dark when scrolled */
.site-nav .nav-logo__jg       { color: var(--color-white); }
.site-nav .nav-logo__sep      { color: rgba(255, 255, 255, 0.7); }
.site-nav .nav-logo__cleaning { color: rgba(255, 255, 255, 0.6); }
.site-nav .nav-link           { color: rgba(255, 255, 255, 0.8); }
.site-nav .nav-hamburger span { background: var(--color-white); }

.site-nav.scrolled .nav-logo__jg       { color: var(--color-fg); }
.site-nav.scrolled .nav-logo__sep      { color: var(--color-accent); }
.site-nav.scrolled .nav-logo__cleaning { color: var(--color-fg-muted); }
.site-nav.scrolled .nav-link           { color: var(--color-fg-muted); }
.site-nav.scrolled .nav-hamburger span { background: var(--color-fg); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}

.nav-logo__jg {
  font-size: 1.5rem;
  font-weight: var(--fw-black);
  transition: color var(--dur-base);
}

.nav-logo__sep {
  font-size: 1rem;
  font-weight: var(--fw-regular);
  font-family: var(--font-body);
  margin: 0 0.1rem;
  transition: color var(--dur-base);
}

.nav-logo__cleaning {
  font-size: 1rem;
  font-weight: var(--fw-regular);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: color var(--dur-base);
}

.nav-logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
  padding: var(--space-1) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--color-accent);
  transition: right var(--dur-base) var(--ease-out);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: rgba(255, 255, 255, 1);
}

.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link:focus-visible {
  color: var(--color-fg);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  right: 0;
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.nav-cta {
  display: none;
}

/* Hamburger */
.nav-toggle-input {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              background var(--dur-base);
  transform-origin: center;
}

.nav-toggle-input:checked + .nav-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked + .nav-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-cta { display: none; }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(26, 43, 40, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-out);
  }

  .nav-toggle-input:checked ~ .nav-links {
    max-height: 300px;
  }

  .nav-link {
    padding: var(--space-4) var(--container-px);
    border-bottom: 1px solid var(--color-border);
    min-height: 56px;
    color: var(--color-fg-muted) !important;
  }

  .nav-link::after { display: none; }
}

@media (min-width: 769px) {
  .nav-cta { display: inline-flex; }
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-card);
  transition: border-left-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.service-card:hover {
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.service-card__icon {
  color: var(--color-accent);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-fg);
}

.service-card__text {
  font-size: var(--text-base);
  color: var(--color-fg-muted);
  line-height: 1.65;
}

/* ==================== USP BLOCKS ==================== */
.usp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
}

.usp-block__icon {
  color: #5EFDE5;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.usp-block__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-white);
}

.usp-block__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

/* ==================== FORM ==================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-fg);
  letter-spacing: 0.02em;
}

.optional-label {
  font-weight: var(--fw-regular);
  color: var(--color-fg-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-fg);
  padding: 0.75rem 1rem;
  min-height: 48px;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-fg-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-fg-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1em;
  display: block;
}

/* Checkbox */
.form-group--checkbox { flex-direction: column; gap: var(--space-2); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), border-color var(--dur-base);
  margin-top: 1px;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-label input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form feedback */
.form-feedback {
  padding: 0;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  transition: all var(--dur-base) var(--ease-out);
}

.form-feedback:not(:empty) {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-feedback.success {
  background: rgba(0, 158, 138, 0.08);
  color: var(--color-accent-dark);
  border: 1px solid rgba(0, 158, 138, 0.25);
}

.form-feedback.error {
  background: rgba(217, 48, 37, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(217, 48, 37, 0.25);
}

/* Contact detail items */
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-fg-muted);
  font-size: var(--text-base);
  min-height: 44px;
  transition: color var(--dur-base) var(--ease-out);
}

.contact-detail-item:hover,
.contact-detail-item:focus-visible {
  color: var(--color-accent);
}

.contact-detail-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-detail-item__icon {
  color: var(--color-accent);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== FOOTER LOGO ==================== */
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.footer-logo .nav-logo__jg,
.footer-logo .nav-logo__sep,
.footer-logo .nav-logo__cleaning {
  font-family: var(--font-display);
}

.footer-tagline {
  width: 100%;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  margin-top: var(--space-1);
  letter-spacing: 0.03em;
}

/* ==================== SECTION LABEL (light variant) ==================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}
