/*
  Footer Re-design – Unified Single-Section Layout
  CAN Design Studio | Responsive: Desktop → Tablet → Mobile
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --footer-bg: #0b0b0b;
  --footer-text: #a0a0a0;
  --footer-heading: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.08);
  --input-bg: #181818;
  --input-focus: #252525;
  --footer-font: 'Inter', sans-serif;
  --footer-accent: #e8e8e8;
}

/* ─── Base ─────────────────────────────────────────── */
.footer-new {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--footer-font);
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

/* Subtle top border */
.footer-new::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin-bottom: 90px;
}

/* ─── Unified Body Grid ─────────────────────────────── */
/* 5 columns: [logo+newsletter] [services] [company] [contact] [social] */
.footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.2fr;
  gap: 50px 60px;
  padding-bottom: 70px;
}

/* ─── Column 1: Brand + Newsletter ─────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
  display: block;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--footer-text);
  max-width: 280px;
}

/* Newsletter */
.footer-newsletter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--footer-accent);
  margin-bottom: 12px;
}

.newsletter-form {
  position: relative;
  max-width: 300px;
}

.newsletter-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.newsletter-input-wrapper input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--footer-border);
  padding: 13px 48px 13px 44px;
  border-radius: 999px;
  color: var(--footer-heading);
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: var(--footer-font);
}

.newsletter-input-wrapper input::placeholder { color: #555; }

.newsletter-input-wrapper input:focus {
  outline: none;
  background: var(--input-focus);
  border-color: rgba(255,255,255,0.2);
}

.newsletter-input-wrapper .icon-left {
  position: absolute;
  left: 16px;
  color: #555;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.newsletter-btn {
  position: absolute;
  right: 6px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--footer-heading);
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, transform 0.25s ease;
}

.newsletter-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateX(2px);
}

/* ─── Column 2 & 3: Link Lists ──────────────────────── */
.footer-col h4 {
  color: var(--footer-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 14px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

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

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--footer-heading);
  padding-left: 5px;
}

/* ─── Column 4: Contact Info ──────────────────────── */
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-contact-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.6;
  transition: color 0.25s ease;
}

.footer-contact-item a:hover {
  color: var(--footer-heading);
}

.footer-contact-item .contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-contact-item a:hover .contact-icon {
  opacity: 1;
}

address {
  font-style: normal;
}

/* ─── Column 5: Social Icons ──────────────────────── */
.footer-social-col h4 {
  color: var(--footer-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 14px;
}

.footer-social-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--footer-border);
  color: var(--footer-text);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.14);
  color: var(--footer-heading);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* ─── Bottom Bar ──────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 28px 0;
  text-align: center;
}

.footer-bottom .text {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.footer-bottom .text a {
  color: #888;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bottom .text a:hover {
  color: var(--footer-heading);
}

/* ─── Responsive: Large Laptop ────────────────────── */
@media (max-width: 1280px) {
  .footer-body {
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr 1.1fr;
    gap: 40px 45px;
  }
}

/* ─── Responsive: Tablet / Small Laptop ───────────── */
@media (max-width: 1024px) {
  .footer-body {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px 40px;
  }

  /* Brand col spans full width on tablet */
  .footer-brand {
    grid-column: span 3;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px 50px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--footer-border);
  }

  .footer-newsletter-group {
    flex: 1 1 260px;
  }

  .footer-social-col {
    grid-column: span 3;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--footer-border);
    padding-top: 30px;
    margin-top: -10px;
  }

  .footer-social-col h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    white-space: nowrap;
  }

  .footer-social-col h4::after { display: none; }
}

/* ─── Responsive: Tablet Portrait (768px) ──────────── */
@media (max-width: 768px) {
  .footer-new {
    padding-top: 56px;
  }

  .footer-new::before {
    margin-bottom: 48px;
  }

  /* 2-column grid: brand+social span full, rest 2-col */
  .footer-body {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }

  /* Brand: full width, column layout */
  .footer-brand {
    grid-column: span 2;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--footer-border);
  }

  .footer-tagline {
    font-size: 13px;
    max-width: 360px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  /* Services + Company: stay 2-col naturally */

  /* Contact: full width on tablet */
  .footer-col:nth-child(4) {
    grid-column: span 2;
  }

  /* Social: full width, inline */
  .footer-social-col {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--footer-border);
    margin-top: -8px;
  }

  .footer-social-col h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    white-space: nowrap;
  }

  .footer-social-col h4::after { display: none; }

  .social-icons {
    gap: 10px;
  }
}

/* ─── Responsive: Mobile (≤576px) ──────────────────── */
@media (max-width: 576px) {
  .footer-new {
    padding-top: 48px;
  }

  .footer-new::before {
    margin-bottom: 40px;
  }

  /* ── Grid: single col, but services+company stay 2-col ── */
  .footer-body {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  /* Brand: full width, centered */
  .footer-brand {
    grid-column: span 2;
    align-items: center;
    text-align: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--footer-border);
    gap: 16px;
  }

  .footer-logo img {
    max-width: 140px;
  }

  .footer-tagline {
    font-size: 13px;
    max-width: 280px;
    text-align: center;
  }

  .footer-newsletter-label {
    text-align: center;
  }

  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }

  .newsletter-input-wrapper input {
    font-size: 13px;
    padding: 12px 44px 12px 40px;
  }

  .footer-newsletter-group {
    width: 100%;
  }



  .footer-col h4 {
    font-size: 12px;
    letter-spacing: 1.4px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-links li {
    margin-bottom: 9px;
  }

  /* ── Contact: full width ── */
  .footer-col:nth-child(4) {
    grid-column: span 2;
    padding-top: 4px;
  }

  .footer-contact-items {
    gap: 16px;
  }

  .footer-contact-item a {
    font-size: 13px;
    gap: 10px;
  }

  /* ── Social: full width, grid layout ── */
  .footer-social-col {
    grid-column: span 2;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border);
    gap: 18px;
  }

  .footer-social-col h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .footer-social-col h4::after { display: none; }

  /* Social icons: wrap in a centered 4-per-row grid */
  .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }

  /* ── Copyright ── */
  .footer-bottom {
    padding: 22px 0;
  }

  .footer-bottom .text {
    font-size: 12px;
    line-height: 1.6;
  }
}



