/* Skeleton Loader Styles (Doherty Threshold: <400ms perceived) */
.skeleton-loader {
  animation: fadeOut 0.5s ease 0.5s forwards;
  /* Fades out as content replaces it (handled by JS overwrite usually, but good for smooth exit if overlaid) */
}

/* Note: JS overwrites innerHTML, so we only see this if JS is slow. 
   Ideally, we want this to be visible immediately. 
   Since JS replaces content, we don't need a fadeOut animation unless we were appending.
   But current JS logic: mainContainer.innerHTML = ''; -> This kills the skeleton instantly.
   For now, we just style the static skeleton that sits there before JS runs.
*/

.skeleton {
  background: #e0e6ed;
  background: linear-gradient(90deg, #e0e6ed 25%, #f4f6f8 50%, #e0e6ed 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-hero {
  height: 80vh;
  background-color: #f4f6f8;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.skeleton-text {
  max-width: 600px;
}

.skeleton-eyebrow {
  width: 150px;
  height: 20px;
  margin-bottom: 2rem;
  border-radius: 999px;
}

.skeleton-title {
  width: 80%;
  height: 60px;
  margin-bottom: 1.5rem;
}

.skeleton-lead {
  width: 100%;
  height: 80px;
  margin-bottom: 2rem;
}

.skeleton-actions {
  display: flex;
  gap: 1rem;
}

.skeleton-btn {
  width: 160px;
  height: 50px;
  border-radius: 999px;
}

.skeleton-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.skeleton-h2 {
  width: 60%;
  height: 40px;
}

.skeleton-p {
  width: 100%;
  height: 100px;
}

/* Fitts's Law: Larger Touch Targets */
.nav a {
  padding: 0.75rem 1rem; /* Increased from 0.5rem 0.75rem */
}

.btn {
  min-height: 48px; /* Standard mobile touch target */
  min-width: 48px;
}

.social a {
  display: inline-block;
  padding: 0.5rem; /* Increase clickable area around icon */
  margin: -0.5rem; /* Negate margin to keep visual layout */
}

/* Law of Proximity & Common Region */
.section {
  padding: 8rem 0; /* More breathing room (was 6rem) */
}

.form-group {
  margin-bottom: 1.5rem; /* Clearer separation between fields */
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px; /* Slightly softer corners */
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Aesthetic-Usability Effect: Refined Shadows & Cards */
.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
