/* ================================================
   Footer Styles – Qubic3D Marketing Site
   Extracted from components.css for modularity
   ================================================ */

.footer {
  position: relative;
  padding: 48px 0 48px;
  background: #0B0C18;
  color: var(--c-text-med);
}

/* Gradient top border */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
}

/* Grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
  gap: 40px;
}

/* Prevent grid items from expanding beyond column width */
.footer-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  overflow: hidden;
}

/* Brand section */
.footer-brand .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}

.footer-brand .logo img {
  height: 112px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text-hi);
  display: inline-block;
}

.footer-brand .logo-text .grad-text {
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand .footer-mission {
  margin-top: .75rem;
  max-width: 260px;
}

/* Details/accordion columns - always open, no dropdown */
.footer-grid details {
  border: none;
  pointer-events: none;
}

.footer-grid details a {
  pointer-events: auto;
}

.footer-grid details input,
.footer-grid details button,
.footer-grid details form,
.footer-grid details textarea,
.footer-grid details select {
  pointer-events: auto;
}

.footer-grid summary {
  list-style: none;
  cursor: default;
  font-weight: 600;
  color: var(--c-text-hi);
  margin-bottom: .75rem;
  display: block;
}

.footer-grid summary::-webkit-details-marker {
  display: none;
}

/* Remove the + and - indicators */
.footer-grid summary::after,
.footer-grid details[open] summary::after {
  content: none;
}

/* Lists */
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
}

.footer-grid li {
  width: 100%;
}

/* Links */
.footer-grid a {
  color: var(--c-text-med);
  text-decoration: none;
  transition: color var(--motion-fade) var(--ease-out);
  display: block;
  width: fit-content;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

/* Link underline animation */
.footer-grid a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 2px;
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
  transition: width var(--motion-fade) var(--ease-out);
  max-width: 100%;
  box-sizing: border-box;
}

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

.footer-grid a:hover::after {
  width: 100%;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  margin: 24px 0;
}

.footer-social i {
  font-size: 24px;
  color: var(--c-text-med);
  transition: color var(--motion-fade) var(--ease-out);
}

.footer-social a:hover i {
  color: var(--c-grad-a);
}

/* Newsletter Signup */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-description {
  font-size: 0.875rem;
  color: var(--c-text-med);
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-hi);
  font-size: 0.875rem;
  transition: border-color var(--motion-fade) var(--ease-out);
  width: 100%;
  box-sizing: border-box;
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--c-grad-a);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-input::placeholder {
  color: var(--c-text-low);
}

.newsletter-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity var(--motion-fade) var(--ease-out);
}

.newsletter-button:hover:not(:disabled) {
  opacity: 0.9;
}

.newsletter-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-message {
  display: none;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.newsletter-message--success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-message--error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.newsletter-message--info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Legal line */
.footer-legal {
  text-align: center;
  font-size: .875rem;
  color: var(--c-text-low);
}

.footer-legal a {
  color: var(--c-text-med);
  text-decoration: none;
  transition: color var(--motion-fade) var(--ease-out);
}

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

/* Mobile: Column layout only */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop: 5 columns */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}
