/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #F3F2EF;
  --text:      #27282B;
  --muted:     #6B6B63;
  --accent:    #C89A2E;
  --accent-dk: #A87C1A;
  --white:     #FFFFFF;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
}

/* =====================
   LAYOUT
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo svg {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a.active {
  color: var(--accent);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
  padding: 3rem 2rem 4rem;
}

.hero__logo {
  margin-bottom: 2rem;
}

.hero__logo img {
  width: clamp(220px, 30vw, 340px);
  height: auto;
}

.hero__wordmark {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-top: 0.5rem;
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text);
  margin-top: 0.4rem;
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: var(--muted);
  margin: 0 auto 2.5rem;
  opacity: 0.5;
}

.hero__tagline {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 2.5rem;
}

/* =====================
   BUTTONS
   ===================== */
.btn-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 2.5rem;  /* height, width */
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}

.btn--outline {
  border-color: rgba(39, 40, 43, 0.5);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--filled {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--filled:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn--dark {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--dark:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn-group--center {
  justify-content: center;
}

/* =====================
   WORK PAGE
   ===================== */
.page--work {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page--work main {
  flex: 1;
}

.page--work .site-footer {
  margin-top: 0;
}

.works-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
}

.works-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 3.5rem;
}

.works-heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 3vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  column-gap: 2.5rem;
  row-gap: 2.5rem;
  justify-content: center;
}

.works-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1 / 1;
  cursor: default;
}

a.works-item {
  cursor: pointer;
}

.works-item__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 0.3s ease;
}

.works-item:hover .works-item__bg {
  filter: blur(6px) brightness(1);
}

.works-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.works-item:hover .works-item__overlay {
  opacity: 1;
}

.works-item__logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav {
    padding: 1.25rem 1.25rem;
  }

  .nav__links {
    gap: 1.5rem;
  }

  .hero {
    padding: 2rem 1.25rem 3rem;
    min-height: calc(100vh - 64px);
  }

  .works-section {
    padding: 2rem 1.25rem 3rem;
  }

  .works-grid {
    grid-template-columns: repeat(1, 240px);
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(3, 240px);
  }
}

/* =====================
   HOME PAGE VIEWPORT FIT
   ===================== */
.page--home {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.page--home main {
  flex: 1;
  display: flex;
}

.page--home .hero {
  flex: 1;
  min-height: unset;
}

.page--home .site-footer {
  margin-top: 0;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background-color: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 4rem;
}

.site-footer__logo img {
  display: block;
  opacity: 0.85;
}

.site-footer__social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.site-footer__social a:hover {
  opacity: 1;
}

.site-footer__social img {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
