/* ============================================
   Global Styles — Tim Healy Art Portfolio
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@100;200;300;400;700&family=Montserrat:wght@300;400;450&family=Nunito+Sans:wght@300;400&family=Bai+Jamjuree:wght@400;700&display=swap');

/* CSS Custom Properties */
:root {
  --color-text: rgb(8, 8, 8);
  --color-bg: #ffffff;
  --color-active: rgb(156, 156, 156);
  --font-display: 'Urbanist', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-form: 'Nunito Sans', sans-serif;
  --font-footer: 'Bai Jamjuree', sans-serif;
  --header-height: 82px;
  --content-max-width: 980px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---- Header ---- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.4s ease;
}

.site-header.header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.header-inner {
  padding: 0 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo a {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 8px;
  color: var(--color-text);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  top: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-right: 5px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-active);
}

.nav-link--active {
  color: var(--color-active);
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-bar a {
  display: flex;
  align-items: center;
}

.social-bar svg {
  width: 26px;
  height: 26px;
  fill: var(--color-text);
  transition: opacity 0.2s;
}

.social-icon-img {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s;
}

.social-bar a:hover svg,
.social-bar a:hover .social-icon-img {
  opacity: 0.6;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger span + span {
  margin-top: 6px;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-text);
}

.mobile-nav a.nav-link--active {
  color: var(--color-active);
}

/* ---- Footer ---- */
.site-footer {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 24px;
}

.site-footer p {
  font-family: var(--font-footer);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
}

/* ---- Utility ---- */
.body-lock {
  overflow: hidden;
}
