/**
 * MyOMR Footer – Premium fat footer
 * Single source of truth for footer styles
 */

/* ========================================
   Variables & Base
======================================== */
.footer-section {
  --footer-bg: #0a1410;
  --footer-bg-gradient: linear-gradient(175deg, #0d1f18 0%, #0a1410 45%, #07120d 100%);
  --footer-accent: #22c55e;
  --footer-accent-hover: #4ade80;
  --footer-accent-muted: rgba(34, 197, 94, 0.25);
  --footer-text: #b8d4be;
  --footer-text-muted: #7a9a80;
  --footer-heading: #ffffff;
  --footer-border: rgba(34, 197, 94, 0.12);
  --footer-card: rgba(22, 53, 34, 0.4);
  --footer-max: 1280px;
  font-family: "Poppins", -apple-system, sans-serif;
  background: var(--footer-bg-gradient);
  position: relative;
  overflow: hidden;
}

/* Subtle top glow */
.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--footer-accent) 50%, transparent 90%);
  opacity: 0.4;
}

/* Optional grain texture overlay */
.footer-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   CTA Bar (Find us / Call / Mail)
======================================== */
.footer-cta {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--footer-border);
  position: relative;
  z-index: 1;
}

.footer-cta__inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-cta__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--footer-card);
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.footer-cta__item:hover {
  border-color: var(--footer-accent-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.footer-cta__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  color: var(--footer-accent);
  font-size: 1.1rem;
}

.footer-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-cta__text strong {
  color: var(--footer-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-cta__text span {
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

/* ========================================
   Main Footer (Fat content area)
======================================== */
.footer-main {
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-main__inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .footer-main__inner {
    grid-template-columns: minmax(240px, 1.2fr) minmax(400px, 2fr) minmax(220px, 1fr);
  }
}

@media (max-width: 991px) {
  .footer-main__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ========================================
   Brand column
======================================== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand__logo img {
  max-width: 130px;
  height: auto;
  display: block;
  filter: brightness(1.08);
}

.footer-brand__tagline {
  color: var(--footer-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* Social */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social__label {
  color: var(--footer-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-social__links {
  display: flex;
  gap: 0.5rem;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-social__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-social__link--fb { background: #1877f2; }
.footer-social__link--tw { background: #1da1f2; }
.footer-social__link--ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social__link i {
  font-size: 1rem;
}

/* ========================================
   Nav columns (3-column grid within)
======================================== */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 767px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

.footer-nav__col {
  min-width: 0;
}

.footer-nav__title {
  color: var(--footer-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--footer-accent);
  display: inline-block;
  letter-spacing: 0.02em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--footer-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--footer-accent);
  padding-left: 4px;
}

/* ========================================
   Subscribe column
======================================== */
.footer-subscribe {
  padding: 1.25rem;
  background: var(--footer-card);
  border: 1px solid var(--footer-border);
  border-radius: 14px;
}

.footer-subscribe__title {
  color: var(--footer-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
}

.footer-subscribe__desc {
  color: var(--footer-text-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.footer-subscribe__form {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--footer-border);
}

.footer-subscribe__form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
}

.footer-subscribe__form input::placeholder {
  color: var(--footer-text-muted);
}

.footer-subscribe__form input:focus {
  outline: none;
}

.footer-subscribe__form button {
  padding: 0 1rem;
  background: var(--footer-accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-subscribe__form button:hover {
  background: var(--footer-accent-hover);
}

.footer-subscribe__form button i {
  font-size: 1rem;
}

/* ========================================
   Bottom bar (copyright + legal links)
======================================== */
.footer-bottom {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--footer-border);
  position: relative;
  z-index: 1;
}

.footer-bottom__inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-text-muted);
}

.footer-bottom__copy a {
  color: var(--footer-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom__copy a:hover {
  color: var(--footer-accent-hover);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-bottom__links a {
  font-size: 0.85rem;
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom__links a:hover {
  color: var(--footer-accent);
}

@media (max-width: 576px) {
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}
