/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-offwhite);
    color: var(--brand-charcoal);
    line-height: 1.5;
    /* Space for fixed bottom nav + iOS safe-area */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    min-height: 100%;
}

.wrapper {
    max-width: 800px; /* Narrower width for better readability in a single column */
    margin: 0 auto;
    padding: 0 20px;
}
.logo { width: 28px; height: 28px; object-fit: contain; }

/* Header & Logo */
body > header { 
    display: block;
    position: sticky; top: 0;
    z-index: 1000;

    background: var(--bg-white); 
    border-bottom: 1px solid var(--border-light); 
    padding: 15px 0;

    .wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .site {
      font-weight: 800; 
      font-size: 1.2rem; 
      display: flex; 
      align-items: center; 
      gap: 10px; 
      color: var(--brand-charcoal);
      text-decoration: none;
    }
    nav {
      display: flex; align-items: center; gap: 8px;
      a { 
        text-decoration: none; 
        color: var(--brand-charcoal); 
        font-weight: 500; 
        font-size: 0.9rem; 
      }
    }
    span { display: none }
}

/* Footer */
body > footer {
  margin-top: 70px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);

  .inner {
    padding: 34px 20px 18px;
    display: grid;
    gap: 26px;

    .brand {
      div {
        display: inline-flex;
        align-items: center;
        gap: 10px;

        span {
          font-weight: 800;
          letter-spacing: -0.2px;
        }
      }
      p {
          margin-top: 10px;
          color: var(--text-slate);
          font-size: 0.95rem;
          max-width: 46ch;
      }
    }


    .cols{
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;

      & > div{
        h3 {
          font-size: 0.72rem;
          letter-spacing: 0.12em;
          text-transform: uppercase;
          color: var(--primary-teal);
          margin-bottom: 10px;
          font-weight: 800;
        }

        ul {
          list-style: none;
          &#contacts{
            display: grid;
            gap: 10px;
          }
          &#social { display: flex }
        }
 
  
        a {
          text-decoration: none;
          color: var(--brand-charcoal);
          font-weight: 600;
          font-size: 0.95rem;
          display: inline-flex;
          align-items: center;
          gap: 10px;
          padding: 8px 8px;
          border-radius: 12px;
          transition: box-shadow 0.2s, color 0.2s, background 0.2s, border-color 0.2s;

          &:hover {
            color: var(--primary-teal);
            background: var(--bg-offwhite);
            box-shadow: 0 10px 22px var(--accent-glow);
          }

          .icon {
            width: 24px;
            height: 24px;;
            object-fit: contain;
          }
        }
      }
    }
  }

  .bottom {
    padding: 14px 20px 26px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-slate);

    span { font-size: 0.85rem }
  }
}

/* Desktop Styles */
@media (min-width: 800px) {
    body {
      padding-bottom: 0;
      & > header {
        display: block;
        span { display: inline }
      }

      & > footer {
        .inner {
          grid-template-columns: 1.2fr 1.8fr;
          align-items: start;
          gap: 34px;

          .cols{
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
          }
        }
      }
    }
}
