/* =============================================
   AZZI STUDIOS — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Squada+One&display=swap');

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:          #ffffff;
  --bg-dark:     #ffffff;
  --text:        #111111;
  --text-light:  #111111;   /* no grays anywhere — everything resolves to black */
  --white:       #ffffff;
  --black:       #000000;
  --border:      rgba(34,34,34,0.15);

  --margin:      4.44444vw;
  --gutter:      0.83333vw;

  --ease-out:    cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
  --dur:         0.8s;

  --nav-h:       60px;
}

@media (max-width: 768px) {
  :root {
    --margin: 5vw;
    --gutter: 3vw;
    --nav-h:  52px;
  }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', 'Courier New', monospace;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100%;
}

/* ── LAYOUT ────────────────────────────────── */
.c-layout {
  background: var(--bg);
  margin: 0 auto;
  max-width: 2400px;
  position: relative;
  overflow: hidden;
}

.wrap {
  padding-left: var(--margin);
  padding-right: var(--margin);
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ── NAVIGATION ─────────────────────────────── */
.c-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 2400px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin);
  height: var(--nav-h);
  mix-blend-mode: multiply;
  transition: opacity 0.45s ease;
}
.c-nav.nav--idle { opacity: 0; pointer-events: none; }
.c-nav.nav--idle * { pointer-events: none; }

.c-nav__logo {
  /* Loader-style logo (Space Mono, bold, uppercase, spaced) sized
     to match the nav buttons — kept identical across all pages. */
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.c-nav__logo sup {
  font-size: 0.5em;
  vertical-align: super;
}

.c-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.c-nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  white-space: nowrap;
  color: #111;
}

.c-nav__links a:hover { opacity: 0.45; }
.c-nav__links a.active { font-weight: 700; }

.c-nav__right {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-nav__cta {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.c-nav__cta:hover { opacity: 0.45; }

/* Mobile nav */
.c-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  /* 12px padding + 22px span = 46px tap target (Apple HIG: 44px min). */
  padding: 12px;
  margin: -8px;
}

.c-nav__hamburger span {
  display: block;
  width: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s;
}
/* Keep the hamburger / × visible above the menu overlay so it
   doubles as the close button. */
.c-nav__hamburger { position: relative; z-index: 9001; }
/* Hamburger morphs into × when the menu is open. ±3.25px so the
   two spans meet at the geometric centre of the 8px-tall stack. */
.c-nav.menu-open .c-nav__hamburger span:nth-child(1){transform:translateY(3.25px) rotate(45deg)}
.c-nav.menu-open .c-nav__hamburger span:nth-child(2){transform:translateY(-3.25px) rotate(-45deg)}

@media (max-width: 768px) {
  .c-nav {
    padding: 0 1.25rem;
    top: max(0px, env(safe-area-inset-top));
  }
  .c-nav__logo { font-size: 0.7rem; letter-spacing: 0.22em; }
  .c-nav__links { display: none; }
  .c-nav__right { display: none; }
  .c-nav__hamburger { display: flex; }

  .c-nav.menu-open .c-nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    left: 0;
    transform: none;
  }

  .c-nav.menu-open .c-nav__links a {
    font-size: 1.5rem;
  }
}

/* ── FOOTER ─────────────────────────────────────────────
   Single shared layout across every page (index gallery
   footer, project page footer, about/services/contact).
   3-col grid on desktop: copyright · Creative Studio · social
   links. On mobile (≤768px) it stacks centered: social links
   on top, copyright below, center label hidden. Text size
   stays identical to desktop so the footer reads the same way
   on every device. */
.c-footer {
  background: var(--bg);
  padding: 2.5rem var(--margin) 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: #111;
  font-family: 'Space Mono', 'Courier New', monospace;
}
.c-footer__copy {
  justify-self: start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
}
.c-footer__center {
  justify-self: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}
.c-footer__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
}
.c-footer__right a {
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}
.c-footer__right a:hover { opacity: 0.4; }

@media (max-width: 768px) {
  .c-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 2.5rem 1rem;
  }
  .c-footer__center { display: none; }
  /* Social links on ONE row, centered. */
  .c-footer__right {
    order: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .c-footer__copy {
    order: 2;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    max-width: 90vw;
    line-height: 1.4;
    white-space: normal;
  }
}

/* ── TYPOGRAPHY ─────────────────────────────── */
.t-display {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.t-heading {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.t-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-body {
  font-size: 0.875rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ── BUTTONS & LINKS ────────────────────────── */
.c-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap 0.25s var(--ease-out);
}

.c-arrow-link:hover { gap: 1rem; }

/* ── SECTION SPACING ────────────────────────── */
.s-section { padding: 5rem 0; }
.s-section--sm { padding: 3rem 0; }
.s-section--lg { padding: 8rem 0; }

/* ── DIVIDER ────────────────────────────────── */
.c-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── ANIMATION ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── PROJECT CARD ───────────────────────────── */
.c-project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.c-project-card img {
  transition: transform 0.8s var(--ease-expo);
}

.c-project-card:hover img { transform: scale(1.04); }

.c-project-card__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.c-project-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
