/* ==========================================================================
   Sheger Bread & Flour Factory - Clean Buttons Portal
   Full page background with overlay, max-height 100vh
   ========================================================================== */

:root {
  --brand-green: #145931;
  --brand-green-hover: #1b7340;
  --brand-gold: #d4af37;
  --brand-gold-hover: #e5bd44;
  --text-light: #ffffff;
  --font-base: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body.portal-body {
  font-family: var(--font-base);
  color: #1a3b22;
  background-color: #F6F3EA;
  /* Light overlay so the background image, all logos and bag are clearly visible */
  background-image: 
    linear-gradient(rgba(246, 243, 234, 0.18), rgba(246, 243, 234, 0.28)),
    url('../assets/look like.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

@media (max-width: 520px) {
  body.portal-body {
    background-size: cover;
    background-position: center center;
  }
}

/* Centered Container that fits 100vh perfectly */
.portal-shell {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* Brand Logo & Title */
.portal-brand-center {
  margin-bottom: 14px;
}

.portal-logo {
  width: 72px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.portal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0E4324;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.portal-subtitle {
  font-size: 0.76rem;
  color: #8C6A1E;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Clean Button Stack */
.portal-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 89, 49, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.portal-btn svg {
  flex-shrink: 0;
  stroke: #FFFFFF;
}

.portal-btn:hover {
  background: rgba(27, 115, 64, 0.98);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.portal-btn:active {
  transform: translateY(0);
}

/* Give Us Feedback Button (Gold) */
.portal-btn-gold {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border-color: rgba(255, 255, 255, 0.4);
  color: #0c2013;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.portal-btn-gold svg {
  stroke: #0c2013;
}

.portal-btn-gold:hover {
  background: linear-gradient(135deg, #e5bd44, #c99512);
  border-color: #FFFFFF;
  color: #000000;
}

.portal-btn-gold:hover svg {
  stroke: #000000;
}

/* Domain Link */
.portal-domain-link-wrap {
  margin-top: 14px;
}

.portal-domain-link {
  color: #0E4324;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.portal-domain-link:hover {
  color: #8C6A1E;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Clean Image Popup Modal
   ========================================================================== */
.simple-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 16, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.simple-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-bar {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #DC3545;
}

.modal-img-wrap {
  max-width: 95vw;
  max-height: 82vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: #000;
  min-width: 280px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-img {
  max-width: 100%;
  max-height: 82vh;
  display: none;
  object-fit: contain;
  border-radius: 12px;
}

/* Spinner while loading new image */
.modal-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brand-gold);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 40px 20px;
}

.spinner-circle {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Clean Contact Card Modal (Replaces static image with interactive web card)
   ========================================================================== */
.contact-card {
  background: #fdfcf9;
  background-image: radial-gradient(#ece7da 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1.5px solid var(--brand-gold);
  border-radius: 18px;
  width: 100%;
  max-width: 370px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  color: #1a3b22;
  text-align: center;
}

.contact-card-top {
  padding: 22px 20px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-card-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-card-brand-logo {
  height: 26px;
  width: auto;
}

.contact-card-brand-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  line-height: 1.2;
}

.contact-card-brand-amharic {
  font-size: 0.68rem;
  color: #6c757d;
  display: block;
}

.contact-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-green);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.contact-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-person {
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e3d6;
}

.contact-person:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #164024;
  margin-bottom: 2px;
}

.contact-role {
  font-size: 0.82rem;
  font-style: italic;
  color: #556c5c;
  margin-bottom: 8px;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(20, 89, 49, 0.08);
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.contact-phone-link svg {
  stroke: var(--brand-green);
  transition: transform 0.2s;
}

.contact-phone-link:hover {
  background: var(--brand-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 89, 49, 0.25);
}

.contact-phone-link:hover svg {
  stroke: #ffffff;
  transform: scale(1.15);
}

.contact-card-footer {
  background: var(--brand-green);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 2px solid var(--brand-gold);
}

/* ==========================================================================
   Clean Simple Feedback Box
   ========================================================================== */
.feedback-box {
  background: #0d2817;
  border: 1.5px solid var(--brand-gold);
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.feedback-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.feedback-box p {
  font-size: 0.85rem;
  color: #c0d8c9;
  margin-bottom: 16px;
}

.feedback-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.feedback-stars button {
  background: none;
  border: none;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.feedback-stars button.active {
  color: var(--brand-gold);
  transform: scale(1.1);
}

.feedback-box textarea {
  width: 100%;
  min-height: 85px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.feedback-box textarea:focus {
  border-color: var(--brand-gold);
}

.feedback-box .submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--brand-gold);
  color: #0b1a0e;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.feedback-box .submit-btn:hover {
  opacity: 0.9;
}

.feedback-done {
  display: none;
  padding: 16px 0;
}

.feedback-done h4 {
  font-size: 1.25rem;
  color: var(--brand-gold);
  margin-bottom: 6px;
}

.feedback-done p {
  color: #c0d8c9;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
