* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

:root {
  --background: #d1e5fe;
  --page: #f5f0ec;
  --button-hover1: #9863ee;
  --button-button: #e5c6ff;
  --button-hover2: #e5c6ff;
  --button-hover3: #f598ad;
  --transition: 0.4s ease-in-out;
  --footer-bg: #2b2e3a;
  --text-light: #5a1a1a;
}

/* -----------------------------
  HERO and HEADER styles Carina
---------------------------------*/

/* -----------------------------
   HERO and HEADER styles Carina
---------------------------------*/
.header {
  min-height: 200px;
}
.body {
  display: flex;
  background-color: var(--background);
  padding-bottom: 40px;
  height: 100vh;
}

/*hero*/
.hero {
  position: relative;
  background-size: cover;
  overflow: hidden;
  height: 1000px;
  flex-wrap: nowrap;
  background-image: url(../img/Gemini_Generated_Image_q8ixlmq8ixlmq8ix.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#img {
  height: 900px;
}

.hero-text h2 {
  position: absolute;
  top: 0;
  right: 100px;
  left: 100px;
  font-size: 90px;
  color: var(--footer-bg);
  pad: 10px;
}

/*nav menu*/
.nav-items {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  min-width: 300px;
  justify-content: space-around;
  align-items: center;
  padding: 0 100px;
  background-color: var(--background);
  height: 200px;
}

/*pawprint*/
.icon {
  fill: var(--button-hover1);
  color: var(--button-hover1);
}

.page-icon {
  display: flex;
  font-size: 25px;
}

/*menu*/
.menu {
  background-color: var(--background);
}

#button {
  background-color: var(--button-button);
  border-color: var(--button-hover1);
  border-radius: 40px;
  font-size: 14px;
  font-weight: bold;
  margin: 3px;
  margin-top: 10px;
  height: 45px;
  width: 100px;
  cursor: pointer;
}
#button:hover {
  background-color: var(--button-hover1);
  color: #fff;
  transition: var(--transition);
}

/*media for different sizes*/

@media (min-width: 1000px) {
  #img {
    height: 1100px;
    width: 1500px;
  }
}
@media (max-width: 800px) {
  .hero {
    height: 800px;
  }
  #img {
    height: 500px;
  }
  .hero-text h2 {
    font-size: 40px;
  }
}

@media (max-width: 500px) {
  #img {
    height: 300px;
  }
  .hero-text h2 {
    font-size: 20px;
  }
}

/* -----------------------------
   CARDS KAUSAR
---------------------------------*/
.dogs-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

.dogs-card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 740px) {
  .dogs-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 429px) {
  .dogs-card-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}

.dog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 20px 0;
  box-shadow: -7px 10px 20px #d1e5fe80;
  transition: all 0.5s ease;
}

.dog-card:hover {
  transform: scale(1.02);
}

.dog-card:focus {
  outline: 5px solid #3399ff;
}

.focused-field {
  outline: 4px solid #3399ff; /* синяя рамка */
  outline-offset: 4px;
  border-radius: 2px;
}

/* Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dog-card-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.dog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Animation */
  opacity: 0;
  animation: fadeIn 0.99s forwards;
}

.dog-card-title {
  margin: 15px 0;
  font-size: 20px;
}

.tag {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
}
.tag-Friendly {
  background-color: #ff6b6b;
}
.tag-Playful {
  background-color: #ffad48;
}
.tag-Loyal {
  background-color: #fdffb6;
}
.tag-Gentle {
  background-color: #caffbf;
}
.tag-Calm {
  background-color: #9bf6ff;
}
.tag-Protective {
  background-color: #a0c4ff;
}
.tag-Energetic {
  background-color: #bdb2ff;
}
.tag-Affectionate {
  background-color: #ffc6ff;
}
.tag-Obedient {
  background-color: #fffffc;
}
.tag-Curious {
  background-color: #f06595;
}

.dog-card-icon {
  fill: var(--background);
  width: 20px;
}
.dog-card-flexbox {
  display: flex;
  align-items: center;
  padding: 5px 20px;
  gap: 10px;
}
.dog-card-text {
  font-size: 16px;
}
.dog-card-bold {
  font-weight: bold;
}

/* -----------------------------
          ARTA - FORM
---------------------------------*/

#adoption-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1e5fe;
  margin-bottom: 100px;
}

#adoption-form h2 {
  margin-bottom: 1.5rem;
}

.form-control {
  margin-bottom: 1rem;
}

#adoption-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#adoption-form input[type="text"],
#adoption-form input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

#adoption-form input[type="text"]:focus-visible,
#adoption-form input[type="email"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#adoption-form fieldset {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#adoption-form legend {
  font-weight: 500;
  padding: 0 0.5rem;
}

#adoption-form .radio-group {
  margin: 0.5rem 0;
}

#adoption-form .radio-group label {
  display: inline-block;
  margin-left: 0.5rem;
}

#adoption-form button {
  background-color: var(--background);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-top: 1rem;
}

#adoption-form button:hover {
  background: #e6e9ee;
}

#adoption-form button:focus-visible {
  outline: 3px solid #0b84ff;
  outline-offset: 2px;
}

/*Visually hidden but still announced by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* prevent text wrap */
  border: 0;
}

/**Focus indicator for keyboard users*/
:focus-visible {
  outline: 3px solid #0b84ff;
  outline-offset: 2px;
}

.error {
  margin-top: 0.5rem;
  color: #dc3545;
  font-size: 0.875rem;
}

.hint {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

#adoption-form [aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

#response {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 5px;
  text-align: center;
}

:focus {
  outline: 2px solid #007bff;
}
/* -----------------------------
FOOTER styles (from origin/Footer)
-----------------------------*/

.footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding: 30px 10px 0;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.paw-icon {
  width: 120px;
  height: 120px;
  color: #eaeaea;
  transform: rotate(-90deg);
  margin-top: -10px;
}

.footer h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--button-hover2);
  outline: none;
}

.socials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.socials a svg {
  width: 24px;
  height: 24px;
  color: #eaeaea;
  transition: color 0.3s, transform 0.3s;
}

.socials a:hover svg,
.socials a:focus-visible svg {
  color: var(--button-hover3);
  transform: scale(1.1);
}

.footer-divider {
  border: none;
  border-top: 1px solid #3a3d4a;
  margin: 40px 0 20px;
}

.footer-bottom {
  width: 100%;
  padding: 1rem 1.5rem;
  border-top: 1px solid #3a3d4a;
  font-size: 0.9rem;
  color: #bbb;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 40px 20px;
  }

  .paw-icon {
    width: 90px;
    height: 90px;
    margin-top: 0;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .socials ul {
    justify-content: center;
  }
}
