/* Shared responsive baseline styles for El Verbo */
/* Google Fonts are loaded in the HTML files. */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.5;
}

.left-panel {
  flex: 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.left-panel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
}
.left-panel h2 {
  position: absolute;
  top: 20px;   /* places text near the top */
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 6vw, 6.25rem);
  color: #fff; /* use white for better contrast over images */
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 1;
  text-align: center;
  /* gentle fade + subtle scale for a more elegant entrance (slower) */
  animation: leftFadeIn 1000ms cubic-bezier(.2,.8,.2,1) both;
}

/* Page-specific left-panel backgrounds (set these classes on the .left-panel element) */
.left-elverbo { background-image: url('../Images/elverbo-logo.png'); }
.left-vision { background-image: url('../Images/Vision.png'); }
.left-products { background-image: url('../Images/Product.png'); }
.left-about { background-image: url('../Images/aboutus.png'); }
.left-contact { background-image: url('../Images/contact.png'); }

.right-panel {
  flex: 1;
  background: linear-gradient(135deg, #008080, #006666);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  animation: fadeIn 1.2s ease-in-out;
}
.right-panel h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.25rem, 3.5vw, 2rem); /* responsive heading */
  color: orange;
  margin-bottom: 1.25rem;
  animation: slideIn 1s ease-out;
}
.right-panel p {
  font-size: clamp(1rem, 2.4vw, 1.75rem); /* readable, responsive body copy */
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in-out;
  text-align: justify;
  margin-bottom: 1.25rem;
}

.menu a {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: white;
  text-decoration: none;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  margin: 0.75rem 0;
  transition: all 0.3s ease;
  position: relative;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: orange;
  transition: width 0.3s ease;
}
.menu a:hover { color: orange; transform: translateX(5px); }
.menu a:focus { outline: 3px solid rgba(255,165,0,0.25); outline-offset: 3px; }
.menu a:hover::after { width: 100%; }

/* Button styling */
.right-panel a.button {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 600;
  color: white;
  background-color: #5b15dd; /* accent */
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}
.right-panel a.button:hover { background-color: #006666; transform: translateY(-3px); }
.right-panel a.button:focus { outline: 3px solid rgba(91,21,221,0.25); outline-offset: 3px; }

/* Animations */
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideIn { from {transform: translateY(-20px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

@keyframes leftFadeIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.985); }
  60% { opacity: 0.8; transform: translateX(-50%) translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* legacy rise kept for reference (not used) */
@keyframes rise { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .left-panel h2,
  .right-panel h2,
  .right-panel p,
  .menu a,
  .right-panel a.button {
    animation: none !important;
    transition: none !important;
  }
}

/* small utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive map embed wrapper */
.map-embed { width: 100%; height: 0; padding-bottom: 56.25%; position: relative; overflow: hidden; margin-top: 1rem; }
.map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Contact list and icons */
.contact-list { margin: 0; padding: 0; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.contact-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; display: inline-block; color: orange; }
.contact-item strong { display:block; }
.contact-item a { color: inherit; text-decoration: underline; }
